Page 1 of 1

Performance data

Posted: Mon Aug 06, 2012 7:25 am
by pompelmoes
Hi

Can someone explain why some performance data are not created ? (Sorry I made a new post but my reply's won't appear in the forum)

my status.dat file

servicestatus {
host_name=DEVDC1
service_description=disk_c
modified_attributes=0
check_command=check_nrpe!check_disk_c!16162
check_period=24x7
notification_period=24x7
check_interval=10.000000
retry_interval=2.000000
event_handler=
has_been_checked=1
should_be_scheduled=1
check_execution_time=0.250
check_latency=0.154
check_type=0
current_state=0
last_hard_state=0
last_event_id=4999
current_event_id=5011
current_problem_id=0
last_problem_id=2049
current_attempt=1
max_attempts=3
state_type=1
last_state_change=1344124603
last_hard_state_change=1344124603
last_time_ok=1344255403
last_time_warning=0
last_time_unknown=0
last_time_critical=1344124003
plugin_output=Used: 36201 MB (44%) Free: 45714 MB (55%)
long_plugin_output=
performance_data=
last_check=1344255403
next_check=1344256003
check_options=0
current_notification_number=0
current_notification_id=4619
last_notification=0
next_notification=0
no_more_notifications=0
notifications_enabled=1
active_checks_enabled=1
passive_checks_enabled=1
event_handler_enabled=1
problem_has_been_acknowledged=0
acknowledgement_type=0
flap_detection_enabled=1
failure_prediction_enabled=1
process_performance_data=1
obsess_over_service=1
last_update=1344255845
is_flapping=0
percent_state_change=0.00
scheduled_downtime_depth=0
}

Like you can see is the performance data empty ? how come ?

Re: Performance data

Posted: Mon Aug 06, 2012 9:52 am
by agriffin
This just means you're using a plugin that doesn't support performance data. Not all plugins need to return performance data, since for some kinds of checks it doesn't make sense to do so.

Re: Performance data

Posted: Tue Aug 07, 2012 2:37 am
by pompelmoes
I see

hmm, do you know how come that these plugins without perfdata, arn't showing up in my perfdata.log ?
So every single plugin i'm using with perfdata is showing up in perfdata.log (and are getting graphed), but those without perfdata are not. :(

Re: Performance data

Posted: Tue Aug 07, 2012 1:34 pm
by mguthrie
If the plugin doesn't return performance data, nothing ever gets as far as the npcd daemon. So it would never show up in the log.

When nagios receives a plugin with performance data, it splits off the perfdata and drops it into the perfdata spool for PNP to pick up and process. But if there's no performance data nothing ever gets dropped in that spool.

Re: Performance data

Posted: Wed Aug 08, 2012 2:19 am
by pompelmoes
Thx for the reply,

My problem actually is the fact that the output from plugins (without perfdata) won't stack in the perfdata.log file. So I can create graph out of these plugins.
Normally Nagios puts every single output or perfdata into the perfdata.log file (That's what's happening on my other server)?

I installed an older version of nagios (version 3.2.3). In this version I was able to see every plugin output + perfdata (if there is any). This let me to create graphs out of plugins that only show output.

Do you see what I mean ?

thx at advance

Re: Performance data

Posted: Mon Aug 13, 2012 4:45 pm
by agriffin
This bug was actually just fixed in the development branch of Nagios Core, and it should work the way you expect in the next release again.