Install Check_HTTP_Content
Re: Install Check_HTTP_Content
Will it hurt anything if I recompile the newest version over 4.1.1? do you have instructions for upgrading from 4.1.1 to 4.3?
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Install Check_HTTP_Content
Compiling Core isn't going to fix this. You need to recompile the plugins.
That said, you can find our Nagios Core upgrade instructions at https://assets.nagios.com/downloads/nag ... ading.html
For emphasis:
That said, you can find our Nagios Core upgrade instructions at https://assets.nagios.com/downloads/nag ... ading.html
For emphasis:
Make sure you have a good backup of your existing Nagios Core installation and configuration files. If anything goes wrong or doesn't work, this will allow you to rollback to your old version.
Re: Install Check_HTTP_Content
I'll do a backup and try the plugin recompile first. I had thought they were compiled from the get go but maybe they weren't. Can't imagine i would of skipped that.
On another note when I run this command to check a string I get an error. Any idea why? I want to check keywords on a site.
FYI, I tried to install check_http_content but it is asking for additional stuff to be installed.
On another note when I run this command to check a string I get an error. Any idea why? I want to check keywords on a site.
Code: Select all
root@raspberrypi:/usr/local/nagios/libexec# /usr/local/nagios/libexec/check_http -H snapgeek.com -s "2017"
HTTP CRITICAL: HTTP/1.1 301 Moved Permanently - string '2017' not found on 'http://snapgeek.com:80/' - 224 bytes in 0.764 second response time |time=0.764375s;;;0.000000 size=224B;;;0
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Install Check_HTTP_Content
They probably were, but they seem to have been compiled without ssl support. If you follow our instructions for 2.2.0 you should get ssl support.t3dus wrote:I had thought they were compiled from the get go but maybe they weren't.
You're forcing ssl on the site. ***http***://snapgeek.com doesn't have '2017' because it doesn't exist.
Re: Install Check_HTTP_Content
So bottom line, I need to get SSL to work first cuz otherwise nagios can't read "https" links?dwhitfield wrote:They probably were, but they seem to have been compiled without ssl support. If you follow our instructions for 2.2.0 you should get ssl support.t3dus wrote:I had thought they were compiled from the get go but maybe they weren't.
You're forcing ssl on the site. ***http***://snapgeek.com doesn't have '2017' because it doesn't exist.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Install Check_HTTP_Content
That's not exactly right. This is one particular plugin (check_http) among 4192 at https://exchange.nagios.org/directory/Plugins . If you want to use check_http, then yes, you will need to recompile nagios-plugins.t3dus wrote:otherwise nagios can't read "https" links?
As for other check that will do https, there's https://exchange.nagios.org//directory/ ... rt/details, which doesn't need to be compiled at all, but also doesn't have the string checking that you want.
Did you install the perl modules like was suggested in the very first post? If you want to use https://exchange.nagios.org/directory/P ... nt/details just install it where the rest of your plugins are installed (/usr/local/nagios/libexec by default), set up a command, and attach that command either to a host or service.
