Install Check_HTTP_Content

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.
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

Re: Install Check_HTTP_Content

Post by t3dus »

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

Post by dwhitfield »

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:
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.
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

Re: Install Check_HTTP_Content

Post by t3dus »

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.

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
FYI, I tried to install check_http_content but it is asking for additional stuff to be installed.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Install Check_HTTP_Content

Post by dwhitfield »

t3dus wrote:I had thought they were compiled from the get go but maybe they weren't.
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.

You're forcing ssl on the site. ***http***://snapgeek.com doesn't have '2017' because it doesn't exist.
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

Re: Install Check_HTTP_Content

Post by t3dus »

dwhitfield wrote:
t3dus wrote:I had thought they were compiled from the get go but maybe they weren't.
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.

You're forcing ssl on the site. ***http***://snapgeek.com doesn't have '2017' because it doesn't exist.
So bottom line, I need to get SSL to work first cuz otherwise nagios can't read "https" links?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Install Check_HTTP_Content

Post by dwhitfield »

t3dus wrote:otherwise nagios can't read "https" links?
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.

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