Help with pnp4nagios graph

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
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

Help with pnp4nagios graph

Post by nagmoto »

Hi,

We have few servers for which check_uptime graph is working and for few servers it is not working. When i looked at the perfdata i see this error message and i am really not sure what is error here:

Perfdata Log:
2015-02-03 13:45:55 [26218] [0] RRDs::update /var/lib/pnp4nagios/test.example.com/check_uptime_1A.rrd 1422992755:1
2015-02-03 13:45:55 [26218] [0] RRDs::update ERROR /var/lib/pnp4nagios/test.example.com/check_uptime_1A.rrd: expected 2 data source readings (got 2) from 1422992755

I have attached 2 graphs, one is working and other one is not working. Please let me know if you need more details.
Attachments
Screen Shot 2015-02-03 at 2.06.00 PM.png
Screen Shot 2015-02-03 at 2.06.21 PM.png
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Help with pnp4nagios graph

Post by abrist »

Can you post the output of the working and non-working checks?
Could you also increase the debug verbosity to see if there re additional errors?
http://support.nagios.com/wiki/index.ph ... h_Problems
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

Re: Help with pnp4nagios graph

Post by nagmoto »

Here are the check outputs:

Graph is working for this server:
[root@server1 ~]# /usr/lib64/nagios/plugins/contrib/check_uptime.pl -w 5
OK: Linux server1 2.6.32-431.el6.x86_64 - up 279 days 8 hours 15 minutes

Graph is not working on this server:
[root@server2 ~]# /usr/lib64/nagios/plugins/contrib/check_uptime.pl
OK: Linux server2 2.6.18-238.el5 - up 192 days 3 hours 56 minutes


Here is the increased debug verbosity:

2015-02-03 16:49:27 [20546] [2] Using Config File /etc/pnp4nagios/process_perfdata.cfg parameters
2015-02-03 16:49:27 [20546] [2] Default Timeout: 15 secs.
2015-02-03 16:49:27 [20546] [2] Config Timeout: 15 secs.
2015-02-03 16:49:27 [20546] [2] Actual Timeout: 15 secs.
2015-02-03 16:49:27 [20546] [1] process_perfdata.pl-0.6.22 starting in SYNC Mode
2015-02-03 16:49:27 [20546] [2] Datatype set to 'SERVICEPERFDATA'
2015-02-03 16:49:27 [20546] [1] Found Performance Data for server2 / check_uptime_1A (type=1)
2015-02-03 16:49:27 [20546] [2] Adapting Template using ARG 1
2015-02-03 16:49:27 [20546] [2] Adapting Template to check_uptime_1A -a 5.php (added ARG1)
2015-02-03 16:49:27 [20546] [2] Adapting Template to check_uptime_1A -a 5.php as defined in /etc/pnp4nagios/check_commands/check_nrpe.cfg
2015-02-03 16:49:27 [20546] [2] data2rrd called
2015-02-03 16:49:27 [20546] [2] RRDs::update /var/lib/pnp4nagios/server2/check_uptime_1A.rrd 1423003767:1
2015-02-03 16:49:27 [20546] [0] RRDs::update /var/lib/pnp4nagios/server2/check_uptime_1A.rrd 1423003767:1
2015-02-03 16:49:27 [20546] [0] RRDs::update ERROR /var/lib/pnp4nagios/server2/check_uptime_1A.rrd: expected 2 data source readings (got 2) from 1423003767
2015-02-03 16:49:27 [20546] [1] PNP exiting (runtime 0.002487s) ...
Last edited by nagmoto on Tue Apr 14, 2015 9:05 am, edited 1 time in total.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Help with pnp4nagios graph

Post by lmiltchev »

Perhaps the RRD on server2 has different number of datasources than what the plugin is sending. Have you tried deleting the offending RRD and waiting for it to be recreated?
Be sure to check out our Knowledgebase for helpful articles and solutions!
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

Re: Help with pnp4nagios graph

Post by nagmoto »

lmiltchev,

So you are saying I need to delete check_uptime.rrd file of the server2 from this directory /var/lib/pnp4nagios/server2 and pnp4nagios will recreate it ?I haven't tried deleting any file till now.
Last edited by nagmoto on Tue Apr 14, 2015 9:06 am, edited 1 time in total.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Help with pnp4nagios graph

Post by slansing »

It should re-create it yes, as long as you are still checking that and it is returning performance data.
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

Re: Help with pnp4nagios graph

Post by nagmoto »

please close this thread.
Locked