So there are two possibilites here when running the Generic Network Device monitoring wizard.
First there is the host up/down check.
It uses the check_icmp command.
If you want to allow for a timeout of 15 seconds then you would use the option: -t 15
When a host is added using the Generic Network Device monitoring wizard, it uses the settings defined in the template "xiwizard_genericnetdevice_host".
When we go and have a look at template (CCM > Templates > Host Templates) we can see it uses the command "check_xi_host_ping". This has the command defined as:
Code: Select all
$USER1$/check_icmp -H $HOSTADDRESS$ -w $ARG1$,$ARG2$ -c $ARG3$,$ARG4$ -p 5
We can simply add the -t 15 to the end of the command and all hosts using this template/command will now have the increased timeout.
- Go to CCM > Commands
Edit the "check_xi_host_ping" command
Append to the end of the command -t 15
Code: Select all
$USER1$/check_icmp -H $HOSTADDRESS$ -w $ARG1$,$ARG2$ -c $ARG3$,$ARG4$ -p 5 -t 15
Click Save
Click Apply Configuration
Now all hosts using that template/command will now have the increased timeout.
AND there is the Ping service that was added when runnning the Generic Network Device monitoring wizard.
When a service is added using the Generic Network Device monitoring wizard, it uses the settings defined in the template "xiwizard_genericnetdevice_ping_service".
When we go and have a look at template (CCM > Templates > Service Templates) we can see it uses the command "check_xi_service_ping". This has the command defined as:
$USER1$/check_icmp -H $HOSTADDRESS$ -w $ARG1$,$ARG2$ -c $ARG3$,$ARG4$ -p 5
We can simply add the -t 15 to the end of the command and all services using this template/command will now have the increased timeout.
- Go to CCM > Commands
Edit the "check_xi_service_ping" command
Append to the end of the command -t 15
Code: Select all
$USER1$/check_icmp -H $HOSTADDRESS$ -w $ARG1$,$ARG2$ -c $ARG3$,$ARG4$ -p 5 -t 15
Click Save
Click Apply Configuration
Now all services using that template/command will now have the increased timeout.
IMPORTANT NOTE:
There is the chance that future Nagios XI upgrades will replaced your custom commands with the original command (removing the -t 15). So what you should problably do is clone these commands and templates, modify them and use these with your hosts and services.