Load for 1 min 5 min and 15 mim

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Load for 1 min 5 min and 15 mim

Post 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
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

Post by progressive.nagiosXI »

Thanks A lot team you got this worked.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Load for 1 min 5 min and 15 mim

Post by tgriep »

Your welcome.
If you do not have any further related questions, shall I mark the post as solved and lock it up?
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

Post by progressive.nagiosXI »

Check_mem.pl is not giving any performance graph data so not generating graph can you please help.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Load for 1 min 5 min and 15 mim

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
progressive.nagiosXI
Posts: 277
Joined: Mon Jul 31, 2017 5:54 am

Re: Load for 1 min 5 min and 15 mim

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Load for 1 min 5 min and 15 mim

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
progressive.nagiosXI
Posts: 277
Joined: Mon Jul 31, 2017 5:54 am

Re: Load for 1 min 5 min and 15 mim

Post by progressive.nagiosXI »

Thanks man,

you can close this thread.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Load for 1 min 5 min and 15 mim

Post by scottwilkerson »

progressive.nagiosXI wrote:Thanks man,

you can close this thread.
Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked