tmcdonald wrote:I don't have it working but I can try to help out. It should be just like any other plugin. Did you find the nagios.cfg file? You will need to enter in the full path in place of "NAGIOS_GOME" when defining the cfg_dir line.
I am trying to get it working. The problem is that the instructions does not tell you to copy any particular files to the directory
the instructions states that you should update the nagios.cfg with the entry "cfg_dir= NAGIOS_HOME/cisco". in my case cfg=/etc/nagios/cisco
However the instructions does not tell you to create a directory called "cicsco" nor to copy any files to it.
so when I tried to restart nagios I receive the error:
[root@nagiostest autodiscovery]# service nagios restart
Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration.
[root@nagiostest autodiscovery]# nagios -v /etc/nagios/nagios.cfg
Nagios Core 3.5.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-30-2013
License: GPL
Website:
http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/etc/nagios/objects/commands.cfg'...
Processing object config file '/etc/nagios/objects/contacts.cfg'...
Processing object config file '/etc/nagios/objects/timeperiods.cfg'...
Processing object config file '/etc/nagios/objects/templates.cfg'...
Processing object config file '/etc/nagios/objects/localhost.cfg'...
Processing object config directory '/etc/nagios/conf.d'...
Processing object config directory '/etc/nagios/cisco'...
Error: Could not open config directory '/etc/nagios/cisco' for reading.
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@nagiostest autodiscovery]#