Installing Cisco UCSM Plugin for Nagios 3.x

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
i386
Posts: 13
Joined: Mon Jul 07, 2014 11:35 am

Installing Cisco UCSM Plugin for Nagios 3.x

Post by i386 »

Any one have experience installing CISCO UCSM plugin?

I am having problem with

2.2 Install Nagios Monitoring Plugin

Check and add the following property to nagios.cfg in the Nagios home etc directory
cfg_dir= NAGIOS_HOME/cisco

The instructions are unclear with whats suppose to be in this directory? and where the file is suppose to come from.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Installing Cisco UCSM Plugin for Nagios 3.x

Post by tmcdonald »

Are you referring to this doc?

https://cisco-marketing.hosted.jivesoft ... _guide.pdf

If so you are just editing the nagios.cfg file in the same directory where the rest of your nagios config files are (for hosts, services, commands, etc.).
Former Nagios employee
i386
Posts: 13
Joined: Mon Jul 07, 2014 11:35 am

Re: Installing Cisco UCSM Plugin for Nagios 3.x

Post by i386 »

tmcdonald wrote:Are you referring to this doc?

https://cisco-marketing.hosted.jivesoft ... _guide.pdf

If so you are just editing the nagios.cfg file in the same directory where the rest of your nagios config files are (for hosts, services, commands, etc.).


Do you have the UCS plugin working?
I am really struggling with this.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Installing Cisco UCSM Plugin for Nagios 3.x

Post by tmcdonald »

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.
Former Nagios employee
i386
Posts: 13
Joined: Mon Jul 07, 2014 11:35 am

Re: Installing Cisco UCSM Plugin for Nagios 3.x

Post by i386 »

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]#
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Installing Cisco UCSM Plugin for Nagios 3.x

Post by Box293 »

What are the permissions of the cisco directory related to the other directories?

Code: Select all

ls -al /etc/nagios
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked