add ndo daemon to nagios init script
svalding at kent.edu
svalding at kent.edu
Wed Feb 13 20:30:23 CET 2008
Hello list,
I am by no means a programmer so am coming here for some assistance. I
am running Nagios 2.10 on an Ubuntu 7.04 box. I started to use the
NagVis software for some mapping. What I dislike is that every time I
have to stop and start nagios (which is rare) I have to kill and restart
the ndo daemon. What I would like to do is put this piece into the init
script for nagios. Somewhere within the
start)
....
....
;;
section of the code.
What I am going to test out is using
if ndo2db is running then kill it's pid and rm -f the sock file it created
else exit 0
fi
$Ndodaemonpath/ndo2db -c /$Ndocfgfile/ndo2db.cfg
I do not know bash well enough to accomplish this if clause on my own
(killing the process is the holdup for me)
Could someone assist me with this?
Thanks,
Stephen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: svalding.vcf
Type: text/x-vcard
Size: 131 bytes
Desc: Card for <svalding at kent.edu>
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080213/044c12aa/attachment.vcf>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list