Custom Plugin Output - Performance data
Posted: Sat Feb 18, 2012 1:04 am
Hi,
I have written a custom plugin to monitor a service, but I am having a issue with the performance data. When I graph the information in nagiosgraph it displays the labels with ",data" behind it, I have attached an example.
According to http://nagiosplug.sourceforge.net/devel ... tml#AEN201, the performance data must be in the following format: 'label'=value[UOM];[warn];[crit];[min];[max], I believe my output is in that format.
According to http://nagios.sourceforge.net/docs/3_0/pluginapi.html, performance data must be separated by "|", mine is. There is also an example of how the performance data must look "$SERVICEPERFDATA$ /=2643MB;5948;5958;0;5968 /boot=68MB;88;93;0;98 /home=69357MB;253404;253409;0;253414 /var/log=818MB;970;975;0;980", again I believe my output follows that example.
The output of my plugin looks like this "Threads OK - Idle Theads: 8;|Idle Threads=8 Total Threads=33 Peak Threads=53"
So in summary, the plugin works perfectly, it is just the labels in nagiosgraph that I have an issue with "Label,data", see attachment.
The standard plugins display correctly.
Any help will be greatly appreciated.
Thanks
Gregg
I have written a custom plugin to monitor a service, but I am having a issue with the performance data. When I graph the information in nagiosgraph it displays the labels with ",data" behind it, I have attached an example.
According to http://nagiosplug.sourceforge.net/devel ... tml#AEN201, the performance data must be in the following format: 'label'=value[UOM];[warn];[crit];[min];[max], I believe my output is in that format.
According to http://nagios.sourceforge.net/docs/3_0/pluginapi.html, performance data must be separated by "|", mine is. There is also an example of how the performance data must look "$SERVICEPERFDATA$ /=2643MB;5948;5958;0;5968 /boot=68MB;88;93;0;98 /home=69357MB;253404;253409;0;253414 /var/log=818MB;970;975;0;980", again I believe my output follows that example.
The output of my plugin looks like this "Threads OK - Idle Theads: 8;|Idle Threads=8 Total Threads=33 Peak Threads=53"
So in summary, the plugin works perfectly, it is just the labels in nagiosgraph that I have an issue with "Label,data", see attachment.
The standard plugins display correctly.
Any help will be greatly appreciated.
Thanks
Gregg