Add generic host-up and host-down scripts.
Thanks to Menno Smits for a patch.
This commit is contained in:
parent
f88c9942e1
commit
2077451e07
3 changed files with 12 additions and 0 deletions
|
@ -283,6 +283,8 @@ void sssp_bfs(void)
|
|||
asprintf(&envp[5], "REMOTEPORT=%s", port);
|
||||
envp[6] = NULL;
|
||||
|
||||
execute_script(n->status.reachable ? "host-up" : "host-down", envp);
|
||||
|
||||
asprintf(&name,
|
||||
n->status.reachable ? "hosts/%s-up" : "hosts/%s-down",
|
||||
n->name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue