Failed Migration :: Dif Version Nagios, Dif Version OS

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.
kakarrot
Posts: 12
Joined: Mon Nov 26, 2012 3:21 pm

Re: Failed Migration :: Dif Version Nagios, Dif Version OS

Post by kakarrot »

Thanks for the updated command. I ran cat on the file and it seemed that kept the spacing formating was in tact this time. however... Still no go :-/

Code: Select all

root@dogwood:~# tr -dc [:print:]\\n </etc/nagios3/nagios.cfg.bak >/etc/nagios3/nagios.cfg
root@dogwood:~# /etc/nagios3/nagios.cfg -v /etc/nagios3/nagios.cfg/etc/nagios3/nagios.cfg: line 1203: unexpected EOF while looking for matching `"'
/etc/nagios3/nagios.cfg: line 1344: syntax error: unexpected end of file
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Failed Migration :: Dif Version Nagios, Dif Version OS

Post by slansing »

Try the following:

Code: Select all

sudo nagios3 -v /etc/nagios3/nagios.cfg
There have been many re-boot's of the nagios3 name, which is why we recommend people to use our "Installing Nagios Core from Source" guide on Ubuntu installations. It makes sure the paths and file names are in the fashion in which our documentation is written.
kakarrot
Posts: 12
Joined: Mon Nov 26, 2012 3:21 pm

Re: Failed Migration :: Dif Version Nagios, Dif Version OS

Post by kakarrot »

Ok, here's the entire output! Thanks for ur help! TGIF!

Code: Select all

root@dogwood:~# sudo nagios3 -v /etc/nagios3/nagios.cfg

Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
Processing object config file '/etc/nagios3/misccommands.cfg'...
Processing object config directory '/etc/nagios-plugins/config'...
Processing object config file '/etc/nagios-plugins/config/hppjd.cfg'...
Processing object config file '/etc/nagios-plugins/config/apt.cfg'...
Processing object config file '/etc/nagios-plugins/config/netware.cfg'...
Processing object config file '/etc/nagios-plugins/config/ifstatus.cfg'...
Processing object config file '/etc/nagios-plugins/config/flexlm.cfg'...
Processing object config file '/etc/nagios-plugins/config/ssh.cfg'...
Processing object config file '/etc/nagios-plugins/config/procs.cfg'...
Processing object config file '/etc/nagios-plugins/config/vsz.cfg'...
Processing object config file '/etc/nagios-plugins/config/games.cfg'...
Processing object config file '/etc/nagios-plugins/config/ping.cfg'...
Processing object config file '/etc/nagios-plugins/config/ldap.cfg'...
Processing object config file '/etc/nagios-plugins/config/breeze.cfg'...
Processing object config file '/etc/nagios-plugins/config/radius.cfg'...
Processing object config file '/etc/nagios-plugins/config/ftp.cfg'...
Processing object config file '/etc/nagios-plugins/config/nmap.cfg'...
Processing object config file '/etc/nagios-plugins/config/load.cfg'...
Processing object config file '/etc/nagios-plugins/config/dns.cfg'...
Processing object config file '/etc/nagios-plugins/config/http.cfg'...
Processing object config file '/etc/nagios-plugins/config/mysql.cfg'...
Processing object config file '/etc/nagios-plugins/config/pgsql.cfg'...
Processing object config file '/etc/nagios-plugins/config/mailq.cfg'...
Processing object config file '/etc/nagios-plugins/config/dummy.cfg'...
Processing object config file '/etc/nagios-plugins/config/imap.cfg'...
Processing object config file '/etc/nagios-plugins/config/snmp.cfg'...
Processing object config file '/etc/nagios-plugins/config/dhcp.cfg'...
Processing object config file '/etc/nagios-plugins/config/fping.cfg'...
Processing object config file '/etc/nagios-plugins/config/disk.cfg'...
Processing object config file '/etc/nagios-plugins/config/nt.cfg'...
Processing object config file '/etc/nagios-plugins/config/real.cfg'...
Processing object config file '/etc/nagios-plugins/config/disk-smb.cfg'...
Processing object config file '/etc/nagios-plugins/config/mrtg.cfg'...
Processing object config file '/etc/nagios-plugins/config/check_nrpe.cfg'...
Processing object config file '/etc/nagios-plugins/config/ntp.cfg'...
Processing object config file '/etc/nagios-plugins/config/news.cfg'...
Processing object config file '/etc/nagios-plugins/config/provox.cfg'...
Processing object config file '/etc/nagios-plugins/config/telnet.cfg'...
Processing object config file '/etc/nagios-plugins/config/users.cfg'...
Processing object config file '/etc/nagios-plugins/config/mail.cfg'...
Processing object config file '/etc/nagios-plugins/config/tcp_udp.cfg'...
Processing object config file '/etc/nagios-plugins/config/rpc-nfs.cfg'...
Processing object config directory '/etc/nagios3/conf.d'...
Processing object config file '/etc/nagios3/conf.d/extinfo_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/timeperiods_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/generic-host_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/generic-service_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/services_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/hostgroups_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/localhost_nagios2.cfg'...
Processing object config file '/etc/nagios3/contactgroups.cfg'...
Processing object config file '/etc/nagios3/contacts.cfg'...
Processing object config file '/etc/nagios3/dependencies.cfg'...
Processing object config file '/etc/nagios3/hostgroups.cfg'...
Processing object config directory '/etc/nagios3/servers'...
Processing object config file '/etc/nagios3/servers/hosts.cfg'...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
Error: Contact group 'admins' specified in service 'Current Load' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Current Users' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Disk Space' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'HTTP' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'SSH' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Total Processes' for host 'localhost' is not defined anywhere!
	Checked 6 services.
Checking hosts...
Warning: Host 'bigbrother-lgh.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'bigbrother-lgh.trads.int' is not defined anywhere!
Warning: Host 'bigbrother-main.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'bigbrother-main.trads.int' is not defined anywhere!
Warning: Host 'femur.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'femur.trads.int' is not defined anywhere!
Warning: Host 'fibula.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'fibula.trads.int' is not defined anywhere!
Warning: Host 'hyoid.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'hyoid.trads.int' is not defined anywhere!
Warning: Host 'lghapc2.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'lghapc2.trads.int' is not defined anywhere!
Error: Contact group 'admins' specified in host 'localhost' is not defined anywhere!
Warning: Host 'malleus.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'malleus.trads.int' is not defined anywhere!
Warning: Host 'mandible.trads.net' has no services associated with it!
Error: Contact group 'admins' specified in host 'mandible.trads.net' is not defined anywhere!
Warning: Host 'maxilla.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'maxilla.trads.int' is not defined anywhere!
Warning: Host 'nlmcserver.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'nlmcserver.trads.int' is not defined anywhere!
Warning: Host 'orbit.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'orbit.trads.int' is not defined anywhere!
Warning: Host 'pacs.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'pacs.trads.int' is not defined anywhere!
Warning: Host 'patella.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'patella.trads.int' is not defined anywhere!
Warning: Host 'peach.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'peach.trads.int' is not defined anywhere!
Warning: Host 'pelvis.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'pelvis.trads.int' is not defined anywhere!
Warning: Host 'provox.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'provox.trads.int' is not defined anywhere!
Warning: Host 'sacrum.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'sacrum.trads.int' is not defined anywhere!
Warning: Host 'scapula.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'scapula.trads.int' is not defined anywhere!
Warning: Host 'spine.trads.net' has no services associated with it!
Error: Contact group 'admins' specified in host 'spine.trads.net' is not defined anywhere!
Warning: Host 'sternum.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'sternum.trads.int' is not defined anywhere!
Warning: Host 'temp-lgh.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'temp-lgh.trads.int' is not defined anywhere!
Warning: Host 'temp-main.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'temp-main.trads.int' is not defined anywhere!
Warning: Host 'ulna.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'ulna.trads.int' is not defined anywhere!
Warning: Host 'ups-grmcmain.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'ups-grmcmain.trads.int' is not defined anywhere!
Warning: Host 'ups-grmcmall.trads.int' has no services associated with it!
Error: Contact group 'admins' specified in host 'ups-grmcmall.trads.int' is not defined anywhere!
Warning: Host 'webmail.trads.net' has no services associated with it!
Error: Contact group 'admins' specified in host 'webmail.trads.net' is not defined anywhere!
Warning: Host 'www.trads.net' has no services associated with it!
Error: Contact group 'admins' specified in host 'www.trads.net' is not defined anywhere!
	Checked 28 hosts.
Checking host groups...
	Checked 8 host groups.
Checking service groups...
	Checked 0 service groups.
Checking contacts...
	Checked 5 contacts.
Checking contact groups...
	Checked 3 contact groups.
Checking service escalations...
	Checked 0 service escalations.
Checking service dependencies...
	Checked 0 service dependencies.
Checking host escalations...
	Checked 0 host escalations.
Checking host dependencies...
	Checked 0 host dependencies.
Checking commands...
	Checked 174 commands.
Checking time periods...
	Checked 4 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 27
Total Errors:   34

***> One or more problems was encountered while running the pre-flight check...

     Check your configuration file(s) to ensure that they contain valid
     directives and data defintions.  If you are upgrading from a previous
     version of Nagios, you should be aware that some variables/definitions
     may have been removed or modified in this version.  Make sure to read
     the HTML documentation regarding the config files, as well as the
     'Whats New' section to find out what has changed.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Failed Migration :: Dif Version Nagios, Dif Version OS

Post by slansing »

Okay so after all that work it is basically telling you that you have no contact group defined yet which is titled "Admins," and that a large handful of Hosts do not have any services attached to them. Does this coincide with how they are supposed to be set up? Those are the only error's I see.
kakarrot
Posts: 12
Joined: Mon Nov 26, 2012 3:21 pm

Re: Failed Migration :: Dif Version Nagios, Dif Version OS

Post by kakarrot »

Thanks for your help thus far! I'm not experienced at all with Nagios, so thank you. I added the admins & root contacts to the contactgroups.cfg file. Now, when I restart, I get that weird error again about End of File.... See below. Any suggestions on how to get around this?

Code: Select all

/etc/nagios3/contactgroups.cfg

Code: Select all

define contactgroup{
        contactgroup_name       admins
        alias                   Nagios Administrators
        members                 root
        }

Code: Select all

define contact{
        contact_name                    root
        alias                           Root
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r
        host_notification_options       d,r
        service_notification_commands   notify-service-by-email
        host_notification_commands      notify-host-by-email
        email                           root@localhost
        }

Code: Select all

root@dogwood:~# sudo nagios3 -v /etc/nagios3/nagios.cfg

Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
Processing object config file '/etc/nagios3/misccommands.cfg'...
Processing object config directory '/etc/nagios-plugins/config'...
Processing object config file '/etc/nagios-plugins/config/hppjd.cfg'...
Processing object config file '/etc/nagios-plugins/config/apt.cfg'...
Processing object config file '/etc/nagios-plugins/config/netware.cfg'...
Processing object config file '/etc/nagios-plugins/config/ifstatus.cfg'...
Processing object config file '/etc/nagios-plugins/config/flexlm.cfg'...
Processing object config file '/etc/nagios-plugins/config/ssh.cfg'...
Processing object config file '/etc/nagios-plugins/config/procs.cfg'...
Processing object config file '/etc/nagios-plugins/config/vsz.cfg'...
Processing object config file '/etc/nagios-plugins/config/games.cfg'...
Processing object config file '/etc/nagios-plugins/config/ping.cfg'...
Processing object config file '/etc/nagios-plugins/config/ldap.cfg'...
Processing object config file '/etc/nagios-plugins/config/breeze.cfg'...
Processing object config file '/etc/nagios-plugins/config/radius.cfg'...
Processing object config file '/etc/nagios-plugins/config/ftp.cfg'...
Processing object config file '/etc/nagios-plugins/config/nmap.cfg'...
Processing object config file '/etc/nagios-plugins/config/load.cfg'...
Processing object config file '/etc/nagios-plugins/config/dns.cfg'...
Processing object config file '/etc/nagios-plugins/config/http.cfg'...
Processing object config file '/etc/nagios-plugins/config/mysql.cfg'...
Processing object config file '/etc/nagios-plugins/config/pgsql.cfg'...
Processing object config file '/etc/nagios-plugins/config/mailq.cfg'...
Processing object config file '/etc/nagios-plugins/config/dummy.cfg'...
Processing object config file '/etc/nagios-plugins/config/imap.cfg'...
Processing object config file '/etc/nagios-plugins/config/snmp.cfg'...
Processing object config file '/etc/nagios-plugins/config/dhcp.cfg'...
Processing object config file '/etc/nagios-plugins/config/fping.cfg'...
Processing object config file '/etc/nagios-plugins/config/disk.cfg'...
Processing object config file '/etc/nagios-plugins/config/nt.cfg'...
Processing object config file '/etc/nagios-plugins/config/real.cfg'...
Processing object config file '/etc/nagios-plugins/config/disk-smb.cfg'...
Processing object config file '/etc/nagios-plugins/config/mrtg.cfg'...
Processing object config file '/etc/nagios-plugins/config/check_nrpe.cfg'...
Processing object config file '/etc/nagios-plugins/config/ntp.cfg'...
Processing object config file '/etc/nagios-plugins/config/news.cfg'...
Processing object config file '/etc/nagios-plugins/config/provox.cfg'...
Processing object config file '/etc/nagios-plugins/config/telnet.cfg'...
Processing object config file '/etc/nagios-plugins/config/users.cfg'...
Processing object config file '/etc/nagios-plugins/config/mail.cfg'...
Processing object config file '/etc/nagios-plugins/config/tcp_udp.cfg'...
Processing object config file '/etc/nagios-plugins/config/rpc-nfs.cfg'...
Processing object config directory '/etc/nagios3/conf.d'...
Processing object config file '/etc/nagios3/conf.d/extinfo_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/timeperiods_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/generic-host_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/generic-service_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/services_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/hostgroups_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/localhost_nagios2.cfg'...
Processing object config file '/etc/nagios3/contactgroups.cfg'...
Processing object config file '/etc/nagios3/contacts.cfg'...
Processing object config file '/etc/nagios3/dependencies.cfg'...
Processing object config file '/etc/nagios3/hostgroups.cfg'...
Processing object config directory '/etc/nagios3/servers'...
Processing object config file '/etc/nagios3/servers/hosts.cfg'...
Error: Could not find any contact matching 'root' (config file '/etc/nagios3/contactgroups.cfg', starting on line 80)
Error: Could not expand member contacts specified in contactgroup (config file '/etc/nagios3/contactgroups.cfg', starting on line 80)
   Error processing object config files!


***> One or more problems was encountered while processing the config files...

     Check your configuration file(s) to ensure that they contain valid
     directives and data defintions.  If you are upgrading from a previous
     version of Nagios, you should be aware that some variables/definitions
     may have been removed or modified in this version.  Make sure to read
     the HTML documentation regarding the config files, as well as the
     'Whats New' section to find out what has changed.

root@dogwood:~# nano /etc/nagios3/contactgroups.cfg
root@dogwood:~# sudo nagios3 -v /etc/nagios3/nagios.cfg

Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
Processing object config file '/etc/nagios3/misccommands.cfg'...
Processing object config directory '/etc/nagios-plugins/config'...
Processing object config file '/etc/nagios-plugins/config/hppjd.cfg'...
Processing object config file '/etc/nagios-plugins/config/apt.cfg'...
Processing object config file '/etc/nagios-plugins/config/netware.cfg'...
Processing object config file '/etc/nagios-plugins/config/ifstatus.cfg'...
Processing object config file '/etc/nagios-plugins/config/flexlm.cfg'...
Processing object config file '/etc/nagios-plugins/config/ssh.cfg'...
Processing object config file '/etc/nagios-plugins/config/procs.cfg'...
Processing object config file '/etc/nagios-plugins/config/vsz.cfg'...
Processing object config file '/etc/nagios-plugins/config/games.cfg'...
Processing object config file '/etc/nagios-plugins/config/ping.cfg'...
Processing object config file '/etc/nagios-plugins/config/ldap.cfg'...
Processing object config file '/etc/nagios-plugins/config/breeze.cfg'...
Processing object config file '/etc/nagios-plugins/config/radius.cfg'...
Processing object config file '/etc/nagios-plugins/config/ftp.cfg'...
Processing object config file '/etc/nagios-plugins/config/nmap.cfg'...
Processing object config file '/etc/nagios-plugins/config/load.cfg'...
Processing object config file '/etc/nagios-plugins/config/dns.cfg'...
Processing object config file '/etc/nagios-plugins/config/http.cfg'...
Processing object config file '/etc/nagios-plugins/config/mysql.cfg'...
Processing object config file '/etc/nagios-plugins/config/pgsql.cfg'...
Processing object config file '/etc/nagios-plugins/config/mailq.cfg'...
Processing object config file '/etc/nagios-plugins/config/dummy.cfg'...
Processing object config file '/etc/nagios-plugins/config/imap.cfg'...
Processing object config file '/etc/nagios-plugins/config/snmp.cfg'...
Processing object config file '/etc/nagios-plugins/config/dhcp.cfg'...
Processing object config file '/etc/nagios-plugins/config/fping.cfg'...
Processing object config file '/etc/nagios-plugins/config/disk.cfg'...
Processing object config file '/etc/nagios-plugins/config/nt.cfg'...
Processing object config file '/etc/nagios-plugins/config/real.cfg'...
Processing object config file '/etc/nagios-plugins/config/disk-smb.cfg'...
Processing object config file '/etc/nagios-plugins/config/mrtg.cfg'...
Processing object config file '/etc/nagios-plugins/config/check_nrpe.cfg'...
Processing object config file '/etc/nagios-plugins/config/ntp.cfg'...
Processing object config file '/etc/nagios-plugins/config/news.cfg'...
Processing object config file '/etc/nagios-plugins/config/provox.cfg'...
Processing object config file '/etc/nagios-plugins/config/telnet.cfg'...
Processing object config file '/etc/nagios-plugins/config/users.cfg'...
Processing object config file '/etc/nagios-plugins/config/mail.cfg'...
Processing object config file '/etc/nagios-plugins/config/tcp_udp.cfg'...
Processing object config file '/etc/nagios-plugins/config/rpc-nfs.cfg'...
Processing object config directory '/etc/nagios3/conf.d'...
Processing object config file '/etc/nagios3/conf.d/extinfo_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/timeperiods_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/generic-host_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/generic-service_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/services_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/hostgroups_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/localhost_nagios2.cfg'...
Processing object config file '/etc/nagios3/contactgroups.cfg'...
Processing object config file '/etc/nagios3/contacts.cfg'...
Processing object config file '/etc/nagios3/dependencies.cfg'...
Processing object config file '/etc/nagios3/hostgroups.cfg'...
Processing object config directory '/etc/nagios3/servers'...
Processing object config file '/etc/nagios3/servers/hosts.cfg'...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
	Checked 6 services.
Checking hosts...
Warning: Host 'bigbrother-lgh.trads.int' has no services associated with it!
Warning: Host 'bigbrother-main.trads.int' has no services associated with it!
Warning: Host 'femur.trads.int' has no services associated with it!
Warning: Host 'fibula.trads.int' has no services associated with it!
Warning: Host 'hyoid.trads.int' has no services associated with it!
Warning: Host 'lghapc2.trads.int' has no services associated with it!
Warning: Host 'malleus.trads.int' has no services associated with it!
Warning: Host 'mandible.trads.net' has no services associated with it!
Warning: Host 'maxilla.trads.int' has no services associated with it!
Warning: Host 'nlmcserver.trads.int' has no services associated with it!
Warning: Host 'orbit.trads.int' has no services associated with it!
Warning: Host 'pacs.trads.int' has no services associated with it!
Warning: Host 'patella.trads.int' has no services associated with it!
Warning: Host 'peach.trads.int' has no services associated with it!
Warning: Host 'pelvis.trads.int' has no services associated with it!
Warning: Host 'provox.trads.int' has no services associated with it!
Warning: Host 'sacrum.trads.int' has no services associated with it!
Warning: Host 'scapula.trads.int' has no services associated with it!
Warning: Host 'spine.trads.net' has no services associated with it!
Warning: Host 'sternum.trads.int' has no services associated with it!
Warning: Host 'temp-lgh.trads.int' has no services associated with it!
Warning: Host 'temp-main.trads.int' has no services associated with it!
Warning: Host 'ulna.trads.int' has no services associated with it!
Warning: Host 'ups-grmcmain.trads.int' has no services associated with it!
Warning: Host 'ups-grmcmall.trads.int' has no services associated with it!
Warning: Host 'webmail.trads.net' has no services associated with it!
Warning: Host 'www.trads.net' has no services associated with it!
	Checked 28 hosts.
Checking host groups...
	Checked 8 host groups.
Checking service groups...
	Checked 0 service groups.
Checking contacts...
	Checked 6 contacts.
Checking contact groups...
	Checked 4 contact groups.
Checking service escalations...
	Checked 0 service escalations.
Checking service dependencies...
	Checked 0 service dependencies.
Checking host escalations...
	Checked 0 host escalations.
Checking host dependencies...
	Checked 0 host dependencies.
Checking commands...
	Checked 174 commands.
Checking time periods...
	Checked 4 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 27
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
root@dogwood:~# /etc/nagios3/nagios.cfg restart
/etc/nagios3/nagios.cfg: line 1203: unexpected EOF while looking for matching `"'
/etc/nagios3/nagios.cfg: line 1344: syntax error: unexpected end of file
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Failed Migration :: Dif Version Nagios, Dif Version OS

Post by sreinhardt »

Code: Select all

root@dogwood:~# /etc/nagios3/nagios.cfg restart
The above command is trying to execute the cfg file as though it was a binary, which it is not, just text. Being that you are on Ubuntu, you should be able to start\stop\restart nagios using the service command or as you did to test the config with nagios3. Please try the below command and let us know how it works!

Code: Select all

service nagios restart
You should see something like:

Code: Select all

Running configuration check...done.
Stopping nagios: No lock file found in /var/nagios/nagios.lock
Starting nagios: done.
The no lock file just indicates that it was not started when attempting to stop nagios.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
kakarrot
Posts: 12
Joined: Mon Nov 26, 2012 3:21 pm

Re: Failed Migration :: Dif Version Nagios, Dif Version OS

Post by kakarrot »

Ok, was able to get nagios started successfully, however, now I'm trying to troubleshoot my config files by enabling one at a time. I've enabled the services.cfg.

Code: Select all

cfg_file=/etc/nagios3/services.cfg
I'm now having trouble figuring out where/how to track down my newest error. Is it 'check_dummy' the config has a problem with... if so how do I correct it? Thanks!

Code: Select all

root@dogwood:~# service nagios3 restart
 * Restarting nagios3 monitoring daemon nagios3                                                                                             

Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
Processing object config file '/etc/nagios3/misccommands.cfg'...
Processing object config directory '/etc/nagios-plugins/config'...
Processing object config file '/etc/nagios-plugins/config/hppjd.cfg'...
Processing object config file '/etc/nagios-plugins/config/apt.cfg'...
Processing object config file '/etc/nagios-plugins/config/netware.cfg'...
Processing object config file '/etc/nagios-plugins/config/ifstatus.cfg'...
Processing object config file '/etc/nagios-plugins/config/flexlm.cfg'...
Processing object config file '/etc/nagios-plugins/config/ssh.cfg'...
Processing object config file '/etc/nagios-plugins/config/procs.cfg'...
Processing object config file '/etc/nagios-plugins/config/vsz.cfg'...
Processing object config file '/etc/nagios-plugins/config/games.cfg'...
Processing object config file '/etc/nagios-plugins/config/ping.cfg'...
Processing object config file '/etc/nagios-plugins/config/ldap.cfg'...
Processing object config file '/etc/nagios-plugins/config/breeze.cfg'...
Processing object config file '/etc/nagios-plugins/config/radius.cfg'...
Processing object config file '/etc/nagios-plugins/config/ftp.cfg'...
Processing object config file '/etc/nagios-plugins/config/nmap.cfg'...
Processing object config file '/etc/nagios-plugins/config/load.cfg'...
Processing object config file '/etc/nagios-plugins/config/dns.cfg'...
Processing object config file '/etc/nagios-plugins/config/http.cfg'...
Processing object config file '/etc/nagios-plugins/config/mysql.cfg'...
Processing object config file '/etc/nagios-plugins/config/pgsql.cfg'...
Processing object config file '/etc/nagios-plugins/config/mailq.cfg'...
Processing object config file '/etc/nagios-plugins/config/dummy.cfg'...
Processing object config file '/etc/nagios-plugins/config/imap.cfg'...
Processing object config file '/etc/nagios-plugins/config/snmp.cfg'...
Processing object config file '/etc/nagios-plugins/config/dhcp.cfg'...
Processing object config file '/etc/nagios-plugins/config/fping.cfg'...
Processing object config file '/etc/nagios-plugins/config/disk.cfg'...
Processing object config file '/etc/nagios-plugins/config/nt.cfg'...
Processing object config file '/etc/nagios-plugins/config/real.cfg'...
Processing object config file '/etc/nagios-plugins/config/disk-smb.cfg'...
Processing object config file '/etc/nagios-plugins/config/mrtg.cfg'...
Processing object config file '/etc/nagios-plugins/config/check_nrpe.cfg'...
Processing object config file '/etc/nagios-plugins/config/ntp.cfg'...
Processing object config file '/etc/nagios-plugins/config/news.cfg'...
Processing object config file '/etc/nagios-plugins/config/provox.cfg'...
Processing object config file '/etc/nagios-plugins/config/telnet.cfg'...
Processing object config file '/etc/nagios-plugins/config/users.cfg'...
Processing object config file '/etc/nagios-plugins/config/mail.cfg'...
Processing object config file '/etc/nagios-plugins/config/tcp_udp.cfg'...
Processing object config file '/etc/nagios-plugins/config/rpc-nfs.cfg'...
Processing object config directory '/etc/nagios3/conf.d'...
Processing object config file '/etc/nagios3/conf.d/extinfo_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/timeperiods_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/generic-host_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/generic-service_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/services_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/hostgroups_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/localhost_nagios2.cfg'...
Processing object config file '/etc/nagios3/contactgroups.cfg'...
Processing object config file '/etc/nagios3/contacts.cfg'...
Processing object config file '/etc/nagios3/dependencies.cfg'...
Processing object config file '/etc/nagios3/services.cfg'...
Processing object config file '/etc/nagios3/hostgroups.cfg'...
Processing object config directory '/etc/nagios3/servers'...
Processing object config file '/etc/nagios3/servers/hosts.cfg'...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
Error: Service check command 'check_dummy' specified in service 'PROVOX_QUEUE_LGH' for host 'nlmcserver.trads.int' not defined anywhere!
Error: Service check command 'check_dummy' specified in service 'FAX_QUEUE' for host 'pacs.trads.int' not defined anywhere!
Error: Service check command 'check_dummy' specified in service 'PROVOX_QUEUE' for host 'pacs.trads.int' not defined anywhere!
Error: Service check command 'check_dummy' specified in service 'PROVOX_QUEUE_ASCC' for host 'pacs.trads.int' not defined anywhere!
Error: Service check command 'check_dummy' specified in service 'PROVOX_QUEUE_CHB' for host 'pacs.trads.int' not defined anywhere!
Error: Service check command 'check_dummy' specified in service 'PROVOX_QUEUE_CHG' for host 'pacs.trads.int' not defined anywhere!
Error: Service check command 'check_dummy' specified in service 'PROVOX_QUEUE_COL' for host 'pacs.trads.int' not defined anywhere!
Error: Service check command 'check_dummy' specified in service 'PROVOX_QUEUE_MAN' for host 'pacs.trads.int' not defined anywhere!
Error: Service check command 'check_dummy' specified in service 'PROVOX_QUEUE_MRMC' for host 'pacs.trads.int' not defined anywhere!
Error: Service check command 'check_dummy' specified in service 'PROVOX_QUEUE_OIC' for host 'pacs.trads.int' not defined anywhere!
Error: Service check command 'check_dummy' specified in service 'PROVOX_QUEUE_ROY' for host 'pacs.trads.int' not defined anywhere!
	Checked 79 services.
Checking hosts...
Warning: Host 'peach.trads.int' has no services associated with it!
	Checked 28 hosts.
Checking host groups...
	Checked 8 host groups.
Checking service groups...
	Checked 0 service groups.
Checking contacts...
	Checked 6 contacts.
Checking contact groups...
	Checked 4 contact groups.
Checking service escalations...
	Checked 0 service escalations.
Checking service dependencies...
	Checked 0 service dependencies.
Checking host escalations...
	Checked 0 host escalations.
Checking host dependencies...
	Checked 0 host dependencies.
Checking commands...
	Checked 174 commands.
Checking time periods...
	Checked 4 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 1
Total Errors:   11

***> One or more problems was encountered while running the pre-flight check...

     Check your configuration file(s) to ensure that they contain valid
     directives and data defintions.  If you are upgrading from a previous
     version of Nagios, you should be aware that some variables/definitions
     may have been removed or modified in this version.  Make sure to read
     the HTML documentation regarding the config files, as well as the
     'Whats New' section to find out what has changed.

 * errors in config!
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Failed Migration :: Dif Version Nagios, Dif Version OS

Post by sreinhardt »

I do see a dummy.cfg that is being imported but not a commands.cfg, that normally comes with the nagios samples. Try including the commands.cfg file and run verify again with.

Code: Select all

nagios3 -v /etc/nagios3/nagios.cfg
The check_dummy command is defined within the commands.cfg file. You can also strip it out into its own file and just import that if you do not want any other commands contained within the original cfg.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
kakarrot
Posts: 12
Joined: Mon Nov 26, 2012 3:21 pm

Re: Failed Migration :: Dif Version Nagios, Dif Version OS

Post by kakarrot »

Ok, so that worked. Also had to repair several duplicate config files. Nagios now boots up. But when i go to one of our tempurature/humidity monitoring devices withing the Nagios web gui, it says the following the following error (see below). I'm wondering if nrpe is installed correctly.... Any thoughts? I have several other similar errors
temp-lgh.trads.int
Service Status Last Check Duration Attempt Status Information
HUMIDITY UNKNOWN 2012-12-19 15:27:29 1d 5h 23m 37s 1/1 Range format incorrect
TEMPERATURE UNKNOWN 2012-12-19 15:29:10 1d 5h 21m 56s 1/1 Range format incorrect
Here's another similar one problem.
patella.trads.int
Service Status Last Check Duration Attempt Status Information
LOAD CRITICAL 2012-12-19 15:48:48 1d 5h 41m 37s 1/1 CHECK_NRPE: Socket timeout after 10 seconds.
ROOT PARTITION CRITICAL 2012-12-19 15:45:30 1d 5h 39m 55s 1/1 CHECK_NRPE: Socket timeout after 10 seconds.
kakarrot
Posts: 12
Joined: Mon Nov 26, 2012 3:21 pm

Re: Failed Migration :: Dif Version Nagios, Dif Version OS

Post by kakarrot »

Here's another instance of a plugin not working. Maybe I don't quite understand NRPE... :-/
maxilla.trads.int
Service Status Last Check Duration Attempt Status Information
DHCP UNKNOWN 2012-12-20 09:45:15 1d 23h 39m 36s 1/1 Warning: This plugin must be either run as root or setuid root.
Locked