Page 1 of 1

Re: [Nagios-devel] featurerequest: object's variables

Posted: Tue Nov 23, 2010 5:59 pm
by Guest
You can do this already using custom variables in Nagios 3:

e.g.

define command {
...
command_line mycommand $_HOST_MY_CMD_PORT$ etc etc etc
}

define host {
host_name host1
__my_cmd_port 22
}

define host {
host_name host2
__my_cmd_port 99
}

http://nagios.sourceforge.net/docs/3_0/ ... tvars.html





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]