Page 1 of 1

Not sure how to manage graphs

Posted: Wed Sep 20, 2017 6:19 am
by ejlorson
Running Nagios XI on CentOS. I am monitoring Linux-based security appliances with SNMPv3. I am not using wizards to create any Nagios objects for security reasons.

I set up basic SSH up/down monitoring for the host then created a SNMP Polling Service to collect User CPU usage. Both of these metrics show up in the graphs for the appliance as expected.

I then created a Service to collect the system load via SNMP. That Service is up and collecting data in Service Detail, but the metrics are not appearing as graphs. I looked in Graphs for the host as well as the Performance Graphs and Metrics and I only see the SSH and User CPU metrics.

What do I have to do to get my SNMP Metric Services to appear as graphs?

Re: Not sure how to manage graphs - UPDATE

Posted: Wed Sep 20, 2017 7:33 am
by ejlorson
I added two other checks - octets in and available memory and they showed up in graphs quickly. The ones that are not showing up have quotes around the return value.

E.G.:
SERVICE 1: SNMP OK - "4.03" (does not create graph)
SERVICE 2: SNMP OK - 2541567 (DOES create graph)

NOTE: both of these results came from polling the same system

So how do I strip out the quotes or otherwise get Nagios to ignore them?

Re: Not sure how to manage graphs

Posted: Wed Sep 20, 2017 4:24 pm
by cdienger
It looks like this is the same as https://support.nagios.com/forum/viewto ... 35&t=32588 . I'm not aware of any wrapper to remove the quotes at the moment but perhaps the device can be modified to remove them ?

Re: Not sure how to manage graphs

Posted: Fri Sep 29, 2017 8:14 am
by ejlorson
UPDATE: I wrote a Perl wrapper that does what I need. We can lock this thread.

Thanks,
Eric

Re: Not sure how to manage graphs

Posted: Fri Sep 29, 2017 9:03 am
by scottwilkerson
Glad you were able to solve the issue