File system folder size

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
seaward1983
Posts: 67
Joined: Wed Jul 17, 2019 2:09 pm

File system folder size

Post by seaward1983 »

Red Hat Enterprise Linux Server release 7.9 (Maipo)
x86_64
Manual install of XI -- running since 2019
Version of XI - Installed Version: 5.8.3

I need to be able to monitor "folder sizes" on a server, where the folders are off of a Netapp, and I can only seem to find the exact path through fstab.

I looked in the exchange - but couldn't find anything I could get to work. At a loss, so humor me if anyone gets some time. Thanks.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: File system folder size

Post by benjaminsmith »

Hi,
I looked in the exchange - but couldn't find anything I could get to work. At a loss, so humor me if anyone gets some time. Thanks.
There are few plugins out there on the Nagios Exchange. Which one did you try and what error message were you getting (please post the output to the thread).

Let us know. Thanks!

--Benjamin

Nagios Exchange
https://exchange.nagios.org/directory/P ... 29/details
https://exchange.nagios.org/directory/P ... ze/details
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
seaward1983
Posts: 67
Joined: Wed Jul 17, 2019 2:09 pm

Re: File system folder size

Post by seaward1983 »

Each of the references I've found requires write access to the NetApp device. I do not have that. I do have an account that has read-only access, but that's it.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: File system folder size

Post by ssax »

How are you currently monitoring the server (not the netapp)? (NCPA/NRPE/SSH/SNMP/etc)

Does it show up when you run the mount command?

Code: Select all

mount
If so, you should be able to use the disk space checks with it:

https://support.nagios.com/kb/article/d ... s-770.html
seaward1983
Posts: 67
Joined: Wed Jul 17, 2019 2:09 pm

Re: File system folder size

Post by seaward1983 »

Monitoring with NCPA, but it doesn't see it as valid when I try the disk space. Maybe I'm doing it wrong.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: File system folder size

Post by ssax »

Open up this address in your web browser:
- Change X.X.X.X to the IP of your NCPA host

Code: Select all

https://X.X.X.X:5693
Then type in your token, click API, then select Disk from the dropdown. Does it show it listed on the right hand side?

What OS/version is the remote server running?

Does it show up in the mount command output?
seaward1983
Posts: 67
Joined: Wed Jul 17, 2019 2:09 pm

Re: File system folder size

Post by seaward1983 »

I login to the gui of the device, first of all, very cool... select API, then disk, the mounts do not show up on the right side... for G&G I clicked on "mount" - and I don't see any of the NetApp mount points. When I run "mount" on the remote server itself, I see all of the folders/mounts
OS version for the system that is being monitored is RHEL 6.10
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: File system folder size

Post by lmiltchev »

Do you have the line below commented out?

Code: Select all

exclude_fs_types = aufs,autofs,binfmt_misc,cifs,cgroup,configfs,debugfs,devpts,devtmpfs,encryptfs,efivarfs,fuse,fusectl,hugetlbfs,mqueue,nfs,overlayfs,proc,pstore,rpc_pipefs,securityfs,selinuxfs,smb,sysfs,tmpfs,tracefs
It is in the ncpa.cfg file. If it's commented out, uncomment it (as it's shown above), safe, exit and restart the ncpa services, so that changes can take effect.

Did this help?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked