RHEL3 and DAG rpms- Follow-up

Kreig DuBose kdubose at mystrotv.com
Tue Aug 17 19:05:21 CEST 2004


What's leading me to my suspicion is the fact that running the individual plugins as both root and nagios return valid responses.  However, in the web interface it consistently reports:

No output returned from plugin     or

No output

I'm also getting an error:


Could not stat() command file '/var/log/nagios/rw/nagios.cmd'
When 1) Nagios is running, 2) is it set to check for external commands, and the file is there:

nagios at beaker libexec]$ ll /var/log/nagios/rw/nagios.cmd
prwxrwxrwx    1 nagios   nagios          0 Aug 17 11:03 /var/log/nagios/rw/nagios.cmd

Cheers,
Kreig


[root at beaker libexec]# ./check_ping -H milton -w 100,90% -c 200,100%
PING OK - Packet loss = 0%, RTA = 0.18 ms
[root at beaker libexec]# su - nagios
[nagios at beaker nagios]$ cd /etc/nagios/libexec/
[nagios at beaker libexec]$ ./check_ping -H milton -w 100,90% -c 200,100%
PING OK - Packet loss = 0%, RTA = 0.17 ms
[nagios at beaker libexec]$ ./check_time -H milton
TIME OK - 0 second time difference
[nagios at beaker libexec]$ ./check_ntp -H milton
NTP OK: Offset 0.005588 secs, jitter 1.297 msec, peer is stratum 1

************
Message: 3
Subject: RE: [Nagios-users] RHEL3 and DAG rpms
Date: Mon, 16 Aug 2004 20:53:16 -0500
From: "Marc Powell" <marc at ena.com>
To: "Kreig DuBose" <kdubose at mystrotv.com>,
	<nagios-users at lists.sourceforge.net>



> -----Original Message-----
> From: Kreig DuBose [mailto:kdubose at mystrotv.com]
> Sent: Monday, August 16, 2004 7:12 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] RHEL3 and DAG rpms
>=20
> I seem to be having problems with the dag rpms for RHEL 3.  Every
plugin,
> except the check-host-alive, fails to return any output?
>=20
> Has anyone else encountered/solved this?
>=20
> My belief is it has to do with the pathing of the nagios.cmd file that
the
> plugins (pre-compiled) use.  I don't know where they're trying to
report
> their output.

[an ungodly number of lines of irrelevant digest removed]

Are they returning anything at all? What information has led you to
believe that the problem is related to nagios.cmd? In a 'standard'
setup, Nagios spawns child process to execute the checks which then
return the results of those checks back to the main process. Nagios.cmd
is mainly used for the processing of commands originating from the web
interface and passive checks. Have you tried executing the plugins as
they are defined in command.cfg as the nagios user to see if they return
proper output? Config snippets of a representative (and related) host
definition, service definition and command definition along with any
specific error information or output would be useful as well.

--
Marc




--__--__--

_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users


End of Nagios-users Digest


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
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