Page 1 of 1

Run check_http without proxy to monitor the url response cod

Posted: Tue Apr 21, 2020 3:41 am
by rocco
i need to monitor the URl without proxy intervention... can anyone please help me on this? All the articles are with proxy

Working with Curl command.
curl --noproxy "*" -q localhost:8080/xyz
{"status":"UP"}

Not working with Nagios Plugin

/usr/lib64/nagios/plugins/check_http -H serverip -S -u 'localhost:8080/xyz'

HTTP WARNING: HTTP/1.1 400 Bad Request - 674 bytes in 0.015 second response time |time=0.015073s;;;0.000000 size=674B;;;0