Run check_http without proxy to monitor the url response cod

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
rocco
Posts: 1
Joined: Tue Apr 21, 2020 3:36 am

Run check_http without proxy to monitor the url response cod

Post 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
Locked