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]