The command does not change.ziedmahjoub wrote:2- can someone tell me how when i want to monitor a 2nd windows host , how i must modify this ? :
Code: Select all
define command{
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s PASSWORD -v $ARG1$ $ARG2$
}
i just need to copy paste and change USER1 to USER2 and another PASSWORD
or just let it and add argument -s PASSWORD2 in the same command_line ???
You create another service for the new host which uses this command.
Also, if the checks are identical, you can create a hostgroup, assign the multiple hosts into the hostgroup, and then assign the service to the hostgroup ... this way you have one configuration definition but multiple hosts with that service.
Time-Saving Tricks For Object Definitions