Custom SNMP check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Custom SNMP check

Post by tmcdonald »

Sorry, but ssax is out of the office today (we thought he would get the files on July 2). Can you resend them to me? I will make sure they get to the team.

Update: Files received and placed in shared drive.
Former Nagios employee
angus
Posts: 125
Joined: Thu May 28, 2015 8:17 am

Re: Custom SNMP check

Post by angus »

I sent them to you. They are sitting in my outbox, is that normal?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Custom SNMP check

Post by tgriep »

I was able to replicate what you are seeing on the performance graphs and I am working with the developers to see if this can be resolved.
I'll post back any information as soon as possible.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lgroschen
Posts: 384
Joined: Wed Nov 27, 2013 1:17 pm

Re: Custom SNMP check

Post by lgroschen »

Have had another user with a similar, if not the same, issue you are having here. Looking into this as there may be a bug- we will let you know when we figure anything out.
/Luke
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Custom SNMP check

Post by tgriep »

We have a fix for the SNMP counter's not graphing correctly. Here is the link to the post that explains how to resolve it.
https://support.nagios.com/forum/viewto ... 65#p146465
Be sure to check out our Knowledgebase for helpful articles and solutions!
angus
Posts: 125
Joined: Thu May 28, 2015 8:17 am

Re: Custom SNMP check

Post by angus »

I am looking at the final posts. I am a little lost with some of the instructions but i will figure it out. My concern is that there doesn't seem to be a resolution posted. At the end you are still getting the #c value. Did you just not post the solution evidence because it wasn't needed for your purposes?
angus
Posts: 125
Joined: Thu May 28, 2015 8:17 am

Re: Custom SNMP check

Post by angus »

I went through this process and have not seen a change in 30 minutes. I must have missed a step. Please confirm this will remove the C from the value.

Thanks.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Custom SNMP check

Post by tgriep »

No, the letter c will still be there on the performance data.
What the template is suppose to do is change the graph type to Gauge and plot that.
Can you run this command on the RRD file and post back the top 20 lines? Replace <ServiceName> with the full path to the rrd file.
rrdtool info <ServiceName>.rrd
Be sure to check out our Knowledgebase for helpful articles and solutions!
angus
Posts: 125
Joined: Thu May 28, 2015 8:17 am

Re: Custom SNMP check

Post by angus »

filename = "IPPP_TCP_Connections.rrd"
rrd_version = "0003"
step = 60
last_update = 1438010208
ds[1].type = "DERIVE"
ds[1].minimal_heartbeat = 8460
ds[1].min = 0.0000000000e+00
ds[1].max = NaN
ds[1].last_ds = "U"
ds[1].value = 0.0000000000e+00
ds[1].unknown_sec = 48
rra[0].cf = "AVERAGE"
rra[0].rows = 2880
rra[0].cur_row = 595
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 2880
rra[1].cur_row = 1065
rra[1].pdp_per_row = 5
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = NaN
rra[1].cdp_prep[0].unknown_datapoints = 1
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Custom SNMP check

Post by tgriep »

If everything worked, this line

Code: Select all

ds[1].type = "DERIVE"
Should be GAUGE, not DERIVE.

Could you edit the following file

Code: Select all

/usr/local/nagios/etc/pnp/process_perfdata.cfg
And change the loglevel to below?

Code: Select all

LOG_LEVEL = 2
Then run the following tail command in a shell, delete the XML and RRD files for that service, go to that service in XI and schedule an immediate check 3 times and then post the output of the tail command?

Code: Select all

tail -f /usr/local/nagios/var/perfdata.log
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked