event_handlers through nrpe?
Paul Archer
parcher at bcm.edu
Thu Apr 5 16:35:07 CEST 2007
I suppose I should have been more explicit in my first email. The problem
I'm having is not with the basic chain of commands, but with all the
environmental variables/macros. Figuring out what to put where to get the
$SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ data all the way to
the remote machine is giving me a headache.
Perhaps using ssh is the way to go...
Paul
On Thu, 5 Apr 2007, Hari Sekhon wrote:
> my event handlers run over ssh but this doesn't seem difficult to do at all,
> just create an event handler script, copy it to the remote machine and then
> put a command in the nrpe.cfg for that machine.
>
> [event_handler_name]=/path/my_event_handler_script.sh
>
> then create a checkcommand like so
>
> define command{
> command_name blah_event_handler command_line check_nrpe -H
> $HOSTADDRESS$ -c event_handler_name
> }
>
> then just add the line
>
> event_handler blah_event_handler
>
> to the service definition
>
> that should sort it.
>
>
> -h
>
> Hari Sekhon
>
>
>
> Paul Archer wrote:
>> Can anyone point me to a HOWTO or other documentation for setting up an
>> event handler that runs on a remote machine (probably through nrpe)?
>> I've gone over the docs for setting up a local event handler, but
>> translating that to a remote handler is just not working for me right now.
>>
>> thanks,
>>
>> Paul Archer
>>
>>
--
----------
# pwd
/loony/bin
----------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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