Page 3 of 3

Re: migration tools for Nagios Core

Posted: Wed Oct 11, 2017 10:53 am
by DOkuwa
hello
ran the sed commands and got less errors like before

sed: can't read  -e: No such file or directory
sed: can't read s/^(\s*command_check_interval\s*=\s*)/# Line Commented out for Nagios v4 Compatibility\n#\1/g: No such file or directory
sed: can't read nagios.cfg: No such file or directory

Re: migration tools for Nagios Core

Posted: Wed Oct 11, 2017 5:10 pm
by scottwilkerson
You need to remove this from hosts.cfg as it is a duplicate definition

Code: Select all

define host{
	name				generic-host
	alias				generic-host
	_SNMPCOMMUNITY			J4gu4R
	check_command			check_host_alive
	max_check_attempts			3
	check_interval			5
	active_checks_enabled		1
	passive_checks_enabled		0
	check_period			24x7
	obsess_over_host			0
	check_freshness			0
	flap_detection_enabled		0
	retain_status_information		1
	retain_nonstatus_information	1
	contact_groups			Supervisors, Systems_Team
	notification_interval		60
	notification_period		24x7
	notification_options		d,r
	notifications_enabled		1
	register				0
}
HOWEVER THIS IS VERY IMPORTANT

The top of this file reads GENERATED BY CENTREON

We do not support anything created by Centreon nor can we confirm it won't break your whole installation.

Re: migration tools for Nagios Core

Posted: Thu Oct 12, 2017 10:07 am
by DOkuwa
Thanks
it worked
everything seems to be working now

Re: migration tools for Nagios Core

Posted: Thu Oct 12, 2017 10:55 am
by kyang
Sounds great! I'll be closing this topic as resolved!

If you have any more questions, feel free to create another thread!

Thank you for using the Nagios Support Forum!