I seem to be having an issue with an Agent Procedure that I'm trying to run
I can approve a procedure with no problems and run it on a machine. The procedure simply checks a URL and stores the contents of the web page to a variable which is then written to the log entry
This works fine, and the contents of the web page show up as a string of text no problems
I then insert the IF statement as follows:
So if the contents of the webpage contain the string 'up' write 'Page is alive' to the text file. This just generates an error in the log entry of the agent procedure
FAILED to load Check URL Procedure-0001(ID = 1424293907). Error: This agent procedure has not been approved yet.
Is there something wrong with my IF statement? The string returned from the web page definitely contains 'up' and I have approved the procedure again before running it