diverse nagios plugins

This commit is contained in:
Micha Glave
2007-07-27 06:17:27 +00:00
parent 63b9429e14
commit 739375e988
51 changed files with 2273 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#!/sbin/runscript
depend() {
need net
}
start() {
ebegin "Starting nsca"
start-stop-daemon --start --quiet --name nsca \
--startas /usr/nagios/bin/nsca \
-c nagios:nagios \
-- -d /etc/nagios/nsca.cfg
eend $? "Failed to Start nsca"
}
stop() {
ebegin "Stopping nsca"
start-stop-daemon --stop --quiet -n nsca
eend $? "Failed to Stop nsca"
}
restart() {
ebegin "Restarting nsca"
svc_stop
svc_start
eend $? "Failed to Restart nsca"
}