check_snmp_mem vs check_xi_service_snmp_linux_storage

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_snmp_mem vs check_xi_service_snmp_linux_storage

Post by scottwilkerson »

mbeebe wrote:It's a Linux'ism: 5% of space is reserved for the root user so it can write to a volume even if it's "full".
Apparently the SNMP counters on the system aren't accounting for that.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_snmp_mem vs check_xi_service_snmp_linux_storage

Post by scottwilkerson »

It is possible to change the calculation in that plugin with the -T command

Code: Select all

-T, --type=TYPE
   pl : calculate percent left
   pu : calculate percent used (Default)
   bl : calculate MegaBytes left
   bu : calculate MegaBytes used
Also there is this flag, which is likely what you are looking for

Code: Select all

-R, --reserved=INTEGER
   % reserved blocks for superuser
   For ext2/3 filesystems, it is 5% by default
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mbeebe
Posts: 144
Joined: Thu Dec 20, 2018 5:12 pm

Re: check_snmp_mem vs check_xi_service_snmp_linux_storage

Post by mbeebe »

scottwilkerson wrote: Also there is this flag, which is likely what you are looking for

Code: Select all

-R, --reserved=INTEGER
   % reserved blocks for superuser
   For ext2/3 filesystems, it is 5% by default

That's absolutely perfect; exactly what we're looking for. You rock as always,

-- Mike Beebe
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_snmp_mem vs check_xi_service_snmp_linux_storage

Post by scottwilkerson »

mbeebe wrote:That's absolutely perfect; exactly what we're looking for. You rock as always,

-- Mike Beebe
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked