Hi Team ,
We wanted to project the output of check_http into grafana and when we tried we were able to see the response time and size as shown in the screenshot below . But we wanted to have the error code displayed on Grafana something like 200 / 400 so on .
So is there any plugin to check http connection and get a status code / error code as output instead of response time .
check_http
check_http
You do not have the required permissions to view the files attached to this post.
Re: check_http
Hi
I'm not sure how your nagios/grafana interface works, but you could use:
If the interface doesn't do any data parsing you could write a script that calls out /usr/local/nagios/libexec/check_http
and passes in the parameters, then parse the output of /usr/local/nagios/libexec/check_http and return the modified
return data.
Thanks
I'm not sure how your nagios/grafana interface works, but you could use:
Code: Select all
[root@localhost libexec]# /usr/local/nagios/libexec/check_http -H google.com -f ok -I 142.250.191.238 -u "/" -S --sni -p 443
HTTP OK: HTTP/1.1 301 Moved Permanently - 722 bytes in 0.104 second response time |time=0.103864s;;;0.000000 size=722B;;;0and passes in the parameters, then parse the output of /usr/local/nagios/libexec/check_http and return the modified
return data.
Thanks