Nagios init script on 10.04
stan
stanb at panix.com
Mon Dec 27 20:40:10 UTC 2010
I am using the nagios3 package on a 10.04 (LTS) system. /etc/init.d/nagios3
defines a variable called THEPIDFILE as follows:
THEPIDFILE=$(get_config "lock_file")
[ -n "$THEPIDFILE" ] || THEPIDFILE='/var/run/nagios3/nagios.pid'
O read that as check /etc/defaults/nagios3 to see if this is defiend there,
and ifg not use /var/run/nagios3/nagios.pi.
As I am configuring nagios on a new machine, I have been doing a lot of
startting and stoping of this package. I keep getting messages about no
such PI to be killed. Poking around, I find that I ahve the following:
root at pm2v40:/etc/nagios3/conf.d# ls -l /var/run/nagios3/
total 4
-rw-r--r-- 1 nagios nagios 6 2010-12-27 15:29 nagios3.pid
r
That is the pID file is getting created one level up from where the script
looks for it.
Is this a comfiguration error on my part? Or is it an error in this
package?
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
More information about the ubuntu-users
mailing list