Perf Data feed from a custom plugin..

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
DanZ
Posts: 17
Joined: Thu Jan 02, 2014 11:36 am

Perf Data feed from a custom plugin..

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Perf Data feed from a custom plugin..

Post by abrist »

First, check the performance data section under the the object details "advanced page". Is your check's performance data displayed here?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked