Monitor a Folder Size in Windows
Monitor a Folder Size in Windows
Hello all:
I'm wondering if there are a possibility to monitor a specific folder in Nagios XI, (for instance, System Volume Information).
We want to receive an alert once the folder reaches (for example) 8 or 10gb of used space on the disk.
is there a way to configure this?
Thanks in advance.
I'm wondering if there are a possibility to monitor a specific folder in Nagios XI, (for instance, System Volume Information).
We want to receive an alert once the folder reaches (for example) 8 or 10gb of used space on the disk.
is there a way to configure this?
Thanks in advance.
Re: Monitor a Folder Size in Windows
I found a couple plugins that you may be interested in:
https://exchange.nagios.org/directory/P ... bs/details
https://exchange.nagios.org/directory/P ... le/details
https://exchange.nagios.org/directory/P ... bs/details
https://exchange.nagios.org/directory/P ... le/details
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Monitor a Folder Size in Windows
i have doubts regarding check_folder_size. the script says i need "NRPE_NT daemon". i have installed NSclient ++ on my windows machines instead. it is the same? should i install anything extra?cdienger wrote:I found a couple plugins that you may be interested in:
https://exchange.nagios.org/directory/P ... bs/details
https://exchange.nagios.org/directory/P ... le/details
regards.
Re: Monitor a Folder Size in Windows
I was able to get it work with slight modifications. I saved the check_folder_size.vbs script to c:\program files\nsclient++\scripts\ and then to find the size of the nsclient++ folder I added the following command line to the settings/external scripts/scripts section:
Code: Select all
[/settings/external scripts/scripts]
check_foldersize=C:\windows\System32\cscript.exe //NoLogo //T:30 "c:\program files\nsclient++\scripts\check_folder_size.vbs" "c:\program files\nsclient++\" 50 78
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Monitor a Folder Size in Windows
So, i need to specify every Folder i want to monitor on the nsclient.ini file? as you did for Nsclient++ folder?cdienger wrote:I was able to get it work with slight modifications. I saved the check_folder_size.vbs script to c:\program files\nsclient++\scripts\ and then to find the size of the nsclient++ folder I added the following command line to the settings/external scripts/scripts section:
Code: Select all
[/settings/external scripts/scripts] check_foldersize=C:\windows\System32\cscript.exe //NoLogo //T:30 "c:\program files\nsclient++\scripts\check_folder_size.vbs" "c:\program files\nsclient++\" 50 78
Re: Monitor a Folder Size in Windows
Or have your NSClient++ command definition for check_foldersize accept an argument that represents the path. Then you would configure the individual folders on the Nagios side of things. Both are viable options.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Monitor a Folder Size in Windows
Which command should i run on the Linux side?mcapra wrote:Or have your NSClient++ command definition for check_foldersize accept an argument that represents the path. Then you would configure the individual folders on the Nagios side of things. Both are viable options.
i got an error trying to invoke check_nrpe
[root@NAgiosxi libexec]# ./check_nrpe -H xxx.xxx.xxx.xxx -c check_foldersize
CHECK_NRPE: Error - Could not complete SSL handshake.
Re: Monitor a Folder Size in Windows
Code: Select all
[/settings/external scripts/scripts]
check_foldersize=C:\windows\System32\cscript.exe //NoLogo //T:30 "c:\program files\nsclient++\scripts\check_folder_size.vbs" "c:\program files\nsclient++\" 50 78
Code: Select all
[/settings/external scripts/scripts]
check_foldersize=C:\windows\System32\cscript.exe //NoLogo //T:30 "c:\program files\nsclient++\scripts\check_folder_size.vbs" "$ARG1$" 50 78
Code: Select all
./check_nrpe -H NSCLIENTIP -c check_foldersize -a "c:\program files\nsclient++"
Code: Select all
allowed hosts = 127.0.0.1, nagios_ip_address
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Monitor a Folder Size in Windows
i was able to have it working by adding a "-n" at the end.
Now i would need to figure out how to add it as a service in NagiosXI GUI[root@NagiosXI libexec]# ./check_nrpe -H 172.30.0.56 -c check_foldersize -n
OK:8,6 MB|'FolderSize'=8.59999MB
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: Monitor a Folder Size in Windows
this should help explain it - https://assets.nagios.com/downloads/nag ... gement.pdf
basically, navigate to CCM, click 'services', create a new one, assign the host as the host for 172.30.0.56, select the check command as 'check_nrpe' and fill out your argument variables to line up with what you're running over the CLI.
basically, navigate to CCM, click 'services', create a new one, assign the host as the host for 172.30.0.56, select the check command as 'check_nrpe' and fill out your argument variables to line up with what you're running over the CLI.