Page 1 of 1

Perf Data feed from a custom plugin..

Posted: Tue Dec 30, 2014 10:53 am
by DanZ
Nagios Support,

I have created a custom plugin to gather CPU status from a Linux server via a Check_by_SSH as described in the nagios docs (Nagios Plugin Development Guidelines). I uploaded this plugin, configured a service check (with the Process perf data option set to "on") and its running. I am getting my data and it displays in the Nagios GUI. "OK user=0.05% system=0.15% iowait=0.80% idle=99.00%". The output from by script is


COMMAND: /usr/local/nagios/libexec/check_FS_space_linux_by_sshpass.sh esu2v268 ""
OUTPUT: WARNING esu2v268 has a File system at 84% full user=0.96% system=0.76% iowait=0.05% idle=98.23% | user=0.96% system=0.76% iowait=0.05% idle=98.23%

This Script checks for any Files system that is 80% or high full and gathers CPU stats. As you can see the output has a pipe for the perf data. I think I have followed the documentation for a custom plugin closely but I'm still missing something. My question is how do I get XI to recognize the perf data part of the output from my pugin, save it to the DB and put up graphs? When I bring up the service check and goto the Performance Graphs tab I get "No performance graphs were found for this service. If you have just started monitoring this object then it may take up to 15 minutes for the performance graphs to appear." This service has been running for 48 hours

Re: Perf Data feed from a custom plugin..

Posted: Tue Dec 30, 2014 12:28 pm
by abrist
First, check the performance data section under the the object details "advanced page". Is your check's performance data displayed here?