Page 2 of 2

Re: Load for 1 min 5 min and 15 mim

Posted: Tue Oct 30, 2018 8:51 am
by tgriep
When using the plugin to poll a Net-SNMP system, it will check the Real Memory as well as the Swap Memory which then requires both thresholds to be set like below.

Code: Select all

./check_snmp_mem.pl -H 10.100.1.16 -C nagiosxi -w 80,80 -c 90,90
-w, --warn=INTEGER | INT,INT
warning level for memory in percent (0 for no checks)
Default (-N switch) : comma separated level for Real Memory and Swap

-c, --crit=INTEGER | INT,INT
critical level for memory in percent (0 for no checks)
Default (-N switch) : comma separated level for Real Memory and Swap

Re: Load for 1 min 5 min and 15 mim

Posted: Tue Oct 30, 2018 12:19 pm
by progressive.nagiosXI
Thanks A lot team you got this worked.

Re: Load for 1 min 5 min and 15 mim

Posted: Tue Oct 30, 2018 12:41 pm
by tgriep
Your welcome.
If you do not have any further related questions, shall I mark the post as solved and lock it up?

Re: Load for 1 min 5 min and 15 mim

Posted: Sat Nov 03, 2018 5:39 am
by progressive.nagiosXI
Check_mem.pl is not giving any performance graph data so not generating graph can you please help.

Re: Load for 1 min 5 min and 15 mim

Posted: Mon Nov 05, 2018 9:26 am
by scottwilkerson
Can you run the command with the -h flag to see if there is something that needs to be added to enable performance data output

Code: Select all

./Check_mem.pl -h

Re: Load for 1 min 5 min and 15 mim

Posted: Mon Nov 05, 2018 1:21 pm
by progressive.nagiosXI
[[email protected] ~]$ /usr/local/nagios/libexec/check_snmp_mem.pl -h

SNMP Memory Monitor for Nagios version 1.1
(c)2004-2006 to my cat Ratoune - Author: Patrick Proy

Usage: /usr/local/nagios/libexec/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]
-v, --verbose
print extra debugging information (including interface list on the system)
-h, --help
print this help message
-H, --hostname=HOST
name or IP address of host to check
-C, --community=COMMUNITY NAME
community name for the host's SNMP agent (implies SNMP v1 or v2c with option)
-2, --v2c
Use snmp v2c
-l, --login=LOGIN ; -x, --passwd=PASSWD
Login and auth password for snmpv3 authentication
If no priv password exists, implies AuthNoPriv
-X, --privpass=PASSWD
Priv password for snmpv3 (AuthPriv protocol)
-L, --protocols=<authproto>,<privproto>
<authproto> : Authentication protocol (md5|sha : default md5)
<privproto> : Priv protocole (des|aes : default des)
-P, --port=PORT
SNMP port (Default 161)
-w, --warn=INTEGER | INT,INT
warning level for memory in percent (0 for no checks)
Default (-N switch) : comma separated level for Real Memory and Swap
-I switch : warning level
-c, --crit=INTEGER | INT,INT
critical level for memory in percent (0 for no checks)
Default (-N switch) : comma separated level for Real Memory and Swap
-I switch : critical level
-N, --netsnmp (default)
check linux memory & swap provided by Net SNMP
-m, --memcache
include cached memory in used memory (only with Net-SNMP)
-I, --cisco
check cisco memory (sum of all memory pools)
-E, --hp
check HP proccurve memory
-f, --perfdata
Performance data output
-t, --timeout=INTEGER
timeout for SNMP in seconds (Default: 5)
-V, --version
prints version number

Re: Load for 1 min 5 min and 15 mim

Posted: Mon Nov 05, 2018 2:44 pm
by scottwilkerson
Ok, with this plugin you wand to add the -f flag to your command and then it will create performance data

Code: Select all

-f, --perfdata
Performance data output

Re: Load for 1 min 5 min and 15 mim

Posted: Fri Nov 23, 2018 11:05 am
by progressive.nagiosXI
Thanks man,

you can close this thread.

Re: Load for 1 min 5 min and 15 mim

Posted: Mon Nov 26, 2018 7:56 am
by scottwilkerson
progressive.nagiosXI wrote:Thanks man,

you can close this thread.
Locking thread