UJP - 技術情報1

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

Nagios Plugin 1.4.10のインストール

Nagios Plugin 1.4.10のインストール


0.改訂履歴

  • 2007.10.11 新規作成

1.はじめに

 このドキュメントでは,サーバ監視ツールのNagiosで,新しいプラグインをインストールする手順を説明する. なお,従来のプラグインでは,システムアクセスの脆弱性が見つかっているので,新しいプラグインに入れ替える必要が在る.

 また,前提としてNagios 1.2がインストールされてPlugin 1.4.2をRPMでインストールしていて,それらを置き換える為の手順も載せている.

 さらにインストールプロセスの中で,幾つかのプラグインの動作確認も行う.check_dns , check_ide_smart , check_log , check_nt , check_real , check_swap , check_breeze , check_dummy , check_ifoperstatus , check_mailq , check_ntp , check_rpc , check_tcp , utils.sh , check_by_ssh , check_file_age , check_ifstatus , check_mrtg , check_nwstat , check_sensors , check_time , check_clamd , check_flexlm , check_imap , check_mrtgtraf , check_oracle , check_simap , check_udp , check_cluster , check_fping , check_ircd , check_mysql , check_overcr , check_smtp , check_ups , check_dhcp , check_ftp , check_jabber , check_mysql_query , check_pgsql , check_snmp , check_users , check_dig , check_hpjd , check_ldap , check_nagios , check_ping , check_spop , check_wave , check_disk , check_http , check_ldaps , check_nntp , check_pop , check_ssh , negate , check_disk_smb , check_icmp , check_load , check_nntps , check_procs , check_ssmtp , urlize

 なお,使用しているOSは,RedHat Linux ES上で稼働している.

2.モジュールの入手

root@jupiter:~ # ls -la nagios-plugins-1.4.10.tar.gz 
-rw-r--r--    1 ujpadmin  ujpserver  1693979 Oct 11 15:12 nagios-plugins-1.4.10.tar.gz
root@jupiter:~ # 
  • 今回入手したのは,1.4.10である.

3.インストール

  • アーカイブを展開する.
root@jupiter:~ # tar xfz nagios-plugins-1.4.10.tar.gz 
root@jupiter:~ # 
  • 展開したアーカイブを確認する.
root@jupiter:~ # tar xfz nagios-plugins-1.4.10.tar.gz 
root@jupiter:~ # cd nagios-plugins-1.4.10
root@jupiter:~/nagios-plugins-1.4.10 # ls -la
total 2360
drwxrwxrwx   15 10002    10002        4096 Sep 29 10:04 .
drwxr-x---   18 root     root         4096 Oct 11 15:37 ..
-rw-r--r--    1 10002    10002       80541 May 12 09:49 ABOUT-NLS
-rw-r--r--    1 10002    10002        1230 Jan 28  2007 ACKNOWLEDGEMENTS
-rw-r--r--    1 10002    10002         320 Apr 11  2007 AUTHORS
-rw-r--r--    1 10002    10002        1109 Sep 29 09:44 BUGS
-rw-r--r--    1 10002    10002        3812 Nov 20  2004 CODING
-rw-r--r--    1 10002    10002       17992 Oct 25  2005 COPYING
-rw-r--r--    1 10002    10002      267103 Sep 29 09:44 ChangeLog
-rw-r--r--    1 10002    10002        3528 Mar  6  2007 FAQ
-rw-r--r--    1 10002    10002        9478 Sep 29 10:02 INSTALL
-rw-r--r--    1 10002    10002         426 Feb 28  2002 LEGAL
-rw-r--r--    1 10002    10002        2144 Sep 17 17:19 Makefile.am
-rw-r--r--    1 10002    10002       28268 Sep 29 10:02 Makefile.in
-rw-r--r--    1 10002    10002        6371 Sep 29 09:44 NEWS
-rw-r--r--    1 10002    10002       16689 Dec 21  2006 NPTest.pm
-rw-r--r--    1 10002    10002        3776 Mar  6  2007 README
-rw-r--r--    1 10002    10002        2674 Sep 23 20:03 REQUIREMENTS
-rw-r--r--    1 10002    10002        3270 Nov 30  2004 SUPPORT
-rw-r--r--    1 10002    10002        3529 Sep 29 10:04 THANKS
-rw-r--r--    1 10002    10002        2402 Feb 18  2004 acinclude.m4
-rw-r--r--    1 10002    10002      264459 Sep 29 10:02 aclocal.m4
drwxrwxrwx    2 10002    10002        4096 Sep 29 10:04 build-aux
-rw-r--r--    1 10002    10002       14880 Dec  2  2004 command.cfg.in
-rw-r--r--    1 10002    10002       29997 Sep 29 10:02 config.h.in
-rwxr-xr-x    1 10002    10002       18163 Jan 30  2007 config.rpath
drwxrwxrwx    2 10002    10002        4096 Sep 29 10:04 config_test
-rwxr-xr-x    1 10002    10002     1434312 Sep 29 10:02 configure
-rw-r--r--    1 10002    10002       54496 Sep 29 09:44 configure.in
drwxrwxrwx    4 10002    10002        4096 Sep 29 10:01 contrib
drwxrwxrwx    3 10002    10002        4096 Sep 29 10:04 gl
drwxrwxrwx    3 10002    10002        4096 Sep 29 10:04 lib
drwxrwxrwx    2 10002    10002        4096 Sep 29 10:04 m4
-rwxr-xr-x    1 10002    10002        3474 May 20  2006 mkinstalldirs
-rw-r--r--    1 10002    10002        2552 Sep 29 10:04 nagios-plugins.spec
drwxrwxrwx    2 10002    10002        4096 Sep 29 10:03 perlmods
drwxrwxrwx    5 10002    10002        4096 Sep 29 10:01 pkg
drwxrwxrwx    3 10002    10002        4096 Sep 29 10:04 plugins
drwxrwxrwx    2 10002    10002        4096 Sep 29 10:04 plugins-root
drwxrwxrwx    3 10002    10002        4096 Sep 29 10:04 plugins-scripts
drwxrwxrwx    2 10002    10002        4096 Sep 29 10:04 po
-rwxr-xr-x    1 10002    10002         868 Jul 25  2005 test.pl.in
drwxrwxrwx    2 10002    10002        4096 Sep 29 10:04 tools
root@jupiter:~/nagios-plugins-1.4.10 # 
  • 普通のコンパイルをすれば良さそうである.
  • configureする.
root@jupiter:~/nagios-plugins-1.4.10 # ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for AIX... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether gcc needs -traditional... no
checking for a sed that does not truncate output... /bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... (cached) ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 static flag -static works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether gcc and cc understand -c and -o together... yes
checking for error_at_line... yes
checking for working strtod... yes
checking for python... /usr/bin/python
checking for sh... /bin/sh
checking for perl... /usr/bin/perl
checking for libgnutls-config... no
checking for hostname... /bin/hostname
checking for basename... /bin/basename
checking for main in -ldce... no
checking for main in -lnsl... yes
checking for socket in -lsocket... no
checking for main in -lresolv... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for floor in -lm... yes
checking for plan_tests in -ltap... no
checking for main in -lcrypt... yes
checking for PQsetdbLogin in -lpq... yes
checking pgsql/libpq-fe.h usability... no
checking pgsql/libpq-fe.h presence... no
checking for pgsql/libpq-fe.h... no
checking postgresql/libpq-fe.h usability... no
checking postgresql/libpq-fe.h presence... no
checking for postgresql/libpq-fe.h... no
checking libpq-fe.h usability... yes
checking libpq-fe.h presence... yes
checking for libpq-fe.h... yes
checking for rc_read_config in -lradiusclient... no
checking for rc_read_config in -lradiusclient-ng... no
configure: WARNING: Skipping radius plugin
configure: WARNING: install radius libs to compile this plugin (see REQUIREMENTS
).
checking for main in -lldap... yes
checking for ldap_set_option... yes
checking for ldap_init... yes
checking for ldap_set_option... (cached) yes
checking for ldap_get_option... yes
checking for ldap_start_tls_s... yes
checking linux/hdreg.h usability... yes
checking linux/hdreg.h presence... yes
checking for linux/hdreg.h... yes
checking linux/types.h usability... yes
checking linux/types.h presence... yes
checking for linux/types.h... yes
checking for mysql_config... /usr/bin/mysql_config
checking for mysql_init in -lmysqlclient... yes
checking for IPv6 support... yes
checking krb5.h usability... no
checking krb5.h presence... no
checking for krb5.h... no
checking krb5.h usability... yes
checking krb5.h presence... yes
checking for krb5.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking openssl/x509.h usability... yes
checking openssl/x509.h presence... yes
checking for openssl/x509.h... yes
checking openssl/rsa.h usability... yes
checking openssl/rsa.h presence... yes
checking for openssl/rsa.h... yes
checking openssl/pem.h usability... yes
checking openssl/pem.h presence... yes
checking for openssl/pem.h... yes
checking openssl/crypto.h usability... yes
checking openssl/crypto.h presence... yes
checking for openssl/crypto.h... yes
checking openssl/err.h usability... yes
checking openssl/err.h presence... yes
checking for openssl/err.h... yes
checking for CRYPTO_lock in -lcrypto... yes
checking for main in -lssl... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking uio.h usability... no
checking uio.h presence... no
checking for uio.h... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking features.h usability... yes
checking features.h presence... yes
checking for features.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking sys/unistd.h usability... yes
checking sys/unistd.h presence... yes
checking for sys/unistd.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for va_copy... yes
checking for memmove... yes
checking for select... yes
checking for socket... yes
checking for strdup... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking for floor... no
checking for poll... yes
checking return type of socket size... int
checking for ps... /bin/ps
checking for ps syntax... /bin/ps axwo 'stat uid pid ppid vsz rss pcpu comm args
'
checking for ping... /bin/ping
checking for ping6... /bin/ping6
checking for ICMP ping syntax... /bin/ping -n -U -w %d -c %d %s
checking for ICMPv6 ping syntax... none
checking for nslookup... /usr/bin/nslookup
checking for nslookup syntax... /usr/bin/nslookup -sil
checking for number of cpus... sysconf(_SC_NPROCESSORS_CONF)
checking for uptime... /usr/bin/uptime
checking for rpcinfo... no
checking for lmstat... no
configure: WARNING: Get lmstat from Globetrotter Software to monitor flexlm 
licenses
checking for smbclient... /usr/bin/smbclient
checking for who... /usr/bin/who
checking for snmpget... /usr/bin/snmpget
checking for snmpgetnext... /usr/bin/snmpgetnext
checking for Net::SNMP perl module... found
checking for quakestat... no
checking for qstat... no
configure: WARNING: Get qstat from http://www.activesw.com/people/steve/qstat.
html in order to make check_game plugin
checking for fping... no
configure: WARNING: Get fping from http://www.fping.com in order to make check_
fping plugin
checking for ssh... /usr/bin/ssh
checking for mailq... /usr/bin/mailq
checking for qmail-qstat... /var/qmail/bin/qmail-qstat
checking for swap... no
checking for swapinfo... no
checking for lsps... no
checking for sys/stat.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for sys/swap.h... yes
checking whether swapctl is declared... no
checking for swaptbl_t... no
checking for swapent_t... no
checking for struct swapent.se_nblks... no
checking for /proc/meminfo... found /proc/meminfo
checking for dig... /usr/bin/dig
checking for apt-get... no
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... no
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for redhat spopen problem... okay
checking for working alloca.h... yes
checking for alloca... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking for sys/param.h... (cached) yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/fs_types.h usability... no
checking sys/fs_types.h presence... no
checking for sys/fs_types.h... no
checking for sys/socket.h... (cached) yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking whether system is Windows or MSDOS... no
checking whether // is distinct from /... no
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking for C/C++ restrict keyword... __restrict
checking for IPv4 sockets... yes
checking for IPv6 sockets... yes
checking for inline... inline
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for getopt_long_only... yes
checking whether optreset is declared... no
checking for working GNU getopt function... yes
checking whether getenv is declared... yes
checking for mbstate_t... yes
checking whether mbrtowc and mbstate_t are properly declared... yes
checking whether <limits.h> defines MIN and MAX... no
checking whether <sys/param.h> defines MIN and MAX... yes
checking for nl_langinfo and CODESET... yes
checking for iswctype... yes
checking for mbrtowc... yes
checking for mempcpy... yes
checking for wcrtomb... yes
checking for wcscoll... yes
checking for pipe... yes
checking for iswcntrl... yes
checking for wcwidth... yes
checking for ssize_t... yes
checking whether snprintf is declared... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for long long int... yes
checking for unsigned long long int... yes
checking whether strdup is declared... yes
checking whether strndup is declared... yes
checking whether strnlen is declared... yes
checking for EOVERFLOW... yes
checking for long double... yes
checking for wchar_t... yes
checking for wint_t... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for intmax_t... yes
checking whether vsnprintf is declared... yes
checking for alloca as a compiler built-in... yes
checking whether // is distinct from /... (cached) no
checking for error_at_line... (cached) yes
checking for sys/mount.h... yes
configure: checking how to get file system space usage
checking for statvfs function (SVR4)... no
checking for 3-argument statfs function (DEC OSF/1)... no
checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... yes
checking dustat.h usability... no
checking dustat.h presence... no
checking for dustat.h... no
checking sys/fs/s5param.h usability... no
checking sys/fs/s5param.h presence... no
checking for sys/fs/s5param.h... no
checking sys/filsys.h usability... no
checking sys/filsys.h presence... no
checking for sys/filsys.h... no
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking for statfs that truncates block counts... no
configure: checking how to do getaddrinfo, freeaddrinfo and getnameinfo
checking for library containing getaddrinfo... none required
checking for getaddrinfo... yes
checking for gai_strerror... yes
checking for library containing gethostbyname... none required
checking for library containing getservbyname... none required
checking for gethostbyname... yes
checking whether getaddrinfo is declared... yes
checking whether freeaddrinfo is declared... yes
checking whether gai_strerror is declared... yes
checking whether getnameinfo is declared... yes
checking for struct addrinfo... yes
checking for gethostname... yes
checking for getloadavg... yes
checking for pstat_getdynamic... no
checking for kstat_open in -lkstat... no
checking for getloadavg... yes
checking whether getloadavg requires setgid... no
checking for inet_ntop... yes
checking whether inet_ntop is declared... yes
checking whether the compiler generally respects inline... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for memchr... yes
checking for listmntent... no
checking for getmntinfo... no
checking for sys/ucred.h... no
checking for sys/mount.h... (cached) yes
checking mntent.h usability... yes
checking mntent.h presence... yes
checking for mntent.h... yes
checking for sys/fs_types.h... (cached) no
checking for struct fsstat.f_fstypename... no
checking for library containing getmntent... none required
checking for getmntent... yes
checking for listmntent of Cray/Unicos-9... no
checking for mntctl function and struct vmount... no
checking for one-argument getmntent function... yes
checking sys/mntent.h usability... no
checking sys/mntent.h presence... no
checking for sys/mntent.h... no
checking for struct statfs.f_fstypename... no
checking for working re_compile_pattern... no
checking whether isblank is declared... yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for snprintf... yes
checking for socklen_t... yes
checking for ssize_t... (cached) yes
checking absolute name of <stdint.h>... ///usr/include/stdint.h
checking whether stdint.h conforms to C99... no
checking sys/inttypes.h usability... no
checking sys/inttypes.h presence... no
checking for sys/inttypes.h... no
checking sys/bitypes.h usability... yes
checking sys/bitypes.h presence... yes
checking for sys/bitypes.h... yes
checking for bit size of ptrdiff_t... 32
checking for bit size of sig_atomic_t... 32
checking for bit size of size_t... 32
checking for bit size of wchar_t... 32
checking for bit size of wint_t... 32
checking whether sig_atomic_t is signed... yes
checking whether wchar_t is signed... yes
checking whether wint_t is signed... no
checking for ptrdiff_t integer literal suffix... 
checking for sig_atomic_t integer literal suffix... 
checking for size_t integer literal suffix... u
checking for wchar_t integer literal suffix... l
checking for wint_t integer literal suffix... u
checking for strncasecmp... yes
checking whether strncasecmp is declared... yes
checking for strdup... (cached) yes
checking for working strndup... yes
checking for working strnlen... yes
checking for unistd.h... (cached) yes
checking absolute name of <unistd.h>... ///usr/include/unistd.h
checking for vasnprintf... no
checking for ptrdiff_t... yes
checking for snprintf... (cached) yes
checking for wcslen... yes
checking for vasprintf... yes
checking for vsnprintf... yes
checking whether <wchar.h> is standalone... yes
checking absolute name of <wctype.h>... ///usr/include/wctype.h
checking whether wcwidth is declared... yes
checking for stdint.h... (cached) yes
configure: creating ./config.status
config.status: creating gl/Makefile
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating plugins/Makefile
config.status: creating lib/tests/Makefile
config.status: creating plugins-root/Makefile
config.status: creating plugins-scripts/Makefile
config.status: creating plugins-scripts/subst
config.status: creating plugins-scripts/utils.pm
config.status: creating plugins-scripts/utils.sh
config.status: creating perlmods/Makefile
config.status: creating command.cfg
config.status: creating test.pl
config.status: creating pkg/solaris/pkginfo
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
            --with-apt-get-command: 
              --with-ping6-command: 
               --with-ping-command: /bin/ping -n -U -w %d -c %d %s
                       --with-ipv6: yes
                      --with-mysql: /usr/bin/mysql_config
                    --with-openssl: yes
                     --with-gnutls: no
                       --with-perl: /usr/bin/perl
             --enable-perl-modules: no
                     --with-cgiurl: /nagios/cgi-bin
               --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin
root@jupiter:~/nagios-plugins-1.4.10 # 
  • いくつかワーニングがでている.
    • radius・・・認証系.今回は対象外なので,放置.
    • lmstat・・・flexlm,ソフトウェアライセンス管理システム.今回は対象外なので放置.
    • qstat・・・check_game? ログにでているドメインが売りに出されているので,詳細不明.対象外.
    • fping・・・pingが認識されているので,OKとする.
  • makeを行う.
root@jupiter:~/nagios-plugins-1.4.10 # make
make  all-recursive
make[1]: Entering directory `/root/nagios-plugins-1.4.10'
Making all in gl
make[2]: Entering directory `/root/nagios-plugins-1.4.10/gl'
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; ¥
  cat ./alloca_.h; ¥
} > alloca.h-t
mv -f alloca.h-t alloca.h
rm -f stdint.h-t stdint.h
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; ¥
  sed -e 's/@''HAVE_STDINT_H''@/1/g' ¥
      -e 's|@''ABSOLUTE_STDINT_H''@|"///usr/include/stdint.h"|g' ¥
      -e 's/@''HAVE_SYS_TYPES_H''@/1/g' ¥
      -e 's/@''HAVE_INTTYPES_H''@/1/g' ¥
      -e 's/@''HAVE_SYS_INTTYPES_H''@/0/g' ¥
      -e 's/@''HAVE_SYS_BITYPES_H''@/1/g' ¥
      -e 's/@''HAVE_LONG_LONG_INT''@/1/g' ¥
      -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/1/g' ¥
      -e 's/@''BITSIZEOF_PTRDIFF_T''@/32/g' ¥
      -e 's/@''PTRDIFF_T_SUFFIX''@//g' ¥
      -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/32/g' ¥
      -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/1/g' ¥
      -e 's/@''SIG_ATOMIC_T_SUFFIX''@//g' ¥
      -e 's/@''BITSIZEOF_SIZE_T''@/32/g' ¥
      -e 's/@''SIZE_T_SUFFIX''@/u/g' ¥
      -e 's/@''BITSIZEOF_WCHAR_T''@/32/g' ¥
      -e 's/@''HAVE_SIGNED_WCHAR_T''@/1/g' ¥
      -e 's/@''WCHAR_T_SUFFIX''@/l/g' ¥
      -e 's/@''BITSIZEOF_WINT_T''@/32/g' ¥
      -e 's/@''HAVE_SIGNED_WINT_T''@/0/g' ¥
      -e 's/@''WINT_T_SUFFIX''@/u/g' ¥
      < ./stdint_.h; ¥
} > stdint.h-t
mv stdint.h-t stdint.h
make  all-am
make[3]: Entering directory `/root/nagios-plugins-1.4.10/gl'
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT full-read.o -MD -MP -MF ".deps/full-read.Tpo" -c -o full-read.o full-read.c; 
¥
then mv -f ".deps/full-read.Tpo" ".deps/full-read.Po"; else rm -f ".deps/full-
read.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT full-write.o -MD -MP -MF ".deps/full-write.Tpo" -c -o full-write.o full-write.
c; ¥
then mv -f ".deps/full-write.Tpo" ".deps/full-write.Po"; else rm -f ".deps/full-
write.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT strnlen1.o -MD -MP -MF ".deps/strnlen1.Tpo" -c -o strnlen1.o strnlen1.c; ¥
then mv -f ".deps/strnlen1.Tpo" ".deps/strnlen1.Po"; else rm -f ".deps/strnlen1.
Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT xalloc-die.o -MD -MP -MF ".deps/xalloc-die.Tpo" -c -o xalloc-die.o xalloc-die.
c; ¥
then mv -f ".deps/xalloc-die.Tpo" ".deps/xalloc-die.Po"; else rm -f ".deps/
xalloc-die.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT xstrndup.o -MD -MP -MF ".deps/xstrndup.Tpo" -c -o xstrndup.o xstrndup.c; ¥
then mv -f ".deps/xstrndup.Tpo" ".deps/xstrndup.Po"; else rm -f ".deps/xstrndup.
Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT asnprintf.o -MD -MP -MF ".deps/asnprintf.Tpo" -c -o asnprintf.o asnprintf.c; 
¥
then mv -f ".deps/asnprintf.Tpo" ".deps/asnprintf.Po"; else rm -f ".deps/
asnprintf.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT basename.o -MD -MP -MF ".deps/basename.Tpo" -c -o basename.o basename.c; ¥
then mv -f ".deps/basename.Tpo" ".deps/basename.Po"; else rm -f ".deps/basename.
Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT c-strtod.o -MD -MP -MF ".deps/c-strtod.Tpo" -c -o c-strtod.o c-strtod.c; ¥
then mv -f ".deps/c-strtod.Tpo" ".deps/c-strtod.Po"; else rm -f ".deps/c-strtod.
Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT cloexec.o -MD -MP -MF ".deps/cloexec.Tpo" -c -o cloexec.o cloexec.c; ¥
then mv -f ".deps/cloexec.Tpo" ".deps/cloexec.Po"; else rm -f ".deps/cloexec.Tpo
"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT creat-safer.o -MD -MP -MF ".deps/creat-safer.Tpo" -c -o creat-safer.o creat-
safer.c; ¥
then mv -f ".deps/creat-safer.Tpo" ".deps/creat-safer.Po"; else rm -f ".deps/
creat-safer.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT dirname.o -MD -MP -MF ".deps/dirname.Tpo" -c -o dirname.o dirname.c; ¥
then mv -f ".deps/dirname.Tpo" ".deps/dirname.Po"; else rm -f ".deps/dirname.Tpo
"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT dup-safer.o -MD -MP -MF ".deps/dup-safer.Tpo" -c -o dup-safer.o dup-safer.c; 
¥
then mv -f ".deps/dup-safer.Tpo" ".deps/dup-safer.Po"; else rm -f ".deps/dup-
safer.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT exitfail.o -MD -MP -MF ".deps/exitfail.Tpo" -c -o exitfail.o exitfail.c; ¥
then mv -f ".deps/exitfail.Tpo" ".deps/exitfail.Po"; else rm -f ".deps/exitfail.
Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT fd-safer.o -MD -MP -MF ".deps/fd-safer.Tpo" -c -o fd-safer.o fd-safer.c; ¥
then mv -f ".deps/fd-safer.Tpo" ".deps/fd-safer.Po"; else rm -f ".deps/fd-safer.
Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT fsusage.o -MD -MP -MF ".deps/fsusage.Tpo" -c -o fsusage.o fsusage.c; ¥
then mv -f ".deps/fsusage.Tpo" ".deps/fsusage.Po"; else rm -f ".deps/fsusage.Tpo
"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT mbchar.o -MD -MP -MF ".deps/mbchar.Tpo" -c -o mbchar.o mbchar.c; ¥
then mv -f ".deps/mbchar.Tpo" ".deps/mbchar.Po"; else rm -f ".deps/mbchar.Tpo"; 
exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT mountlist.o -MD -MP -MF ".deps/mountlist.Tpo" -c -o mountlist.o mountlist.c; 
¥
then mv -f ".deps/mountlist.Tpo" ".deps/mountlist.Po"; else rm -f ".deps/
mountlist.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT open-safer.o -MD -MP -MF ".deps/open-safer.Tpo" -c -o open-safer.o open-safer.
c; ¥
then mv -f ".deps/open-safer.Tpo" ".deps/open-safer.Po"; else rm -f ".deps/open-
safer.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT pipe-safer.o -MD -MP -MF ".deps/pipe-safer.Tpo" -c -o pipe-safer.o pipe-safer.
c; ¥
then mv -f ".deps/pipe-safer.Tpo" ".deps/pipe-safer.Po"; else rm -f ".deps/pipe-
safer.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT printf-args.o -MD -MP -MF ".deps/printf-args.Tpo" -c -o printf-args.o printf-
args.c; ¥
then mv -f ".deps/printf-args.Tpo" ".deps/printf-args.Po"; else rm -f ".deps/
printf-args.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT printf-parse.o -MD -MP -MF ".deps/printf-parse.Tpo" -c -o printf-parse.o 
printf-parse.c; ¥
then mv -f ".deps/printf-parse.Tpo" ".deps/printf-parse.Po"; else rm -f ".deps/
printf-parse.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT regex.o -MD -MP -MF ".deps/regex.Tpo" -c -o regex.o regex.c; ¥
then mv -f ".deps/regex.Tpo" ".deps/regex.Po"; else rm -f ".deps/regex.Tpo"; 
exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT safe-read.o -MD -MP -MF ".deps/safe-read.Tpo" -c -o safe-read.o safe-read.c; 
¥
then mv -f ".deps/safe-read.Tpo" ".deps/safe-read.Po"; else rm -f ".deps/safe-
read.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT safe-write.o -MD -MP -MF ".deps/safe-write.Tpo" -c -o safe-write.o safe-write.
c; ¥
then mv -f ".deps/safe-write.Tpo" ".deps/safe-write.Po"; else rm -f ".deps/safe-
write.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT strcasecmp.o -MD -MP -MF ".deps/strcasecmp.Tpo" -c -o strcasecmp.o strcasecmp.
c; ¥
then mv -f ".deps/strcasecmp.Tpo" ".deps/strcasecmp.Po"; else rm -f ".deps/
strcasecmp.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT stripslash.o -MD -MP -MF ".deps/stripslash.Tpo" -c -o stripslash.o stripslash.
c; ¥
then mv -f ".deps/stripslash.Tpo" ".deps/stripslash.Po"; else rm -f ".deps/
stripslash.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT vasnprintf.o -MD -MP -MF ".deps/vasnprintf.Tpo" -c -o vasnprintf.o vasnprintf.
c; ¥
then mv -f ".deps/vasnprintf.Tpo" ".deps/vasnprintf.Po"; else rm -f ".deps/
vasnprintf.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/kerberos/include  -g -O2 -
MT xmalloc.o -MD -MP -MF ".deps/xmalloc.Tpo" -c -o xmalloc.o xmalloc.c; ¥
then mv -f ".deps/xmalloc.Tpo" ".deps/xmalloc.Po"; else rm -f ".deps/xmalloc.Tpo
"; exit 1; fi
rm -f libgnu.a
ar cru libgnu.a full-read.o full-write.o strnlen1.o xalloc-die.o xstrndup.o 
asnprintf.o basename.o c-strtod.o cloexec.o creat-safer.o dirname.o dup-safer.o 
exitfail.o fd-safer.o fsusage.o mbchar.o mountlist.o open-safer.o pipe-safer.o 
printf-args.o printf-parse.o regex.o safe-read.o safe-write.o strcasecmp.o 
stripslash.o vasnprintf.o xmalloc.o 
ranlib libgnu.a
make[3]: Leaving directory `/root/nagios-plugins-1.4.10/gl'
make[2]: Leaving directory `/root/nagios-plugins-1.4.10/gl'
Making all in lib
make[2]: Entering directory `/root/nagios-plugins-1.4.10/lib'
Making all in tests
make[3]: Entering directory `/root/nagios-plugins-1.4.10/lib/tests'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/nagios-plugins-1.4.10/lib/tests'
make[3]: Entering directory `/root/nagios-plugins-1.4.10/lib'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../gl -I../intl -I../plugins  -I/usr/
kerberos/include  -g -O2 -MT utils_base.o -MD -MP -MF ".deps/utils_base.Tpo" -c 
-o utils_base.o utils_base.c; ¥
then mv -f ".deps/utils_base.Tpo" ".deps/utils_base.Po"; else rm -f ".deps/utils
_base.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../gl -I../intl -I../plugins  -I/usr/
kerberos/include  -g -O2 -MT utils_disk.o -MD -MP -MF ".deps/utils_disk.Tpo" -c 
-o utils_disk.o utils_disk.c; ¥
then mv -f ".deps/utils_disk.Tpo" ".deps/utils_disk.Po"; else rm -f ".deps/utils
_disk.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../gl -I../intl -I../plugins  -I/usr/
kerberos/include  -g -O2 -MT utils_tcp.o -MD -MP -MF ".deps/utils_tcp.Tpo" -c -o 
utils_tcp.o utils_tcp.c; ¥
then mv -f ".deps/utils_tcp.Tpo" ".deps/utils_tcp.Po"; else rm -f ".deps/utils_
tcp.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../gl -I../intl -I../plugins  -I/usr/
kerberos/include  -g -O2 -MT utils_cmd.o -MD -MP -MF ".deps/utils_cmd.Tpo" -c -o 
utils_cmd.o utils_cmd.c; ¥
then mv -f ".deps/utils_cmd.Tpo" ".deps/utils_cmd.Po"; else rm -f ".deps/utils_
cmd.Tpo"; exit 1; fi
utils_cmd.c:91: warning: `__nonnull__' attribute directive ignored
utils_cmd.c:94: warning: `__nonnull__' attribute directive ignored
rm -f libnagiosplug.a
ar cru libnagiosplug.a utils_base.o utils_disk.o utils_tcp.o utils_cmd.o 
ranlib libnagiosplug.a
make[3]: Leaving directory `/root/nagios-plugins-1.4.10/lib'
make[2]: Leaving directory `/root/nagios-plugins-1.4.10/lib'
Making all in plugins
make[2]: Entering directory `/root/nagios-plugins-1.4.10/plugins'
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_apt.o -MD -MP -MF ".deps/check_apt.Tpo
" -c -o check_apt.o check_apt.c; ¥
then mv -f ".deps/check_apt.Tpo" ".deps/check_apt.Po"; else rm -f ".deps/check_
apt.Tpo"; exit 1; fi
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT utils.o -MD -MP -MF ".deps/utils.Tpo" -c -o 
utils.o utils.c; ¥
then mv -f ".deps/utils.Tpo" ".deps/utils.Po"; else rm -f ".deps/utils.Tpo"; 
exit 1; fi
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT runcmd.o -MD -MP -MF ".deps/runcmd.Tpo" -c -
o runcmd.o runcmd.c; ¥
then mv -f ".deps/runcmd.Tpo" ".deps/runcmd.Po"; else rm -f ".deps/runcmd.Tpo"; 
exit 1; fi
runcmd.c:87: warning: `__nonnull__' attribute directive ignored
runcmd.c:90: warning: `__nonnull__' attribute directive ignored
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_apt  check_apt.
o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a runcmd.o 
mkdir .libs
gcc -g -O2 -o check_apt check_apt.o utils.o runcmd.o  -L/root/nagios-plugins-1.4.
10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_cluster.o -MD -MP -MF ".deps/check_
cluster.Tpo" -c -o check_cluster.o check_cluster.c; ¥
then mv -f ".deps/check_cluster.Tpo" ".deps/check_cluster.Po"; else rm -f ".deps
/check_cluster.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_cluster  check
_cluster.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a 
gcc -g -O2 -o check_cluster check_cluster.o utils.o  -L/root/nagios-plugins-1.4.
10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_disk.o -MD -MP -MF ".deps/check_disk.
Tpo" -c -o check_disk.o check_disk.c; ¥
then mv -f ".deps/check_disk.Tpo" ".deps/check_disk.Po"; else rm -f ".deps/check
_disk.Tpo"; exit 1; fi
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT popen.o -MD -MP -MF ".deps/popen.Tpo" -c -o 
popen.o popen.c; ¥
then mv -f ".deps/popen.Tpo" ".deps/popen.Po"; else rm -f ".deps/popen.Tpo"; 
exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_disk  check_
disk.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a popen.o 
gcc -g -O2 -o check_disk check_disk.o utils.o popen.o  -L/root/nagios-plugins-1.
4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_dummy.o -MD -MP -MF ".deps/check_dummy.
Tpo" -c -o check_dummy.o check_dummy.c; ¥
then mv -f ".deps/check_dummy.Tpo" ".deps/check_dummy.Po"; else rm -f ".deps/
check_dummy.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_dummy  check_
dummy.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a 
gcc -g -O2 -o check_dummy check_dummy.o utils.o  -L/root/nagios-plugins-1.4.10/
plugins ../lib/libnagiosplug.a ../gl/libgnu.a
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_http.o -MD -MP -MF ".deps/check_http.
Tpo" -c -o check_http.o check_http.c; ¥
then mv -f ".deps/check_http.Tpo" ".deps/check_http.Po"; else rm -f ".deps/check
_http.Tpo"; exit 1; fi
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT sslutils.o -MD -MP -MF ".deps/sslutils.Tpo" 
-c -o sslutils.o sslutils.c; ¥
then mv -f ".deps/sslutils.Tpo" ".deps/sslutils.Po"; else rm -f ".deps/sslutils.
Tpo"; exit 1; fi
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT netutils.o -MD -MP -MF ".deps/netutils.Tpo" 
-c -o netutils.o netutils.c; ¥
then mv -f ".deps/netutils.Tpo" ".deps/netutils.Po"; else rm -f ".deps/netutils.
Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_http  check_
http.o sslutils.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -
lnsl -lresolv -lssl -lcrypto 
gcc -g -O2 -o check_http check_http.o sslutils.o netutils.o utils.o  -L/root/
nagios-plugins-1.4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -
lresolv -lssl -lcrypto
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_load.o -MD -MP -MF ".deps/check_load.
Tpo" -c -o check_load.o check_load.c; ¥
then mv -f ".deps/check_load.Tpo" ".deps/check_load.Po"; else rm -f ".deps/check
_load.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_load  check_
load.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a popen.o 
gcc -g -O2 -o check_load check_load.o utils.o popen.o  -L/root/nagios-plugins-1.
4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_mrtg.o -MD -MP -MF ".deps/check_mrtg.
Tpo" -c -o check_mrtg.o check_mrtg.c; ¥
then mv -f ".deps/check_mrtg.Tpo" ".deps/check_mrtg.Po"; else rm -f ".deps/check
_mrtg.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_mrtg  check_
mrtg.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a 
gcc -g -O2 -o check_mrtg check_mrtg.o utils.o  -L/root/nagios-plugins-1.4.10/
plugins ../lib/libnagiosplug.a ../gl/libgnu.a
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_mrtgtraf.o -MD -MP -MF ".deps/check_
mrtgtraf.Tpo" -c -o check_mrtgtraf.o check_mrtgtraf.c; ¥
then mv -f ".deps/check_mrtgtraf.Tpo" ".deps/check_mrtgtraf.Po"; else rm -f ".
deps/check_mrtgtraf.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_mrtgtraf  
check_mrtgtraf.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a 
gcc -g -O2 -o check_mrtgtraf check_mrtgtraf.o utils.o  -L/root/nagios-plugins-1.
4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_ntp.o -MD -MP -MF ".deps/check_ntp.Tpo
" -c -o check_ntp.o check_ntp.c; ¥
then mv -f ".deps/check_ntp.Tpo" ".deps/check_ntp.Po"; else rm -f ".deps/check_
ntp.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_ntp  check_ntp.
o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -lresolv -lm 
gcc -g -O2 -o check_ntp check_ntp.o netutils.o utils.o  -L/root/nagios-plugins-1.
4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -lm
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_nwstat.o -MD -MP -MF ".deps/check_
nwstat.Tpo" -c -o check_nwstat.o check_nwstat.c; ¥
then mv -f ".deps/check_nwstat.Tpo" ".deps/check_nwstat.Po"; else rm -f ".deps/
check_nwstat.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_nwstat  check_
nwstat.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -
lresolv 
gcc -g -O2 -o check_nwstat check_nwstat.o netutils.o utils.o  -L/root/nagios-
plugins-1.4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_overcr.o -MD -MP -MF ".deps/check_
overcr.Tpo" -c -o check_overcr.o check_overcr.c; ¥
then mv -f ".deps/check_overcr.Tpo" ".deps/check_overcr.Po"; else rm -f ".deps/
check_overcr.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_overcr  check_
overcr.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -
lresolv 
gcc -g -O2 -o check_overcr check_overcr.o netutils.o utils.o  -L/root/nagios-
plugins-1.4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_ping.o -MD -MP -MF ".deps/check_ping.
Tpo" -c -o check_ping.o check_ping.c; ¥
then mv -f ".deps/check_ping.Tpo" ".deps/check_ping.Po"; else rm -f ".deps/check
_ping.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_ping  check_
ping.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -lresolv 
popen.o 
gcc -g -O2 -o check_ping check_ping.o netutils.o utils.o popen.o  -L/root/nagios
-plugins-1.4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_real.o -MD -MP -MF ".deps/check_real.
Tpo" -c -o check_real.o check_real.c; ¥
then mv -f ".deps/check_real.Tpo" ".deps/check_real.Po"; else rm -f ".deps/check
_real.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_real  check_
real.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -lresolv 
gcc -g -O2 -o check_real check_real.o netutils.o utils.o  -L/root/nagios-plugins
-1.4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_smtp.o -MD -MP -MF ".deps/check_smtp.
Tpo" -c -o check_smtp.o check_smtp.c; ¥
then mv -f ".deps/check_smtp.Tpo" ".deps/check_smtp.Po"; else rm -f ".deps/check
_smtp.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_smtp  check_
smtp.o sslutils.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -
lnsl -lresolv -lssl -lcrypto 
gcc -g -O2 -o check_smtp check_smtp.o sslutils.o netutils.o utils.o  -L/root/
nagios-plugins-1.4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -
lresolv -lssl -lcrypto
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_ssh.o -MD -MP -MF ".deps/check_ssh.Tpo
" -c -o check_ssh.o check_ssh.c; ¥
then mv -f ".deps/check_ssh.Tpo" ".deps/check_ssh.Po"; else rm -f ".deps/check_
ssh.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_ssh  check_ssh.
o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -lresolv 
gcc -g -O2 -o check_ssh check_ssh.o netutils.o utils.o  -L/root/nagios-plugins-1.
4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_tcp.o -MD -MP -MF ".deps/check_tcp.Tpo
" -c -o check_tcp.o check_tcp.c; ¥
then mv -f ".deps/check_tcp.Tpo" ".deps/check_tcp.Po"; else rm -f ".deps/check_
tcp.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_tcp  check_tcp.
o sslutils.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -
lresolv -lssl -lcrypto 
gcc -g -O2 -o check_tcp check_tcp.o sslutils.o netutils.o utils.o  -L/root/
nagios-plugins-1.4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -
lresolv -lssl -lcrypto
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_time.o -MD -MP -MF ".deps/check_time.
Tpo" -c -o check_time.o check_time.c; ¥
then mv -f ".deps/check_time.Tpo" ".deps/check_time.Po"; else rm -f ".deps/check
_time.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_time  check_
time.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -lresolv 
gcc -g -O2 -o check_time check_time.o netutils.o utils.o  -L/root/nagios-plugins
-1.4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_ups.o -MD -MP -MF ".deps/check_ups.Tpo
" -c -o check_ups.o check_ups.c; ¥
then mv -f ".deps/check_ups.Tpo" ".deps/check_ups.Po"; else rm -f ".deps/check_
ups.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_ups  check_ups.
o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -lresolv 
gcc -g -O2 -o check_ups check_ups.o netutils.o utils.o  -L/root/nagios-plugins-1.
4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_users.o -MD -MP -MF ".deps/check_users.
Tpo" -c -o check_users.o check_users.c; ¥
then mv -f ".deps/check_users.Tpo" ".deps/check_users.Po"; else rm -f ".deps/
check_users.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_users  check_
users.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a popen.o 
gcc -g -O2 -o check_users check_users.o utils.o popen.o  -L/root/nagios-plugins-
1.4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT negate.o -MD -MP -MF ".deps/negate.Tpo" -c -
o negate.o negate.c; ¥
then mv -f ".deps/negate.Tpo" ".deps/negate.Po"; else rm -f ".deps/negate.Tpo"; 
exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o negate  negate.o 
utils.o ../lib/libnagiosplug.a ../gl/libgnu.a 
gcc -g -O2 -o negate negate.o utils.o  -L/root/nagios-plugins-1.4.10/plugins ../
lib/libnagiosplug.a ../gl/libgnu.a
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT urlize.o -MD -MP -MF ".deps/urlize.Tpo" -c -
o urlize.o urlize.c; ¥
then mv -f ".deps/urlize.Tpo" ".deps/urlize.Po"; else rm -f ".deps/urlize.Tpo"; 
exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o urlize  urlize.o 
utils.o ../lib/libnagiosplug.a ../gl/libgnu.a popen.o 
gcc -g -O2 -o urlize urlize.o utils.o popen.o  -L/root/nagios-plugins-1.4.10/
plugins ../lib/libnagiosplug.a ../gl/libgnu.a
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_pgsql.o -MD -MP -MF ".deps/check_pgsql.
Tpo" -c -o check_pgsql.o check_pgsql.c; ¥
then mv -f ".deps/check_pgsql.Tpo" ".deps/check_pgsql.Po"; else rm -f ".deps/
check_pgsql.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_pgsql  check_
pgsql.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -lresolv 
-L/lib -lpq -lcrypt 
gcc -g -O2 -o check_pgsql check_pgsql.o netutils.o utils.o  -L/root/nagios-
plugins-1.4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -L/
lib -lpq -lcrypt
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_ldap.o -MD -MP -MF ".deps/check_ldap.
Tpo" -c -o check_ldap.o check_ldap.c; ¥
then mv -f ".deps/check_ldap.Tpo" ".deps/check_ldap.Po"; else rm -f ".deps/check
_ldap.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_ldap  check_
ldap.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -lresolv 
-lldap -llber 
gcc -g -O2 -o check_ldap check_ldap.o netutils.o utils.o  -L/root/nagios-plugins
-1.4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -lldap -
llber
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_ide_smart.o -MD -MP -MF ".deps/check_
ide_smart.Tpo" -c -o check_ide_smart.o check_ide_smart.c; ¥
then mv -f ".deps/check_ide_smart.Tpo" ".deps/check_ide_smart.Po"; else rm -f ".
deps/check_ide_smart.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_ide_smart  
check_ide_smart.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a 
gcc -g -O2 -o check_ide_smart check_ide_smart.o utils.o  -L/root/nagios-plugins-
1.4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include 
-I/usr/include/mysql -I/usr/kerberos/include -I/usr/include/mysql -g -pipe -
march=i386 -mcpu=i686 -g -O2 -MT check_mysql-check_mysql.o -MD -MP -MF ".deps/
check_mysql-check_mysql.Tpo" -c -o check_mysql-check_mysql.o `test -f 'check_
mysql.c' || echo './'`check_mysql.c; ¥
then mv -f ".deps/check_mysql-check_mysql.Tpo" ".deps/check_mysql-check_mysql.Po
"; else rm -f ".deps/check_mysql-check_mysql.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_mysql  check_
mysql-check_mysql.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -
lnsl -lresolv -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm 
gcc -g -O2 -o check_mysql check_mysql-check_mysql.o netutils.o utils.o  -L/root/
nagios-plugins-1.4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lresolv -L/
usr/lib/mysql /usr/lib/mysql/libmysqlclient.a -lz -lcrypt -lnsl -lm
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include 
-I/usr/include/mysql -I/usr/kerberos/include -I/usr/include/mysql -g -pipe -
march=i386 -mcpu=i686 -g -O2 -MT check_mysql_query-check_mysql_query.o -MD -MP -
MF ".deps/check_mysql_query-check_mysql_query.Tpo" -c -o check_mysql_query-check
_mysql_query.o `test -f 'check_mysql_query.c' || echo './'`check_mysql_query.c; 
¥
then mv -f ".deps/check_mysql_query-check_mysql_query.Tpo" ".deps/check_mysql_
query-check_mysql_query.Po"; else rm -f ".deps/check_mysql_query-check_mysql_
query.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_mysql_query  
check_mysql_query-check_mysql_query.o netutils.o utils.o ../lib/libnagiosplug.a .
./gl/libgnu.a  -lnsl -lresolv -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -
lm 
gcc -g -O2 -o check_mysql_query check_mysql_query-check_mysql_query.o netutils.o 
utils.o  -L/root/nagios-plugins-1.4.10/plugins ../lib/libnagiosplug.a ../gl/
libgnu.a -lresolv -L/usr/lib/mysql /usr/lib/mysql/libmysqlclient.a -lz -lcrypt -
lnsl -lm
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_procs.o -MD -MP -MF ".deps/check_procs.
Tpo" -c -o check_procs.o check_procs.c; ¥
then mv -f ".deps/check_procs.Tpo" ".deps/check_procs.Po"; else rm -f ".deps/
check_procs.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_procs  check_
procs.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a popen.o 
gcc -g -O2 -o check_procs check_procs.o utils.o popen.o  -L/root/nagios-plugins-
1.4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_nagios.o -MD -MP -MF ".deps/check_
nagios.Tpo" -c -o check_nagios.o check_nagios.c; ¥
then mv -f ".deps/check_nagios.Tpo" ".deps/check_nagios.Po"; else rm -f ".deps/
check_nagios.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_nagios  check_
nagios.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a runcmd.o 
gcc -g -O2 -o check_nagios check_nagios.o utils.o runcmd.o  -L/root/nagios-
plugins-1.4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_dns.o -MD -MP -MF ".deps/check_dns.Tpo
" -c -o check_dns.o check_dns.c; ¥
then mv -f ".deps/check_dns.Tpo" ".deps/check_dns.Po"; else rm -f ".deps/check_
dns.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_dns  check_dns.
o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -lresolv 
runcmd.o 
gcc -g -O2 -o check_dns check_dns.o netutils.o utils.o runcmd.o  -L/root/nagios-
plugins-1.4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_hpjd.o -MD -MP -MF ".deps/check_hpjd.
Tpo" -c -o check_hpjd.o check_hpjd.c; ¥
then mv -f ".deps/check_hpjd.Tpo" ".deps/check_hpjd.Po"; else rm -f ".deps/check
_hpjd.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_hpjd  check_
hpjd.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -lresolv 
popen.o 
gcc -g -O2 -o check_hpjd check_hpjd.o netutils.o utils.o popen.o  -L/root/nagios
-plugins-1.4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_snmp.o -MD -MP -MF ".deps/check_snmp.
Tpo" -c -o check_snmp.o check_snmp.c; ¥
then mv -f ".deps/check_snmp.Tpo" ".deps/check_snmp.Po"; else rm -f ".deps/check
_snmp.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_snmp  check_
snmp.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a popen.o 
gcc -g -O2 -o check_snmp check_snmp.o utils.o popen.o  -L/root/nagios-plugins-1.
4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_fping.o -MD -MP -MF ".deps/check_fping.
Tpo" -c -o check_fping.o check_fping.c; ¥
then mv -f ".deps/check_fping.Tpo" ".deps/check_fping.Po"; else rm -f ".deps/
check_fping.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_fping  check_
fping.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -lresolv 
popen.o 
gcc -g -O2 -o check_fping check_fping.o netutils.o utils.o popen.o  -L/root/
nagios-plugins-1.4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -
lresolv
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_by_ssh.o -MD -MP -MF ".deps/check_by_
ssh.Tpo" -c -o check_by_ssh.o check_by_ssh.c; ¥
then mv -f ".deps/check_by_ssh.Tpo" ".deps/check_by_ssh.Po"; else rm -f ".deps/
check_by_ssh.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_by_ssh  check_
by_ssh.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -
lresolv runcmd.o 
gcc -g -O2 -o check_by_ssh check_by_ssh.o netutils.o utils.o runcmd.o  -L/root/
nagios-plugins-1.4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -
lresolv
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_swap.o -MD -MP -MF ".deps/check_swap.
Tpo" -c -o check_swap.o check_swap.c; ¥
then mv -f ".deps/check_swap.Tpo" ".deps/check_swap.Po"; else rm -f ".deps/check
_swap.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_swap  check_
swap.o -lm utils.o ../lib/libnagiosplug.a ../gl/libgnu.a popen.o 
gcc -g -O2 -o check_swap check_swap.o utils.o popen.o  -L/root/nagios-plugins-1.
4.10/plugins -lm ../lib/libnagiosplug.a ../gl/libgnu.a
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_dig.o -MD -MP -MF ".deps/check_dig.Tpo
" -c -o check_dig.o check_dig.c; ¥
then mv -f ".deps/check_dig.Tpo" ".deps/check_dig.Po"; else rm -f ".deps/check_
dig.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_dig  check_dig.
o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -lresolv 
runcmd.o  
gcc -g -O2 -o check_dig check_dig.o netutils.o utils.o runcmd.o  -L/root/nagios-
plugins-1.4.10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include  
-I/usr/kerberos/include  -g -O2 -MT check_nt.o -MD -MP -MF ".deps/check_nt.Tpo" 
-c -o check_nt.o check_nt.c; ¥
then mv -f ".deps/check_nt.Tpo" ".deps/check_nt.Po"; else rm -f ".deps/check_nt.
Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_nt  check_nt.o 
netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -lresolv  
gcc -g -O2 -o check_nt check_nt.o netutils.o utils.o  -L/root/nagios-plugins-1.4.
10/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv
rm -f check_ftp
ln -s check_tcp check_ftp
rm -f check_imap
ln -s check_tcp check_imap
rm -f check_nntp
ln -s check_tcp check_nntp
rm -f check_pop
ln -s check_tcp check_pop
rm -f check_udp
ln -s check_tcp check_udp
rm -f check_clamd
ln -s check_tcp check_clamd
rm -f check_simap
ln -s check_tcp check_simap
rm -f check_spop
ln -s check_tcp check_spop
rm -f check_jabber
ln -s check_tcp check_jabber
rm -f check_nntps
ln -s check_tcp check_nntps
rm -f check_ssmtp
ln -s check_tcp check_ssmtp
make[2]: Leaving directory `/root/nagios-plugins-1.4.10/plugins'
Making all in plugins-scripts
make[2]: Entering directory `/root/nagios-plugins-1.4.10/plugins-scripts'
gawk -f ./subst check_breeze.pl > check_breeze
chmod +x check_breeze
gawk -f ./subst check_disk_smb.pl > check_disk_smb
chmod +x check_disk_smb
gawk -f ./subst check_flexlm.pl > check_flexlm
chmod +x check_flexlm
gawk -f ./subst check_ircd.pl > check_ircd
chmod +x check_ircd
gawk -f ./subst check_log.sh > check_log
chmod +x check_log
gawk -f ./subst check_oracle.sh > check_oracle
chmod +x check_oracle
gawk -f ./subst check_rpc.pl > check_rpc
chmod +x check_rpc
gawk -f ./subst check_sensors.sh > check_sensors
chmod +x check_sensors
gawk -f ./subst check_wave.pl > check_wave
chmod +x check_wave
gawk -f ./subst check_ifstatus.pl > check_ifstatus
chmod +x check_ifstatus
gawk -f ./subst check_ifoperstatus.pl > check_ifoperstatus
chmod +x check_ifoperstatus
gawk -f ./subst check_mailq.pl > check_mailq
chmod +x check_mailq
gawk -f ./subst check_file_age.pl > check_file_age
chmod +x check_file_age
make[2]: Leaving directory `/root/nagios-plugins-1.4.10/plugins-scripts'
Making all in plugins-root
make[2]: Entering directory `/root/nagios-plugins-1.4.10/plugins-root'
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I../plugins -I/usr/include  -I/usr/kerberos/
include  -g -O2 -MT check_dhcp.o -MD -MP -MF ".deps/check_dhcp.Tpo" -c -o check_
dhcp.o check_dhcp.c; ¥
then mv -f ".deps/check_dhcp.Tpo" ".deps/check_dhcp.Po"; else rm -f ".deps/check
_dhcp.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_dhcp  check_
dhcp.o ../plugins/netutils.o ../plugins/utils.o ../lib/libnagiosplug.a ../gl/
libgnu.a  -lnsl -lresolv -lssl -lcrypto
mkdir .libs
gcc -g -O2 -o check_dhcp check_dhcp.o ../plugins/netutils.o ../plugins/utils.o  
-L/root/nagios-plugins-1.4.10/plugins-root ../lib/libnagiosplug.a ../gl/libgnu.a 
-lnsl -lresolv -lssl -lcrypto
if gcc -DLOCALEDIR=¥"/usr/local/nagios/share/locale¥" -DHAVE_CONFIG_H -I. -I. -I.
. -I.. -I../lib -I../gl -I../intl -I../plugins -I/usr/include  -I/usr/kerberos/
include  -g -O2 -MT check_icmp.o -MD -MP -MF ".deps/check_icmp.Tpo" -c -o check_
icmp.o check_icmp.c; ¥
then mv -f ".deps/check_icmp.Tpo" ".deps/check_icmp.Po"; else rm -f ".deps/check
_icmp.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_icmp  check_
icmp.o ../plugins/netutils.o ../plugins/utils.o ../lib/libnagiosplug.a ../gl/
libgnu.a  -lnsl -lresolv -lnsl -lresolv -lssl -lcrypto
gcc -g -O2 -o check_icmp check_icmp.o ../plugins/netutils.o ../plugins/utils.o  
-L/root/nagios-plugins-1.4.10/plugins-root ../lib/libnagiosplug.a ../gl/libgnu.a 
-lnsl -lresolv -lssl -lcrypto
make[2]: Leaving directory `/root/nagios-plugins-1.4.10/plugins-root'
Making all in po
make[2]: Entering directory `/root/nagios-plugins-1.4.10/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/nagios-plugins-1.4.10/po'
make[2]: Entering directory `/root/nagios-plugins-1.4.10'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/root/nagios-plugins-1.4.10'
make[1]: Leaving directory `/root/nagios-plugins-1.4.10'
root@jupiter:~/nagios-plugins-1.4.10 # 
  • 問題なく終了.
  • make installを実行する.
[1025]17:10:28 root@jupiter:~/nagios-plugins-1.4.10 # make check
Making check in gl
make[1]: Entering directory `/root/nagios-plugins-1.4.10/gl'
make  check-am
make[2]: Entering directory `/root/nagios-plugins-1.4.10/gl'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/root/nagios-plugins-1.4.10/gl'
make[1]: Leaving directory `/root/nagios-plugins-1.4.10/gl'
Making check in lib
make[1]: Entering directory `/root/nagios-plugins-1.4.10/lib'
Making check in tests
make[2]: Entering directory `/root/nagios-plugins-1.4.10/lib/tests'
make  
make[3]: Entering directory `/root/nagios-plugins-1.4.10/lib/tests'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/nagios-plugins-1.4.10/lib/tests'
make  check-TESTS
make[3]: Entering directory `/root/nagios-plugins-1.4.10/lib/tests'
make[3]: Leaving directory `/root/nagios-plugins-1.4.10/lib/tests'
make[2]: Leaving directory `/root/nagios-plugins-1.4.10/lib/tests'
make[2]: Entering directory `/root/nagios-plugins-1.4.10/lib'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/root/nagios-plugins-1.4.10/lib'
make[1]: Leaving directory `/root/nagios-plugins-1.4.10/lib'
Making check in plugins
make[1]: Entering directory `/root/nagios-plugins-1.4.10/plugins'
make  check-TESTS
make[2]: Entering directory `/root/nagios-plugins-1.4.10/plugins'
1..15
ok 1 - Exit OK if non-ok services are inside critical and warning ranges
ok 2 - Output contains the word 'service' (case insensitive)
ok 3 - Output contains the defined label 'LABEL' (case sensitive)
ok 4 - Exit WARNING if non-ok services are inside critical and outside warning ranges
ok 5 - Exit CRITICAL if non-ok services are inside critical and outside warning ranges
ok 6 - Exit OK if non-ok services are inside critical and warning (no ranges)
ok 7 - Exit WARNING if number of non-ok services exceed warning (no ranges)
ok 8 - Exit Critical if non-ok services exceed critical warning (no ranges)
ok 9 - Exit OK if non-ok hosts are inside critical and warning ranges
ok 10 - Output contains the word 'host' (case insensitive)
ok 11 - Exit WARNING if non-ok hosts are inside critical and outside warning ranges
ok 12 - Exit CRITICAL if non-ok hosts are inside critical and outside warning ranges
ok 13 - Exit OK if non-ok hosts are inside critical and warning (no ranges)
ok 14 - Exit WARNING if number of non-ok hosts exceed warning (no ranges)
ok 15 - Exit Critical if non-ok hosts exceed critical warning (no ranges)
PASS: t/check_cluster.t

Test Harness         : check_disk
Test Parameter       : NP_MOUNTPOINT_VALID
Brief Description    : Path to valid mountpoint
Enter value (or 'none') [/] => 
  • check_diskプラグインを使って,ハードディスクのチェックを行う.
  • 対象のマウントポイントを,次のように入力する.
Test Harness         : check_disk
Test Parameter       : NP_MOUNTPOINT_VALID
Brief Description    : Path to valid mountpoint
Enter value (or 'none') [/] => /


Test Harness         : check_disk
Test Parameter       : NP_MOUNTPOINT2_VALID
Brief Description    : Path to another valid mountpoint. Must be different from 1st one
Enter value (or 'none') [/var] => /var

1..78
ok 1 - Checking two mountpoints (must have at least 1% free in space and inodes)
not ok 2 - Got two mountpoints in output
#     Failed test (./t/check_disk.t at line 37)
#          got: 1
#     expected: 2
Cannot parse output: DISK OK - free space: / 9939 MB (60% inode=87%);| /=
6366MB;17007;17007;0;17179 at ./t/check_disk.t line 49, <STDIN> line 2.
# Looks like you planned 78 tests but only ran 2.
# Looks like your test died just after 2.
FAIL: t/check_disk.t
1..13
  • 1つめのマウントポイント(ここでは/)は,空き容量&空きiノードでOK.
  • 2つめのマウントポイント(ここでは/var)は,テスト失敗でNG.
  • 今回テストで使ったサーバは,次の通り.
ujpadmin@jupiter:~ # df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda3              17G  6.3G  9.8G  40% /
/dev/hda1              99M  9.1M   85M  10% /boot
none                  124M     0  124M   0% /dev/shm
/dev/hda2            1012M   33M  928M   4% /u01
ujpadmin@jupiter:~ # 
  • 次は,DNS.
Test Harness         : check_dns
Test Parameter       : NP_HOSTNAME_VALID
Brief Description    : A valid (known to DNS) hostname
Enter value (or 'none') [apple.com] => www.ujp.jp


Test Harness         : check_dns
Test Parameter       : NP_HOSTNAME_VALID_IP
Brief Description    : The IP address of the valid hostname www.ujp.jp
Enter value (or 'none') [17.254.3.183] => 203.141.135.20


Test Harness         : check_dns
Test Parameter       : NP_HOSTNAME_VALID_REVERSE ←逆引き
Brief Description    : The hostname of 203.141.135.20
Enter value (or 'none') [www.ujp.jp.] => www.ujp.jp


Test Harness         : check_dns
Test Parameter       : NP_HOSTNAME_INVALID
Brief Description    : An invalid (not known to DNS) hostname
Enter value (or 'none') [nosuchhost.altinity.com] => arenaidomain.ujp.jp ←存在しないFQDN


Test Harness         : check_dns
Test Parameter       : NP_DNS_SERVER
Brief Description    : A non default (remote) DNS server
Enter value (or 'none') [] => 210.172.nnn.16 ←使用するDNS

ok 1 - Found www.ujp.jp
ok 2 - Output OK
ok 3 - Critical threshold passed
ok 4 - Warning threshold passed
ok 5 - Invalid arenaidomain.ujp.jp
ok 6 - Found www.ujp.jp on 210.172.nnn.16
ok 7 - Output OK
ok 8 - Invalid arenaidomain.ujp.jp on 210.172.129.16
ok 9 - Got expected address
ok 10 - Got wrong address
ok 11 - Output OK
not ok 12 - Got expected fqdn
#     Failed test (./t/check_dns.t at line 77)
#          got: 2
#     expected: 0
not ok 13 - Output OK
#     Failed test (./t/check_dns.t at line 78)
#                   'DNS CRITICAL - expected 'www.ujp.jp.' but got 'ujp.jp.''
#     doesn't match '/DNS OK: [¥.0-9]+ seconds? response time/'
# Looks like you failed 2 tests of 13.
FAIL: t/check_dns.t
1..20
ok 1 - No args
ok 2 - Correct usage message
ok 3 - OK state returned
ok 4 - Says 'OK'
ok 5 - Still OK
ok 6 - Sample text okay
ok 7 - Warning okay
ok 8 - Says 'WARNING'
ok 9 - Still warning
ok 10 - optional text okay
ok 11 - Critical ok
ok 12 - Says 'CRITICAL'
ok 13 - Still critical
ok 14 - optional text okay
ok 15 - Unknown ok
ok 16 - Says 'UNKNOWN'
ok 17 - Still unknown
ok 18 - optional text okay
ok 19 - Invalid error code
ok 20 - With appropriate error message
PASS: t/check_dummy.t
1..4
  • 問題ない.
  • 次はfpingによるpingチェック.
# Running under perl version 5.008 for linux
# Current time local: Thu Oct 11 17:12:45 2007
# Current time GMT:   Thu Oct 11 08:12:45 2007
# Using Test.pm version 1.23

Test Harness         : check_fping
Test Parameter       : host_responsive
Environment Variable : NP_HOST_RESPONSIVE
Brief Description    : The hostname of system responsive to network requests
Enter value (or 'none') [localhost] => localhost


Test Harness         : check_fping
Test Parameter       : host_nonresponsive
Environment Variable : NP_HOST_NONRESPONSIVE
Brief Description    : The hostname of system not responsive to network requests
Enter value (or 'none') [10.0.0.1] => 10.0.0.1 ←現在のネットワークに存在しないIPアドレス


Test Harness         : check_fping
Test Parameter       : hostname_invalid
Environment Variable : NP_HOSTNAME_INVALID
Brief Description    : An invalid (not known to DNS) hostname
Enter value (or 'none') [nosuchhost] => arienai.ujp.jp ←存在しないFQDN

ok 1
ok 2
ok 3
ok 4
PASS: t/check_fping.t
1..4
  • 問題ない.
  • 次はFTP
# Running under perl version 5.008 for linux
# Current time local: Thu Oct 11 17:13:35 2007
# Current time GMT:   Thu Oct 11 08:13:35 2007
# Using Test.pm version 1.23

Test Harness         : check_ftp
Test Parameter       : host_tcp_ftp
Environment Variable : NP_HOST_TCP_FTP
Brief Description    : A host providing the FTP Service (an FTP server)
Enter value (or 'none') [localhost] => none

not ok 1
# Test 1 got: '2' (../NPTest.pm at line 273)
#   Expected: '0'
not ok 2
# Test 2 got: 'Connection refused' (../NPTest.pm at line 277)
#   Expected: qr{FTP OK -¥s+[0-9]?¥.?[0-9]+ second response time}
ok 3
ok 4
FAIL: t/check_ftp.t
1..5
  • テストするFTPサーバが無いので,noneとしてチェック不要としている.
  • 次は,hpのプリンタ.
Test Harness         : check_hpjd
Test Parameter       : NP_HOST_TCP_HPJD
Brief Description    : A host (usually a printer) providing the HP-JetDirect Services
Enter value (or 'none') [] => none

ok 1 # skip No HP JetDirect defined
ok 2 # skip No HP JetDirect defined
ok 3 - Host not responding
ok 4 - Output OK
ok 5 - Hostname invalid
PASS: t/check_hpjd.t
1..26
  • プリンタを持ってないので,対象外.
  • 次はHTTP.
Test Harness         : check_http
Test Parameter       : NP_HOST_TCP_HTTP
Brief Description    : A host providing the HTTP Service (a web server)
Enter value (or 'none') [localhost] => www.ujp.jp


Test Harness         : check_http
Test Parameter       : NP_INTERNET_ACCESS
Brief Description    : Is this system directly connected to the internet?
Enter value (or 'none') [yes] => yes ←インターネット経由で接続する. 

ok 1 - Webserver www.ujp.jp responded
ok 2 - Output OK
ok 3 - Got headers, delimited with ';'
ok 4 - Got headers with multiple -k options
ok 5 - Webserver 10.0.0.1 not responding
ok 6 - Output OK
ok 7 - Webserver arienai.ujp.jp not valid
ok 8 - Output OK
ok 9 - Got a reference to 'nagios'
ok 10 - Not got 'nAGiOs'
ok 11 - Error message says 'pattern not found'
ok 12 - But case insensitive doesn't mind 'nAGiOs'
ok 13 - Invert results work when found
ok 14 - Error message says 'pattern found'
ok 15 - And also when not found
ok 16 - Can read https for www.verisign.com
ok 17 - Checking certificate for www.verisign.com
ok 18 - Output OK
ok 19 - Old syntax for cert checking okay
ok 20 - Same output as new syntax
ok 21 - Updated syntax for cert checking okay
ok 22 - Same output as new syntax
ok 23 - --ssl option automatically added
ok 24 - Old syntax for cert checking still works
ok 25 - Can read https for www.e-paycobalt.com (uses AES certificate)
ok 26 - Redirection based on location is okay
PASS: t/check_http.t
1..7
  • 問題ない.
  • 次はIMAP.
Test Harness         : check_imap
Test Parameter       : host_tcp_smtp
Environment Variable : NP_HOST_TCP_SMTP
Brief Description    : A host providing an STMP Service (a mail server) ←SMTPの間違いだな.
Enter value (or 'none') [mailhost] => ujp.jp


Test Harness         : check_imap
Test Parameter       : host_tcp_imap
Environment Variable : NP_HOST_TCP_IMAP
Brief Description    : A host providing an IMAP Service (a mail server)
Enter value (or 'none') [ujp.jp] => ujp.jp ←IMAPサーバを指定

ok 1 - Contacted imap
ok 2 - Got right response
ok 3 - Check old parameter options
ok 4 - Get error with non reponsive host
ok 5 - Invalid hostname
ok 6 - Got warning with bad response
ok 7 - Got critical error with bad response
PASS: t/check_imap.t
1..10
  • 問題ない.
  • 次は,jabberというメッセンジャー.
Test Harness         : check_jabber
Test Parameter       : NP_HOST_TCP_JABBER
Brief Description    : A host providing the Jabber Service
Enter value (or 'none') [jabber.org] => none

ok 1 # skip No jabber server defined
ok 2 # skip No jabber server defined
ok 3 # skip No jabber server defined
ok 4 # skip No jabber server defined
ok 5 # skip No jabber server defined
ok 6 # skip No jabber server defined
ok 7 - Unresponsive host gives critical
ok 8
ok 9 - Invalid hostname gives critical
ok 10
PASS: t/check_jabber.t
1..6
ok 1 - load not over 100
ok 2 - Output OK
ok 3 - Load over 0
ok 4 - Output OK
ok 5 - Load over 0 with per cpu division
ok 6 - Output OK
PASS: t/check_load.t
1..10
  • 対象外なので,noneを投入.
  • 次はMySQL.
  • MySQLのプラグインでは,普通のサーバ&レプリケーションマスタサーバと,レプリケーションスレーブサーバのチェックを行う事ができる.
Test Harness         : check_mysql
Test Parameter       : NP_MYSQL_SERVER
Brief Description    : A MySQL Server with no slaves setup
Enter value (or 'none') [] => 

Test Harness         : check_mysql
Test Parameter       : NP_MYSQL_SERVER
Brief Description    : A MySQL Server with no slaves setup ←スタンドアロンorマスタサーバ
Enter value (or 'none') [] => -d test -H localhost -P 3306 -u root -p password


Test Harness         : check_mysql
Test Parameter       : MYSQL_LOGIN_DETAILS
Brief Description    : Command line parameters to specify login access
Enter value (or 'none') [-u user -ppw -d db] => -u root -ppassword -d test


Test Harness         : check_mysql
Test Parameter       : NP_MYSQL_WITH_SLAVE
Brief Description    : MySQL server with slaves setup ←スレーブサーバ
Enter value (or 'none') [] => -d test -H localhost -P 3306 -u root -p password


Test Harness         : check_mysql
Test Parameter       : NP_MYSQL_WITH_SLAVE_LOGIN
Brief Description    : Login details for server with slave ←スレーブサーバ 
Enter value (or 'none') [-uroot -ppw] =>  -u root -ppassword -d test

not ok 1 - Login okay
#     Failed test (./t/check_mysql.t at line 49)
#          got: 3
#     expected: 0
not ok 2 - Login failure
#     Failed test (./t/check_mysql.t at line 52)
#          got: 3
#     expected: 2
not ok 3 - Expected login failure message
#     Failed test (./t/check_mysql.t at line 53)
#                   'check_mysql: Invalid hostname/address - -d
# Usage:check_mysql [-d database] [-H host] [-P port] [-u user] [-p password] [-
S]'
#     doesn't match '/Access denied for user /'
not ok 4 - No slaves defined
#     Failed test (./t/check_mysql.t at line 56)
#          got: 3
#     expected: 1
not ok 5 - Correct error message
#     Failed test (./t/check_mysql.t at line 57)
#                   'check_mysql: Invalid hostname/address - -d
# Usage:check_mysql [-d database] [-H host] [-P port] [-u user] [-p password] [-
S]'
#     doesn't match '/No slaves defined/'
not ok 6 - Login okay
#     Failed test (./t/check_mysql.t at line 63)
#          got: 3
#     expected: 0
not ok 7 - Slaves okay
#     Failed test (./t/check_mysql.t at line 66)
#          got: 3
#     expected: 0
not ok 8 - Slaves are not > 60 seconds behind
#     Failed test (./t/check_mysql.t at line 69)
#          got: 3
#     expected: 0
not ok 9 - Alert warning if < 60 seconds behind
#     Failed test (./t/check_mysql.t at line 72)
#          got: 3
#     expected: 1
not ok 10 - Output okay
#     Failed test (./t/check_mysql.t at line 73)
#                   'check_mysql: Invalid hostname/address - -d
# Usage:check_mysql [-d database] [-H host] [-P port] [-u user] [-p password] [-
S]'
#     doesn't match '/^SLOW_SLAVE WARNING:/'
# Looks like you failed 10 tests of 10.
FAIL: t/check_mysql.t
1..13
not ok 1 - Can run query
#     Failed test (./t/check_mysql_query.t at line 39)
#          got: 3
#     expected: 0
ok 2 - Missing query parmeter
not ok 3 - Missing query error message
#     Failed test (./t/check_mysql_query.t at line 43)
#                   'check_mysql_query: Invalid hostname/address - -d
# Usage:check_mysql_query -q SQL_query [-w warn] [-c crit]
# [-d database] [-H host] [-P port] [-u user] [-p password]'
#     doesn't match '/Must specify a SQL query to run/'
not ok 4 - Login failure
#     Failed test (./t/check_mysql_query.t at line 46)
#          got: 3
#     expected: 2
not ok 5 - Expected login failure message
#     Failed test (./t/check_mysql_query.t at line 47)
#                   'check_mysql_query: Invalid hostname/address - -d
# Usage:check_mysql_query -q SQL_query [-w warn] [-c crit]
# [-d database] [-H host] [-P port] [-u user] [-p password]'
#     doesn't match '/Access denied for user /'
not ok 6 - Got warning
#     Failed test (./t/check_mysql_query.t at line 50)
#          got: 3
#     expected: 1
not ok 7 - Got critical
#     Failed test (./t/check_mysql_query.t at line 53)
#          got: 3
#     expected: 2
not ok 8 - Bad query
#     Failed test (./t/check_mysql_query.t at line 56)
#          got: 3
#     expected: 2
not ok 9 - Bad query error message
#     Failed test (./t/check_mysql_query.t at line 57)
#                   'check_mysql_query: Invalid hostname/address - -d
# Usage:check_mysql_query -q SQL_query [-w warn] [-c crit]
# [-d database] [-H host] [-P port] [-u user] [-p password]'
#     doesn't match '/Error with query/'
not ok 10 - No rows
#     Failed test (./t/check_mysql_query.t at line 60)
#          got: 3
#     expected: 1
not ok 11 - No rows error message
#     Failed test (./t/check_mysql_query.t at line 61)
#                   'check_mysql_query: Invalid hostname/address - -d
# Usage:check_mysql_query -q SQL_query [-w warn] [-c crit]
# [-d database] [-H host] [-P port] [-u user] [-p password]'
#     doesn't match '/No rows returned/'
not ok 12 - Data not numeric
#     Failed test (./t/check_mysql_query.t at line 64)
#          got: 3
#     expected: 2
not ok 13 - Data not numeric error message
#     Failed test (./t/check_mysql_query.t at line 65)
#                   'check_mysql_query: Invalid hostname/address - -d
# Usage:check_mysql_query -q SQL_query [-w warn] [-c crit]
# [-d database] [-H host] [-P port] [-u user] [-p password]'
#     doesn't match '/Is not a numeric/'
# Looks like you failed 12 tests of 13.
FAIL: t/check_mysql_query.t
1..13
ok 1 - Log over 5 minutes old
ok 2 - Output for warning correct
ok 3 - Log up to date
ok 4 - Output for success correct
ok 5 - Log correctly seen as over 1 minute old
ok 6 - Log correctly seen as between 60-69 seconds old
ok 7 - Nagios command not found
ok 8 - Output for failure correct
ok 9 - Nagios2 for logfile over 5 mins old
ok 10 - Nagios2 log up to date
ok 11 - Nagios2 log correctly seen as over 1 minute old
ok 12 - Log correctly seen as between 60-69 seconds old
ok 13 - Invalid log file
PASS: t/check_nagios.t
1..4
  • 問題なさそう?
  • 次はNTPサーバ.
Test Harness         : check_ntp
Test Parameter       : NP_GOOD_NTP_SERVICE
Brief Description    : A host providing NTP service
Enter value (or 'none') [pool.ntp.org] => localhost ←NTPサーバ


Test Harness         : check_ntp
Test Parameter       : NP_NO_NTP_SERVICE
Brief Description    : A host NOT providing the NTP service
Enter value (or 'none') [localhost] => localhost ←NTPでないサーバ.

ok 1 - Got good NTP result
not ok 2 - Got bad NTP result
#     Failed test (./t/check_ntp.t at line 45)
#          got: 0
#     expected: 2
ok 3 - Got critical if server not responding
ok 4 - Got critical if server hostname invalid
# Looks like you failed 1 tests of 4.
FAIL: t/check_ntp.t
1..20
  • ここでは,2つめはNTPが動いていないサーバを指定すべきだったので,チェック結果がエラーとなっている.
  • 次に,pingをjっ子鵜する.
Test Harness         : check_ping
Test Parameter       : NP_HOST_RESPONSIVE
Brief Description    : The hostname of system responsive to network requests
Enter value (or 'none') [localhost] => localhost

ok 1 - Syntax ok
ok 2 - Output OK
ok 3 - Syntax ok, with forced warning
ok 4 - Output OK
ok 5 - Syntax ok, with forced critical
ok 6 - Output OK
ok 7 - Old syntax ok
ok 8 - Output OK
ok 9 - Old syntax, with forced critical
ok 10 - Output OK
ok 11 - Timeout 1 second - host nonresponsive
ok 12 - Error contains '100%' string (for 100% packet loss)
ok 13 - Timeout 15 seconds - host nonresponsive
ok 14 - Error contains '100%' string (for 100% packet loss)
ok 15 - Old syntax: Timeout - host nonresponsive
ok 16 - Error contains '100%' string (for 100% packet loss)
ok 17 - Invalid hostname
ok 18 - Error contains 'invalid hostname' string
ok 19 - No hostname
ok 20 - Output with appropriate error message
PASS: t/check_ping.t
1..5
  • 問題ない.
  • 次は,POPとSMTPサーバ.
Test Harness         : check_pop
Test Parameter       : NP_HOST_TCP_SMTP
Brief Description    : A host providing an STMP Service (a mail server)
Enter value (or 'none') [mailhost] => ujp.jp


Test Harness         : check_pop
Test Parameter       : NP_HOST_TCP_POP
Brief Description    : A host providing a POP Service (a mail server)
Enter value (or 'none') [ujp.jp] => ujp.jp

ok 1 - POP server ok
ok 2 - POP server returned +OK
ok 3 - Old syntax
ok 4 - Non responsive host
ok 5 - Invalid host
PASS: t/check_pop.t
1..12
# Running under perl version 5.008 for linux
# Current time local: Thu Oct 11 18:00:04 2007
# Current time GMT:   Thu Oct 11 09:00:04 2007
# Using Test.pm version 1.23
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
PASS: t/check_proc
  • 問題ない.
  • 次はSNMPサーバ.
Test Harness         : check_smtp
Test Parameter       : NP_HOST_TCP_SMTP_TLS
Brief Description    : A host providing SMTP with TLS
Enter value (or 'none') [ujp.jp] => ujp.jp


Test Harness         : check_smtp
Test Parameter       : NP_HOST_TCP_SMTP_NOTLS
Brief Description    : A host providing SMTP without TLS
Enter value (or 'none') [] => ujp.jp

1..10
ok 1 - OK
ok 2 - OK, within 9 second response
ok 3 - OK, old syntax
ok 4 - WARNING - got correct error when expecting 221 instead of 220
not ok 5 - Correct error message # TODO Output is over two lines
#     Failed (TODO) test (./t/check_smtp.t at line 44)
#                   'Invalid SMTP response received from host
# SMTP WARNING - 0.114 sec. response time|time=0.114416s;;;0.000000'
#     doesn't match '(?-xism:^SMTP WARNING)'
not ok 6 - OK, with STARTTLS
#     Failed test (./t/check_smtp.t at line 52)
#          got: '1'
#     expected: '0'
ok 7 - OK, got warning from server without TLS
ok 8 - Right error message
ok 9 - CRITICAL - host non responding
ok 10 - UNKNOWN - hostname invalid
# Looks like you failed 1 tests of 10.
FAIL: t/check_smtp.t
1..12
  • TLSは使っていないので,エラーになるのも仕方ない.
  • 次は,SNMPサーバのテスト.
# Running under perl version 5.008 for linux
# Current time local: Thu Oct 11 18:00:46 2007
# Current time GMT:   Thu Oct 11 09:00:46 2007
# Using Test.pm version 1.23

Test Harness         : check_snmp
Test Parameter       : host_snmp
Environment Variable : NP_HOST_SNMP
Brief Description    : A host providing an SNMP Service
Enter value (or 'none') [localhost] => ujp.jp


Test Harness         : check_snmp
Test Parameter       : snmp_community
Environment Variable : NP_SNMP_COMMUNITY
Brief Description    : The SNMP Community string for SNMP Testing
Enter value (or 'none') [public] => secret_community                         

ok 1 # skip No SNMP Server present?
ok 2 # skip Skipping output test as requested
ok 3 # skip No SNMP Server present?
ok 4 # skip Skipping output test as requested
ok 5 # skip No SNMP Server present?
ok 6 # skip Skipping output test as requested
ok 7 # skip No SNMP Server present?
ok 8 # skip Skipping output test as requested
ok 9
ok 10
ok 11
ok 12
PASS: t/check_snmp.t
1..8
ok 1 - At least 1MB free
ok 2 - Right output
ok 3 - At least 1% free
ok 4 - Right output
ok 5 - Get critical because not 100% free
ok 6 - Right output
ok 7 - Get warning because not 100% free
ok 8 - Right output
PASS: t/check_swap.t
1..7
  • 繋がらなかったのでエラーになっているが,セットアップには問題ない.
# Running under perl version 5.008 for linux
# Current time local: Thu Oct 11 18:05:28 2007
# Current time GMT:   Thu Oct 11 09:05:28 2007
# Using Test.pm version 1.23

Test Harness         : check_tcp
Test Parameter       : host_tcp_http
Environment Variable : NP_HOST_TCP_HTTP
Brief Description    : A host providing the HTTP Service (a web server)
Enter value (or 'none') [localhost] => localhost

ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
PASS: t/check_tcp.t
1..8
  • 次は,UDP Time Service?のチェックを行う.
# Running under perl version 5.008 for linux
# Current time local: Thu Oct 11 18:09:38 2007
# Current time GMT:   Thu Oct 11 09:09:38 2007
# Using Test.pm version 1.23

Test Harness         : check_time
Test Parameter       : host_udp_time
Environment Variable : NP_HOST_UDP_TIME
Brief Description    : A host providing the UDP Time Service
Enter value (or 'none') [localhost] => localhost

not ok 1
# Test 1 got: '2' (../NPTest.pm at line 273)
#   Expected: '0'
not ok 2
# Test 2 got: 'Connection refused
TIME UNKNOWN - could not connect to server localhost, port 37' (../NPTest.pm at
 line 277)
#   Expected: qr{^TIME OK - [0-9]+ second time difference}
not ok 3
# Test 3 got: '2' (../NPTest.pm at line 273 fail #2)
#   Expected: '0'
not ok 4
# Test 4 got: 'Connection refused
TIME UNKNOWN - could not connect to server localhost, port 37' (../NPTest.pm at
 line 277 fail #2)
#   Expected: qr{^TIME OK - [0-9]+ second time difference}
not ok 5
# Test 5 got: '2' (../NPTest.pm at line 273 fail #3)
#   Expected: '0'
not ok 6
# Test 6 got: 'Connection refused
TIME UNKNOWN - could not connect to server localhost, port 37' (../NPTest.pm at
 line 277 fail #3)
#   Expected: qr{^TIME OK - [0-9]+ second time difference}
ok 7
ok 8
FAIL: t/check_time.t
1..14
ok 1 - Need send/expect string
ok 2 - Output OK
ok 3 - Need expect string
ok 4 - Output OK
ok 5 - Need send string
ok 6 - Output OK
ok 7 - Errors correctly because no udp service running
ok 8 - Output OK
ok 9 - Got barbar response back
ok 10 - Output OK
ok 11 - Hung waiting for response
ok 12 - Timeout message
ok 13 - Timeout after 5 (possibly 6) seconds
ok 14 - Data received correctly
PASS: t/check_udp.t
1..4
# Running under perl version 5.008 for linux
# Current time local: Thu Oct 11 18:09:55 2007
# Current time GMT:   Thu Oct 11 09:09:55 2007
# Using Test.pm version 1.23
ok 1
ok 2
ok 3
ok 4
PASS: t/check_users.t
1..47
ok 1 - Not enough parameters
ok 2 - Could not parse arguments
ok 3 - Require full path
ok 4 - Appropriate error message
ok 5 - OK changed to CRITICAL
ok 6 - Output as expected
ok 7 - OK => CRIT with a single quote for command to run
ok 8 - Output as expected
ok 9 - WARN stays same
ok 10 - UNKNOWN stays same
ok 11 - Checking slashed quotes - the single quotes are re-evaluated at shell
ok 12 - Multiple args passed as arrays
ok 13 - The quoted string is passed through to subcommand correctly
ok 14 - Bad command, as expected (trying to execute './check_dummy 0')
ok 15 - Proves that $$ is not being expanded again
ok 16 - Got fake ok
ok 17
ok 18 - Got fake warning
ok 19
ok 20 - Got fake critical
ok 21
ok 22 - Got fake unknown
ok 23
ok 24 - Got fake ok
ok 25
ok 26 - Got fake warning
ok 27
ok 28 - Got fake critical
ok 29
ok 30 - Got fake unknown
ok 31
ok 32 - Got fake ok
ok 33
ok 34 - Got fake warning
ok 35
ok 36 - Got fake critical
ok 37
ok 38 - Got fake unknown
ok 39
ok 40 - Got fake ok
ok 41
ok 42 - Got fake warning
ok 43
ok 44 - Got fake critical
ok 45
ok 46 - Got fake unknown
ok 47
PASS: t/negate.t
  • 色々エラーがでているが...たぶんあまり必要では無いものである.
  • これで終了.
====================
8 of 26 tests failed
====================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/root/nagios-plugins-1.4.10/plugins'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/root/nagios-plugins-1.4.10/plugins'
make: *** [check-recursive] Error 1
  • なんか色々エラーはでましたが,テストデータが悪かったぶんも在るので,無視.
  • ということで,不安材料も残る?が,インストールする.
root@jupiter:~/nagios-plugins-1.4.10 # make install
Making install in gl
make[1]: Entering directory `/root/nagios-plugins-1.4.10/gl'
make  install-am
make[2]: Entering directory `/root/nagios-plugins-1.4.10/gl'
make[3]: Entering directory `/root/nagios-plugins-1.4.10/gl'
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/nagios-plugins-1.4.10/gl'
make[2]: Leaving directory `/root/nagios-plugins-1.4.10/gl'
make[1]: Leaving directory `/root/nagios-plugins-1.4.10/gl'
Making install in lib
make[1]: Entering directory `/root/nagios-plugins-1.4.10/lib'
Making install in tests
make[2]: Entering directory `/root/nagios-plugins-1.4.10/lib/tests'
make[3]: Entering directory `/root/nagios-plugins-1.4.10/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/nagios-plugins-1.4.10/lib/tests'
make[2]: Leaving directory `/root/nagios-plugins-1.4.10/lib/tests'
make[2]: Entering directory `/root/nagios-plugins-1.4.10/lib'
make[3]: Entering directory `/root/nagios-plugins-1.4.10/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/nagios-plugins-1.4.10/lib'
make[2]: Leaving directory `/root/nagios-plugins-1.4.10/lib'
make[1]: Leaving directory `/root/nagios-plugins-1.4.10/lib'
Making install in plugins
make[1]: Entering directory `/root/nagios-plugins-1.4.10/plugins'
make[2]: Entering directory `/root/nagios-plugins-1.4.10/plugins'
test -z "/usr/local/nagios/libexec" || mkdir -p -- "/usr/local/nagios/libexec"
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_apt' '/usr/local
/nagios/libexec/check_apt'
/usr/bin/install -c check_apt /usr/local/nagios/libexec/check_apt
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_cluster' '/usr/
local/nagios/libexec/check_cluster'
/usr/bin/install -c check_cluster /usr/local/nagios/libexec/check_cluster
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_disk' '/usr/
local/nagios/libexec/check_disk'
/usr/bin/install -c check_disk /usr/local/nagios/libexec/check_disk
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_dummy' '/usr/
local/nagios/libexec/check_dummy'
/usr/bin/install -c check_dummy /usr/local/nagios/libexec/check_dummy
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_http' '/usr/
local/nagios/libexec/check_http'
/usr/bin/install -c check_http /usr/local/nagios/libexec/check_http
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_load' '/usr/
local/nagios/libexec/check_load'
/usr/bin/install -c check_load /usr/local/nagios/libexec/check_load
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_mrtg' '/usr/
local/nagios/libexec/check_mrtg'
/usr/bin/install -c check_mrtg /usr/local/nagios/libexec/check_mrtg
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_mrtgtraf' '/usr/
local/nagios/libexec/check_mrtgtraf'
/usr/bin/install -c check_mrtgtraf /usr/local/nagios/libexec/check_mrtgtraf
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_ntp' '/usr/local
/nagios/libexec/check_ntp'
/usr/bin/install -c check_ntp /usr/local/nagios/libexec/check_ntp
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_nwstat' '/usr/
local/nagios/libexec/check_nwstat'
/usr/bin/install -c check_nwstat /usr/local/nagios/libexec/check_nwstat
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_overcr' '/usr/
local/nagios/libexec/check_overcr'
/usr/bin/install -c check_overcr /usr/local/nagios/libexec/check_overcr
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_ping' '/usr/
local/nagios/libexec/check_ping'
/usr/bin/install -c check_ping /usr/local/nagios/libexec/check_ping
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_real' '/usr/
local/nagios/libexec/check_real'
/usr/bin/install -c check_real /usr/local/nagios/libexec/check_real
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_smtp' '/usr/
local/nagios/libexec/check_smtp'
/usr/bin/install -c check_smtp /usr/local/nagios/libexec/check_smtp
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_ssh' '/usr/local
/nagios/libexec/check_ssh'
/usr/bin/install -c check_ssh /usr/local/nagios/libexec/check_ssh
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_tcp' '/usr/local
/nagios/libexec/check_tcp'
/usr/bin/install -c check_tcp /usr/local/nagios/libexec/check_tcp
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_time' '/usr/
local/nagios/libexec/check_time'
/usr/bin/install -c check_time /usr/local/nagios/libexec/check_time
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_ups' '/usr/local
/nagios/libexec/check_ups'
/usr/bin/install -c check_ups /usr/local/nagios/libexec/check_ups
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_users' '/usr/
local/nagios/libexec/check_users'
/usr/bin/install -c check_users /usr/local/nagios/libexec/check_users
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'negate' '/usr/local/
nagios/libexec/negate'
/usr/bin/install -c negate /usr/local/nagios/libexec/negate
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'urlize' '/usr/local/
nagios/libexec/urlize'
/usr/bin/install -c urlize /usr/local/nagios/libexec/urlize
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_pgsql' '/usr/
local/nagios/libexec/check_pgsql'
/usr/bin/install -c check_pgsql /usr/local/nagios/libexec/check_pgsql
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_ldap' '/usr/
local/nagios/libexec/check_ldap'
/usr/bin/install -c check_ldap /usr/local/nagios/libexec/check_ldap
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_ide_smart' '/usr
/local/nagios/libexec/check_ide_smart'
/usr/bin/install -c check_ide_smart /usr/local/nagios/libexec/check_ide_smart
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_mysql' '/usr/
local/nagios/libexec/check_mysql'
/usr/bin/install -c check_mysql /usr/local/nagios/libexec/check_mysql
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_mysql_query' '/
usr/local/nagios/libexec/check_mysql_query'
/usr/bin/install -c check_mysql_query /usr/local/nagios/libexec/check_mysql_
query
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_procs' '/usr/
local/nagios/libexec/check_procs'
/usr/bin/install -c check_procs /usr/local/nagios/libexec/check_procs
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_nagios' '/usr/
local/nagios/libexec/check_nagios'
/usr/bin/install -c check_nagios /usr/local/nagios/libexec/check_nagios
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_dns' '/usr/local
/nagios/libexec/check_dns'
/usr/bin/install -c check_dns /usr/local/nagios/libexec/check_dns
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_hpjd' '/usr/
local/nagios/libexec/check_hpjd'
/usr/bin/install -c check_hpjd /usr/local/nagios/libexec/check_hpjd
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_snmp' '/usr/
local/nagios/libexec/check_snmp'
/usr/bin/install -c check_snmp /usr/local/nagios/libexec/check_snmp
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_fping' '/usr/
local/nagios/libexec/check_fping'
/usr/bin/install -c check_fping /usr/local/nagios/libexec/check_fping
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_by_ssh' '/usr/
local/nagios/libexec/check_by_ssh'
/usr/bin/install -c check_by_ssh /usr/local/nagios/libexec/check_by_ssh
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_swap' '/usr/
local/nagios/libexec/check_swap'
/usr/bin/install -c check_swap /usr/local/nagios/libexec/check_swap
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_dig' '/usr/local
/nagios/libexec/check_dig'
/usr/bin/install -c check_dig /usr/local/nagios/libexec/check_dig
  /bin/sh ../libtool --mode=install /usr/bin/install -c  'check_nt' '/usr/local/
nagios/libexec/check_nt'
/usr/bin/install -c check_nt /usr/local/nagios/libexec/check_nt
make  install-exec-hook
make[3]: Entering directory `/root/nagios-plugins-1.4.10/plugins'
cd /usr/local/nagios/libexec && ¥
for i in check_ftp check_imap check_nntp check_pop check_udp check_clamd check_
simap check_spop check_jabber check_nntps check_ssmtp ; do rm -f $i; ln -s check
_tcp $i ; done ;¥
if [ -x check_ldap ] ; then rm -f check_ldaps ; ln -s check_ldap check_ldaps ; 
fi
make[3]: Leaving directory `/root/nagios-plugins-1.4.10/plugins'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/nagios-plugins-1.4.10/plugins'
make[1]: Leaving directory `/root/nagios-plugins-1.4.10/plugins'
Making install in plugins-scripts
make[1]: Entering directory `/root/nagios-plugins-1.4.10/plugins-scripts'
make[2]: Entering directory `/root/nagios-plugins-1.4.10/plugins-scripts'
test -z "/usr/local/nagios/libexec" || mkdir -p -- "/usr/local/nagios/libexec"
 /usr/bin/install -c  'check_breeze' '/usr/local/nagios/libexec/check_breeze'
 /usr/bin/install -c  'check_disk_smb' '/usr/local/nagios/libexec/check_disk_smb
'
 /usr/bin/install -c  'check_flexlm' '/usr/local/nagios/libexec/check_flexlm'
 /usr/bin/install -c  'check_ircd' '/usr/local/nagios/libexec/check_ircd'
 /usr/bin/install -c  'check_log' '/usr/local/nagios/libexec/check_log'
 /usr/bin/install -c  'check_oracle' '/usr/local/nagios/libexec/check_oracle'
 /usr/bin/install -c  'check_rpc' '/usr/local/nagios/libexec/check_rpc'
 /usr/bin/install -c  'check_sensors' '/usr/local/nagios/libexec/check_sensors'
 /usr/bin/install -c  'check_wave' '/usr/local/nagios/libexec/check_wave'
 /usr/bin/install -c  'check_ifstatus' '/usr/local/nagios/libexec/check_ifstatus
'
 /usr/bin/install -c  'check_ifoperstatus' '/usr/local/nagios/libexec/check_
ifoperstatus'
 /usr/bin/install -c  'check_mailq' '/usr/local/nagios/libexec/check_mailq'
 /usr/bin/install -c  'check_file_age' '/usr/local/nagios/libexec/check_file_age
'
 /usr/bin/install -c  'utils.sh' '/usr/local/nagios/libexec/utils.sh'
 /usr/bin/install -c  'utils.pm' '/usr/local/nagios/libexec/utils.pm'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/nagios-plugins-1.4.10/plugins-scripts'
make[1]: Leaving directory `/root/nagios-plugins-1.4.10/plugins-scripts'
Making install in plugins-root
make[1]: Entering directory `/root/nagios-plugins-1.4.10/plugins-root'
make[2]: Entering directory `/root/nagios-plugins-1.4.10/plugins-root'
 /usr/bin/install -c  check_dhcp /usr/local/nagios/libexec/check_dhcp
 chown root /usr/local/nagios/libexec/check_dhcp
 chmod ug=rx,u+s /usr/local/nagios/libexec/check_dhcp
 /usr/bin/install -c  check_icmp /usr/local/nagios/libexec/check_icmp
 chown root /usr/local/nagios/libexec/check_icmp
 chmod ug=rx,u+s /usr/local/nagios/libexec/check_icmp
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/nagios-plugins-1.4.10/plugins-root'
make[1]: Leaving directory `/root/nagios-plugins-1.4.10/plugins-root'
Making install in po
make[1]: Entering directory `/root/nagios-plugins-1.4.10/po'
mkdir -p -- /usr/local/nagios/share
installing fr.gmo as /usr/local/nagios/share/locale/fr/LC_MESSAGES/nagios-
plugins.mo
installing de.gmo as /usr/local/nagios/share/locale/de/LC_MESSAGES/nagios-
plugins.mo
if test "nagios-plugins" = "gettext-tools"; then ¥
  mkdir -p -- /usr/local/nagios/share/gettext/po; ¥
  for file in Makefile.in.in remove-potcdate.sin    Makevars.template; do ¥
    /usr/bin/install -c  -m 644 ./$file ¥
                    /usr/local/nagios/share/gettext/po/$file; ¥
  done; ¥
  for file in Makevars; do ¥
    rm -f /usr/local/nagios/share/gettext/po/$file; ¥
  done; ¥
else ¥
  : ; ¥
fi
make[1]: Leaving directory `/root/nagios-plugins-1.4.10/po'
make[1]: Entering directory `/root/nagios-plugins-1.4.10'
make[2]: Entering directory `/root/nagios-plugins-1.4.10'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/nagios-plugins-1.4.10'
make[1]: Leaving directory `/root/nagios-plugins-1.4.10'
root@jupiter:~/nagios-plugins-1.4.10 # 
  • インストール完了.
  • プラグインは,/usr/local/nagios/libexec/以下に保存されているので,確認する.
root@jupiter:~/nagios-plugins-1.4.10 # ls -la  /usr/local/nagios/libexec/
total 5112
drwxr-sr-x    2 root     root         4096 Oct 11 17:06 .
drwxr-sr-x    4 root     root         4096 Oct 11 17:06 ..
-rwxr-xr-x    1 root     root       168147 Oct 11 17:06 check_apt
-rwxr-xr-x    1 root     root         2274 Oct 11 17:06 check_breeze
-rwxr-xr-x    1 root     root        56745 Oct 11 17:06 check_by_ssh
lrwxrwxrwx    1 root     root            9 Oct 11 17:06 check_clamd -> check_tcp
-rwxr-xr-x    1 root     root        34375 Oct 11 17:06 check_cluster
-r-sr-xr-x    1 root     root        59030 Oct 11 17:06 check_dhcp
-rwxr-xr-x    1 root     root        52554 Oct 11 17:06 check_dig
-rwxr-xr-x    1 root     root       199690 Oct 11 17:06 check_disk
-rwxr-xr-x    1 root     root         8163 Oct 11 17:06 check_disk_smb
-rwxr-xr-x    1 root     root        57185 Oct 11 17:06 check_dns
-rwxr-xr-x    1 root     root        30397 Oct 11 17:06 check_dummy
-rwxr-xr-x    1 root     root         3143 Oct 11 17:06 check_file_age
-rwxr-xr-x    1 root     root         6395 Oct 11 17:06 check_flexlm
-rwxr-xr-x    1 root     root        56989 Oct 11 17:06 check_fping
lrwxrwxrwx    1 root     root            9 Oct 11 17:06 check_ftp -> check_tcp
-rwxr-xr-x    1 root     root        54135 Oct 11 17:06 check_hpjd
-rwxr-xr-x    1 root     root       252227 Oct 11 17:06 check_http
-r-sr-xr-x    1 root     root        63310 Oct 11 17:06 check_icmp
-rwxr-xr-x    1 root     root        38325 Oct 11 17:06 check_ide_smart
-rwxr-xr-x    1 root     root        15310 Oct 11 17:06 check_ifoperstatus
-rwxr-xr-x    1 root     root        12853 Oct 11 17:06 check_ifstatus
lrwxrwxrwx    1 root     root            9 Oct 11 17:06 check_imap -> check_tcp
-rwxr-xr-x    1 root     root         7429 Oct 11 17:06 check_ircd
lrwxrwxrwx    1 root     root            9 Oct 11 17:06 check_jabber -> check_tcp
-rwxr-xr-x    1 root     root        47919 Oct 11 17:06 check_ldap
lrwxrwxrwx    1 root     root           10 Oct 11 17:06 check_ldaps -> check_ldap
-rwxr-xr-x    1 root     root        43169 Oct 11 17:06 check_load
-rwxr-xr-x    1 root     root         6062 Oct 11 17:06 check_log
-rwxr-xr-x    1 root     root        20367 Oct 11 17:06 check_mailq
-rwxr-xr-x    1 root     root        39468 Oct 11 17:06 check_mrtg
-rwxr-xr-x    1 root     root        37808 Oct 11 17:06 check_mrtgtraf
-rwxr-xr-x    1 root     root      1152712 Oct 11 17:06 check_mysql
-rwxr-xr-x    1 root     root      1150133 Oct 11 17:06 check_mysql_query
-rwxr-xr-x    1 root     root        44254 Oct 11 17:06 check_nagios
lrwxrwxrwx    1 root     root            9 Oct 11 17:06 check_nntp -> check_tcp
lrwxrwxrwx    1 root     root            9 Oct 11 17:06 check_nntps -> check_tcp
-rwxr-xr-x    1 root     root        55965 Oct 11 17:06 check_nt
-rwxr-xr-x    1 root     root        58788 Oct 11 17:06 check_ntp
-rwxr-xr-x    1 root     root        74043 Oct 11 17:06 check_nwstat
-rwxr-xr-x    1 root     root         8366 Oct 11 17:06 check_oracle
-rwxr-xr-x    1 root     root        48953 Oct 11 17:06 check_overcr
-rwxr-xr-x    1 root     root        46331 Oct 11 17:06 check_pgsql
-rwxr-xr-x    1 root     root        61793 Oct 11 17:06 check_ping
lrwxrwxrwx    1 root     root            9 Oct 11 17:06 check_pop -> check_tcp
-rwxr-xr-x    1 root     root        60847 Oct 11 17:06 check_procs
-rwxr-xr-x    1 root     root        46867 Oct 11 17:06 check_real
-rwxr-xr-x    1 root     root         9707 Oct 11 17:06 check_rpc
-rwxr-xr-x    1 root     root         1176 Oct 11 17:06 check_sensors
lrwxrwxrwx    1 root     root            9 Oct 11 17:06 check_simap -> check_tcp
-rwxr-xr-x    1 root     root       213014 Oct 11 17:06 check_smtp
-rwxr-xr-x    1 root     root       218875 Oct 11 17:06 check_snmp
lrwxrwxrwx    1 root     root            9 Oct 11 17:06 check_spop -> check_tcp
-rwxr-xr-x    1 root     root        43627 Oct 11 17:06 check_ssh
lrwxrwxrwx    1 root     root            9 Oct 11 17:06 check_ssmtp -> check_tcp
-rwxr-xr-x    1 root     root        46673 Oct 11 17:06 check_swap
-rwxr-xr-x    1 root     root        82199 Oct 11 17:06 check_tcp
-rwxr-xr-x    1 root     root        46090 Oct 11 17:06 check_time
lrwxrwxrwx    1 root     root            9 Oct 11 17:06 check_udp -> check_tcp
-rwxr-xr-x    1 root     root        54007 Oct 11 17:06 check_ups
-rwxr-xr-x    1 root     root        41950 Oct 11 17:06 check_users
-rwxr-xr-x    1 root     root         3019 Oct 11 17:06 check_wave
-rwxr-xr-x    1 root     root        43680 Oct 11 17:06 negate
-rwxr-xr-x    1 root     root        41325 Oct 11 17:06 urlize
-rwxr-xr-x    1 root     root         2079 Oct 11 17:06 utils.pm
-rwxr-xr-x    1 root     root          862 Oct 11 17:06 utils.sh
root@jupiter:~/nagios-plugins-1.4.10 # 
  • コンパイルされたものが確認できる.

4.プラグインの置き換え

  • 前述の手順書通りにインストールしている場合には,Nagios PluginはRPMでインストールしている.
  • 今回ソースからコンパイルしたプラグインは,インストールされているディレクトリ等が違うので,それらをNagiosに認識させる必要が在る.
  • まずは,既存のプラグインを探す.
root@jupiter:~/nagios-plugins-1.4.10 # rpm -qa | grep nagios
nagios-1.2-2.1.el3.rf
nagios-plugins-1.4-2.1.el3.rf
root@jupiter:~/nagios-plugins-1.4.10 # 
  • RPMを構成するファイルを確認してみる.
root@jupiter:~/nagios-plugins-1.4.10 # rpm -ql nagios-plugins-1.4-2.1.el3.rf
/etc/nagios
/etc/nagios/command-plugins.cfg
/usr/lib/nagios/plugins
/usr/lib/nagios/plugins/check_breeze
/usr/lib/nagios/plugins/check_by_ssh
/usr/lib/nagios/plugins/check_cluster
/usr/lib/nagios/plugins/check_cluster2
/usr/lib/nagios/plugins/check_dhcp
/usr/lib/nagios/plugins/check_dig
/usr/lib/nagios/plugins/check_disk
/usr/lib/nagios/plugins/check_disk_smb
/usr/lib/nagios/plugins/check_dns
/usr/lib/nagios/plugins/check_dummy
/usr/lib/nagios/plugins/check_file_age
/usr/lib/nagios/plugins/check_flexlm
/usr/lib/nagios/plugins/check_ftp
/usr/lib/nagios/plugins/check_game

〜略〜


/usr/lib/nagios/plugins/contrib/check_vcs.pl
/usr/lib/nagios/plugins/contrib/check_wave.pl
/usr/lib/nagios/plugins/contrib/check_wins.pl
/usr/lib/nagios/plugins/contrib/checkciscotemp.pl
/usr/lib/nagios/plugins/negate
/usr/lib/nagios/plugins/urlize
/usr/lib/nagios/plugins/utils.pm
/usr/lib/nagios/plugins/utils.sh
/usr/lib/perl5/vendor_perl/5.8.0/utils.pm
/usr/share/doc/nagios-plugins-1.4
/usr/share/doc/nagios-plugins-1.4/ACKNOWLEDGEMENTS
/usr/share/doc/nagios-plugins-1.4/AUTHORS
/usr/share/doc/nagios-plugins-1.4/BUGS
/usr/share/doc/nagios-plugins-1.4/CHANGES
/usr/share/doc/nagios-plugins-1.4/COPYING
/usr/share/doc/nagios-plugins-1.4/ChangeLog
/usr/share/doc/nagios-plugins-1.4/FAQ
/usr/share/doc/nagios-plugins-1.4/INSTALL
/usr/share/doc/nagios-plugins-1.4/LEGAL
/usr/share/doc/nagios-plugins-1.4/NEWS
/usr/share/doc/nagios-plugins-1.4/README
/usr/share/doc/nagios-plugins-1.4/REQUIREMENTS
/usr/share/doc/nagios-plugins-1.4/SUPPORT
/usr/share/doc/nagios-plugins-1.4/THANKS
/usr/share/doc/nagios-plugins-1.4/command.cfg
/usr/share/locale/de/LC_MESSAGES/nagios-plugins.mo
/usr/share/locale/fr/LC_MESSAGES/nagios-plugins.mo
root@jupiter:~/nagios-plugins-1.4.10 # 
  • 整理すると,
    • RPMでインストール済みのプラグインは,
      • /usr/lib/nagios/plugins/
    • コンパイルしたプラグインは
      • /usr/local/nagios/libexec/
  • Nagiosのプラグインを指定するパスを変更する.
  • まずは,nagios全体の定義ファイルを確認.
root@jupiter:~/nagios-plugins-1.4.10 # cd /etc/nagios
root@jupiter:/etc/nagios # ls -la nagios.cfg
-rw-rw-r--    1 root     root        21258 May 30  2006 nagios.cfg
root@jupiter:/etc/nagios # 
  • ファイルを開いて,resource_fileパラメータで指定されているファイルを確認する.
# RESOURCE FILE
# This is an optional resource file that contains $USERx$ macro
# definitions. Multiple resource files can be specified by using
# multiple resource_file definitions.  The CGIs will not attempt to
# read the contents of resource files, so information that is
# considered to be sensitive (usernames, passwords, etc) can be
# defined as macros in this file and restrictive permissions (600)
# can be placed on this file.

resource_file=/etc/nagios/private/resource.cfg
  • ファイル/etc/nagios/private/resource.cfgファイルを開き,次のように編集する.
/etc/nagios/private/resource.cfgファイルの変更
変更前
###########################################################################

# Sets $USER1$ to be the path to the plugins
$USER1$=/usr/lib/nagios/plugins

# Sets $USER2$ to be the path to event handlers
#$USER2$=/usr/lib/nagios/plugins/eventhandlers

# Store some usernames and passwords (hidden from the CGIs)
#$USER3$=someuser
#$USER4$=somepassword
変更後
###########################################################################

# Sets $USER1$ to be the path to the plugins
#$USER1$=/usr/lib/nagios/plugins
$USER1$=/usr/local/nagios/libexec

# Sets $USER2$ to be the path to event handlers
#$USER2$=/usr/lib/nagios/plugins/eventhandlers

# Store some usernames and passwords (hidden from the CGIs)
#$USER3$=someuser
#$USER4$=somepassword
  • 有効にするために,nagiosをリロードする.
root@jupiter:/etc/nagios # /etc/rc.d/init.d/nagios reload
Running configuration check...done
Reloading nagios configuration...done
root@jupiter:/etc/nagios # 
  • 問題なく完了.

5.古いプラグインを消す

  • 紛らわしいので,古いプラグインは消す.
  • RPMでインストールしているので,RPMで消す.
root@jupiter:/etc/nagios # rpm -e nagios-plugins-1.4-2.1.el3.rf
root@jupiter:/etc/nagios # 
  • ファイルを確認する.
root@jupiter:/etc/nagios # ls -la /usr/lib/nagios/plugins/
total 12
drwxr-xr-x    3 root     root         4096 Oct 11 20:19 .
drwxr-xr-x    4 root     root         4096 Sep 12  2005 ..
drwxr-xr-x    4 root     root         4096 Sep 12  2005 eventhandlers
root@jupiter:/etc/nagios #
  • プラグインがなくなっている事が確認できた.


広告スペース
Google