File Age Checks with NSClient++
Posted: Tue May 08, 2018 10:15 am
I'm not sure if this is the best place, but I figure I'd ask.
Using Nagios XI to monitor a directory on a Windows Server. It should be critical for 0 files are younger than 24 hours.
nsclient.ini has this entry:
alias_file_age = check_files path=c:\path\to\folder\ pattern=* filter=age<86400
This returns a nice, text answer. When there are files present, Nagios is OK. BUT... with 0 files, it does not go to Critical. It goes to Unknown.
I've tried adding filter=crit_count<1 and crit=0 to no avail.
Also, Nagios shows no performance data to graph. This is vital. We need to know at least up/down state and preferably the number of files.
Any ideas?
Thanks in advance.
Using Nagios XI to monitor a directory on a Windows Server. It should be critical for 0 files are younger than 24 hours.
nsclient.ini has this entry:
alias_file_age = check_files path=c:\path\to\folder\ pattern=* filter=age<86400
This returns a nice, text answer. When there are files present, Nagios is OK. BUT... with 0 files, it does not go to Critical. It goes to Unknown.
I've tried adding filter=crit_count<1 and crit=0 to no avail.
Also, Nagios shows no performance data to graph. This is vital. We need to know at least up/down state and preferably the number of files.
Any ideas?
Thanks in advance.