File Size monitoring

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
sashankv
Posts: 2
Joined: Sat Apr 20, 2019 7:58 am

File Size monitoring

Post by sashankv »

How to find out File Size monitoring Nagios Core 4.3.1
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: File Size monitoring

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
sashankv
Posts: 2
Joined: Sat Apr 20, 2019 7:58 am

Re: File Size monitoring

Post by sashankv »

I am using Nagios Core 3.4.1 and i need to monitor the file size on windows
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: File Size monitoring

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked