Want to change disk/file system monitoring using available
-
ganeshsambandam
- Posts: 62
- Joined: Mon Sep 10, 2018 1:52 pm
Want to change disk/file system monitoring using available
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.
-
jforcier
Re: Want to change disk/file system monitoring using availab
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:
Output:
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 -fCode: Select all
/: 89%left(12597MB/14230MB) (>10%) : OK | '/'=1633MB;12807;13518;0;14230-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Want to change disk/file system monitoring using availab
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
There is a lot of info on the topic in this KB article
https://support.nagios.com/kb/article.php?id=770
-
ganeshsambandam
- Posts: 62
- Joined: Mon Sep 10, 2018 1:52 pm
Re: Want to change disk/file system monitoring using availab
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Want to change disk/file system monitoring using availab
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.
Th get the most accurate data you may need to install an agent that can run a plugin to collect the data.
-
ganeshsambandam
- Posts: 62
- Joined: Mon Sep 10, 2018 1:52 pm
Re: Want to change disk/file system monitoring using availab
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?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Want to change disk/file system monitoring using availab
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
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
-
ganeshsambandam
- Posts: 62
- Joined: Mon Sep 10, 2018 1:52 pm
Re: Want to change disk/file system monitoring using availab
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?
-
jforcier
Re: Want to change disk/file system monitoring using availab
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
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