Want to change disk/file system monitoring using available

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ganeshsambandam
Posts: 62
Joined: Mon Sep 10, 2018 1:52 pm

Want to change disk/file system monitoring using available

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

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

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ganeshsambandam
Posts: 62
Joined: Mon Sep 10, 2018 1:52 pm

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

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

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ganeshsambandam
Posts: 62
Joined: Mon Sep 10, 2018 1:52 pm

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

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ganeshsambandam
Posts: 62
Joined: Mon Sep 10, 2018 1:52 pm

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

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

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

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