objects.cache showing wrong information? (Or not up to date)
Posted: Thu Jun 04, 2015 3:56 am
Hello,
Just noticed something. When I cat the objects.cahe file for (for example) my Reactor server;
I see several things that are not correct and not synchrone with the actual config:
_XIWIZARD windowsserver => Ther is no free variable defined for this host...
contacts nagiosadmin,contactfts,nagiosadmin => I deleted the contact fts a few weeks ago...
When I read http://sites.box293.com/nagios/guides/t ... ng-objects the objects.cache should contain the final object after all templates have been taken into account.
So why is it showing wrong config for this host object?
This is the template:
Just noticed something. When I cat the objects.cahe file for (for example) my Reactor server;
Code: Select all
cat /usr/local/nagios/var/objects.cache | sed -rn "/define host \{/{:a;N;/}/{/.host_name.reactor01/p;d};ba}"
define host {
host_name reactor01
alias reactor01
address xx.xx.xx.xx
check_period xi_timeperiod_24x7
check_command check_xi_host_ping!3000.0!80%!5000.0!100%!!!!
contacts nagiosadmin,contactfts,nagiosadmin
contact_groups xi_dig_dummy_contact_group
notification_period xi_timeperiod_24x7
initial_state o
importance 0
check_interval 5.000000
retry_interval 1.000000
max_check_attempts 3
active_checks_enabled 1
passive_checks_enabled 1
obsess 1
event_handler_enabled 1
low_flap_threshold 0.000000
high_flap_threshold 0.000000
flap_detection_enabled 1
flap_detection_options a
freshness_threshold 0
check_freshness 0
notification_options a
notifications_enabled 1
notification_interval 1440.000000
first_notification_delay 0.000000
stalking_options n
process_perf_data 1
icon_image icon_linux_centos.png
statusmap_image icon_linux_centos.png
retain_status_information 1
retain_nonstatus_information 1
_XIWIZARD windowsserver
}
_XIWIZARD windowsserver => Ther is no free variable defined for this host...
contacts nagiosadmin,contactfts,nagiosadmin => I deleted the contact fts a few weeks ago...
When I read http://sites.box293.com/nagios/guides/t ... ng-objects the objects.cache should contain the final object after all templates have been taken into account.
So why is it showing wrong config for this host object?
Code: Select all
define host {
host_name reactor01
use dig_linux_server_prio2
alias reactor01
address xx.xx.xx.xx
hostgroups +hg_inf_vir_vmw,hg_loc_dg,hg_os_linux_centos,hg_rol_monitoring
check_period xi_timeperiod_24x7
contacts +nagiosadmin
contact_groups +xi_dig_dummy_contact_group
notification_period xi_timeperiod_24x7
icon_image icon_linux_centos.png
statusmap_image icon_linux_centos.png
register 1
}
Code: Select all
define host {
name dig_linux_server_prio2
alias dig_linux_server_prio2
check_command check_xi_host_ping!3000.0!80%!5000.0!100%!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
contacts +nagiosadmin
notification_interval 1440
notification_period xi_timeperiod_24x7
first_notification_delay 0
notifications_enabled 1
icon_image icon_linux_centos.png
register 0
}