I believe i have now figured out what is causing this.
Monit is not working well with apache.
check process apache with pidfile /var/run/httpd.pid
start program = "/etc/init.d/httpd start"
stop program = "/etc/init.d/httpd stop"
if failed host 172.16.1.98 port 80 protocol http
and request "/monit/token" then restart
This is what im using.
When you first start the server up /var/run/httpd.pid is there, but as soon as Monit trys to view it is gone.
the path of 172.16.1.98/monit/token is valid.
But on the Monit apache page it shows:
If failed 172.16.1.98:80%2Fmonit%2Ftoken [HTTP via TCP]
172.16.1.98:80%2Fmonit%2Ftoken is not a valid path, %2F is html for the '/' but its not working.
Am i being a numpty and got some thing in the wrong place?