Page 1 of 1

monitor disk usage for network shares

Posted: Mon Apr 27, 2020 9:48 am
by pavankumar
We have got an use case to monitor disk usage for network shares(ex: \\kw\data\). What are all the solutions available in Nagios XI.

1. We are using NCPA. Can it automatically detect network shares if we update "exclude_fs_types" to blank in ncpa.cfg
2. Is there any out of box plugin for this purpose. Can we use check_disk_smb, if so can you provide an example.
3. Can we monitor network shares using SNMP.

Thanks,
Pavan.

Re: monitor disk usage for network shares

Posted: Mon Apr 27, 2020 3:57 pm
by cdienger
I'd recommend running https://raw.githubusercontent.com/palte ... kCheck.ps1 with the NCPA agent to get the share information. Integrating it is covered in https://support.nagios.com/kb/article/n ... a-722.html.

A few plugins exist to get disk information via SNMP. For example:

https://exchange.nagios.org/directory/P ... ce/details
https://exchange.nagios.org/directory/P ... pl/details
https://exchange.nagios.org/directory/P ... ck/details

An example of the check_smb_share command:

Code: Select all

./check_disk_smb -H 192.168.55.5 -s "sharename" -u administrator -p 'password'