Popolate private Resource Inventory

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
ric79
Posts: 2
Joined: Wed Jun 29, 2016 12:10 am

Popolate private Resource Inventory

Post by ric79 »

I need to populate a private Resource Inventory of a set of Cisco Routers with this data: "chassis - module - port". For example:

Chassis0
- module0 - port0 | port1 | port2
- module1 - port3 | port4 | port5 | port6
Is it possible to get this data from Nagios or from one plugin?

Thanks Riccardo
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Popolate private Resource Inventory

Post by rkennedy »

Could you please clarify what you're looking to do? It sounds more like you need a script to pull information one time, rather then monitoring it through Nagios.
Former Nagios Employee
ric79
Posts: 2
Joined: Wed Jun 29, 2016 12:10 am

Re: Popolate private Resource Inventory

Post by ric79 »

You are right. My company already uses Nagios for monitoring Cisco routers.
My task now is to create a database with this data (chassis, module, port). I was wondering if I can use Nagios or its plugins to get that data...

R
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Popolate private Resource Inventory

Post by tmcdonald »

It probably *could* be used in this way, but it's not what it was designed to do. You might be able to adapt the check_snmp plugin to grab the model number for example, but then you would need to parse that out and insert it into a database. At that point you are basically writing your own software anyway. I'd look into some sort of proper inventory control system, and reserve Nagios for the monitoring of your devices.
Former Nagios employee
Locked