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
View Performance graph
-
bashar.abed
- Posts: 153
- Joined: Tue Oct 11, 2016 1:34 am
- Location: Ramallah West Bank Palestine
- Contact:
View Performance graph
You do not have the required permissions to view the files attached to this post.
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: View Performance graph
That is because your plugin is not printing perf data. Here is an example of a plugin generation perf data:
You can find more details here:
http://nagios-plugins.org/doc/guidelines.html
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;http://nagios-plugins.org/doc/guidelines.html
Previous Nagios employee
-
SteveBeauchemin
- Posts: 524
- Joined: Mon Oct 14, 2013 7:19 pm
Re: View Performance graph
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.
Version:
Compare the versions.
Steve B
Code: Select all
check_procs -w 300 -c 400
PROCS CRITICAL: 429 processes | procs=429;300;400;0;
Code: Select all
check_procs -V
check_procs v2.0.3 (nagios-plugins 2.0.3)
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 -VXI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: View Performance graph
Thanks for the assist @SteveBeauchemin!
-
bashar.abed
- Posts: 153
- Joined: Tue Oct 11, 2016 1:34 am
- Location: Ramallah West Bank Palestine
- Contact:
Re: View Performance graph
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
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
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: View Performance graph
You need to update the plugin on 10.x.14.82
Here are instructions:
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
-
bashar.abed
- Posts: 153
- Joined: Tue Oct 11, 2016 1:34 am
- Location: Ramallah West Bank Palestine
- Contact:
Re: View Performance graph
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
Will be happen on the previous services
And why the old command worked on many server
Thanks
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: View Performance graph
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.
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.