Page 1 of 2

Load for 1 min 5 min and 15 mim

Posted: Wed Oct 24, 2018 12:50 pm
by progressive.nagiosXI
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

Re: Load for 1 min 5 min and 15 mim

Posted: Wed Oct 24, 2018 3:32 pm
by npolovenko
@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:
/usr/local/nagios/libexec/check_load -w 5.0,4.0,3.0 -c 10.0,6.0,4.0
This is a memory check:
/custom_check_mem -w 20 -c 10 -n
-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.php?id=171
https://support.nagios.com/kb/article/m ... s-774.html

Re: Load for 1 min 5 min and 15 mim

Posted: Thu Oct 25, 2018 8:20 am
by progressive.nagiosXI
We are using SNMP only

Re: Load for 1 min 5 min and 15 mim

Posted: Thu Oct 25, 2018 4:51 pm
by npolovenko
@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/

Re: Load for 1 min 5 min and 15 mim

Posted: Thu Oct 25, 2018 4:56 pm
by tgriep
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.

Code: Select all

./check_snmp_load.pl -H centos7  -C public --v2c -w 80,80,80 -c 90,90,90 -f -T netsl
This is what it will output and it matches the top output.

Code: 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;90

Re: Load for 1 min 5 min and 15 mim

Posted: Fri Oct 26, 2018 1:49 am
by progressive.nagiosXI
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

Re: Load for 1 min 5 min and 15 mim

Posted: Fri Oct 26, 2018 8:37 am
by tgriep
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 netsl

Re: Load for 1 min 5 min and 15 mim

Posted: Mon Oct 29, 2018 10:23 am
by progressive.nagiosXI
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.

Re: Load for 1 min 5 min and 15 mim

Posted: Mon Oct 29, 2018 12:19 pm
by tgriep
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.
-m, --memcache
include cached memory in used memory (only with Net-SNMP)

Re: Load for 1 min 5 min and 15 mim

Posted: Tue Oct 30, 2018 4:01 am
by progressive.nagiosXI
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