AW: NRPE startup problems

florian.beese at infoconsult.nu florian.beese at infoconsult.nu
Tue Dec 21 12:44:06 CET 2004


I had a look at the plugin, but I cannot find any error at it. It behaves
normaly!

When I call :  
/usr/lib/nagios/plugins/check_sensors.pl -s "temp1:55:65" -s "temp3:50:60"
The output is:
SENSORS OK - temp1 +36 C; temp3 +34.5 C| 'temp1'=36;55;65 'temp3'=34.5;50;60

When I call : 
/usr/lib/nagios/plugins/check_nrpe -H 127.0.0.1 -c check_sensors
The output is:
SENSORS OK - | 'temp1'=36;55;65 'temp3'=34.5;50;60

This also happens, when I use the network-card IP address instead of
localhost.

extract from my nrpe.cfg:
command[check_sensors]=/usr/lib/nagios/plugins/check_sensors.pl -s
"temp1:55:65" -s "temp3:50:60"

As said before, when I kill the nrpe process and start it again as a daemon
everything works fine. I don't have to do anything at the sensors or
anywhere else... I wonder why this cannot be a problem of NRPE?!

I really don't know what else I should have look at and what can be wrong
here. I also tried the rc-start script for SuSE Linux from the new CVS of
NRPE, but also with that init-script it didn't work at the start. Just after
a "restart" of the process.

Hope to get some ideas on this...

regards
   Florian Beese


-----Ursprüngliche Nachricht-----
Von: Andreas Ericsson [mailto:ae at op5.se]
Gesendet: Dienstag, 21. Dezember 2004 11:39
An: florian.beese at infoconsult.nu
Cc: nagios-users at lists.sourceforge.net
Betreff: Re: [Nagios-users] NRPE startup problems


florian.beese at infoconsult.nu wrote:
> Hello,
> 
> I have a problem using lm_sensors with NRPE.
> 
> Everything is working fine unless I reboot the computers where lmsensors
> should be executed on by NRPE. When I reboot the machine everything seems
to
> be well - the startup scripts initialize sensors and start NRPE (as
daemon),
> but when my Nagios retrieves the info, the information becomes always cut
at
> different sections of the output.
> For Example (output of 2 different computers with the same config): 
> output (PC1), when I (re-)start NRPE by hand:      SENSORS OK - temp1 +35
> °C: temp3 +33.5 °C 
> output (PC1), when its started up by init script:  SENSORS OK - 
> output (PC2), when I (re-)start NRPE by hand:      SENSORS OK - fan2 4326
> RPM: temp2 +19.0 °C 
> output (PC2), when its started up by init script:  SENSORS OK - fan2 4326
> RPM 
> 

This can't possibly be an NRPE problem. You should look to the plugin 
instead or the nagios gui instead. NRPE just feeds back the first line 
of output it gets, and only cuts if it exceeds 1024 chars.

> I even tried it at the command line and the output was the same, but the
> NRPE process seems to be running normaly. When I restart the NRPE process
> everythings working fine again until the next restart of the computer (as
> mentioned above).
> 
> I am using NRPE 2.0 with Nagios 1.2 and the plugin "check_sensors.pl" (by
> Matthew Kent) as I didn't really like the normal "check_sensors" plugin
(if
> you'd
> like to see it watch this link:
> http://iramon.ir.funpic.de/nagios/download/check_sensors.pl).
> 
> I already thought about writing an init script which restarts the NRPE
> process after 10 seconds or so, but haven't tried that yet and in my
opinion
> thats not a clean solution.
> 
> Thanks in advance!
> 
> kind regards
>    Florian Beese
> 
> 
> ____________
> Virus checked by G DATA AntiVirusKit
> Version: AVK 15.0.1655 from 21.12.2004
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now. 
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> 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
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer



____________
Virus checked by G DATA AntiVirusKit
Version: AVK 15.0.1656 from 21.12.2004


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
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