This is currently not a configuration option that can be done easily.
It can be done in the PHP code. In the example below I will change 60 to 180. Basically we add the following to the code in several locations:
In the version 2.1.7 of the wizard.
In the file /usr/local/nagiosxi/html/includes/configwizards/switch/switch.inc.php
It needs to be defined on the Host Object, Ping Service, Bandwidth Service and Port Status Service.
Host Object
Starting at line 910 use this code instead:
Code: Select all
$objs[] = array(
"type" => OBJECTTYPE_HOST,
"use" => "xiwizard_switch_host",
"host_name" => $hostname,
"address" => $hostaddress,
"icon_image" => "switch.png",
"statusmap_image" => "switch.png",
"_xiwizard" => $wizard_name,
"notification_interval" => "180",
);
Ping Service
Starting at line 931 use this code instead:
Code: Select all
$objs[] = array(
"type" => OBJECTTYPE_SERVICE,
"host_name" => $hostname,
"service_description" => "Ping",
"use" => "xiwizard_switch_ping_service",
"_xiwizard" => $wizard_name,
"notification_interval" => "180",
);
Bandwidth Service
Starting at line 979 use this code instead:
Code: Select all
$objs[] = array(
"type" => OBJECTTYPE_SERVICE,
"host_name" => $hostname,
"service_description" => $portname . " Bandwidth",
"use" => "xiwizard_switch_port_bandwidth_service",
"check_command" => "check_xi_service_mrtgtraf!" . $hostaddress . "_" . $portnum . ".rrd!" . $warn_pair . "!" . $crit_pair . "!" . $label,
"_xiwizard" => $wizard_name,
"notification_interval" => "180",
);
Port Status Service
Starting at line 995 use this code instead:
Code: Select all
$objs[] = array(
"type" => OBJECTTYPE_SERVICE,
"host_name" => $hostname,
"service_description" => $portname . " Status",
"use" => "xiwizard_switch_port_status_service",
"check_command" => "check_xi_service_ifoperstatus!" . $snmpopts['snmpcommunity'] . "!" . $portnum . "!-v " . (int)$snmpversion,
"_xiwizard" => $wizard_name,
"notification_interval" => "180",
);
Starting at line 1012 use this code instead:
Code: Select all
$objs[] = array(
"type" => OBJECTTYPE_SERVICE,
"host_name" => $hostname,
"service_description" => $portname . " Status",
"use" => "xiwizard_switch_port_status_service",
"check_command" => "check_xi_service_ifoperstatusnag!{$portnum}!-v{$snmpversion} -u {$snmpopts['v3_username']} -A {$snmpopts['v3_auth_password']} {$priv_password_and_proto} -a {$snmpopts["v3_auth_proto"]} -l {$snmpopts['v3_security_level']}",
"_xiwizard" => $wizard_name,
"notification_interval" => "180",
);
NOTES:
If the wizard gets updated later you'll need to re-add these settings
The wizard will still display 60 in the field, but when the objects are created they are overwritten with these hard coded values