Insert performance data for new script

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
murawweh.daher
Posts: 66
Joined: Wed Sep 02, 2015 2:02 pm
Location: Ramallah - West Bank
Contact:

Insert performance data for new script

Post 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.
Regards,
Murawweh Daher
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Insert performance data for new script

Post 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).
Former Nagios Employee
murawweh.daher
Posts: 66
Joined: Wed Sep 02, 2015 2:02 pm
Location: Ramallah - West Bank
Contact:

Re: Insert performance data for new script

Post 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
You do not have the required permissions to view the files attached to this post.
Regards,
Murawweh Daher
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Insert performance data for new script

Post by scottwilkerson »

Your performance data is in an invalid format, please see:
https://nagios-plugins.org/doc/guidelines.html#AEN200
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
murawweh.daher
Posts: 66
Joined: Wed Sep 02, 2015 2:02 pm
Location: Ramallah - West Bank
Contact:

Re: Insert performance data for new script

Post 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.
Regards,
Murawweh Daher
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Insert performance data for new script

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
murawweh.daher
Posts: 66
Joined: Wed Sep 02, 2015 2:02 pm
Location: Ramallah - West Bank
Contact:

Re: Insert performance data for new script

Post by murawweh.daher »

i removed all rrd files, but still same issue.
Regards,
Murawweh Daher
murawweh.daher
Posts: 66
Joined: Wed Sep 02, 2015 2:02 pm
Location: Ramallah - West Bank
Contact:

Re: Insert performance data for new script

Post by murawweh.daher »

please find the attached, the performance data seen disabled.
You do not have the required permissions to view the files attached to this post.
Regards,
Murawweh Daher
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Insert performance data for new script

Post 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?
Former Nagios Employee
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Insert performance data for new script

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked