using variables in check commands

Ryan Langseth langseth at aero.und.edu
Thu May 27 21:46:40 CEST 2004


Hi,

I am currently trying to get a set of remote check commands work owrk 
correctly with nagios and nrpe. I was wondoering if there is a way to  
create a command like this:

define command{
    command_name   check_nrpe_load
    command_line   $USER1$/check_nrpe -H $HOSTADDRESS$ -c 
check_$HOSTADDRESS$_load
}

so that each host in the service would have a custom call rather than 
writing multiple check commands

the command I want from this would look like this:

/usr/local/nagios/libexec/check_nrpe -H foo -c check_foo_load

any suggestions?


thanks,

--
Ryan Langseth
UND Aerospace Systems Team
langseth at aero.und.edu


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
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