Hello,
I think this may be covered in the forum, however I couldn't find anything that made clear sense to me.
I want to do a http check on a site over https. I think my basic lack of understanding is is my main problem and I'm hoping this thread will make things "click".
I know I can run this plugin command:
and it will return:
this is all good, however when it comes to actually implementing this I fall short. Here's what I have:
commands.conf
services.conf
hosts.conf
I'm getting no errors and Icinga2 restarts without errors, however I get nothing in the web interface under services for this host other than the "ping4" service.
I assume I've missed out the step that will parse the results of "check_https" and decide what status this is.
Can anyone tell me how to achive this?
Thanks,
I think this may be covered in the forum, however I couldn't find anything that made clear sense to me.
I want to do a http check on a site over https. I think my basic lack of understanding is is my main problem and I'm hoping this thread will make things "click".
I know I can run this plugin command:
![]() |
Quellcode |
1 |
/usr/lib64/nagios/plugins/check_http -w 5 -c 10 --ssl -H chernochumz.com |
and it will return:
![]() |
Quellcode |
1 |
HTTP OK: HTTP/1.1 200 OK - 350 bytes in 0.088 second response time |time=0.088255s;5.000000;10.000000;0.000000 size=350B;;;0 |
this is all good, however when it comes to actually implementing this I fall short. Here's what I have:
commands.conf
![]() |
Quellcode |
1 2 3 4 |
object CheckCommand "check_https" { import "plugin-check-command" command = [ PluginDir + "check_http -w 5 -c 10 --ssl -H $address$" ] } |
services.conf
![]() |
Quellcode |
1 2 3 4 5 6 7 |
apply Service "https" { import "generic-service" check_command = "check_https" assign where host.type == "HTTPS" } |
hosts.conf
![]() |
Quellcode |
1 2 3 4 5 |
object Host "chernochumz.com"{ import "generic-host" address = "chernochumz.com" vars.type = "HTTPS" } |
I'm getting no errors and Icinga2 restarts without errors, however I get nothing in the web interface under services for this host other than the "ping4" service.
I assume I've missed out the step that will parse the results of "check_https" and decide what status this is.
Can anyone tell me how to achive this?
Thanks,