I am trying to use the Geric Execution Plugin to run a Monitoring script that returns the following...
OK:/opt/day/cq-5.4/publish/crx-quickstart/logs/access.log is 0|/opt/day/cq-5.4/publish/crx-quickstart/logs/access.log=0
If it looks like ther return value from a Nagios script, it is,I have written several scripts that all return basically the same thing
I am able to execute the remote command and get the string above, but what I'd like to know is if there is a way to parse that information and use it as a measure.
What it is returning is the number of 500 errors that occurred in the log file since the last time the script was run, usually every 10 minutes.
The 3 different return scenarios are
OK:/opt/day/cq-5.4/publish/crx-quickstart/logs/access.log is 0|/opt/day/cq-5.4/publish/crx-quickstart/logs/access.log=0
WARNING:/opt/day/cq-5.4/publish/crx-quickstart/logs/access.log is 52|/opt/day/cq-5.4/publish/crx-quickstart/logs/access.log=53
CRITICAL:/opt/day/cq-5.4/publish/crx-quickstart/logs/access.log is 105|/opt/day/cq-5.4/publish/crx-quickstart/logs/access.log=105
Any Assistance would be appreciated.
JANUARY 15, 3:00 PM GMT / 10:00 AM ET