Hello All,
I have about 115 hosts in my nagios pool and I recently added a group of
7 UPSs. I made my own check using the check_snmp to check the load
percentage. Funny thing is, some times they show up in the host detail
and some times they do not. Refreshing a few times will get them to
show, then another refresh usually causes them to disappear. Opening one
of the hosts usually results in the message: Error: Host Status
Information Not Found! a few refreshes gets the host state to become
viewable. I find this behavior only with the 7 hosts i just added. The
config file is:
#cat ups.cfg
#UPS1
define host{
host_name ups-r1.hou.example.com
alias UPS Rack 1
address 192.168.96.8
check_command check-host-alive
max_check_attempts 10
process_perf_data 1
retain_status_information 1
retain_nonstatus_information0
contact_groups web-admins
notification_optionsd,r
notification_interval 30
notification_period 24x7
parents co1.hou.example.com
}
define hostextinfo{
host_name ups-r1.hou.example.com
icon_image www.jpg
statusmap_image www.gd2
}
define service{
host_name ups-r1.hou.example.com
service_description check_ping
check_command check_ping!140,25%!180,50%
max_check_attempts 10
normal_check_interval 5
retry_check_interval3
check_period24x7
notification_interval 30
notification_period 24x7
notification_optionsw,c,r
contact_groups web-admins
}
define service{
host_name ups-r1.hou.example.com
service_description check_ups_load
check_command check_ups_load!84!89
max_check_attempts 10
normal_check_interval 5
retry_check_interval3
check_period24x7
notification_interval 30
notification_period 24x7
notification_optionsw,c,r
contact_groups web-admins
}
#UPS2
define host{
host_name ups-r2.hou.example.com
alias UPS Rack 2
address 192.168.96.9
check_command check-host-alive
max_check_attempts 10
process_perf_data 1
retain_status_information 1
retain_nonstatus_information0
contact_groups web-admins
notification_optionsd,r
notification_interval 30
notification_period 24x7
parents co1.hou.example.com
}
define hostextinfo{
host_name ups-r2.hou.example.com
icon_image www.jpg
statusmap_image www.gd2
}
define service{
host_name ups-r2.hou.example.com
service_description check_ping
check_command check_ping!140,25%!180,50%
max_check_attempts 10
normal_check_interval 5
retry_check_interval3
check_period24x7
notification_interval 30
notification_period 24x7
notification_optionsw,c,r
contact_groups web-admins
}
define service{
host_name ups-r2.hou.example.com
service_description check_ups_load
check_command check_ups_load!84!89
max_check_attempts 10
normal_check_interval 5
retry_check_interval3
check_period24x7
notification_interval 30
notification_period 24x7
notification_optionsw,c,r
contact_groups web-admins
}
#UPS3
define host{
host_name ups-r3.hou.example.com
alias UPS Rack 3
address 192.168.96.10
check_command check-host-alive
max_check_attempts 10
process_perf_data 1
retain_status_information 1
retain_nonstatus_information0
contact_groups web-admins