Page 1 of 1

File Size monitoring

Posted: Sat Apr 20, 2019 8:41 am
by sashankv
How to find out File Size monitoring Nagios Core 4.3.1

Re: File Size monitoring

Posted: Mon Apr 22, 2019 9:12 am
by lmiltchev
Are you using Nagios XI or Nagios Core? Do you need to monitor file sizes of files on Windows, Linux, etc.? Can you elaborate and/or give us examples?

Re: File Size monitoring

Posted: Wed Apr 24, 2019 1:25 am
by sashankv
I am using Nagios Core 3.4.1 and i need to monitor the file size on windows

Re: File Size monitoring

Posted: Wed Apr 24, 2019 9:35 am
by lmiltchev
You could use NSClient++ with check_nrpe, and check_files.

https://docs.nsclient.org/reference/win ... heck_files

Example:

Code: Select all

./check_nrpe -H x.x.x.x -c check_files -a path=c:/TEMP pattern=*.txt "detail-syntax=%(filename): %(size)" "warn=size>20k" max-depth=1
WARNING: 1/3 files (test.txt: 611928)|'test.txt size'=597.58593KB;20;0 'test1.txt size'=0KB;20;0 'test2.txt size'=0KB;20;0