Page 1 of 1

Want to change disk/file system monitoring using available

Posted: Wed Sep 19, 2018 2:17 pm
by ganeshsambandam
Want to change disk/file system monitoring using available space instead of used space since we are seeing difference in monitoring status than we have percentage in server end as we have super block takes some space for file systems in Linux/Unix servers.

Re: Want to change disk/file system monitoring using availab

Posted: Wed Sep 19, 2018 2:34 pm
by jforcier
Are you using SNMP for this as well?

The check_snmp_storage_wizard.pl plugin allows you to check disks using SNMP and regular expressions.

Example command:

Code: Select all

./check_snmp_storage_wizard.pl -H 10.25.13.15 -C public --v2c -m "^/$" -T pl -w 10 -c 5 -f
Output:

Code: Select all

/: 89%left(12597MB/14230MB) (>10%) : OK | '/'=1633MB;12807;13518;0;14230

Re: Want to change disk/file system monitoring using availab

Posted: Wed Sep 19, 2018 2:35 pm
by scottwilkerson
What plugin are you using? What OS are you monitoring?

There is a lot of info on the topic in this KB article
https://support.nagios.com/kb/article.php?id=770

Re: Want to change disk/file system monitoring using availab

Posted: Thu Sep 20, 2018 10:50 am
by ganeshsambandam
Thanks for the info. yes we are using snmp. But still the available shows in different than what we have in the server. looks like 25% free space for the file system from server end, but it shows 30% free space in snmp check.

PFB.

ohcinxunix:~ # df -m /var
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/mapper/VolGp001-LV_var 5920 4145 1453 75% /var

./check_snmp_storage_wizard.pl -H 10.160.44.60 -C NAGIOS-SNMP --v2c -m "^/var$" -T pl -w 11 -c 10 -f
/var: 30%left(1775MB/5920MB) (>11%) : OK | '/var'=4144MB;5268;5328;0;5920

Re: Want to change disk/file system monitoring using availab

Posted: Thu Sep 20, 2018 11:08 am
by scottwilkerson
On many systems SNMP data in the OID tree isn't updated in realtime, this plugin can only report what is available in the SNMP query from the server.

Th get the most accurate data you may need to install an agent that can run a plugin to collect the data.

Re: Want to change disk/file system monitoring using availab

Posted: Thu Sep 20, 2018 3:07 pm
by ganeshsambandam
you mean installing nagios plugin's to be installed in the target server? if yes, what will be the commands and arguments to be used for the file system monitoring the accurate usage which we see in the server end?

Re: Want to change disk/file system monitoring using availab

Posted: Thu Sep 20, 2018 3:20 pm
by scottwilkerson
This all depends on the Agent you choose to use.

NCPA is popular, and for this type of monitoring doesn't require extra plugins, just that the agent be installed

https://www.nagios.org/ncpa/getting-started.php

Re: Want to change disk/file system monitoring using availab

Posted: Fri Sep 21, 2018 12:52 pm
by ganeshsambandam
so you suggest to install ncpa agent in the server and add the server using ncpa wizard and check the disk usage shows as accurate?

Re: Want to change disk/file system monitoring using availab

Posted: Fri Sep 21, 2018 12:57 pm
by jforcier
Yes, exactly.

How to install NCPA:
https://assets.nagios.com/downloads/ncp ... g-NCPA.pdf

How to use Nagios XI to monitor via NCPA:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf