a-Column

【Linux】NRPEインストール

○nrpeのインストール

[root@edlogdb src]# tar zxvf nrpe-2.0.tar.gz
[root@edlogdb src]# cd nrpe-2.0
[root@edlogdb nrpe-2.0]# ./configure --enable-command-args
[root@edlogdb nrpe-2.0]# make all

○nagios-pluginのインストール

[root@edlogdb src]# tar zxvf nagios-plugins-1.4.4.tar.gz
[root@edlogdb src]# cd nagios-plugins-1.4.4
[root@edlogdb nagios-plugins-1.4.4]# ./configure
[root@edlogdb nagios-plugins-1.4.4]# make;make install
[root@edlogdb nagios-plugins-1.4.4]# cd /usr/local/src/nrpe-2.0
[root@edlogdb nrpe-2.0]# cd src/

○ソースのコピー

[root@edlogdb nrpe-2.0]# cp src/nrpe /usr/local/nagios/libexec/
[root@edlogdb nrpe-2.0]# mkdir /usr/local/nagios/etc/
[root@edlogdb nrpe-2.0]# cp nrpe.cfg /usr/local/nagios/etc/

※下記のようなエラーは、mysqlのインストール場所が違う場合など
に発生します。MYSQLを監視しない場合には、configureオプションで
--without-mysql を使用してインストールする事。

--------------------------------------------------------------------
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
check_mysql.c:51:19: mysql.h: No such file or directory
check_mysql.c:52:20: errmsg.h: No such file or directory
check_mysql.c:58: error: `MYSQL_PORT' undeclared here (not in a function)
check_mysql.c: In function `main':
check_mysql.c:73: error: `MYSQL' undeclared (first use in this function)
check_mysql.c:73: error: (Each undeclared identifier is reported only once
check_mysql.c:73: error: for each function it appears in.)
check_mysql.c:73: error: syntax error before "mysql"
--------------------------------------------------------------------

Last Update : 2006年10月30日 (月) 21:13