Hi Everybody
I wrote a pluging for testing purpose.
When I do an check_nrpe on localhost , I have
/usr/lib/nagios/plugins/check_nrpe -H 127.0.0.1 -c check_nodesps
OK - ProcUsed: 52, 0, 1588 | avg1=0.035;0.150;0.300;0; avg2=0.035;0.150;0.300;0; avg3=0.034;0.150;0.300;0;
when I did the same command on my server Nagios
./check_nrpe -H X.X.X.X -c check_nodesps
OK - ProcUsed: 56, 0, 1588 | avg1=0.05;0.150;0.300;0; avg2=0.049;0.150;0.300;0; avg3=0.048;0.150;0.300;0;
I think then my plugin is working well
But when I try to draw a graph in Nagios web page ... I have nothing
Anybody can explain me the proper way to declare a plugin to nagios to obtain a graphical output ???
Best Regards
Problems with Pluging and graphics
-
- Posts: 3739
- Joined: Thu May 05, 2016 3:54 pm
Re: Problems with Pluging and graphics
What you're referring to is performance data, and there's a variety of ways to collect and visualize Nagios performance data. In that sense, it's hard for me to say why the data is not being visualized without knowing specifically what add-ons you have configured (like nagiosgraph, nagflux, pnp4nagios, thruk, etc)
Per the development guidelines, I would suggest adding single-quotes around your labels. It's also worth mentioning you will not see any performance data until this plugin is associated with a host/service object. Simply running it via the CLI will not produce anything for the Nagios daemon to collect.
Per the development guidelines, I would suggest adding single-quotes around your labels. It's also worth mentioning you will not see any performance data until this plugin is associated with a host/service object. Simply running it via the CLI will not produce anything for the Nagios daemon to collect.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/