> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of kermit le kermit
> Sent: Friday, May 02, 2008 8:27 AM
> To: [email protected]
> Subject: [Nagios-users] NRPE: Unable to read output
> 
> 
> hello all
> 
> i use nagios to monitoring smtp server on debian (postfix), and i make
a test
> to reboot this service when he shutdown with npre.
> 
> 
> example: /usr/local/nagios/libexec/check_npre  -H  smtp_server  -c
> script_to_reboot_postfix
> 
> 
> when i send this i have this mistake : NRPE: Unable to read output

check_nrpe expects the script it calls to be a nagios plugin and to
behave appropriately. The Developer Guidelines specify that nagios
plugins must output (at least) one line of text and to exit with the
proper exit code. It appears your script does not output any text, at
the least.

It also appears that you are going to try to use check_nrpe as an
event_handler instead of its intended purpose of running check plugins.
There aren't any inherent reasons that I can think of why that wouldn't
work and since nagios doesn't check for errors from the execution of an
event_handler, the above error probably isn't critical.

--
Marc


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to