migration tools for Nagios Core

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
DOkuwa
Posts: 114
Joined: Tue Aug 15, 2017 3:54 pm

Re: migration tools for Nagios Core

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: migration tools for Nagios Core

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
DOkuwa
Posts: 114
Joined: Tue Aug 15, 2017 3:54 pm

Re: migration tools for Nagios Core

Post by DOkuwa »

Thanks
it worked
everything seems to be working now
kyang

Re: migration tools for Nagios Core

Post 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!
Locked