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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

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

Post 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]
Locked