Once per day nagios asks VCenter (the vmware management server) if there are outdated snapshots on host level, eg on server's host template.. Now with 300 hosts, vcenter can't handle the load and returns service check timeout - I need to somehow run this specific check with a 5min delay between hosts (when I schedule the check manually for only one host, eg there is no other same checks at the on the Vcenter, then it works perfect). So I need to somehow configure Nagios to run this check once per day and not faster than 5 minutes between hosts.
My configuration:
Service definition :
Code: Select all
define service{
name Snapshot-Service
check_period 24x7
normal_check_interval 1440
retry_interval 60
max_check_attempts 3
notification_period 24x7
notification_interval 0
notification_options w,c,r
notifications_enabled 1
passive_checks_enabled 0
register 0
contact_groups admins
command
Code: Select all
define command {
command_name check_vmi_snap
command_line $USER1$/check_vmware_snapshots.pl --server vcenter --username xxvcenter --password xxpassword --mode age --warning 3 --critical 5 --whitelist $HOSTADDRESS$
Code: Select all
define service{
hostgroup_name v_servers
use Snapshot-Service
service_description Snapshot
check_command check_vmi_snap
}
Code: Select all
define host{
host_name v_server01
use v_servers
alias Virtual Server01
address 192.168.0.1
}
Kind regards,
Michalis