▸ quoted from Dallas Clarke
On Wed, Mar 11, 2015, at 22:01, Dallas Clarke wrote:
Hello Xymon,
What I was looking to do, was to monitor a remote server with a custom script and run a 'http' web-server test. I was thinking along the lines of a script forming an alert.
So the monitored server will have http://remote.server.com/cgi-bin/test-server.pl for example, and it returns:-
<?xml version="1.0" encoding="UTF-8">
<alert>
<code>1002</code>
<message>MySQL connection refused</message>
</alert>
When Xymon would receive the xml output and process the message
accordingly.
Can this be done?
You could have a server run the script (cron or xymon client
clientlaunch.cfg) and output to a file, and then monitor the file and go
RED if it doesn't say "MySQL connection successful" and then you don't
have to parse the XML or get really complicated. You can also have a
monitor on the file to go RED if the file hasn't changed in X minutes to
alert you that the test isn't running anymore.