Page 1 of 1

How to get SNMP info programatically using Nagios

Posted: Thu May 24, 2018 12:55 pm
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

Re: How to get SNMP info programatically using Nagios

Posted: Thu May 24, 2018 3:46 pm
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.

Re: How to get SNMP info programatically using Nagios

Posted: Fri May 25, 2018 12:29 pm
by scottwilkerson
Yes. In the newer versions you can collect data with the json api

Code: Select all

http://YOUR_HOST/nagios/jsonquery.html