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.
Help with pnp4nagios graph
Re: Help with pnp4nagios graph
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
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.
"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.
Re: Help with pnp4nagios graph
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) ...
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.
Re: Help with pnp4nagios graph
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!
Re: Help with pnp4nagios graph
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.
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.
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Help with pnp4nagios graph
It should re-create it yes, as long as you are still checking that and it is returning performance data.
Re: Help with pnp4nagios graph
please close this thread.