Page 2 of 2

Re: nagios tcp connection issue

Posted: Tue Sep 18, 2012 11:01 am
by benhank
ok after deleting a LOT of hugeamungus log files, the service started, but there is no log file.
but I was able tool rerun the db repair scrip and my server is back up and running.

Re: nagios tcp connection issue

Posted: Tue Sep 18, 2012 11:02 am
by benhank
and so:

Code: Select all

[root@lkennagiosp02 ~]# nagios -v /etc/nagios/nagios.cfg

Nagios Core 3.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Error: Cannot open main configuration file '/etc/nagios/nagios.cfg' for reading!
   Error processing main config file!



***> 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@lkennagiosp02 ~]# Error: Cannot open main configuration file '/etc/nagios/nagios.cfg' for reading!
-bash: Error:: command not found
[root@lkennagiosp02 ~]#




on a side not is it safe to delete my /var/spool/mail/nagios file?
it's weighing in at 45gb....

Re: nagios tcp connection issue

Posted: Tue Sep 18, 2012 12:29 pm
by scottwilkerson
Yes it is safe to delete that

As for the the verification command you should run

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Re: nagios tcp connection issue

Posted: Tue Sep 18, 2012 1:10 pm
by benhank
thanks guys she is back up.