Insert performance data for new script
-
murawweh.daher
- Posts: 66
- Joined: Wed Sep 02, 2015 2:02 pm
- Location: Ramallah - West Bank
- Contact:
Insert performance data for new script
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.
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
Murawweh Daher
Re: Insert performance data for new script
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
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
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
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
Your performance data is in an invalid format, please see:
https://nagios-plugins.org/doc/guidelines.html#AEN200
https://nagios-plugins.org/doc/guidelines.html#AEN200
-
murawweh.daher
- Posts: 66
- Joined: Wed Sep 02, 2015 2:02 pm
- Location: Ramallah - West Bank
- Contact:
Re: Insert performance data for new script
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.
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
Murawweh Daher
Re: Insert performance data for new script
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
i removed all rrd files, but still same issue.
Regards,
Murawweh Daher
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
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
Murawweh Daher
Re: Insert performance data for new script
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?
Additionally, can you run the plugin over the CLI, and show us the full input / output as well?
Former Nagios Employee
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Insert performance data for new script
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
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.