Page 1 of 1

What is the process for changing / adding perf data?

Posted: Tue Jun 20, 2017 11:23 am
by skynardo
I have a passive cpu_check running every that alerts on %idle time and sends %idle time as perfdata. I was recently asked to also collect %Wait I/O perfdata so I changed the plugin to report this as well, here is an example of the plugin's output:

OK CPU IDLE 97.04% (10:5);| Id=97.04%;10;5 wio=0.17%;;;

This is the only thing I have changed thus far. When I check the advanced tab for this service, I see the following in the Performance Data section:

Performance Data: Id=97.27%;10;5 wio=0.17%;;;

However, when I look at the Performance Data graph, it is still only showing the original metric %idle.
Looking for the correct procedure to start graphing both sets of data, hopefully without losing existing %Idle data.

Re: What is the process for changing / adding perf data?

Posted: Tue Jun 20, 2017 1:17 pm
by cdienger
Try editing the xiwizard_passive_service template found under Configure > Core Config Manager > Templates > Service Templates, go to the Check Settings tab, and make sure that "Process perf data" option is set to on.

Re: What is the process for changing / adding perf data?

Posted: Wed Jun 21, 2017 3:47 pm
by skynardo
Im using my own templates and I verified that it is set to ON. It is (and has been) collecting and displaying %idle in the performance graphs for this service, but after adding the second metric wio%, I still only see the %idle when looking at performance graphs for this service.

Re: What is the process for changing / adding perf data?

Posted: Wed Jun 21, 2017 4:27 pm
by cdienger
Thanks for the clarification. https://support.nagios.com/kb/article/n ... phing.html describes a similar problem. Read through it, run the provided script, and let us know your results!

Re: What is the process for changing / adding perf data?

Posted: Tue Jul 11, 2017 7:56 am
by skynardo
This fixed my issue. Thank you for pointing me to the doc that I needed.

Re: What is the process for changing / adding perf data?

Posted: Tue Jul 11, 2017 9:18 am
by tmcdonald
Did you have any further (related) questions or are we okay to close this thread?