Load for 1 min 5 min and 15 mim
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
Load for 1 min 5 min and 15 mim
Hi team,
Is there any plugin to monitor load of Linux machine of 1 min 5 min and 15 min
As we are using check snmp load.pl plugin given by default in Nagios Xi but CPU load is different from output of TOP command
Also we need to exclude cache memroy in memory utilization monitoring we are using plugim check snmp storage.pl and it include the cache in utilization
Is there any plugin to monitor load of Linux machine of 1 min 5 min and 15 min
As we are using check snmp load.pl plugin given by default in Nagios Xi but CPU load is different from output of TOP command
Also we need to exclude cache memroy in memory utilization monitoring we are using plugim check snmp storage.pl and it include the cache in utilization
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Load for 1 min 5 min and 15 mim
@progressive.nagiosXI , Would you consider installing a remote agent on the linux server? I highly suggest installing the NRPE agent.
https://assets.nagios.com/downloads/nag ... _Agent.pdf
https://assets.nagios.com/downloads/nag ... e/NRPE.pdf
Here's the plugin that will measure the avergae load in 1,5 and 15 minutes:
https://support.nagios.com/kb/article/m ... s-774.html
https://assets.nagios.com/downloads/nag ... _Agent.pdf
https://assets.nagios.com/downloads/nag ... e/NRPE.pdf
Here's the plugin that will measure the avergae load in 1,5 and 15 minutes:
This is a memory check:/usr/local/nagios/libexec/check_load -w 5.0,4.0,3.0 -c 10.0,6.0,4.0
/custom_check_mem -w 20 -c 10 -n
https://support.nagios.com/kb/article.php?id=171-n flag means that the cached memory is added to the free memory. You can add or remove this option.
https://support.nagios.com/kb/article/m ... s-774.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
Re: Load for 1 min 5 min and 15 mim
We are using SNMP only
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Load for 1 min 5 min and 15 mim
@progressive.nagiosXI, Can you show me the output of the "check snmp load.pl" plugin and include a screenshot of the top command?
For the snmp memory check please take a look at this plugin:
https://exchange.nagios.org/directory/P ... pl/details
You can also search for more plugins on the nagios exchange:
https://exchange.nagios.org/
For the snmp memory check please take a look at this plugin:
https://exchange.nagios.org/directory/P ... pl/details
You can also search for more plugins on the nagios exchange:
https://exchange.nagios.org/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Load for 1 min 5 min and 15 mim
If you want the check_snmp_load plugin to output the load values like the top command, you would have edit the command to add the netsl option and fill in the thresholds like this example.
This is what it will output and it matches the top output.
Code: Select all
./check_snmp_load.pl -H centos7 -C public --v2c -w 80,80,80 -c 90,90,90 -f -T netslCode: Select all
Load : 1.55 1.43 1.34 : OK | load_1_min=1.55;80;90 load_5_min=1.43;80;90 load_15_min=1.34;80;90Be sure to check out our Knowledgebase for helpful articles and solutions!
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
Re: Load for 1 min 5 min and 15 mim
Please find the output of plugin with Top Command output details we can see its different and sometime there is so much difference in this,
[root@monitoring-nagiosxi libexec]#
[root@monitoring-nagiosxi libexec]# ./check_snmp_load.pl -H 10.100.1.16 -C nagiosxi --v2c -w 80 -c 90
8 CPU, average load 66.6% < 80% : OK
[root@monitoring-nagiosxi libexec]# top
top - 12:17:35 up 3 days, 14:06, 3 users, load average: 24.21, 31.91, 33.54
Tasks: 426 total, 3 running, 421 sleeping, 0 stopped, 2 zombie
%Cpu(s): 52.2 us, 9.4 sy, 0.0 ni, 35.5 id, 2.7 wa, 0.0 hi, 0.2 si, 0.0 st
[root@monitoring-nagiosxi libexec]#
[root@monitoring-nagiosxi libexec]# ./check_snmp_load.pl -H 10.100.1.16 -C nagiosxi --v2c -w 80 -c 90
8 CPU, average load 66.6% < 80% : OK
[root@monitoring-nagiosxi libexec]# top
top - 12:17:35 up 3 days, 14:06, 3 users, load average: 24.21, 31.91, 33.54
Tasks: 426 total, 3 running, 421 sleeping, 0 stopped, 2 zombie
%Cpu(s): 52.2 us, 9.4 sy, 0.0 ni, 35.5 id, 2.7 wa, 0.0 hi, 0.2 si, 0.0 st
Re: Load for 1 min 5 min and 15 mim
To get the Load data to line up, you have to edit your command to the following which will display the 1, 5, 15 minutes averages.
Code: Select all
./check_snmp_load.pl -H 10.100.1.16 -C nagiosxi --v2c -w 80,80,80 -c 90,90,90 -f -T netslBe sure to check out our Knowledgebase for helpful articles and solutions!
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
Re: Load for 1 min 5 min and 15 mim
Hi team
CPU is great thanks for this.
But memroy utilization without cache is still not working the plugin inclides cache count. Is there any other.
CPU is great thanks for this.
But memroy utilization without cache is still not working the plugin inclides cache count. Is there any other.
Re: Load for 1 min 5 min and 15 mim
Yes, the check_snmp_mem.pl plugin is suppose to exclude cached memory from the output. Try that plugin instead.
If you want to include it, just add the -m option to the command.
If you want to include it, just add the -m option to the command.
-m, --memcache
include cached memory in used memory (only with Net-SNMP)
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
Re: Load for 1 min 5 min and 15 mim
HI Team,
getting below while running the command
[root@monitoring-nagiosxi libexec]# ./check_snmp_mem.pl -H 10.100.1.16 -C nagiosxi -w 80 -c 90
2 warnings and critical !
Usage: ./check_snmp_mem.pl [-v] -H <host> -C <snmp_community> [-2] | (-l login -x passwd [-X pass -L <authp>,<privp>]) [-p <port>] -w <warn level> -c <crit level> [-I|-N|-E] [-f] [-m] [-t <timeout>] [-V]
[root@monitoring-nagiosxi libexec]#
i have tried to read the script its showing the error of netsnmp, I don't know what to do next.
package net-snmp is already installed
getting below while running the command
[root@monitoring-nagiosxi libexec]# ./check_snmp_mem.pl -H 10.100.1.16 -C nagiosxi -w 80 -c 90
2 warnings and critical !
Usage: ./check_snmp_mem.pl [-v] -H <host> -C <snmp_community> [-2] | (-l login -x passwd [-X pass -L <authp>,<privp>]) [-p <port>] -w <warn level> -c <crit level> [-I|-N|-E] [-f] [-m] [-t <timeout>] [-V]
[root@monitoring-nagiosxi libexec]#
i have tried to read the script its showing the error of netsnmp, I don't know what to do next.
package net-snmp is already installed