Alert if File is greater than x and exists

Need new test, action, option? Post request here.
Post Reply
sysadmber
Posts: 50
Joined: Tue Dec 08, 2015 1:26 am

Alert if File is greater than x and exists

Post by sysadmber »

Could you add the posibility to only go bad if the named resource exists?

For now I use

"use Normal Status if": '%SuggestedReply%'=='RMA: 301 - Folder/File doesn`t exist'

as workaround.

Regards,
Sebastian
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

>Could you add the posibility to only go bad if the named resource exists?

Are we talking about File/Folder Size test method?
Then it works in the way you want. HostMonitor does not set Bad status when file/folder does not exist. HostMonitor sets Unknown status.
How to process Unknown status is up to you. E.g. you may unmark "Treat Unknown status as Bad" option.

Also you may use Count Files test method
- count files bigger than N;
- alert when folder contains more than 0 files

Regards
Alex
sysadmber
Posts: 50
Joined: Tue Dec 08, 2015 1:26 am

Post by sysadmber »

Hello Alex,

Yes I am talking about "File/Folder Size" test method.

Unknown status is no solution for me. I have enough VBScript tests which turn to unknown fairly often. I'll stick with my workaround.

Regards,
Sebastian
Post Reply