Link to home
Start Free TrialLog in
Avatar of World05
World05Flag for United States of America

asked on

Problem with Nagios plugin install

Hello,

I'm trying to install Nagios plugins without success, when i enter "make" i get this error:

[root@ldap nagios-plugins-1.4.16]# make
make  all-recursive
make[1]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16'
Making all in gl
make[2]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16/gl'
rm -f configmake.h-t && \
      { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
        echo '#define PREFIX "/usr/local/nagios"'; \
        echo '#define EXEC_PREFIX "/usr/local/nagios"'; \
        echo '#define BINDIR "/usr/local/nagios/bin"'; \
        echo '#define SBINDIR "/usr/local/nagios/sbin"'; \
        echo '#define LIBEXECDIR "/usr/local/nagios/libexec"'; \
        echo '#define DATAROOTDIR "/usr/local/nagios/share"'; \
        echo '#define DATADIR "/usr/local/nagios/share"'; \
        echo '#define SYSCONFDIR "/usr/local/nagios/etc"'; \
        echo '#define SHAREDSTATEDIR "/usr/local/nagios/com"'; \
        echo '#define LOCALSTATEDIR "/usr/local/nagios/var"'; \
        echo '#define INCLUDEDIR "/usr/local/nagios/include"'; \
        echo '#define OLDINCLUDEDIR "/usr/include"'; \
        echo '#define DOCDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
        echo '#define INFODIR "/usr/local/nagios/share/info"'; \
        echo '#define HTMLDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
        echo '#define DVIDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
        echo '#define PDFDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
        echo '#define PSDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
        echo '#define LIBDIR "/usr/local/nagios/lib"'; \
        echo '#define LISPDIR ""'; \
        echo '#define LOCALEDIR "/usr/local/nagios/share/locale"'; \
        echo '#define MANDIR "/usr/local/nagios/share/man"'; \
        echo '#define MANEXT ""'; \
        echo '#define PKGDATADIR "/usr/local/nagios/share/nagios-plugins"'; \
        echo '#define PKGINCLUDEDIR "/usr/local/nagios/include/nagios-plugins"'; \
        echo '#define PKGLIBDIR "/usr/local/nagios/lib/nagios-plugins"'; \
        echo '#define PKGLIBEXECDIR "/usr/local/nagios/libexec/nagios-plugins"'; \
      } | sed '/""/d' > configmake.h-t && \
      if test -f configmake.h && cmp configmake.h-t configmake.h > /dev/null; then \
        rm -f configmake.h-t; \
      else \
        rm -f configmake.h; mv configmake.h-t configmake.h; \
      fi
make  all-recursive
make[3]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16/gl'
make[4]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16/gl'
rm -f configmake.h-t && \
      { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
        echo '#define PREFIX "/usr/local/nagios"'; \
        echo '#define EXEC_PREFIX "/usr/local/nagios"'; \
        echo '#define BINDIR "/usr/local/nagios/bin"'; \
        echo '#define SBINDIR "/usr/local/nagios/sbin"'; \
        echo '#define LIBEXECDIR "/usr/local/nagios/libexec"'; \
        echo '#define DATAROOTDIR "/usr/local/nagios/share"'; \
        echo '#define DATADIR "/usr/local/nagios/share"'; \
        echo '#define SYSCONFDIR "/usr/local/nagios/etc"'; \
        echo '#define SHAREDSTATEDIR "/usr/local/nagios/com"'; \
        echo '#define LOCALSTATEDIR "/usr/local/nagios/var"'; \
        echo '#define INCLUDEDIR "/usr/local/nagios/include"'; \
        echo '#define OLDINCLUDEDIR "/usr/include"'; \
        echo '#define DOCDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
        echo '#define INFODIR "/usr/local/nagios/share/info"'; \
        echo '#define HTMLDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
        echo '#define DVIDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
        echo '#define PDFDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
        echo '#define PSDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
        echo '#define LIBDIR "/usr/local/nagios/lib"'; \
        echo '#define LISPDIR ""'; \
        echo '#define LOCALEDIR "/usr/local/nagios/share/locale"'; \
        echo '#define MANDIR "/usr/local/nagios/share/man"'; \
        echo '#define MANEXT ""'; \
        echo '#define PKGDATADIR "/usr/local/nagios/share/nagios-plugins"'; \
        echo '#define PKGINCLUDEDIR "/usr/local/nagios/include/nagios-plugins"'; \
        echo '#define PKGLIBDIR "/usr/local/nagios/lib/nagios-plugins"'; \
        echo '#define PKGLIBEXECDIR "/usr/local/nagios/libexec/nagios-plugins"'; \
      } | sed '/""/d' > configmake.h-t && \
      if test -f configmake.h && cmp configmake.h-t configmake.h > /dev/null; then \
        rm -f configmake.h-t; \
      else \
        rm -f configmake.h; mv configmake.h-t configmake.h; \
      fi
make[4]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16/gl'
make[3]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16/gl'
make[2]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16/gl'
Making all in tap
make[2]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16/tap'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16/tap'
Making all in lib
make[2]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16/lib'
Making all in .
make[3]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16/lib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16/lib'
Making all in tests
make[3]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16/lib/tests'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16/lib/tests'
make[2]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16/lib'
Making all in plugins
make[2]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16/plugins'
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap  -I/usr/include   -DNP_VERSION='"1.4.16"' -g -O2 -MT check_http.o -MD -MP -MF .deps/check_http.Tpo -c -o check_http.o check_http.c
check_http.c: In function ‘process_arguments’:
check_http.c:312: error: ‘ssl_version’ undeclared (first use in this function)
check_http.c:312: error: (Each undeclared identifier is reported only once
check_http.c:312: error: for each function it appears in.)
make[2]: *** [check_http.o] Error 1
make[2]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16'
make: *** [all] Error 2
[root@ldap nagios-plugins-1.4.16]#









[root@ldap nagios-plugins-1.4.16]# make install
Making install in gl
make[1]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16/gl'
rm -f configmake.h-t && \
      { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
        echo '#define PREFIX "/usr/local/nagios"'; \
        echo '#define EXEC_PREFIX "/usr/local/nagios"'; \
        echo '#define BINDIR "/usr/local/nagios/bin"'; \
        echo '#define SBINDIR "/usr/local/nagios/sbin"'; \
        echo '#define LIBEXECDIR "/usr/local/nagios/libexec"'; \
        echo '#define DATAROOTDIR "/usr/local/nagios/share"'; \
        echo '#define DATADIR "/usr/local/nagios/share"'; \
        echo '#define SYSCONFDIR "/usr/local/nagios/etc"'; \
        echo '#define SHAREDSTATEDIR "/usr/local/nagios/com"'; \
        echo '#define LOCALSTATEDIR "/usr/local/nagios/var"'; \
        echo '#define INCLUDEDIR "/usr/local/nagios/include"'; \
        echo '#define OLDINCLUDEDIR "/usr/include"'; \
        echo '#define DOCDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
        echo '#define INFODIR "/usr/local/nagios/share/info"'; \
        echo '#define HTMLDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
        echo '#define DVIDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
        echo '#define PDFDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
        echo '#define PSDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
        echo '#define LIBDIR "/usr/local/nagios/lib"'; \
        echo '#define LISPDIR ""'; \
        echo '#define LOCALEDIR "/usr/local/nagios/share/locale"'; \
        echo '#define MANDIR "/usr/local/nagios/share/man"'; \
        echo '#define MANEXT ""'; \
        echo '#define PKGDATADIR "/usr/local/nagios/share/nagios-plugins"'; \
        echo '#define PKGINCLUDEDIR "/usr/local/nagios/include/nagios-plugins"'; \
        echo '#define PKGLIBDIR "/usr/local/nagios/lib/nagios-plugins"'; \
        echo '#define PKGLIBEXECDIR "/usr/local/nagios/libexec/nagios-plugins"'; \
      } | sed '/""/d' > configmake.h-t && \
      if test -f configmake.h && cmp configmake.h-t configmake.h > /dev/null; then \
        rm -f configmake.h-t; \
      else \
        rm -f configmake.h; mv configmake.h-t configmake.h; \
      fi
make  install-recursive
make[2]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16/gl'
make[3]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16/gl'
rm -f configmake.h-t && \
      { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
        echo '#define PREFIX "/usr/local/nagios"'; \
        echo '#define EXEC_PREFIX "/usr/local/nagios"'; \
        echo '#define BINDIR "/usr/local/nagios/bin"'; \
        echo '#define SBINDIR "/usr/local/nagios/sbin"'; \
        echo '#define LIBEXECDIR "/usr/local/nagios/libexec"'; \
        echo '#define DATAROOTDIR "/usr/local/nagios/share"'; \
        echo '#define DATADIR "/usr/local/nagios/share"'; \
        echo '#define SYSCONFDIR "/usr/local/nagios/etc"'; \
        echo '#define SHAREDSTATEDIR "/usr/local/nagios/com"'; \
        echo '#define LOCALSTATEDIR "/usr/local/nagios/var"'; \
        echo '#define INCLUDEDIR "/usr/local/nagios/include"'; \
        echo '#define OLDINCLUDEDIR "/usr/include"'; \
        echo '#define DOCDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
        echo '#define INFODIR "/usr/local/nagios/share/info"'; \
        echo '#define HTMLDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
        echo '#define DVIDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
        echo '#define PDFDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
        echo '#define PSDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
        echo '#define LIBDIR "/usr/local/nagios/lib"'; \
        echo '#define LISPDIR ""'; \
        echo '#define LOCALEDIR "/usr/local/nagios/share/locale"'; \
        echo '#define MANDIR "/usr/local/nagios/share/man"'; \
        echo '#define MANEXT ""'; \
        echo '#define PKGDATADIR "/usr/local/nagios/share/nagios-plugins"'; \
        echo '#define PKGINCLUDEDIR "/usr/local/nagios/include/nagios-plugins"'; \
        echo '#define PKGLIBDIR "/usr/local/nagios/lib/nagios-plugins"'; \
        echo '#define PKGLIBEXECDIR "/usr/local/nagios/libexec/nagios-plugins"'; \
      } | sed '/""/d' > configmake.h-t && \
      if test -f configmake.h && cmp configmake.h-t configmake.h > /dev/null; then \
        rm -f configmake.h-t; \
      else \
        rm -f configmake.h; mv configmake.h-t configmake.h; \
      fi
make[4]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16/gl'
if test yes = no; then \
        case 'linux-gnu' in \
          darwin[56]*) \
            need_charset_alias=true ;; \
          darwin* | cygwin* | mingw* | pw32* | cegcc*) \
            need_charset_alias=false ;; \
          *) \
            need_charset_alias=true ;; \
        esac ; \
      else \
        need_charset_alias=false ; \
      fi ; \
      if $need_charset_alias; then \
        /bin/sh ../build-aux/mkinstalldirs /usr/local/nagios/lib ; \
      fi ; \
      if test -f /usr/local/nagios/lib/charset.alias; then \
        sed -f ref-add.sed /usr/local/nagios/lib/charset.alias > /usr/local/nagios/lib/charset.tmp ; \
        /usr/bin/install -c -o nagios -g nagios -m 644 /usr/local/nagios/lib/charset.tmp /usr/local/nagios/lib/charset.alias ; \
        rm -f /usr/local/nagios/lib/charset.tmp ; \
      else \
        if $need_charset_alias; then \
          sed -f ref-add.sed charset.alias > /usr/local/nagios/lib/charset.tmp ; \
          /usr/bin/install -c -o nagios -g nagios -m 644 /usr/local/nagios/lib/charset.tmp /usr/local/nagios/lib/charset.alias ; \
          rm -f /usr/local/nagios/lib/charset.tmp ; \
        fi ; \
      fi
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16/gl'
make[3]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16/gl'
make[2]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16/gl'
make[1]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16/gl'
Making install in tap
make[1]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16/tap'
make[2]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16/tap'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/nagios/include" || /bin/mkdir -p "/usr/local/nagios/include"
make[2]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16/tap'
make[1]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16/tap'
Making install in lib
make[1]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16/lib'
Making install in .
make[2]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16/lib'
make[3]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16/lib'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16/lib'
make[2]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16/lib'
Making install in tests
make[2]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16/lib/tests'
make[3]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16/lib/tests'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16/lib/tests'
make[2]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16/lib/tests'
make[1]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16/lib'
Making install in plugins
make[1]: Entering directory `/root/Desktop/files/nagios-plugins-1.4.16/plugins'
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap  -I/usr/include   -DNP_VERSION='"1.4.16"' -g -O2 -MT check_http.o -MD -MP -MF .deps/check_http.Tpo -c -o check_http.o check_http.c
check_http.c: In function ‘process_arguments’:
check_http.c:312: error: ‘ssl_version’ undeclared (first use in this function)
check_http.c:312: error: (Each undeclared identifier is reported only once
check_http.c:312: error: for each function it appears in.)
make[1]: *** [check_http.o] Error 1
make[1]: Leaving directory `/root/Desktop/files/nagios-plugins-1.4.16/plugins'
make: *** [install-recursive] Error 1
[root@ldap nagios-plugins-1.4.16]#
Avatar of Sanga Collins
Sanga Collins
Flag of United States of America image

What ./configure options did you use. I've seen this before when I dont specify the user and the group

./configure --with-nagios-user=nagios --with-nagios-group=nagios
Avatar of World05

ASKER

no, that command goes successfully, but when i type "make" and "make install" i get that error i pasted previously.
which linux distro and version are you installing on?
Avatar of World05

ASKER

centos 6, i've just made a change in the stdio.h and i blowed everything, i'll re-install it on a clean linux instance and let you know
No problem, the stdio.h bug was the next thing I was going to mention, wanted to make sure it was relevant for your distro. I have installed nagios + plugins on centOS 6 before without any issues so a cleaninstall should clear up the problems.
Avatar of World05

ASKER

You can tell me anyway in case i encounter the same problem, i'll start a clean install in a few hours.


thanks
for centos 6. If you hav the epel repo enabled, all you need is

yum install nagios nagios-plugins-all

And you will not have to worry about compiling from source
Avatar of World05

ASKER

Hello,

i've made a new install, now i'm having a problem to detect my own server (localhost) it shows everything as DOWN. So what i did is to create a node file to track it via IP, i used the localhost IP address and everything is DOWN, there is a line which attracted me :

localhost
Current Load
CRITICAL      11-13-2012 20:56:07       0d 0h 8m 24s      4/4      (Return code of 127 is out of bounds - plugin may be missing)
Current Users
CRITICAL      11-13-2012 20:56:45       0d 0h 7m 46s      4/4      (Return code of 127 is out of bounds - plugin may be missing)
HTTP

CRITICAL      11-13-2012 20:57:22       0d 0h 7m 9s      4/4      (Return code of 127 is out of bounds - plugin may be missing)
PING
CRITICAL      11-13-2012 20:58:00       0d 0h 6m 31s      4/4      (Return code of 127 is out of bounds - plugin may be missing)
Root Partition
CRITICAL      11-13-2012 20:58:37       0d 0h 5m 54s      4/4      (Return code of 127 is out of bounds - plugin may be missing)
SSH

CRITICAL      11-13-2012 20:59:15       0d 0h 5m 16s      4/4      (Return code of 127 is out of bounds - plugin may be missing)
Swap Usage
CRITICAL      11-13-2012 20:54:52       0d 0h 4m 39s      4/4      (Return code of 127 is out of bounds - plugin may be missing)
Total Processes
CRITICAL      11-13-2012 20:55:30       0d 0h 4m 1s      4/4      ....


Doesn't that mean the plugins are not found or not installed at all?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Sanga Collins
Sanga Collins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
also please let me know the contents of ../libexec folder in the nagios directory. This is where all the plugins are installed. For host checks you should have check_icmp and check_ping plugins installed
Avatar of World05

ASKER

[root@localhost ~]# yum install nagios-plugins-all
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: sunsite.rediris.es
 * extras: sunsite.rediris.es
 * updates: sunsite.rediris.es
Setting up Install Process
No package nagios-plugins-all available.
Error: Nothing to do
[root@localhost ~]# yum install nagios*
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: sunsite.rediris.es
 * extras: sunsite.rediris.es
 * updates: sunsite.rediris.es
Setting up Install Process
Nothing to do
[root@localhost ~]#
Avatar of World05

ASKER

[root@localhost ~]# cd /etc/nagios
[root@localhost nagios]# ls
cgi.cfg  conf.d  nagios.cfg  objects  passwd  private  servers
[root@localhost nagios]#


No libexec folder
Avatar of World05

ASKER

hold on, something is downloading right now using nagios-plugins-all
Avatar of World05

ASKER

Check this:

Dependencies Resolved

================================================================================
 Package                    Arch     Version                       Repository
                                                                           Size
================================================================================
Installing:
 nagios-plugins-all         x86_64   1.4.16-5.el6                  epel    13 k
Installing for dependencies:
 fping                      x86_64   2.4b2-10.el6                  epel    31 k
 lm_sensors                 x86_64   3.1.1-10.el6                  base   122 k
 nagios-plugins-breeze      x86_64   1.4.16-5.el6                  epel    14 k
 nagios-plugins-by_ssh      x86_64   1.4.16-5.el6                  epel    35 k
 nagios-plugins-cluster     x86_64   1.4.16-5.el6                  epel    29 k
 nagios-plugins-dhcp        x86_64   1.4.16-5.el6                  epel    35 k
 nagios-plugins-dig         x86_64   1.4.16-5.el6                  epel    33 k
 nagios-plugins-disk        x86_64   1.4.16-5.el6                  epel    68 k
 nagios-plugins-disk_smb    x86_64   1.4.16-5.el6                  epel    16 k
 nagios-plugins-dns         x86_64   1.4.16-5.el6                  epel    34 k
 nagios-plugins-dummy       x86_64   1.4.16-5.el6                  epel    26 k
 nagios-plugins-file_age    x86_64   1.4.16-5.el6                  epel    14 k
 nagios-plugins-flexlm      x86_64   1.4.16-5.el6                  epel    15 k
 nagios-plugins-fping       x86_64   1.4.16-5.el6                  epel    34 k
 nagios-plugins-game        x86_64   1.4.16-5.el6                  epel    31 k
 nagios-plugins-hpjd        x86_64   1.4.16-5.el6                  epel    33 k
 nagios-plugins-http        x86_64   1.4.16-5.el6                  epel    75 k
 nagios-plugins-icmp        x86_64   1.4.16-5.el6                  epel    37 k
 nagios-plugins-ide_smart   x86_64   1.4.16-5.el6                  epel    30 k
 nagios-plugins-ircd        x86_64   1.4.16-5.el6                  epel    15 k
 nagios-plugins-ldap        x86_64   1.4.16-5.el6                  epel    32 k
 nagios-plugins-load        x86_64   1.4.16-5.el6                  epel    30 k
 nagios-plugins-log         x86_64   1.4.16-5.el6                  epel    15 k
 nagios-plugins-mailq       x86_64   1.4.16-5.el6                  epel    17 k
 nagios-plugins-mrtg        x86_64   1.4.16-5.el6                  epel    30 k
 nagios-plugins-mrtgtraf    x86_64   1.4.16-5.el6                  epel    30 k
 nagios-plugins-mysql       x86_64   1.4.16-5.el6                  epel    41 k
 nagios-plugins-nagios      x86_64   1.4.16-5.el6                  epel    31 k
 nagios-plugins-nt          x86_64   1.4.16-5.el6                  epel    36 k
 nagios-plugins-ntp         x86_64   1.4.16-5.el6                  epel    48 k
 nagios-plugins-ntp-perl    x86_64   1.4.16-5.el6                  epel    17 k
 nagios-plugins-nwstat      x86_64   1.4.16-5.el6                  epel    38 k
 nagios-plugins-oracle      x86_64   1.4.16-5.el6                  epel    15 k
 nagios-plugins-overcr      x86_64   1.4.16-5.el6                  epel    32 k
 nagios-plugins-perl        x86_64   1.4.16-5.el6                  epel    14 k
 nagios-plugins-pgsql       x86_64   1.4.16-5.el6                  epel    32 k
 nagios-plugins-ping        x86_64   1.4.16-5.el6                  epel    36 k
 nagios-plugins-procs       x86_64   1.4.16-5.el6                  epel    66 k
 nagios-plugins-real        x86_64   1.4.16-5.el6                  epel    32 k
 nagios-plugins-rpc         x86_64   1.4.16-5.el6                  epel    16 k
 nagios-plugins-sensors     x86_64   1.4.16-5.el6                  epel    13 k
 nagios-plugins-smtp        x86_64   1.4.16-5.el6                  epel    69 k
 nagios-plugins-snmp        x86_64   1.4.16-5.el6                  epel    69 k
 nagios-plugins-ssh         x86_64   1.4.16-5.el6                  epel    31 k
 nagios-plugins-swap        x86_64   1.4.16-5.el6                  epel    31 k
 nagios-plugins-tcp         x86_64   1.4.16-5.el6                  epel    38 k
 nagios-plugins-time        x86_64   1.4.16-5.el6                  epel    31 k
 nagios-plugins-ups         x86_64   1.4.16-5.el6                  epel    34 k
 nagios-plugins-users       x86_64   1.4.16-5.el6                  epel    28 k
 nagios-plugins-wave        x86_64   1.4.16-5.el6                  epel    14 k
 qstat                      x86_64   2.11-9.20080912svn311.el6     epel   162 k

Transaction Summary
================================================================================
Install      52 Package(s)

Total download size: 1.8 M
Installed size: 3.1 M
Downloading Packages:
(1/52): fping-2.4b2-10.el6.x86_64.rpm                    |  31 kB     00:01    
(2/52): lm_sensors-3.1.1-10.el6.x86_64.rpm               | 122 kB     00:06    
(3/52): nagios-plugins-all-1.4.16-5.el6.x86_64.rpm       |  13 kB     00:02    
(4/52): nagios-plugins-breeze-1.4.16-5.el6.x86_64.rpm    |  14 kB     00:10    
(5/52): nagios-plugins-by_ssh-1.4.16-5.el6.x86_64.rpm    |  35 kB     00:24    
(6/52): nagios-plugins-cluster-1.4.16-5.el6.x86_64.rpm   |  29 kB     00:02    
(7/52): nagios-plugins-dhcp-1.4.16-5.el6.x86_64.rpm      |  35 kB     00:02    
(8/52): nagios-plugins-dig-1.4.16-5.el6.x86_64.rpm       |  33 kB     00:02    
(9/52): nagios-plugins-disk-1.4.16-5.el6.x86_64.rpm      |  68 kB     00:13    
(10/52): nagios-plugins-disk_smb-1.4.16-5.el6.x86_64.rpm |  16 kB     00:02    
(11/52): nagios-plugins-dns-1.4.16-5.el6.x86_64.rpm      |  34 kB     00:01    
(12/52): nagios-plugins-dummy-1.4.16-5.el6.x86_64.rpm    |  26 kB     00:01    
(13/52): nagios-plugins-file_age-1.4.16-5.el6.x86_64.rpm |  14 kB     00:02    
(14/52): nagios-plugins-flexlm-1.4.16-5.el6.x86_64.rpm   |  15 kB     00:03    
(15/52): nagios-plugins-fping-1.4.16-5.el6.x86_64.rpm    |  34 kB     00:02    
(16/52): nagios-plugins-game-1.4.16-5.el6.x86_64.rpm     |  31 kB     00:02    
(17/52): nagios-plugins-hpjd-1.4.16-5.el6.x86_64.rpm     |  33 kB     00:02    
(18/52): nagios-plugins-http-1.4.16-5.el6.x86_64.rpm     |  75 kB     00:32    
(19/52): nagios-plugins-icmp-1.4.16-5.el6.x86_64.rpm     |  37 kB     00:14    
(20/52): nagios-plugins-ide_smart-1.4.16-5.el6.x86_64.rp |  30 kB     00:01    
(21/52): nagios-plugins-ircd-1.4.16-5.el6.x86_64.rpm     |  15 kB     00:02    
(22/52): nagios-plugins-ldap-1.4.16-5.el6.x86_64.rpm     |  32 kB     00:02    
(23/52): nagios-plugins-load-1.4.16-5.el6.x86_64.rpm     |  30 kB     00:01    
(24/52): nagios-plugins-log-1.4.16-5.el6.x86_64.rpm      |  15 kB     00:01    
(25/52): nagios-plugins-mailq-1.4.16-5.el6.x86_64.rpm    |  17 kB     00:00    
(26/52): nagios-plugins-mrtg-1.4.16-5.el6.x86_64.rpm     |  30 kB     00:01    
(27/52): nagios-plugins-mrtgtraf-1.4.16-5.el6.x86_64.rpm |  30 kB     00:01    
(28/52): nagios-plugins-mysql-1.4.16-5.el6.x86_64.rpm    |  41 kB     00:01    
(29/52): nagios-plugins-nagios-1.4.16-5.el6.x86_64.rpm   |  31 kB     00:00    
(30/52): nagios-plugins-nt-1.4.16-5.el6.x86_64.rpm       |  36 kB     00:01    
(31/52): nagios-plugins-ntp-1.4.16-5.el6.x86_64.rpm      |  48 kB     00:01    
(32/52): nagios-plugins-ntp-perl-1.4.16-5.el6.x86_64.rpm |  17 kB     00:00    
(33/52): nagios-plugins-nwstat-1.4.16-5.el6.x86_64.rpm   |  38 kB     00:00    
(34/52): nagios-plugins-oracle-1.4.16-5.el6.x86_64.rpm   |  15 kB     00:00    
(35/52): nagios-plugins-overcr-1.4.16-5.el6.x86_64.rpm   |  32 kB     00:00    
(36/52): nagios-plugins-perl-1.4.16-5.el6.x86_64.rpm     |  14 kB     00:00    
(37/52): nagios-plugins-pgsql-1.4.16-5.el6.x86_64.rpm    |  32 kB     00:00    
(38/52): nagios-plugins-ping-1.4.16-5.el6.x86_64.rpm     |  36 kB     00:00    
(39/52): nagios-plugins-procs-1.4.16-5.el6.x86_64.rpm    |  66 kB     00:01    
(40/52): nagios-plugins-real-1.4.16-5.el6.x86_64.rpm     |  32 kB     00:00    
(41/52): nagios-plugins-rpc-1.4.16-5.el6.x86_64.rpm      |  16 kB     00:00    
(42/52): nagios-plugins-sensors-1.4.16-5.el6.x86_64.rpm  |  13 kB     00:00    
(43/52): nagios-plugins-smtp-1.4.16-5.el6.x86_64.rpm     |  69 kB     00:01    
(44/52): nagios-plugins-snmp-1.4.16-5.el6.x86_64.rpm     |  69 kB     00:01    
(45/52): nagios-plugins-ssh-1.4.16-5.el6.x86_64.rpm      |  31 kB     00:00    
(46/52): nagios-plugins-swap-1.4.16-5.el6.x86_64.rpm     |  31 kB     00:00    
(47/52): nagios-plugins-tcp-1.4.16-5.el6.x86_64.rpm      |  38 kB     00:00    
(48/52): nagios-plugins-time-1.4.16-5.el6.x86_64.rpm     |  31 kB     00:00    
(49/52): nagios-plugins-ups-1.4.16-5.el6.x86_64.rpm      |  34 kB     00:00    
(50/52): nagios-plugins-users-1.4.16-5.el6.x86_64.rpm    |  28 kB     00:00    
(51/52): nagios-plugins-wave-1.4.16-5.el6.x86_64.rpm     |  14 kB     00:00    
(52/52): qstat-2.11-9.20080912svn311.el6.x86_64.rpm      | 162 kB     00:04    
--------------------------------------------------------------------------------
Total                                           6.5 kB/s | 1.8 MB     04:45    
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : nagios-plugins-perl-1.4.16-5.el6.x86_64                     1/52
  Installing : nagios-plugins-ircd-1.4.16-5.el6.x86_64                     2/52
  Installing : nagios-plugins-rpc-1.4.16-5.el6.x86_64                      3/52
  Installing : nagios-plugins-ntp-perl-1.4.16-5.el6.x86_64                 4/52
  Installing : nagios-plugins-wave-1.4.16-5.el6.x86_64                     5/52
  Installing : nagios-plugins-flexlm-1.4.16-5.el6.x86_64                   6/52
  Installing : nagios-plugins-mailq-1.4.16-5.el6.x86_64                    7/52
  Installing : nagios-plugins-disk_smb-1.4.16-5.el6.x86_64                 8/52
  Installing : nagios-plugins-breeze-1.4.16-5.el6.x86_64                   9/52
  Installing : nagios-plugins-file_age-1.4.16-5.el6.x86_64                10/52
  Installing : nagios-plugins-nagios-1.4.16-5.el6.x86_64                  11/52
  Installing : nagios-plugins-load-1.4.16-5.el6.x86_64                    12/52
  Installing : nagios-plugins-pgsql-1.4.16-5.el6.x86_64                   13/52
  Installing : nagios-plugins-dig-1.4.16-5.el6.x86_64                     14/52
  Installing : nagios-plugins-ups-1.4.16-5.el6.x86_64                     15/52
  Installing : lm_sensors-3.1.1-10.el6.x86_64                             16/52
  Installing : nagios-plugins-sensors-1.4.16-5.el6.x86_64                 17/52
  Installing : nagios-plugins-cluster-1.4.16-5.el6.x86_64                 18/52
  Installing : nagios-plugins-mrtg-1.4.16-5.el6.x86_64                    19/52
  Installing : nagios-plugins-http-1.4.16-5.el6.x86_64                    20/52
  Installing : nagios-plugins-by_ssh-1.4.16-5.el6.x86_64                  21/52
  Installing : nagios-plugins-ntp-1.4.16-5.el6.x86_64                     22/52
  Installing : nagios-plugins-log-1.4.16-5.el6.x86_64                     23/52
  Installing : nagios-plugins-ping-1.4.16-5.el6.x86_64                    24/52
  Installing : nagios-plugins-overcr-1.4.16-5.el6.x86_64                  25/52
  Installing : nagios-plugins-tcp-1.4.16-5.el6.x86_64                     26/52
  Installing : nagios-plugins-real-1.4.16-5.el6.x86_64                    27/52
  Installing : nagios-plugins-disk-1.4.16-5.el6.x86_64                    28/52
  Installing : fping-2.4b2-10.el6.x86_64                                  29/52
  Installing : nagios-plugins-fping-1.4.16-5.el6.x86_64                   30/52
  Installing : nagios-plugins-dhcp-1.4.16-5.el6.x86_64                    31/52
  Installing : qstat-2.11-9.20080912svn311.el6.x86_64                     32/52
  Installing : nagios-plugins-game-1.4.16-5.el6.x86_64                    33/52
  Installing : nagios-plugins-nwstat-1.4.16-5.el6.x86_64                  34/52
  Installing : nagios-plugins-procs-1.4.16-5.el6.x86_64                   35/52
  Installing : nagios-plugins-dummy-1.4.16-5.el6.x86_64                   36/52
  Installing : nagios-plugins-swap-1.4.16-5.el6.x86_64                    37/52
  Installing : nagios-plugins-smtp-1.4.16-5.el6.x86_64                    38/52
  Installing : nagios-plugins-mysql-1.4.16-5.el6.x86_64                   39/52
  Installing : nagios-plugins-ldap-1.4.16-5.el6.x86_64                    40/52
  Installing : nagios-plugins-dns-1.4.16-5.el6.x86_64                     41/52
  Installing : nagios-plugins-ide_smart-1.4.16-5.el6.x86_64               42/52
  Installing : nagios-plugins-ssh-1.4.16-5.el6.x86_64                     43/52
  Installing : nagios-plugins-snmp-1.4.16-5.el6.x86_64                    44/52
  Installing : nagios-plugins-icmp-1.4.16-5.el6.x86_64                    45/52
  Installing : nagios-plugins-hpjd-1.4.16-5.el6.x86_64                    46/52
  Installing : nagios-plugins-mrtgtraf-1.4.16-5.el6.x86_64                47/52
  Installing : nagios-plugins-nt-1.4.16-5.el6.x86_64                      48/52
  Installing : nagios-plugins-time-1.4.16-5.el6.x86_64                    49/52
  Installing : nagios-plugins-oracle-1.4.16-5.el6.x86_64                  50/52
  Installing : nagios-plugins-users-1.4.16-5.el6.x86_64                   51/52
  Installing : nagios-plugins-all-1.4.16-5.el6.x86_64                     52/52

Installed:
  nagios-plugins-all.x86_64 0:1.4.16-5.el6                                      

Dependency Installed:
  fping.x86_64 0:2.4b2-10.el6                                                  
  lm_sensors.x86_64 0:3.1.1-10.el6                                              
  nagios-plugins-breeze.x86_64 0:1.4.16-5.el6                                  
  nagios-plugins-by_ssh.x86_64 0:1.4.16-5.el6                                  
  nagios-plugins-cluster.x86_64 0:1.4.16-5.el6                                  
  nagios-plugins-dhcp.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-dig.x86_64 0:1.4.16-5.el6                                      
  nagios-plugins-disk.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-disk_smb.x86_64 0:1.4.16-5.el6                                
  nagios-plugins-dns.x86_64 0:1.4.16-5.el6                                      
  nagios-plugins-dummy.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-file_age.x86_64 0:1.4.16-5.el6                                
  nagios-plugins-flexlm.x86_64 0:1.4.16-5.el6                                  
  nagios-plugins-fping.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-game.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-hpjd.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-http.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-icmp.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-ide_smart.x86_64 0:1.4.16-5.el6                                
  nagios-plugins-ircd.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-ldap.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-load.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-log.x86_64 0:1.4.16-5.el6                                      
  nagios-plugins-mailq.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-mrtg.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-mrtgtraf.x86_64 0:1.4.16-5.el6                                
  nagios-plugins-mysql.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-nagios.x86_64 0:1.4.16-5.el6                                  
  nagios-plugins-nt.x86_64 0:1.4.16-5.el6                                      
  nagios-plugins-ntp.x86_64 0:1.4.16-5.el6                                      
  nagios-plugins-ntp-perl.x86_64 0:1.4.16-5.el6                                
  nagios-plugins-nwstat.x86_64 0:1.4.16-5.el6                                  
  nagios-plugins-oracle.x86_64 0:1.4.16-5.el6                                  
  nagios-plugins-overcr.x86_64 0:1.4.16-5.el6                                  
  nagios-plugins-perl.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-pgsql.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-ping.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-procs.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-real.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-rpc.x86_64 0:1.4.16-5.el6                                      
  nagios-plugins-sensors.x86_64 0:1.4.16-5.el6                                  
  nagios-plugins-smtp.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-snmp.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-ssh.x86_64 0:1.4.16-5.el6                                      
  nagios-plugins-swap.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-tcp.x86_64 0:1.4.16-5.el6                                      
  nagios-plugins-time.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-ups.x86_64 0:1.4.16-5.el6                                      
  nagios-plugins-users.x86_64 0:1.4.16-5.el6                                    
  nagios-plugins-wave.x86_64 0:1.4.16-5.el6                                    
  qstat.x86_64 0:2.11-9.20080912svn311.el6                                      

Complete!
[root@localhost nagios]# service nagios restart
Running configuration check...done.
Stopping nagios: done.
Starting nagios: done.
[root@localhost nagios]# ls
cgi.cfg  conf.d  nagios.cfg  objects  passwd  private  servers
[root@localhost nagios]#


But the webpage still shows DOWN
the nagios setup is in the EPEL repo. You may have to enable the repo if it is not already enabled in your system. On my centos systems I enable EPEL and Dag's repo for some extra goodies

yum repolist
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirror.symnds.com
 * centosplus: mirror.cogentco.com
 * epel: mirror.itc.virginia.edu
 * extras: mirror.vcu.edu
 * updates: mirror.symnds.com
repo id             repo name                                             status
base                CentOS-6 - Base                                       6,346
centosplus          CentOS-6 - Plus                                          56
epel                Extra Packages for Enterprise Linux 6 - x86_64        8,050
extras              CentOS-6 - Extras                                         7
google-chrome       google-chrome                                             3
updates             CentOS-6 - Updates                                    862+7
repolist: 15,324
Avatar of World05

ASKER

Sorry for the quick answers, i just want to let you updated of what is happening in my side,

Now i see UP for the localhost but i see this as Critical:

localhost
      
      
HTTP
      
Notifications for this service have been disabled
      CRITICAL       11-13-2012 21:53:52       0d 1h 4m 41s       4/4       (Return code of 127 is out of bounds - plugin may be missing)
      
PING
      
      CRITICAL       11-13-2012 21:53:00       0d 1h 4m 3s       4/4       (Return code of 127 is out of bounds - plugin may be missing)
      
Root Partition
      
      CRITICAL       11-13-2012 21:53:37       0d 1h 3m 26s       4/4       (Return code of 127 is out of bounds - plugin may be missing)
      
SSH
      
Notifications for this service have been disabled
      CRITICAL       11-13-2012 21:54:15       0d 1h 2m 48s       4/4       (Return code of 127 is out of bounds - plugin may be missing)


How to add those plugins?
Still the same error message?

in ../objects/commands.cfg

this is my check-host-alive command

# 'check-host-alive' command definition
define command{
        command_name    check-host-alive
        command_line    $USER1$/check_icmp -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$$
}

$USER1$ = libexec directory /usr/local/nagios/libexec/
Avatar of World05

ASKER

it's resolved, i just need to give it some time to update its plugins. thx
Great!!!

I was starting to get worried that I steered you wrong. Initially nagios is hard to get going, but once you get the first host in there its smooth sailing from here on out.

I suggest in the nagios folder adding a directory named 'hosts' and using this directive in nagiso.cfg

# You can also tell Nagios to process all config files (with a .cfg
# extension) in a particular directory by using the cfg_dir
# directive as shown below:

cfg_dir=/usr/local/nagios/etc/hosts


THis will allow you to create multiple subdirectories to help with organizing what you are monitoring. So I have ../hosts/corporate ../hosts/remote_sites ../hosts/printers and so on.

Also look into pnp4nagios for you graphing needs. They are the best i've been able to find
Avatar of omniumnetworking
omniumnetworking

I know this is months later but as I just resolved this problem for myself I wanted to give guidance to others.

This is in response to the initial question where in response to the "make" command you get the error: check_http.c:312: error: ‘ssl_version’ undeclared (first use in this function)

Assuming you still want to compile from source instead of installing the package through yup/apt-get/urpmi, the solution is to install the libssl-dev package, then re-run the ./configure command, then re-run make and make install.

This answer came straight from the nagios developers and it solved my problem.