I am using check_apachestatus.pl to monitor apache on a remote server, but the response i get from the script is UNKNOWN 501 Protocol scheme 'https' is not supported (LWP::Protocol::https not installed).
I've looked up the message, and i've installed the following packages with no relief.
libcrypt-ssleay-perl
libssl-dev
liblwp-protocol-https-perl
Both servers are Ubunutu 12.04.5 LTS
Apache/2.2.22
Edit: Added plugin as attachment
check_apachestatus.pl Returning HTTPS Not Supported
-
- Posts: 3
- Joined: Thu Jun 29, 2017 3:37 pm
check_apachestatus.pl Returning HTTPS Not Supported
- Attachments
-
- check_apachestatus.pl
- (10.68 KiB) Downloaded 216 times
Last edited by alee@encoda.com on Thu Jun 29, 2017 4:25 pm, edited 1 time in total.
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: check_apachestatus.pl Returning HTTPS Not Supported
This plugin is not in the standard nagios-plugins package. Can you send us a link to the plugin or just upload it so we can take a look?
-
- Posts: 3
- Joined: Thu Jun 29, 2017 3:37 pm
Re: check_apachestatus.pl Returning HTTPS Not Supported
I attached the plugin. Also here is a link to the current version on GitHub.dwhitfield wrote:This plugin is not in the standard nagios-plugins package. Can you send us a link to the plugin or just upload it so we can take a look?
https://github.com/Inuits/monitoring-pl ... estatus.pl
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: check_apachestatus.pl Returning HTTPS Not Supported
It's not 100% clear from briefly looking at that script what you want to do. Is there a reason http://nagios-plugins.org/doc/man/check_http.html won't work for you? Have you looked at exchange.nagios.com for alternative plugins?
12.04 lost support from Canonical in April. Is there any possibility you could upgrade to 14.04 or later? That would help speed up our testing as we currently don't have any 12.04 servers. I should be able to make one, of course, but it will take some time, especially with the US holiday next week.
That all said, what versions of libcrypt-ssleay-perl, libssl-dev, liblwp-protocol-https-perl did you install? Did you get them from cpan, ubuntu repos, or something else?
Those look like Ubuntu packages to me. You might want to uninstall those and then install them from cpan. If you do that, let us know what versions you install from cpan.
12.04 lost support from Canonical in April. Is there any possibility you could upgrade to 14.04 or later? That would help speed up our testing as we currently don't have any 12.04 servers. I should be able to make one, of course, but it will take some time, especially with the US holiday next week.
That all said, what versions of libcrypt-ssleay-perl, libssl-dev, liblwp-protocol-https-perl did you install? Did you get them from cpan, ubuntu repos, or something else?
Those look like Ubuntu packages to me. You might want to uninstall those and then install them from cpan. If you do that, let us know what versions you install from cpan.
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: check_apachestatus.pl Returning HTTPS Not Supported
your error message tells me something is wrong with PERL, and it's not detecting the addon.
what exactly are you trying to accomplish? as @dwhitfield mentioned, check_http should work.
what exactly are you trying to accomplish? as @dwhitfield mentioned, check_http should work.
-
- Posts: 3
- Joined: Thu Jun 29, 2017 3:37 pm
Re: check_apachestatus.pl Returning HTTPS Not Supported
We are using it to monitor the apache process on the servers. We've had some issues, with mainly one client's servers running into the MaxClients off support hours and we'd like to know next time it happens. We've taken steps to try and stop this from happening, but they are still implementing more and more users, so we dont know where the ceiling is yet.
We have two dozen other servers that are successful with this set up, but this server is the only one not working. I'll check out the check_http plugin. We also cannot move to Ubuntu 14 yet. It is in our plans, but we have to perform regression testing before we make that move. We tried it a bit ago just to see what would happen, but there were some compatibility issues. I'm not sure of the specifics on that matter though.
As for the packages i installed, i got them using apt-get. I can try cpan, and i'll check out the versions of all of the packages.
We have two dozen other servers that are successful with this set up, but this server is the only one not working. I'll check out the check_http plugin. We also cannot move to Ubuntu 14 yet. It is in our plans, but we have to perform regression testing before we make that move. We tried it a bit ago just to see what would happen, but there were some compatibility issues. I'm not sure of the specifics on that matter though.
As for the packages i installed, i got them using apt-get. I can try cpan, and i'll check out the versions of all of the packages.
Re: check_apachestatus.pl Returning HTTPS Not Supported
Are you still seeing this error - "UNKNOWN 501 Protocol scheme 'https' is not supported (LWP::Protocol::https not installed)"? Have you tried installing the module via cpan?
Code: Select all
cpan install LWP::Protocol::https
Be sure to check out our Knowledgebase for helpful articles and solutions!