It looks like you might be running the manual check as root rather than
as the same user that NRPE uses. There might very well be some
difference in the environment between the two runs that is causing your
problem.
Have you tried turning on debug in NRPE on the target system?
--
Bob Sloane,
It looks like the problem is caused by using , as the delimiter.
There is a , in the status string PING OK... which would provide
NSCA with the fouth argument, and make it a service result rather than a
host result.
--
Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045
Hmm. A glance at the source indicates that (for version 2.7.2) the
delimeter must be a single character. What do you have against TAB as
the delimiter?
/bin/echo -e $1\t$2\t$3 | /usr/local/sbin/send_nsca -H master \
-c /usr/local/etc/nagios/send_nsca.cfg
If you want to be even
Enable active checks for the hosts/services but set their
check_period to none.
This used to work, but now the check_period is enforced for the
freshness check. Here is a patch that will change back to the old
behaviour. This is for version 2.5.
*** checks.c~ Tue Jun 20 19:59:19 2006
It sounds like your script is running at exactly the time that Nagios
rotates the log files. You might try running it every 10 minutes
starting at 5 minutes past the hour and see if that helps.
--
Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045
Email:[EMAIL PROTECTED]
Host definition for SC-Gateway:
--
define host {
check_interval1
You might want to look at the documentation for the check_interval
directive for host objects. It says:
NOTE: Do NOT enable
JOOI, why is it said that a host check degrades performance?
As Giles Coochey mentioned earlier, host checks may cause performance
problems because they are not scheduled in the same way as service
checks. To quote the documentation again:
Also of note - when Nagios is check the status of a
I assume everyone has already seen this?
http://www.frsirt.com/english/advisories/2006/1662
--
Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045
Email:[EMAIL PROTECTED] http://www.ku.edu/home/sloane Phone:(785)864-0444
This is a bug in my opinion, though no one seems to agree with me.
I agree that this behaviour should be changed back.
--
Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045
Email:[EMAIL PROTECTED] http://www.ku.edu/home/sloane Phone:(785)864-0444
It was documented as a REQUIRED field from the start of v2.0
so you just got away because there was a bug untill now.
I would argue that there is absolutly no reason to make it required now
that hostgroups can be specified in the host definition, and that there
are good reasons to NOT make it
10 matches
Mail list logo