How to get SNMP info programatically using Nagios

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
Khooji
Posts: 6
Joined: Thu May 24, 2018 10:37 am

How to get SNMP info programatically using Nagios

Post by Khooji »

Hey folks,

I am new to the whole world of network monitoring. I have reviewed several open source SNMP server monitoring software packages such as OpenNMS and Nagios. I found out that using OpenNMS, you can easily get the information of your server like memory usage, cpu usage, temperature and etc using the ReST API OpenNMS provides. Since I need to get this information programatically and not through the UI(website), I was wondering if there is any similar mechanism like this in Nagios as well?

In another word, now that I got the Nagios web server working and can get the different information of the server, is there any way I get this data programatically?

Thanks in advance
Khooji
Posts: 6
Joined: Thu May 24, 2018 10:37 am

Re: How to get SNMP info programatically using Nagios

Post by Khooji »

Is there any thoughts on this from Nagios community?
I am looking for a way to get the data from SNMP clients using Nagios programmatically. Can anyone please help? Something similar to OpenNMS.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to get SNMP info programatically using Nagios

Post by scottwilkerson »

Yes. In the newer versions you can collect data with the json api

Code: Select all

http://YOUR_HOST/nagios/jsonquery.html
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked