CONFIG ERROR but nagios -v returns clean!!

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.
Locked
Webbie
Posts: 3
Joined: Fri Feb 25, 2011 4:55 am

CONFIG ERROR but nagios -v returns clean!!

Post by Webbie »

I've been doing a number of configuration changes and after each change I've been running:

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg and getting:

....................
Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check

However, when I run service nagios start I get:

Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios configuration.

Any pointers as where to look further would be greatly appreciated.
Webbie
Posts: 3
Joined: Fri Feb 25, 2011 4:55 am

Re: CONFIG ERROR but nagios -v returns clean!!

Post by Webbie »

Sorted - it was a permissions issue and the nagios -v command was being run by the wrong user.

Apologies
Locked