Page 2 of 2

Re: Nagios check_http plugin

Posted: Thu Aug 08, 2013 3:42 am
by lord_hypnos
Ok i understand but why u delete -j parameter in check http plugin?

Re: Nagios check_http plugin

Posted: Thu Aug 08, 2013 9:31 am
by abrist
The "-j" parameter has not been removed and in fact is still available to the check_http plugin. What version of the check_http plugin are you running?

Code: Select all

/usr/local/nagios/libexec/check_http -V

Re: Nagios check_http plugin

Posted: Thu Aug 08, 2013 10:03 am
by lord_hypnos

Code: Select all

check_http v2053 (nagios-plugins 1.4.13)

Re: Nagios check_http plugin

Posted: Thu Aug 08, 2013 10:13 am
by abrist
That is an older plugin version, on the current, "-j" most definitely exists:

Code: Select all

[root@nagiosxi libexec]# ./check_http -V ; ./check_http -j
check_http v1.4.16 (nagios-plugins 1.4.16)
./check_http: option requires an argument -- 'j'
Usage:
 check_http -H <vhost> | -I <IP-address> [-u <uri>] [-p <port>]
       [-w <warn time>] [-c <critical time>] [-t <timeout>] [-L] [-a auth]
       [-b proxy_auth] [-f <ok|warning|critcal|follow|sticky|stickyport>]
       [-e <expect>] [-s string] [-l] [-r <regex> | -R <case-insensitive regex>]
       [-P string] [-m <min_pg_size>:<max_pg_size>] [-4|-6] [-N] [-M <age>]
       [-A string] [-k string] [-S <version>] [--sni] [-C <warn_age>[,<crit_age>]]
       [-T <content-type>] [-j method]
[root@nagiosxi libexec]#

Re: Nagios check_http plugin

Posted: Thu Aug 08, 2013 10:26 am
by lord_hypnos
But i try check update and I receive this:

Code: Select all

Your Nagios XI installation is up to date.
Latest Available Version:	2012R2.2
Installed Version:	2012R2.2
Last Update Check:	2013-08-08 06:07:5
This check also check plugin or only Nagios version?

Re: Nagios check_http plugin

Posted: Thu Aug 08, 2013 10:53 am
by abrist
Download the newest xi tarball and rerun the plugins install:

Code: Select all

cd /tmp
rm -rf nagiosxi
wget http://assets.nagios.com/downloads/nagiosxi/2012/xi-2012r2.2.tar.gz
tar vfxz xi-2012r2.2.tar.gz
cd nagiosxi/subcomponents/nagiosplugins
./install

Re: Nagios check_http plugin

Posted: Thu Aug 08, 2013 11:09 am
by lord_hypnos
I do all Your steps:

Code: Select all

cd /tmp
rm -rf nagiosxi
wget http://assets.nagios.com/downloads/nagiosxi/2012/xi-2012r2.2.tar.gz
tar vfxz xi-2012r2.2.tar.gz
cd nagiosxi/subcomponents/nagiosplugins
./install
and command:

Code: Select all

/usr/local/nagios/libexec/check_http -V
still return:

Code: Select all

check_http v2053 (nagios-plugins 1.4.13)
Should i do something more?

And i have also one question. Why in Your Nagios version on webpage You don't update this plugin. Is not comfortable to download Nagios and must manual update built-in plugin. It is only my advice :)

Re: Nagios check_http plugin

Posted: Thu Aug 08, 2013 11:33 am
by abrist
I just verified that you are correct. I was actually not aware that the nagios-plugins package in XI was out of date. This will be resolved in the next XI release. Until then, you will need to build and install the nagios-plugins package from source.

http://nagiosplugins.org/
http://sourceforge.net/projects/nagiosplug/files/

Re: Nagios check_http plugin

Posted: Thu Aug 08, 2013 11:40 am
by lord_hypnos
Some days with blood and fight but my problem was resolved :D Thank You so much for Your time!