Page 1 of 1

View Performance graph

Posted: Tue Jun 06, 2017 4:15 am
by bashar.abed
Hi,
we have Nagios XI version 5.4.4 VM machine ,

i need to show Performance graph on the service ,
this command already added and work fine
[[email protected] ~]$ /usr/local/nagios/libexec/check_nrpe -H 10.x.x.82 -t 180 -c check_cpu_stats -a '-w 90,60,50 -c 93,70,57'


i used this command to create graph but there is not work

[email protected] ~]$ /usr/local/nagios/libexec/check_nrpe -H 10.x.14.82 -t 180 -c check_procs -a '-w 3000 -c 4000'
PROCS OK: 2234 processes

i noticed the RRD file not create on the second command ,

please see the attached file about this issue

Re: View Performance graph

Posted: Tue Jun 06, 2017 9:35 am
by avandemore
That is because your plugin is not printing perf data. Here is an example of a plugin generation perf data:

Code: Select all

$ /usr/local/nagios/libexec/check_wmi_plus.pl -H 192.168.3.73  -A /usr/local/nagios/etc/auth_file_wmi -m checkdrivesize -a 'C': -w '80' -c '95'
OK - C: Total=99.90GB, Used=19.98GB (20.0%), Free=79.92GB (80.0%)     |'C: Space'=19.98GB; 'C: Utilisation'=20.0%;80;95;
You can find more details here:
http://nagios-plugins.org/doc/guidelines.html

Re: View Performance graph

Posted: Tue Jun 06, 2017 10:05 am
by SteveBeauchemin
When I run the command, I get perf data, on my core server. You are running it against a remote server. The plugin on the remote server may be too old.

Code: Select all

check_procs -w 300 -c 400
PROCS CRITICAL: 429 processes | procs=429;300;400;0;
Version:

Code: Select all

check_procs -V
check_procs v2.0.3 (nagios-plugins 2.0.3)
Compare the versions.

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 10.x.14.82 -t 180 -c check_procs -a '-V'
/usr/local/nagios/libexec/check_procs -V
Steve B

Re: View Performance graph

Posted: Tue Jun 06, 2017 11:44 am
by dwhitfield
Thanks for the assist @SteveBeauchemin!

Re: View Performance graph

Posted: Wed Jun 07, 2017 1:50 am
by bashar.abed
Hi,

please see the result below how can solve it send me the snapshot or video if you can


[root@nms ~]# /usr/local/nagios/libexec/check_nrpe -H 10.x.14.82 -t 180 -c check_procs -a '-w 3000 -c 4000'
PROCS OK: 1938 processes
[root@nms ~]# /usr/local/nagios/libexec/check_nrpe -H 10.x.14.82 -t 180 -c check_procs -a '-w 3000 -c 4000'
PROCS OK: 1940 processes
[root@nms ~]# /usr/local/nagios/libexec/check_nrpe -H 10.x.14.82 -t 180 -c check_procs -a '-V'
check_procs v1.4.16.git (nagios-plugins 1.4.16)
[root@nms ~]# /usr/local/nagios/libexec/check_procs -V
check_procs v2.0.3 (nagios-plugins 2.0.3)
[root@nms ~]#
[root@nms ~]# /usr/local/nagios/libexec/check_nrpe -H 10.x.14.82 -t 180 -c check_procs -a '-w 3000 -c 4000'
PROCS OK: 2011 processes
[root@nms ~]#

Thanks

Re: View Performance graph

Posted: Wed Jun 07, 2017 9:08 am
by dwhitfield
You need to update the plugin on 10.x.14.82

Here are instructions:

Code: Select all

cd /tmp
wget https://www.nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz
tar zxvf nagios-plugins-2.0.3.tar.gz
cd /tmp/nagios-plugins-2.0.3
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install

Re: View Performance graph

Posted: Wed Jun 07, 2017 9:20 am
by bashar.abed
This commad should apply on nagios server and there is any effect
Will be happen on the previous services
And why the old command worked on many server
Thanks

Re: View Performance graph

Posted: Wed Jun 07, 2017 11:35 am
by dwhitfield
I'm not sure which of those are questions, or what the questions are, but I will try.

The commands I gave are for the remote server. If you are using NRPE, the plugin versions on the XI server do not matter.

Those commands will update all of the nagios plugins. I'm not real sure how you installed the plugins before since "git" is showing up. As long as the checks maintain the same names, the upgrade should go smoothly.

I would need more information about the other servers to tell you why they work and this one doesn't.