NRPE - Formatting Issue

Marc Powell marc at ena.com
Wed Aug 10 17:50:01 CEST 2005



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Tom Brown
> Sent: Wednesday, August 10, 2005 10:37 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] NRPE - Formatting Issue
> 
> Hi
> 
> If i run a script locally i get the following output
> 
> ./check_chassis.sh
> Health
> 
> 
> SEVERITY;COMPONENT
> Ok;Fans
> Ok;Intrusion
> Ok;Memory
> Ok;Power Supplies
> Ok;Processors
> Ok;Temperatures
> Ok;Voltages
> Ok;Hardware Log
> 
> however if i run that using nrpe i get the following
> 
> # ../libexec/check_nrpe xxxxss1 -c check_chassis
> Health
> 
> and thats it - Is there anyway to get nrpe to parse more than the
first
> line as output? Or Is there another way to have the first result
> executed remotely?

One line of output is the nagios standard. This appears to be a custom
plugin so you'll need change your output to be all on one line. You
could use '<br>'s between the objects if you like the multi-line display
in the web interface and/or substitute them with \n's when sending
notifications.

http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN32

Alternately, you could hack NRPE, the nagios daemon and the CGI's to
handle multi-line output. The first method is more practical IMHO.

--
Marc 


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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