Fwd: reuse arguments from service to invokeeventhandler
Marc Powell
marc at ena.com
Thu Mar 22 19:28:59 CET 2007
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Tommy Mestdagh
> Sent: Thursday, March 22, 2007 11:38 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Fwd: reuse arguments from service to
> invokeeventhandler
>
>
> Hi all,
>
> second attemp.
>
> I have made my question way to complex. now with a clear mind i can
> descibe it much easyer.
>
> My service have some input parameters arg1 arg2 arg3...
> I just want to reuse the same value as input parameter for my
> event_handler.
> is that possible ??
Event handler commands can be passed $ARGx$ variables in the exact same
way as service check commands.
<http://nagios.sourceforge.net/docs/2_0/macros.html>
define service {
...
check_command check_blah!somearg1!somearg2!somearg3
event_handler fix_blah!somearg1!somearg2!somearg3
}
In the same way that the check_command command definition has to pass
$ARGx$ to the script, you need to do the same for the event_handler
command{} definition.
Hth,
marc
-------------------------------------------------------------------------
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