Page 1 of 2

Insert performance data for new script

Posted: Mon Apr 11, 2016 2:54 pm
by murawweh.daher
Hi everybody,

i was have a script to read i/o for unix server and modified it to read from kernel zone solaris 11 and worked fine, but i need to insert performance data to have a diagram as history.
what should i do?

Thank you.

Re: Insert performance data for new script

Posted: Mon Apr 11, 2016 4:30 pm
by rkennedy
Can you post the script for us to take a look at? We might be able to help you if it's something quick (adding perf data usually is, thankfully).

Re: Insert performance data for new script

Posted: Wed Apr 13, 2016 2:21 am
by murawweh.daher
Hi,

kindly find the attached. in performance data i have below results.

Performance Data: I/O stats rs=6.0 ; ws=0.0 ; krps=0.0 ; kwps=0.0 ; wsvc=0.0 ; asvc=1.4 ; wait=0.0 ; busy=0 ; actv=0.0 ; waits=0

Re: Insert performance data for new script

Posted: Wed Apr 13, 2016 8:23 am
by scottwilkerson
Your performance data is in an invalid format, please see:
https://nagios-plugins.org/doc/guidelines.html#AEN200

Re: Insert performance data for new script

Posted: Thu Apr 21, 2016 4:59 am
by murawweh.daher
please check the line below in my script, the perf data still don't work.

echo "WS= $ws | ws=$ws%;$warn_ws;$crit_ws;; \n"


in adv page (Performance Data: ws=0.0%;60;70;;)

what i missed.

Re: Insert performance data for new script

Posted: Thu Apr 21, 2016 3:23 pm
by lmiltchev
Remove the RRD and the XML file (for this check) from "/usr/local/nagios/share/perfdata/<hostname>/" directory, wait for 15-20 min for the RRD and XML files to get recreated, and check to see if the graphs will show up. Let us know if this helped.

Re: Insert performance data for new script

Posted: Thu Apr 21, 2016 3:57 pm
by murawweh.daher
i removed all rrd files, but still same issue.

Re: Insert performance data for new script

Posted: Thu Apr 21, 2016 4:06 pm
by murawweh.daher
please find the attached, the performance data seen disabled.

Re: Insert performance data for new script

Posted: Thu Apr 21, 2016 4:23 pm
by rkennedy
What is the output of ls -l /usr/local/nagios/share/perfdata/<hostname/? (replace <hostname> with the hostname for this service)

Additionally, can you run the plugin over the CLI, and show us the full input / output as well?

Re: Insert performance data for new script

Posted: Thu Apr 21, 2016 7:53 pm
by Box293
On your screenshot, under "Service Attributes" performance data is disabled.

Go into CCM and edit the service.
On the "Check Settings" tab make sure "Process perf data" is on