Page 3 of 3

Re: pls, have a look at my configs

Posted: Fri Oct 02, 2015 12:25 pm
by vvz
Actually I can see this group in both cache files,
line 344 in vim
that's new obj.cache (renamed to obj.txt) after restarting nagios

thank you for your help

Re: pls, have a look at my configs

Posted: Fri Oct 02, 2015 1:42 pm
by tgriep
Opps, typo on my part. I meant "in the new service check" not "and the new service check"

This is what I found in your objects.cache file. It doesn't show your changes that you added for the pagerduty-warning, etc. Can you post your the config files so we can review them or PM them to me?

Code: Select all

define service {
	host_name	vnode2-concert-site
	service_description	root partition amount
	check_period	24x7
	check_command	run-nsca-script
	contacts	pagerduty-critical
	notification_period	24x7
	initial_state	o
	check_interval	1.000000
	retry_interval	1.000000
	max_check_attempts	1
	is_volatile	0
	parallelize_check	1
	active_checks_enabled	0
	passive_checks_enabled	1
	obsess_over_service	1
	event_handler_enabled	1
	low_flap_threshold	0.000000
	high_flap_threshold	0.000000
	flap_detection_enabled	0
	flap_detection_options	o,w,u,c
	freshness_threshold	60
	check_freshness	0
	notification_options	c
	notifications_enabled	1
	notification_interval	10.000000
	first_notification_delay	0.000000
	stalking_options	n
	process_perf_data	1
	failure_prediction_enabled	1
	retain_status_information	1
	retain_nonstatus_information	1
	}

Re: pls, have a look at my configs

Posted: Fri Oct 02, 2015 2:06 pm
by vvz
yeah, you are right - only pagerduty-critical contact in service definition, do not understand why...
let me check ...

sorry, which configs are you asking?
sure I'll provide them

Re: pls, have a look at my configs

Posted: Fri Oct 02, 2015 2:08 pm
by vvz
I guess this one
define service{
hostgroup_name root-partition-status-passive
host_name vnode2-concert-site
service_description root partition amount
check_command run-nsca-script
max_check_attempts 1
check_interval 1
retry_interval 1
active_checks_enabled 0
passive_checks_enabled 1
check_period 24x7
contacts pagerduty-warning
notification_interval 30
notification_period 24x7
notification_options w
notifications_enabled 1
check_freshness 0
freshness_threshold 60
flap_detection_enabled 0
is_volatile 0

}


Re: pls, have a look at my configs

Posted: Mon Oct 05, 2015 3:18 pm
by tgriep
Last thing to try is to delete the objects.cache, objects.precache and the retention.dat files to see if the settings get updated.
The downside of this is that your system will lose the Duration time, Last Check time and it will act like the system is brand new and it will start to check all of the hosts and services.
If you are willing to do this, run the following.

Code: Select all

service nagios stop
rm /var/log/nagios/objects.cache
rm var/log/nagios/objects.precache
rm /var/log/nagios/retention.dat
service nagios start
Let us know if this resolves the issue.