NagiosでEC2上のLinuxのログ監視(1)
無性にApacheのログを監視したくなった。別に衝動的ではなく、仕事で必要になっただけだけど。
あまり詳しくないので、ツッコミ大歓迎。
要件、環境
機能的な要件としては
というシンプルなもの。
機能以外の要件としては
- 設定に手間を掛けたくない。
- (出来れば)パッケージでインストール可能
環境は
- Amazon EC2
- Amazon Linux (32bit & 64bit 両方)
検討したソフト
monit
ディスク容量監視とかで使ってるけど、ログ監視はないよね?
Nagios + ?
Nagiosは各種監視は「プラグイン」という形で実装されている。ログ監視をするプラグインは何種類かあって、Nagios Exchangeというプラグインを集めたサイト(?)にまとまってる。
check_log
Amazon Linuxでは nagios-plugins-log というパッケージ名で用意されている。最初これを使おうと思ったけど、情報が少ない(自分のNagiosの知識が皆無だったというのも大きい)。StackOverflowのこのスレッドを参考にしたけど上手くいかずに諦めた。
その他重要な点として、本プラグインは古くてメンテされていないっぽい。
check_logfiles をビルド
Amazon Linuxでビルド環境を構築
Red Hat系のディストリビューションに慣れていれば別に難しい事は特にない。check_logfilesはPerlスクリプトっぽいので、gccとかは必要なかった。と言う事で、以下のパッケージをyumでインストール。
- rpm-build
- make
check_logfilesをビルド
やる事は、SRPMをインストールし、rpmbuildコマンドでRPMパッケージを作るだけ。
当たり前だけど、SPECファイルとかの展開先が /usr/src/redhat ではなくて、/root の下にあるので注意。
[root@host srpm]# rpm -ivh check_logfiles-3.4.2-1.rf.src.rpm warning: check_logfiles-3.4.2-1.rf.src.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY 1:check_logfiles warning: user dag does not exist - using root warning: group dag does not exist - using root ########################################### [100%] warning: user dag does not exist - using root warning: group dag does not exist - using root [root@host SPECS]# pwd /root/rpmbuild/SPECS [root@host SPECS]# rpmbuild -bb check_logfiles.spec (以下省略)
出来たRPMを通常通りインストールすればOK。
まとめ
Nagios + check_logfilesでログファイルを監視する事に決めた。
Amazon LinuxだとNagiosはyumですぐインストールできるし、check_logfiles はRPMForgeのSRPMをリビルドして使えばOK。
次のエントリーで、本題のログファイルを監視する設定を書く予定。
以下、自分用のログ。
[root@host SPECS]# rpmbuild -bb check_logfiles.spec Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.lgnGB9 + umask 022 + cd /root/rpmbuild/BUILD + cd /root/rpmbuild/BUILD + rm -rf check_logfiles-3.4.2 + /bin/tar -xvvf - + /usr/bin/gzip -dc /root/rpmbuild/SOURCES/check_logfiles-3.4.2.tar.gz drwxrwxrwx 1000/1000 0 2010-06-29 14:42 check_logfiles-3.4.2/ -rw-r--r-- 1000/1000 0 2010-06-29 14:42 check_logfiles-3.4.2/NEWS -rw-r--r-- 1000/1000 538 2010-06-29 14:42 check_logfiles-3.4.2/Makefile.am -rw-r--r-- 1000/1000 20224 2010-06-29 14:42 check_logfiles-3.4.2/aclocal.m4 -rw-r--r-- 1000/1000 18007 2010-06-29 14:42 check_logfiles-3.4.2/COPYING -rw-r--r-- 1000/1000 9240 2010-06-29 14:42 check_logfiles-3.4.2/INSTALL -rw-r--r-- 1000/1000 27834 2010-06-29 14:42 check_logfiles-3.4.2/README -rwxr-xr-x 1000/1000 107759 2010-06-29 14:42 check_logfiles-3.4.2/configure -rwxr-xr-x 1000/1000 42929 2010-06-29 14:42 check_logfiles-3.4.2/config.guess -rw-r--r-- 1000/1000 2054 2010-06-29 14:42 check_logfiles-3.4.2/README.exe -rw-r--r-- 1000/1000 630 2010-06-29 14:42 check_logfiles-3.4.2/TODO -rw-r--r-- 1000/1000 18916 2010-06-29 14:42 check_logfiles-3.4.2/Makefile.in -rw-r--r-- 1000/1000 44 2010-06-29 14:42 check_logfiles-3.4.2/AUTHORS -rw-r--r-- 1000/1000 11014 2010-06-29 14:42 check_logfiles-3.4.2/missing -rwxr-xr-x 1000/1000 8316 2010-06-29 14:42 check_logfiles-3.4.2/install-sh -rwxr-xr-x 1000/1000 3721 2010-06-29 14:42 check_logfiles-3.4.2/winconfig.pl -rw-r--r-- 1000/1000 2407 2010-06-29 14:42 check_logfiles-3.4.2/acinclude.m4 drwxrwxrwx 1000/1000 0 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/ -rw-r--r-- 1000/1000 1708 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/Makefile.am -rw-r--r-- 1000/1000 14243 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/check_logfiles.pl -rw-r--r-- 1000/1000 11162 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/Makefile.in -rw-r--r-- 1000/1000 1743 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/subst.in drwxrwxrwx 1000/1000 0 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/Nagios/ drwxrwxrwx 1000/1000 0 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/Nagios/CheckLogfiles/ -rw-r--r-- 1000/1000 19579 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/Nagios/CheckLogfiles/Test.pm drwxrwxrwx 1000/1000 0 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/Nagios/CheckLogfiles/Search/ -rw-r--r-- 1000/1000 6352 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/Nagios/CheckLogfiles/Search/Esxdiag.pm -rw-r--r-- 1000/1000 4586 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/Nagios/CheckLogfiles/Search/Psloglist.pm -rw-r--r-- 1000/1000 28485 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/Nagios/CheckLogfiles/Search/Eventlog.pm -rw-r--r-- 1000/1000 4613 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/Nagios/CheckLogfiles/Search/Oraclealertlog.pm -rw-r--r-- 1000/1000 815 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/Nagios/CheckLogfiles/Search/Dummy.pm -rw-r--r-- 1000/1000 4447 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/Nagios/CheckLogfiles/Search/Ipmitool.pm -rw-r--r-- 1000/1000 3997 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/Nagios/CheckLogfiles/Search/Errpt.pm drwxrwxrwx 1000/1000 0 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/Nagios/Tivoli/ drwxrwxrwx 1000/1000 0 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/Nagios/Tivoli/Config/ -rw-r--r-- 1000/1000 16411 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/Nagios/Tivoli/Config/Logfile.pm -rw-r--r-- 1000/1000 118204 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/Nagios/CheckLogfiles.pm drwxrwxrwx 1000/1000 0 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/Debug/ -rw-r--r-- 1000/1000 1798 2010-06-29 14:42 check_logfiles-3.4.2/plugins-scripts/Debug/TraceMethods.pm drwxrwxrwx 1000/1000 0 2010-06-29 14:42 check_logfiles-3.4.2/t/ -rw-r--r-- 1000/1000 8925 2010-06-29 14:42 check_logfiles-3.4.2/t/053pathswithblanks.t -rw-r--r-- 1000/1000 6700 2010-06-29 14:42 check_logfiles-3.4.2/t/004rotation.t -rw-r--r-- 1000/1000 14179 2010-06-29 14:42 check_logfiles-3.4.2/t/053reportlong.t -rw-r--r-- 1000/1000 3991 2010-06-29 14:42 check_logfiles-3.4.2/t/040eventlog.t -rw-r--r-- 1000/1000 1999 2010-06-29 14:42 check_logfiles-3.4.2/t/050perms.t -rw-r--r-- 1000/1000 2946 2010-06-29 14:42 check_logfiles-3.4.2/t/002exceptions.t -rw-r--r-- 1000/1000 3972 2010-06-29 14:42 check_logfiles-3.4.2/t/006negative.t -rw-r--r-- 1000/1000 3682 2010-06-29 14:42 check_logfiles-3.4.2/t/071biggzrotation.t -rw-r--r-- 1000/1000 3001 2010-06-29 14:42 check_logfiles-3.4.2/t/041psloglist.t -rw-r--r-- 1000/1000 483 2010-06-29 14:42 check_logfiles-3.4.2/t/Makefile.am -rw-r--r-- 1000/1000 1579 2010-06-29 14:42 check_logfiles-3.4.2/t/032encoding.t -rw-r--r-- 1000/1000 12384 2010-06-29 14:42 check_logfiles-3.4.2/t/004rotationpattern.t -rw-r--r-- 1000/1000 2261 2010-06-29 14:42 check_logfiles-3.4.2/t/031lapping.t -rw-r--r-- 1000/1000 4868 2010-06-29 14:42 check_logfiles-3.4.2/t/087randominode.t drwxrwxrwx 1000/1000 0 2010-06-29 14:42 check_logfiles-3.4.2/t/etc/ -rw-r--r-- 1000/1000 595 2010-06-29 14:42 check_logfiles-3.4.2/t/etc/2check_action.cfg -rw-r--r-- 1000/1000 455 2010-06-29 14:42 check_logfiles-3.4.2/t/etc/check_null.cfg -rw-r--r-- 1000/1000 275 2010-06-29 14:42 check_logfiles-3.4.2/t/etc/check_somelogfiles.cfg -rw-r--r-- 1000/1000 965 2010-06-29 14:42 check_logfiles-3.4.2/t/etc/tivoli2.cfg drwxrwxrwx 1000/1000 0 2010-06-29 14:42 check_logfiles-3.4.2/t/etc/etc/ -rw-r--r-- 1000/1000 653 2010-06-29 14:42 check_logfiles-3.4.2/t/etc/etc/002patch.cfg -rw-r--r-- 1000/1000 596 2010-06-29 14:42 check_logfiles-3.4.2/t/etc/etc/001patch.cfg -rw-r--r-- 1000/1000 825 2010-06-29 14:42 check_logfiles-3.4.2/t/etc/tivoli.cfg -rwxr-xr-x 1000/1000 405 2010-06-29 14:42 check_logfiles-3.4.2/t/etc/syslog_enh_logfile_linux.fmt2 -rw-r--r-- 1000/1000 314 2010-06-29 14:42 check_logfiles-3.4.2/t/etc/check_kaas.cfg -rwxr-xr-x 1000/1000 20412 2010-06-29 14:42 check_logfiles-3.4.2/t/etc/syslog_enh_logfile_linux.fmt -rw-r--r-- 1000/1000 644 2010-06-29 14:42 check_logfiles-3.4.2/t/etc/templates2.cfg -rw-r--r-- 1000/1000 389 2010-06-29 14:42 check_logfiles-3.4.2/t/etc/tivoli3.cfg -rw-r--r-- 1000/1000 496 2010-06-29 14:42 check_logfiles-3.4.2/t/etc/check_glump.cfg -rw-r--r-- 1000/1000 644 2010-06-29 14:42 check_logfiles-3.4.2/t/etc/templates.cfg -rw-r--r-- 1000/1000 8015 2010-06-29 14:42 check_logfiles-3.4.2/t/015action.t -rw-r--r-- 1000/1000 6744 2010-06-29 14:42 check_logfiles-3.4.2/t/035chaosrotations.t -rw-r--r-- 1000/1000 2144 2010-06-29 14:42 check_logfiles-3.4.2/t/012lairdofglencairn.t -rw-r--r-- 1000/1000 5630 2010-06-29 14:42 check_logfiles-3.4.2/t/075winwarncrit.t -rw-r--r-- 1000/1000 8650 2010-06-29 14:42 check_logfiles-3.4.2/t/Makefile.in -rw-r--r-- 1000/1000 6938 2010-06-29 14:42 check_logfiles-3.4.2/t/010gzrotation.t -rw-r--r-- 1000/1000 33584 2010-06-29 14:42 check_logfiles-3.4.2/t/016smartaction.t -rw-r--r-- 1000/1000 2313 2010-06-29 14:42 check_logfiles-3.4.2/t/013marine.t -rw-r--r-- 1000/1000 2412 2010-06-29 14:42 check_logfiles-3.4.2/t/019seekmigrate.t -rw-r--r-- 1000/1000 2485 2010-06-29 14:42 check_logfiles-3.4.2/t/026case.t -rw-r--r-- 1000/1000 7111 2010-06-29 14:42 check_logfiles-3.4.2/t/005norotation.t -rw-r--r-- 1000/1000 5988 2010-06-29 14:42 check_logfiles-3.4.2/t/020perfdata.t -rw-r--r-- 1000/1000 16237 2010-06-29 14:42 check_logfiles-3.4.2/t/028sticky.t -rw-r--r-- 1000/1000 3520 2010-06-29 14:42 check_logfiles-3.4.2/t/011searches.t -rw-r--r-- 1000/1000 4006 2010-06-29 14:42 check_logfiles-3.4.2/t/009simplemacros.t -rw-r--r-- 1000/1000 7548 2010-06-29 14:42 check_logfiles-3.4.2/t/060templates.t -rw-r--r-- 1000/1000 11052 2010-06-29 14:42 check_logfiles-3.4.2/t/029prefilter.t -rw-r--r-- 1000/1000 6830 2010-06-29 14:42 check_logfiles-3.4.2/t/030windows.t -rw-r--r-- 1000/1000 19475 2010-06-29 14:42 check_logfiles-3.4.2/t/077tivoli.t -rw-r--r-- 1000/1000 1842 2010-06-29 14:42 check_logfiles-3.4.2/t/033mwagnermacros.t -rw-r--r-- 1000/1000 16450 2010-06-29 14:42 check_logfiles-3.4.2/t/007threshold.t -rw-r--r-- 1000/1000 6218 2010-06-29 14:42 check_logfiles-3.4.2/t/061maxlength.t -rw-r--r-- 1000/1000 1862 2010-06-29 14:42 check_logfiles-3.4.2/t/027errpt.t drwxrwxrwx 1000/1000 0 2010-06-29 14:42 check_logfiles-3.4.2/t/bin/ -rwxr-xr-x 1000/1000 174 2010-06-29 14:42 check_logfiles-3.4.2/t/bin/send_nsca -rwxr-xr-x 1000/1000 145 2010-06-29 14:42 check_logfiles-3.4.2/t/bin/samplescript -rwxr-xr-x 1000/1000 65 2010-06-29 14:42 check_logfiles-3.4.2/t/bin/script.sh -rw-r--r-- 1000/1000 964 2010-06-29 14:42 check_logfiles-3.4.2/t/bin/send_snmptrap.pl -rwxr-xr-x 1000/1000 69 2010-06-29 14:42 check_logfiles-3.4.2/t/bin/myscript -rwxr-xr-x 1000/1000 205 2010-06-29 14:42 check_logfiles-3.4.2/t/bin/send_snmptrap -rwxr-xr-x 1000/1000 44 2010-06-29 14:42 check_logfiles-3.4.2/t/bin/prescript.sh -rwxr-xr-x 1000/1000 169 2010-06-29 14:42 check_logfiles-3.4.2/t/bin/myenv -rw-r--r-- 1000/1000 11222 2010-06-29 14:42 check_logfiles-3.4.2/t/001simple.t -rw-r--r-- 1000/1000 11471 2010-06-29 14:42 check_logfiles-3.4.2/t/080configdir.t drwxrwxrwx 1000/1000 0 2010-06-29 14:41 check_logfiles-3.4.2/t/var/ drwxrwxrwx 1000/1000 0 2010-06-29 14:42 check_logfiles-3.4.2/t/var/adm/ -rw-r--r-- 1000/1000 0 2010-06-29 14:42 check_logfiles-3.4.2/t/var/adm/.gitignore drwxrwxrwx 1000/1000 0 2010-06-29 14:42 check_logfiles-3.4.2/t/var/tmp/ -rw-r--r-- 1000/1000 0 2010-06-29 14:42 check_logfiles-3.4.2/t/var/tmp/.gitignore -rw-r--r-- 1000/1000 8896 2010-06-29 14:42 check_logfiles-3.4.2/t/070rotpatterns.t -rw-r--r-- 1000/1000 3969 2010-06-29 14:42 check_logfiles-3.4.2/t/040eventlogfilt.t -rw-r--r-- 1000/1000 3531 2010-06-29 14:42 check_logfiles-3.4.2/t/025commandline.t -rw-r--r-- 1000/1000 6670 2010-06-29 14:42 check_logfiles-3.4.2/t/034preferredlevel.t -rw-r--r-- 1000/1000 34364 2010-06-29 14:42 check_logfiles-3.4.2/config.sub -rw-r--r-- 1000/1000 3477 2010-06-29 14:42 check_logfiles-3.4.2/configure.in -rw-r--r-- 1000/1000 9965 2010-06-29 14:42 check_logfiles-3.4.2/ChangeLog + STATUS=0 + '[' 0 -ne 0 ']' + cd check_logfiles-3.4.2 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.jm9fMP + umask 022 + cd /root/rpmbuild/BUILD + cd check_logfiles-3.4.2 + CFLAGS='-O2 -g -march=i386 -mtune=i686' + export CFLAGS + CXXFLAGS='-O2 -g -march=i386 -mtune=i686' + export CXXFLAGS + FFLAGS='-O2 -g -march=i386 -mtune=i686' + export FFLAGS + ./configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --libexecdir=/usr/lib/nagios/plugins checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p 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 a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... (cached) yes variable with_seekfiles_dir is /var/tmp/check_logfiles checking for sh... /bin/sh checking for perl... /usr/bin/perl checking for gzip... /bin/gzip checking for gawk... /bin/gawk checking for echo... /bin/echo checking for sed... /bin/sed checking for cat... /bin/cat configure: creating ./config.status config.status: creating Makefile config.status: creating plugins-scripts/Makefile config.status: creating plugins-scripts/subst config.status: creating t/Makefile --with-perl: /usr/bin/perl --with-gzip: /bin/gzip --with-seekfiles-dir: /var/tmp/check_logfiles --with-protocols-dir: /tmp --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin --with-nagios-user: nagios --with-nagios-group: nagios + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.zv8zPA + umask 022 + cd /root/rpmbuild/BUILD + cd check_logfiles-3.4.2 + /bin/rm -rf /root/rpmbuild/BUILDROOT/check_logfiles-3.4.2-1.amzn1.i386 + /usr/bin/make install DESTDIR=/root/rpmbuild/BUILDROOT/check_logfiles-3.4.2-1.amzn1.i386 cd . && /bin/sh /root/rpmbuild/BUILD/check_logfiles-3.4.2/missing --run aclocal-1.10 /root/rpmbuild/BUILD/check_logfiles-3.4.2/missing: line 52: aclocal-1.10: command not found WARNING: `aclocal-1.10' is missing on your system. You should only need it if you modified `acinclude.m4' or `configure.in'. You might want to install the `Automake' and `Perl' packages. Grab them from any GNU archive site. cd . && /bin/sh /root/rpmbuild/BUILD/check_logfiles-3.4.2/missing --run automake-1.10 --gnu /root/rpmbuild/BUILD/check_logfiles-3.4.2/missing: line 52: automake-1.10: command not found WARNING: `automake-1.10' is missing on your system. You should only need it if you modified `Makefile.am', `acinclude.m4' or `configure.in'. You might want to install the `Automake' and `Perl' packages. Grab them from any GNU archive site. cd . && /bin/sh /root/rpmbuild/BUILD/check_logfiles-3.4.2/missing --run autoconf /root/rpmbuild/BUILD/check_logfiles-3.4.2/missing: line 52: autoconf: command not found WARNING: `autoconf' is missing on your system. You should only need it if you modified `configure.in'. You might want to install the `Autoconf' and `GNU m4' packages. Grab them from any GNU archive site. /bin/sh ./config.status --recheck running CONFIG_SHELL=/bin/sh /bin/sh ./configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --libexecdir=/usr/lib/nagios/plugins build_alias=i686-pc-linux-gnu host_alias=i686-pc-linux-gnu --no-create --no-recursion checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p 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 a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... (cached) yes variable with_seekfiles_dir is /var/tmp/check_logfiles checking for sh... /bin/sh checking for perl... /usr/bin/perl checking for gzip... /bin/gzip checking for gawk... /bin/gawk checking for echo... /bin/echo checking for sed... /bin/sed checking for cat... /bin/cat configure: creating ./config.status --with-perl: /usr/bin/perl --with-gzip: /bin/gzip --with-seekfiles-dir: /var/tmp/check_logfiles --with-protocols-dir: /tmp --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin --with-nagios-user: nagios --with-nagios-group: nagios /bin/sh ./config.status config.status: creating Makefile config.status: creating plugins-scripts/Makefile config.status: creating plugins-scripts/subst config.status: creating t/Makefile Making install in plugins-scripts make[1]: Entering directory `/root/rpmbuild/BUILD/check_logfiles-3.4.2/plugins-scripts' /bin/echo "#! #PERL# -w" | /bin/gawk -f ./subst > check_logfiles /bin/echo "# nagios: -epn" >> check_logfiles /bin/sed -e 's/^1;//g' < Debug/TraceMethods.pm | /bin/gawk -f ./subst >> check_logfiles /bin/sed -e 's/^1;//g' < Nagios/Tivoli/Config/Logfile.pm | /bin/gawk -f ./subst >> check_logfiles /bin/sed -e 's/^1;//g' < Nagios/CheckLogfiles.pm | /bin/gawk -f ./subst >> check_logfiles /bin/sed -e 's/^1;//g' < Nagios/CheckLogfiles/Search/Dummy.pm | /bin/gawk -f ./subst >> check_logfiles /bin/sed -e 's/^1;//g' < Nagios/CheckLogfiles/Search/Errpt.pm | /bin/gawk -f ./subst >> check_logfiles /bin/sed -e 's/^1;//g' < Nagios/CheckLogfiles/Search/Ipmitool.pm | /bin/gawk -f ./subst >> check_logfiles /bin/sed -e 's/^1;//g' < Nagios/CheckLogfiles/Search/Oraclealertlog.pm | /bin/gawk -f ./subst >> check_logfiles /bin/sed -e 's/^1;//g' < Nagios/CheckLogfiles/Search/Esxdiag.pm | /bin/gawk -f ./subst >> check_logfiles /bin/cat check_logfiles.pl | /bin/gawk -f ./subst >> check_logfiles chmod +x check_logfiles make[2]: Entering directory `/root/rpmbuild/BUILD/check_logfiles-3.4.2/plugins-scripts' test -z "/usr/lib/nagios/plugins" || /bin/mkdir -p "/root/rpmbuild/BUILDROOT/check_logfiles-3.4.2-1.amzn1.i386/usr/lib/nagios/plugins" /usr/bin/install -c 'check_logfiles' '/root/rpmbuild/BUILDROOT/check_logfiles-3.4.2-1.amzn1.i386/usr/lib/nagios/plugins/check_logfiles' make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/root/rpmbuild/BUILD/check_logfiles-3.4.2/plugins-scripts' make[1]: Leaving directory `/root/rpmbuild/BUILD/check_logfiles-3.4.2/plugins-scripts' Making install in t make[1]: Entering directory `/root/rpmbuild/BUILD/check_logfiles-3.4.2/t' make[2]: Entering directory `/root/rpmbuild/BUILD/check_logfiles-3.4.2/t' 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/rpmbuild/BUILD/check_logfiles-3.4.2/t' make[1]: Leaving directory `/root/rpmbuild/BUILD/check_logfiles-3.4.2/t' make[1]: Entering directory `/root/rpmbuild/BUILD/check_logfiles-3.4.2' make[2]: Entering directory `/root/rpmbuild/BUILD/check_logfiles-3.4.2' 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/rpmbuild/BUILD/check_logfiles-3.4.2' make[1]: Leaving directory `/root/rpmbuild/BUILD/check_logfiles-3.4.2' + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip + /usr/lib/rpm/brp-strip-static-archive + /usr/lib/rpm/brp-strip-comment-note Processing files: check_logfiles-3.4.2-1.amzn1.i386 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/perl perl(Carp) perl(Cwd) perl(Data::Dumper) perl(Digest::MD5) perl(Exporter) perl(File::Basename) perl(File::Find) perl(File::Spec) perl(Getopt::Long) perl(IO::File) perl(IPC::Open2) perl(POSIX) perl(Socket) perl(Time::Local) perl(constant) perl(filetest) perl(strict) perl(utf8) perl(vars) perl(warnings) Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/check_logfiles-3.4.2-1.amzn1.i386 Wrote: /root/rpmbuild/RPMS/i386/check_logfiles-3.4.2-1.amzn1.i386.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.XHpiYj + umask 022 + cd /root/rpmbuild/BUILD + cd check_logfiles-3.4.2 + /bin/rm -rf /root/rpmbuild/BUILDROOT/check_logfiles-3.4.2-1.amzn1.i386 + exit 0