WebMonitor agent shows error 400 but wget returns 200.
说明
Problem:
Webmonitor agent had warning of 404 error for a monitored URL but either using browser or running wget the page responded 200 status without issue.
FglAM version:5.8.5.4
webmonitor: 5.8.5
原因
There may be some restrictions on the "Accept" header. Wget can try "Accept:*/*" so it can visit the page.
解决办法
Please navigate to Agent Status -> Edit Properties for the agent -> Click "Edit" for "URL List", then add below statement to the Custom Header for the url.
Accept=*/*
Webmonitor agent can work well for the url after this.