You are here

Perf. data not showing on graph

2 posts / 0 new
Last post
hyper
hyper's picture
Perf. data not showing on graph

Hello

I got this strange problem. I have a Sensor with 3 temp. but only 2 of them are shown in the graph.

Here is the data returned from the service check:

RETURN CODE: 0 (OK) OUTPUT: Status is OK - Tilbageloeb: 12.4375 Til jorden: 31.7500 Fra jorden: 23.1875 | Tilbageloeb=12.4375 Til jorden=31.7500 Fra jorden=23.1875 (Its danish :)) As you can see there are 3 perf. data.   This is from the nagiosgraph.log Tue Aug 13 10:10:24 2013 INSERT debug: processing perfdata: 1376381414||SensorNetConnect2||Sensor Check||Status is OK - Sensor1: 29.6250 Sensor2: 29.4375 Sensor3: 30.0625||Sensor1=29.6250 Sensor2=29.4375 Sensor3=30.0625

Tue Aug 13 10:10:24 2013 INSERT info: Input lastcheck:1376381414
Tue Aug 13 10:10:24 2013 INSERT info: Input hostname:SensorNetConnect2
Tue Aug 13 10:10:24 2013 INSERT info: Input perfdata:Sensor1=29.6250 Sensor2=29.4375 Sensor3=30.0625

Tue Aug 13 10:10:24 2013 INSERT info: Input servicedescr:Sensor Check
Tue Aug 13 10:10:24 2013 INSERT info: Input output:Status is OK - Sensor1: 29.6250 Sensor2: 29.4375 Sensor3: 30.0625
Tue Aug 13 10:10:24 2013 INSERT warn: perfdata not recognized
Tue Aug 13 10:10:24 2013 INSERT info: RRDs::update /usr/local/nagios/var/rrd/SensorNetConnect2/Sensor%20Check/Sensor1/value.rrd 1376381414:29.625
Tue Aug 13 10:10:24 2013 INSERT info: RRDs::update /usr/local/nagios/var/rrd/SensorNetConnect2/Sensor%20Check/Sensor2/value.rrd 1376381414:29.4375
Tue Aug 13 10:10:24 2013 INSERT info: RRDs::update /usr/local/nagios/var/rrd/SensorNetConnect2/Sensor%20Check/Sensor3/value.rrd 1376381414:30.0625
  Still no errors.   But when the browser request graph data (JSON) only 2 perf. data are returned.   The parameters to rddfetch are: end 1376394570 hsm SensorNetConnect1::Sensor Check::Fra_jorden hsm SensorNetConnect1::Sensor Check::Til_jorden hsm SensorNetConnect1::Sensor Check::Tilbageloeb start 1344858570

And the JSON response are:

0 Object { stats={...}, label="SensorNetConnect1::Sensor Check::Fra_jorden", data=[366], more...} 1 Object { stats={...}, label="SensorNetConnect1::Sensor Check::Tilbageloeb", data=[366], more...}

So only 2 graph are shown.

Help please :)

awijntje
awijntje's picture
Re: Perf. data not showing on graph

he there,

does the 3de item show up when you edit the graph (in the options menu).

I've had plugins return 5/6 items of perf-data and that never gave any issue (only thing I can think of is the space in the names might cause an issue, but it seems those are silently replaced with a "_" but you could try removing the space and see what happens (remove the old rrd file if you are going to try that)).

hope this helps,

Alan