Xymon Mailing List Archive search

Test for file existence/contents and send contents in alert

list Zoltan Forray
Wed, 23 Sep 2020 16:33:52 -0400
Message-Id: <CAP9Xjdv9wS+w0hAOF_24vkvKZ8dgq_icg=user-c0d794d4afca@xymon.invalid>

I have a request to perform the following test and am not sure Xymon can do
both parts of the request.  If so, can someone show me how?  I felt this is
a FILE test to see if the file exists and/or is empty.

This is their request:

*The test should be added as a procruntime test.*

*The test should look for the file /home/tomcat/alertbody.txt*

*If the file is not present, the test result is OK.*

*If the file is present, the test result is CRITICAL, and the contents of
alertbody.txt should be sent to alert recipients (if that is possible).*

-- 
*Zoltan Forray*
IBM Spectrum Protect (p.k.a. TSM) Administrator
VMware Administrator
Xymon Monitor Administrator
Virginia Commonwealth University
UCC/Office of Technology Services
www.ucc.vcu.edu
user-755163d80bce@xymon.invalid - XXX-XXX-XXXX
Don't be a phishing victim - VCU and other reputable organizations will
never use email to request that you reply with your password, social
security number or confidential personal information. For more details
visit http://phishing.vcu.edu/
<https://adminmicro2.questionpro.com>;