this is my first post, and I’m pretty sure someone must have ran into it… but I have no idea how to look for it:
When I adjust my nagios.cfg file, to add windows monitoring, I get the following error:
Running configuration check… CONFIG ERROR! Reload aborted. Check your Nagios configuration.
When I add the # again, all works fine again. Default monitoring of the localhost works fine. I adjusted my windows .cfg so it contains the right local ip address. Can anyone help me out here please??
The line I’m unquoting is:
You are removing the # from the SECOND LINE ONLY, right? Not from the “Definitions for monitoring…” line. That is a comment and needs to stay commented out.
Also, is your WINDOWS.CFG located in /usr/local/nagios/etc/objects ??
thanks for the reply. Yes I was removing it from the 2nd line, and the file exists indeed in that folder. Strange thing is, if I remove the # in front of the monitoring for switches, it works, but when I just change the IP to my router, then it fails again…