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
begin:vcard
n:VALDINGER;STEPHEN
fn:STEPHEN VALDINGER
tel;cell:740-491-0958
version:2.1
email;internet:[EMAIL PROTECTED]
end:vcard
-------------------------------------------------------------------------
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/
_______________________________________________
Nagios-users mailing list
[email protected]
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