Windows server mount point space monitoring
Windows server mount point space monitoring
Hi,
How can I monitor space on mount points ? We are using Windows server 2008R2/2012.
Thanks
How can I monitor space on mount points ? We are using Windows server 2008R2/2012.
Thanks
Re: Windows server mount point space monitoring
Use the CheckDriveSize plugin with NRPE like this:
Let us know if this works for you.
Code: Select all
./check_nrpe -H <hostname or ip_address> -c CheckDriveSize -a <mount_ponit eg: c:\mount> MaxWarn=85% MaxCrit=90%
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Windows server mount point space monitoring
@tonkaUser, You could use the latest version of NSClient with the CheckDisk command. It supports monitoring of mounted points. https://docs.nsclient.org/reference/windows/CheckDisk/
Or you could use a similar CheckDisk with NCPA https://www.nagios.org/ncpa/help.php
Do you already have any agents installed on the server?
Or you could use a similar CheckDisk with NCPA https://www.nagios.org/ncpa/help.php
Do you already have any agents installed on the server?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Windows server mount point space monitoring
We are using NCPA agent. How do I add mount space monitor? I don't see anything in the wizard to specify the disk location.
I cloned an existing C drive monitor and changed to use used disk/mount with the folder that it was mounted to, but got an error.
Example:
/usr/local/nagios/libexec/check_ncpa.py ... -M 'disk/mount/C:|MountRoot|SQLData|Tempdb/used_percent' ...
Error:
The node (C:|MountRoot|SQLData|Tempdb) requested does not exist.
Thanks
I cloned an existing C drive monitor and changed to use used disk/mount with the folder that it was mounted to, but got an error.
Example:
/usr/local/nagios/libexec/check_ncpa.py ... -M 'disk/mount/C:|MountRoot|SQLData|Tempdb/used_percent' ...
Error:
The node (C:|MountRoot|SQLData|Tempdb) requested does not exist.
Thanks
You do not have the required permissions to view the files attached to this post.
Re: Windows server mount point space monitoring
Can somebody please provide pointers on how to setup it up with NCPA?
I tried to list mounts and don't see any mounts at all (except for cd-rom).
https://server:5693/api/disk/mount?token=mytoken
Thanks
I tried to list mounts and don't see any mounts at all (except for cd-rom).
https://server:5693/api/disk/mount?token=mytoken
Thanks
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Windows server mount point space monitoring
What versions of check_ncpa.py and ncpa are you using? The way you write checks has changed in recent versions.
Re: Windows server mount point space monitoring
We use NCPA Agent 2.0.6 on Windows server 2008 R2. Nagios is 5.4.12.
How do I check the version of check_ncpa.py?
Thanks!
How do I check the version of check_ncpa.py?
Thanks!
Re: Windows server mount point space monitoring
The NCPA agent for now, can only check the size of drives and not folders. You would have to add a plugin configuration to the agent to check the sub-folder.
Add this example to the ncpa.cfg file
It counts all files in the directory c:\temp. Returns WARNING for more than 100 files or CRITICAL for more than 250 files.
This is just an example of a command so you would have to adjust it to your needs.
The executable and more examples can be found here.
https://itefix.net/check_winfile
Add this example to the ncpa.cfg file
Code: Select all
%HOSTNAME%|Winfile = plugins/check_winfile.exe --target c:\\temp --warn 100 --critical 250
This is just an example of a command so you would have to adjust it to your needs.
The executable and more examples can be found here.
https://itefix.net/check_winfile
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Windows server mount point space monitoring
Are you saying that NCPA agent cannot check the size of a mount point on Windows server?
I don't see that check_winfile can check mount point size. Is it not supported by NCPA? Do I need to use NRPE agent?
Thanks
I don't see that check_winfile can check mount point size. Is it not supported by NCPA? Do I need to use NRPE agent?
Thanks
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Windows server mount point space monitoring
If that mount point is a drive, then it will be able to do it.tgriep wrote:The NCPA agent for now, can only check the size of drives