check_nrpe event handler early exit

Andreas Ericsson ae at op5.se
Thu Dec 2 19:33:10 CET 2004


Robert.Lattanzi at fitchratings.com wrote:
> 
>>NRPE only returns exactly one line of output. That's how nagios does it,
>>so that's how NRPE does it. Are you absolutely positive that the script
>>doesn't continue to run, but you don't get any further output? It's also
>>more than likely that the script would need elevated privileges to be
>>able to send signals to another process.
> 
> 
> yes i'm sure. why would I post this if i wasn't? it runs as root via sudo.
> 
> 
>>Are you running it as the same user as NRPE runs as?
> 
> 
> Of course- why would I do otherwise?
> 
> 
>>You're possibly putting them too close together (in a wallclock sense of
>>speaking). Add a "sleep 5" line between them. That should allow all
>>processes to clear away their pid- and lock-files.
> 
> 
> Tried that
> 
> 
> 

None of the above info was in your original posting. You'd be surprised 
how many users test things "the wrong way".

>>That's just plain wrong.
> 
> 
> That's just plain obnoxious.
> 

I don't recall what this was about, but putting it out of context sure 
makes it look that way.

> 
> 
>>That won't help in the slightest.
> 
> And neither have you.
> 
> 
>>You're welcome.
> 
> You've done nothing. If you're going to cop so much attitude you should at
> least make some useful suggestions.
> 

Re-post your original message and include some log output with debug=1 
in nrpe.conf. It would also help if you posted the script you're trying 
to run, the nrpe.conf in its entirety as well as the output of
su - nrpeuser -c "sudo thescript"
and
time thescript
That way I'll have a decent chance of telling you what's going wrong.


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


-------------------------------------------------------
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