migration tools for Nagios Core

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Re: migration tools for Nagios Core

Postby DOkuwa » Wed Oct 11, 2017 10:53 am

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
DOkuwa
 
Posts: 59
Joined: Tue Aug 15, 2017 3:54 pm

Re: migration tools for Nagios Core

Postby scottwilkerson » Wed Oct 11, 2017 5:10 pm

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.
User avatar
scottwilkerson
CTO
 
Posts: 7904
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: migration tools for Nagios Core

Postby DOkuwa » Thu Oct 12, 2017 10:07 am

Thanks
it worked
everything seems to be working now
DOkuwa
 
Posts: 59
Joined: Tue Aug 15, 2017 3:54 pm

Re: migration tools for Nagios Core

Postby kyang » Thu Oct 12, 2017 10:55 am

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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
kyang
 
Posts: 366
Joined: Tue Jul 25, 2017 3:35 pm

Previous

Return to Nagios Core

Who is online

Users browsing this forum: Bing [Bot], lvaillant and 24 guests