ƒŠƒ‚[ƒgƒzƒXƒgƒT[ƒrƒXŠÄŽ‹(Nagios+nrpe)

ĹIXV“úF 2017.09.16

<<ƒgƒbƒvƒy[ƒW <<V’…î•ń <<‹tˆř‚ŤW <<ƒŠƒ“ƒNW <<ƒTƒCƒg“ŕŒŸő <<ƒƒ‹ƒ}ƒK <<Scientific Linux‚ĹŽŠ‘îƒT[ƒo[\’z <<Fedora‚ĹŽŠ‘îƒT[ƒo[\’z

ĄŠT—v

Nagios‚ĚƒAƒhƒIƒ“nrpe‚Ĺ‘źƒT[ƒo[‚ĚƒT[ƒrƒX‚đŠÄŽ‹‚ˇ‚éB

ŚNagios“ą“üĎ‚Ĺ‚ ‚é‚ą‚Ć


ĄnrpeƒCƒ“ƒXƒg[ƒ‹

i‚PjNagiosƒT[ƒo[‘¤
[root@centos ~]# wget https://downloads.sourceforge.net/project/nagios/nrpe-3.x/nrpe-3.1.0.tar.gz@Š@nrpeƒ_ƒEƒ“ƒ[ƒh

ŚĹV”Ĺ‚ĚURL‚̓_ƒEƒ“ƒ[ƒhƒy[ƒW‚ĹŠm”F‚ˇ‚é‚ą‚Ć

[root@centos ~]# tar zxvf nrpe-3.1.0.tar.gz@Š@nrpe“WŠJ

[root@centos ~]# cd nrpe-3.1.0@Š@nrpe“WŠJćƒfƒBƒŒƒNƒgƒŠ‚ÖˆÚ“Ž

[root@centos nrpe-3.1.0]# ./configure && make check_nrpe && make install-plugin@Š@nrpeƒvƒ‰ƒOƒCƒ“ƒCƒ“ƒXƒg[ƒ‹

[root@centos nrpe-3.1.0]# cd@Š@nrpe“WŠJćƒfƒBƒŒƒNƒgƒŠ‚𔲂Ż‚é

[root@centos ~]# rm -rf nrpe-3.1.0@Š@nrpe“WŠJćƒfƒBƒŒƒNƒgƒŠ‚đíœ

[root@centos ~]# rm -f nrpe-3.1.0.tar.gz@Š@ƒ_ƒEƒ“ƒ[ƒh‚ľ‚˝ƒtƒ@ƒCƒ‹‚đíœ

i‚QjŠÄŽ‹‘ÎŰƒT[ƒo[‘¤

[root@fedora ~]# yum -y install openssl-devel@Š@nrpeƒCƒ“ƒXƒg[ƒ‹‚É•K—v‚ČƒpƒbƒP[ƒW‚đƒCƒ“ƒXƒg[ƒ‹

[root@fedora ~]# useradd -d /usr/local/nagios/ -M nagios@Š@nagiosƒ†[ƒU[ěŹ

[root@fedora ~]# mkdir /usr/local/nagios@Š@nrpeƒCƒ“ƒXƒg[ƒ‹ćƒfƒBƒŒƒNƒgƒŠěŹ

[root@fedora ~]# chown nagios:nagios /usr/local/nagios/@Š@nrpeƒCƒ“ƒXƒg[ƒ‹ćƒfƒBƒŒƒNƒgƒŠŠ—LŽŇ•ĎX

[root@fedora ~]# git clone https://github.com/NagiosEnterprises/nrpe.git@Š@nrpeƒ_ƒEƒ“ƒ[ƒh

[root@fedora ~]# cd nrpe/@Š@nrpeƒ_ƒEƒ“ƒ[ƒhćƒfƒBƒŒƒNƒgƒŠ‚ÖˆÚ“Ž

[root@fedora nrpe]# ./configure && make nrpe && make install-daemon && make install-config && make install-init@Š@nrpeƒCƒ“ƒXƒg[ƒ‹

[root@fedora nrpe]# cd@Š@nrpeƒ_ƒEƒ“ƒ[ƒhćƒfƒBƒŒƒNƒgƒŠ‚𔲂Ż‚é

[root@fedora ~]# rm -rf nrpe@Š@nrpeƒ_ƒEƒ“ƒ[ƒhćƒfƒBƒŒƒNƒgƒŠ‚đíœ

[root@fedora ~]# yum -y install mysql-devel@Š@mysql-develƒCƒ“ƒXƒg[ƒ‹ŚMySQL‚ĚŠÄŽ‹‚đs‚Č‚¤ę‡‚Ě‚Ý

[root@fedora ~]# wget https://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz@Š@Nagiosƒvƒ‰ƒOƒCƒ“ƒ_ƒEƒ“ƒ[ƒh

ŚĹV”Ĺ‚ĚURL‚̓_ƒEƒ“ƒ[ƒhƒy[ƒW‚ĹŠm”F‚ˇ‚é‚ą‚Ć

[root@fedora ~]# tar zxvf nagios-plugins-2.2.1.tar.gz@Š@Nagiosƒvƒ‰ƒOƒCƒ““WŠJ

[root@fedora ~]# cd nagios-plugins-2.2.1@Š@Nagiosƒvƒ‰ƒOƒCƒ““WŠJćƒfƒBƒŒƒNƒgƒŠ‚ÖˆÚ“Ž

[root@fedora nagios-plugins-2.2.1]# ./configure && make && make install@Š@Nagiosƒvƒ‰ƒOƒCƒ“ƒCƒ“ƒXƒg[ƒ‹

[root@fedora nagios-plugins-2.2.1]# cd@Š@Nagiosƒvƒ‰ƒOƒCƒ““WŠJćƒfƒBƒŒƒNƒgƒŠ‚𔲂Ż‚é

[root@fedora ~]# rm -rf nagios-plugins-2.2.1@Š@Nagiosƒvƒ‰ƒOƒCƒ““WŠJćƒfƒBƒŒƒNƒgƒŠ‚đíœ

[root@fedora ~]# rm -f nagios-plugins-2.2.1.tar.gz@Š@ƒ_ƒEƒ“ƒ[ƒh‚ľ‚˝ƒtƒ@ƒCƒ‹‚đíœ

ĄnrpeÝ’č

i‚PjNagiosƒT[ƒo[‘¤
[root@centos ~]# vi /usr/local/nagios/etc/objects/commands.cfg@Š@commands.cfg•ŇW
ˆČ‰ş‚đĹIs‚֒ljÁ
# 'check_nrpe' command definition
define command{
        command_name    check_nrpe
        command_line    $USER1$/check_nrpe -n -H $HOSTADDRESS$ -c $ARG1$
        }

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚QjŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
[root@fedora ~]# echo "nrpe 5666/tcp # NRPE" >> /etc/services@Š@TCP5666‚đnrpe‚ĚƒT[ƒrƒXƒ|[ƒg‚Ć‚ľ‚ĒljÁ

[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpeÝ’čƒtƒ@ƒCƒ‹•ŇW
allowed_hosts=127.0.0.1,::1,192.168.1.30@Š@NagiosƒT[ƒo[‚ĚIPƒAƒhƒŒƒX(—á:192.168.1.30)‚đ’ljÁ

Ąnrpe‹N“Ž

i‚PjŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
[root@fedora ~]# vi /usr/lib/systemd/system/nrpe.service@Š@nrpe‹N“ŽÝ’čƒtƒ@ƒCƒ‹•ŇW
ExecStart=/usr/local/nagios/bin/nrpe -n -c /usr/local/nagios/etc/nrpe.cfg -f@Š@u-nv‚đ’ljÁ‚ľ‚ÄSSL–łŒř‰ť

[root@fedora ~]# systemctl daemon-reload@Š@nrpe‹N“ŽÝ’čƒtƒ@ƒCƒ‹•ŇW”˝‰f

[root@fedora ~]# systemctl start nrpe@Š@nrpe‹N“Ž

[root@fedora ~]# systemctl enable nrpe@Š@nrpeŽŠ“Ž‹N“ŽÝ’č



ĄŠÄŽ‹ƒT[ƒrƒX’ljÁ

—á‚Ć‚ľ‚ăzƒXƒg–źfedora‚ĚŠÄŽ‹ƒT[ƒrƒX‚đ’ljÁ‚ˇ‚éB
ŚƒzƒXƒg–źfedora‚ÍŠÄŽ‹ƒzƒXƒg‚Ć‚ľ‚ĒljÁĎ‚Ĺ‚ ‚é‚ą‚Ɓ˓‡ŠÄŽ‹ƒVƒXƒeƒ€\’z(Nagios)‚́uĄŠÄŽ‹ƒzƒXƒg’ljÁvŽQĆ

i‚PjCPU•‰‰×
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
command[check_load]=/usr/local/nagios/libexec/check_load -w 9.0,7.0,6.0 -c 10.0,8.0,7.0@Š@ƒ[ƒhƒAƒxƒŒ[ƒW‚Ş9.0,7.0,6.0‚ĹŒxA10.0,8.0,7.0‚ĹˆŮí‚Ć‚ˇ‚é

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/objects/commands.cfg@Š@commands.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define command{
        command_name    check_remote_load
        command_line    $USER1$/check_nrpe -n -H $HOSTADDRESS$ -c check_load
        }

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             Current Load
        check_command                   check_remote_load
        }

[root@centos ~]# ln -s /usr/local/pnp4nagios/share/templates.dist/check_load.php /usr/local/pnp4nagios/share/templates.dist/check_remote_load.php@Š@PNP—pƒeƒ“ƒvƒŒ[ƒgƒŠƒ“ƒNÝ’职NagiosƒT[ƒo[‘¤ŚPNP“ą“üĎ‚Ěę‡‚Ě‚Ý

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚QjƒfƒBƒXƒN‹ó‚Ťó‹ľ
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
command[check_disk]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /@Š@/(ƒ‹[ƒg)ƒp[ƒeƒBƒVƒ‡ƒ“‚Ě‹ó‚Ť‚Ş20%‚ĹŒxA10%‚ĹˆŮí‚Ć‚ˇ‚é

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/objects/commands.cfg@Š@commands.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define command{
        command_name    check_remote_disk
        command_line    $USER1$/check_nrpe -n -H $HOSTADDRESS$ -c check_disk
        }

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             Root Partition
        check_command                   check_remote_disk
        }

[root@centos ~]# ln -s /usr/local/pnp4nagios/share/templates.dist/check_disk.php /usr/local/pnp4nagios/share/templates.dist/check_remote_disk.php@Š@PNP—pƒeƒ“ƒvƒŒ[ƒgƒŠƒ“ƒNÝ’职NagiosƒT[ƒo[‘¤ŚPNP“ą“üĎ‚Ěę‡‚Ě‚Ý

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚Rjƒƒ‚ƒŠŽg—pó‹ľ
[root@fedora ~]# wget "https://exchange.nagios.org/components/com_mtree/attachment.php?link_id=4174&cf_id=24" -O check_mem@Š@check_memƒvƒ‰ƒOƒCƒ“ƒ_ƒEƒ“ƒ[ƒhŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤

[root@fedora ~]# /bin/mv check_mem /usr/local/nagios/libexec/@Š@check_memƒvƒ‰ƒOƒCƒ“‚đŠ’č‚ĚƒfƒBƒŒƒNƒgƒŠ‚ÖˆÚ“ŽŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤

[root@fedora ~]# chmod +x /usr/local/nagios/libexec/check_mem@Š@check_memƒvƒ‰ƒOƒCƒ“‚ÉŽŔsŒ ŒŔ•t‰ÁŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤

[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
command[check_mem]=/usr/local/nagios/libexec/check_mem -w 80 -c 90 -W 80 -C 90@Š@•¨—ƒƒ‚ƒŠŽg—p—Ś‚Ş80%‚ĹŒxA90%‚ĹˆŮíA‰ź‘zƒƒ‚ƒŠŽg—p—Ś‚Ş80%‚ĹŒxA90%‚ĹˆŮí‚Ć‚ˇ‚é

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/objects/commands.cfg@Š@commands.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define command{
        command_name    check_remote_mem
        command_line    $USER1$/check_nrpe -n -H $HOSTADDRESS$ -c check_mem
        }

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             Memory Usage
        check_command                   check_remote_mem
        }

[root@centos ~]# ln -s /usr/local/pnp4nagios/share/templates.dist/check_mem.php /usr/local/pnp4nagios/share/templates.dist/check_remote_mem.php@Š@PNP—pƒeƒ“ƒvƒŒ[ƒgƒŠƒ“ƒNÝ’职NagiosƒT[ƒo[‘¤ŚPNP“ą“üĎ‚Ěę‡‚Ě‚Ý

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚SjƒvƒƒZƒX”
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 250 -c 400 -s RSZDT@Š@ƒvƒƒZƒX”‚Ş250‚ĹŒxA400‚ĹˆŮí‚Ć‚ˇ‚é

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             Total Processes
        check_command                   check_nrpe!check_total_procs
        }

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚TjƒƒOƒCƒ“ƒ†[ƒU[”
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
command[check_users]=/usr/local/nagios/libexec/check_users -w 3 -c 5@Š@ƒƒOƒCƒ“ƒ†[ƒU[”‚Ş3‚ĹŒxA5‚ĹˆŮí‚Ć‚ˇ‚é

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             Current Users
        check_command                   check_nrpe!check_users
        }

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚UjSSH
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
command[check_ssh]=/usr/local/nagios/libexec/check_ssh -H 127.0.0.1

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             SSH
        check_command                   check_nrpe!check_ssh
        }

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚VjNTP
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
command[check_ntp]=/usr/local/nagios/libexec/check_ntp -H ntp.nict.jp -w 1 -c 2@Š@ntp.nict.jp‚ĆŽžŠÔ‚Ş1•b‚¸‚ę‚Ä‚˘‚˝‚çŒxA2•b‚¸‚ę‚Ä‚˘‚˝‚çˆŮí‚Ć‚ˇ‚é

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             NTP
        check_command                   check_nrpe!check_ntp
        }

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚WjclamdŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤‚ÉClam AntiVirus“ą“üĎ‚Ěę‡‚Ě‚Ý
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
command[check_clamd]=/usr/local/nagios/libexec/check_clamd -H /var/run/clamav/clamd.sock@Š@/var/run/clamav/clamd.sock‚Íclamd.conf‚ĚLocalSocketƒIƒvƒVƒ‡ƒ“‚ĹŽw’č‚ľ‚˝’l

[root@fedora ~]# chmod u+s /usr/local/nagios/libexec/check_clamd@Š@clamdƒ\ƒPƒbƒgƒtƒ@ƒCƒ‹‚֐ڑą‚Ĺ‚Ť‚é‚悤‚É‚ˇ‚遌ŠÄŽ‹‘ÎŰƒT[ƒo[‘¤

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             clamd
        check_command                   check_nrpe!check_clamd
        }

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚XjDNSŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤‚ÉBIND“ą“üĎ‚Ěę‡‚Ě‚Ý
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
command[check_dig]=/usr/local/nagios/libexec/check_dig -H 127.0.0.1 -l fedorasrv.com@Š@–ź‘O‰đŒˆƒzƒXƒg–ź‚ÉŠÄŽ‹‘ÎŰƒT[ƒo[‚ĚƒhƒƒCƒ“–ź‚đŽw’č

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             DNS
        check_command                   check_nrpe!check_dig
        }

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚P‚OjHTTPŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤‚ÉApache“ą“üĎ‚Ěę‡‚Ě‚Ý
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
command[check_http]=/usr/local/nagios/libexec/check_http -H 127.0.0.1

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/objects/commands.cfg@Š@commands.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define command{
        command_name    check_remote_http
        command_line    $USER1$/check_nrpe -n -H $HOSTADDRESS$ -c check_http
        }

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             HTTP
        check_command                   check_remote_http
        }

[root@centos ~]# ln -s /usr/local/pnp4nagios/share/templates.dist/check_http.php /usr/local/pnp4nagios/share/templates.dist/check_remote_http.php@Š@PNP—pƒeƒ“ƒvƒŒ[ƒgƒŠƒ“ƒNÝ’职NagiosƒT[ƒo[‘¤ŚPNP“ą“üĎ‚Ěę‡‚Ě‚Ý

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚P‚PjSMTPŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤‚Ƀ[ƒ‹ƒT[ƒo[“ą“üĎ‚Ěę‡‚Ě‚Ý
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
command[check_smtp]=/usr/local/nagios/libexec/check_smtp -H 127.0.0.1

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/objects/commands.cfg@Š@commands.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define command{
        command_name    check_remote_smtp
        command_line    $USER1$/check_nrpe -n -H $HOSTADDRESS$ -c check_smtp
        }

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             SMTP
        check_command                   check_nrpe!check_smtp
        }

[root@centos ~]# ln -s /usr/local/pnp4nagios/share/templates.dist/check_smtp.php /usr/local/pnp4nagios/share/templates.dist/check_remote_smtp.php@Š@PNP—pƒeƒ“ƒvƒŒ[ƒgƒŠƒ“ƒNÝ’职NagiosƒT[ƒo[‘¤ŚPNP“ą“üĎ‚Ěę‡‚Ě‚Ý

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚P‚QjPOPŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤‚Ƀ[ƒ‹ƒT[ƒo[“ą“üĎ‚Ěę‡‚Ě‚Ý
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
command[check_pop]=/usr/local/nagios/libexec/check_pop -H 127.0.0.1

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             POP
        check_command                   check_nrpe!check_pop
        }

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚P‚RjIMAPŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤‚Ƀ[ƒ‹ƒT[ƒo[“ą“üĎ‚Ěę‡‚Ě‚Ý
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
command[check_imap]=/usr/local/nagios/libexec/check_imap -H 127.0.0.1 -p 143

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             IMAP
        check_command                   check_nrpe!check_imap
        }

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚P‚Sjmilter-managerŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤‚Émilter-manager(milter-greylistAclamav-milterAspamass-milter)“ą“üĎ‚Ěę‡‚Ě‚Ý
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
command[check_milter-manager]=/usr/local/nagios/libexec/check_tcp -H /var/run/milter-manager/milter-manager.sock

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             milter-manager
        check_command                   check_nrpe!check_milter-manager
        }

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚P‚Tjmilter-greylistŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤‚Émilter-greylist“ą“üĎ‚Ěę‡‚Ě‚Ý
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
command[check_milter-greylist]=/usr/local/nagios/libexec/check_tcp -H /run/milter-greylist/milter-greylist.sock

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             milter-greylist
        check_command                   check_nrpe!check_milter-greylist
        }

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚P‚Ujclamav-milterŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤‚Éclamav-milter“ą“üĎ‚Ěę‡‚Ě‚Ý
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
command[check_clamav-milter]=/usr/local/nagios/libexec/check_tcp -H /var/run/clamav-milter/clamav-milter.socket

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             clamav-milter
        check_command                   check_nrpe!check_clamav-milter
        }

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚P‚Vjspamass-milterŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤‚Éspamass-milter“ą“üĎ‚Ěę‡‚Ě‚Ý
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
command[check_spamass-milter]=/usr/local/nagios/libexec/check_tcp -H /run/spamass-milter/postfix/sock

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             spamass-milter
        check_command                   check_nrpe!check_spamass-milter
        }

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚P‚WjspamdŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤‚ÉSpamAssassin“ą“üĎ‚Ěę‡‚Ě‚Ý
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
command[check_spamd]=/usr/local/nagios/libexec/check_tcp -H 127.0.0.1 -p 783

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             spamd
        check_command                   check_nrpe!check_spamd
        }

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚P‚XjSambaŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤‚ÉSamba“ą“üĎ‚Ěę‡‚Ě‚Ý
[root@fedora ~]# yum -y install samba-client@Š@samba-clientƒCƒ“ƒXƒg[ƒ‹

[root@fedora ~]# vi /usr/local/nagios/libexec/check_disk_smb@Š@check_disk_smbƒvƒ‰ƒOƒCƒ“•ŇW
my $smbclient= "/usr/bin/smbclient" ;@Š@smbclientƒRƒ}ƒ“ƒhƒpƒXÝ’č

[root@fedora ~]# echo SambaƒT[ƒo[IPƒAƒhƒŒƒXŚ SambaƒT[ƒo[ƒzƒXƒg–ź >> /etc/samba/lmhosts
@Š@lmhosts‚ÖSambaƒT[ƒo[‚ĚIPƒAƒhƒŒƒX^ƒzƒXƒg–ź‚đ’ljÁ‚ˇ‚é
ŚSambaƒT[ƒo[IPƒAƒhƒŒƒX‚Ƀ‹[ƒvƒoƒbƒNƒAƒhƒŒƒX(127.0.0.1)‚ÍŽw’č‚Ĺ‚Ť‚Č‚˘

[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
command[check_samba]=/usr/local/nagios/libexec/check_disk_smb -H SambaƒT[ƒo[ƒzƒXƒg–ź -s Samba‹¤—L–ź -W Sambaƒ[ƒNƒOƒ‹[ƒv–ź -u Sambaƒ†[ƒU[–ź -p Sambaƒ†[ƒU[ƒpƒXƒ[ƒh

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/objects/commands.cfg@Š@commands.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define command{
        command_name    check_remote_samba
        command_line    $USER1$/check_nrpe -n -H $HOSTADDRESS$ -c check_samba
        }

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             Samba
        check_command                   check_nrpe!check_samba
        }

[root@centos ~]# ln -s /usr/local/pnp4nagios/share/templates.dist/check_samba.php /usr/local/pnp4nagios/share/templates.dist/check_remote_samba.php@Š@PNP—pƒeƒ“ƒvƒŒ[ƒgƒŠƒ“ƒNÝ’职NagiosƒT[ƒo[‘¤ŚPNP“ą“üĎ‚Ěę‡‚Ě‚Ý

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚Q‚OjMySQLŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤‚ÉMySQL“ą“üĎ‚Ěę‡‚Ě‚Ý
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
command[check_mysql]=/usr/local/nagios/libexec/check_mysql -H 127.0.0.1 -u root -p MySQL‚Ěrootƒ†[ƒU[ƒpƒXƒ[ƒh

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             MySQL
        check_command                   check_nrpe!check_mysql
        }

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

i‚Q‚Pjƒlƒbƒgƒ[ƒNŽg—pó‹ľ
[root@fedora ~]# wget "https://exchange.nagios.org/components/com_mtree/attachment.php?link_id=4105&cf_id=24" -O check_traffic_pnp4naios.sh@Š@check_traffic_pnp4naiosƒvƒ‰ƒOƒCƒ“ƒ_ƒEƒ“ƒ[ƒhŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤

[root@fedora ~]# mv check_traffic_pnp4naios.sh /usr/local/nagios/libexec/@Š@check_traffic_pnp4naiosƒvƒ‰ƒOƒCƒ“‚đŠ’č‚ĚƒfƒBƒŒƒNƒgƒŠ‚ÖˆÚ“ŽŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤

[root@fedora ~]# chmod +x /usr/local/nagios/libexec/check_traffic_pnp4naios.sh@Š@check_traffic_pnp4naiosƒvƒ‰ƒOƒCƒ“‚ÉŽŔsŒ ŒŔ•t‰ÁŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤

[root@fedora ~]# vi /usr/local/nagios/libexec/check_traffic_pnp4naios.sh@Š@check_traffic_pnp4naiosƒvƒ‰ƒOƒCƒ“•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
#DIR=/App/nagios/tmp@Š@s“Ş‚É#‚đ’ljÁ‚ľ‚ăRƒƒ“ƒgƒAƒEƒg
DIR=/usr/local/nagios/var@Š@’ljÁiˆęŽžƒfƒBƒŒƒNƒgƒŠ‚đŽw’čj

#if [ `cat /App/nagios/tmp/.network-$DEVICE.tmp | wc -c` -eq 0 ];then@Š@s“Ş‚É#‚đ’ljÁ‚ľ‚ăRƒƒ“ƒgƒAƒEƒg
if [ `cat $FILE | wc -c` -eq 0 ];then@Š@’ljÁi‘O‰ńŽć“ž’lŠi”[ć‚đ•Ď”‚É•ĎXj
        echo -en `date +%s`"\t" >$FILE
        #echo -en `ifconfig $DEVICE | grep "RX bytes" | awk '{print $2}' | awk -F: '{print $NF}'`"\t" >>$FILE@Š@s“Ş‚É#‚đ’ljÁ‚ľ‚ăRƒƒ“ƒgƒAƒEƒg
        #echo `ifconfig $DEVICE | grep "RX bytes" | awk '{print $6}' | awk -F: '{print $NF}'`>>$FILE@Š@s“Ş‚É#‚đ’ljÁ‚ľ‚ăRƒƒ“ƒgƒAƒEƒg
        echo -en `ifconfig $DEVICE | grep "RX " | grep "bytes" | awk '{print $5}'`"\t" >>$FILE@Š@’ljÁiifconfigƒRƒ}ƒ“ƒhƒtƒH[ƒ}ƒbƒg‘Šˆá‘Ήžj
        echo `ifconfig $DEVICE | grep "TX " | grep "bytes" | awk '{print $5}'`>>$FILE@Š@’ljÁiifconfigƒRƒ}ƒ“ƒhƒtƒH[ƒ}ƒbƒg‘Šˆá‘Ήžj
        echo "This is first run"
else
        New_Time=`date +%s`
        #New_In=`ifconfig $DEVICE | grep "RX bytes" | awk '{print $2}' | awk -F: '{print $NF}'`@Š@s“Ş‚É#‚đ’ljÁ‚ľ‚ăRƒƒ“ƒgƒAƒEƒg
        #New_Out=`ifconfig $DEVICE | grep "RX bytes" | awk '{print $6}' | awk -F: '{print $NF}'`@Š@s“Ş‚É#‚đ’ljÁ‚ľ‚ăRƒƒ“ƒgƒAƒEƒg
        New_In=`ifconfig $DEVICE | grep "RX " | grep "bytes" | awk '{print $5}'`@Š@’ljÁiifconfigƒRƒ}ƒ“ƒhƒtƒH[ƒ}ƒbƒg‘Šˆá‘Ήžj
        New_Out=`ifconfig $DEVICE | grep "TX " | grep "bytes" | awk '{print $5}'`@Š@’ljÁiifconfigƒRƒ}ƒ“ƒhƒtƒH[ƒ}ƒbƒg‘Šˆá‘Ήžj

[root@fedora ~]#  vi /usr/local/nagios/etc/nrpe.cfg@Š@nrpe.cfg•ŇWŚŠÄŽ‹‘ÎŰƒT[ƒo[‘¤
command[check_traffic]=/usr/local/nagios/libexec/check_traffic_pnp4naios.sh -i eth0 -w 80000000 -c 90000000@Š@ƒlƒbƒgƒ[ƒNƒCƒ“ƒ^ƒtƒF[ƒXeth0‚Ě’PˆĘŽžŠÔ‚ ‚˝‚čŽg—p—Ę‚Ş80Mbit‚ĹŒxA90Mbit‚ĹˆŮí‚Ć‚ˇ‚é

[root@fedora ~]# systemctl restart nrpe@Š@nrpeÄ‹N“Ž

[root@centos ~]# vi /usr/local/nagios/etc/objects/commands.cfg@Š@commands.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define command{
        command_name    check_remote_traffic
        command_line    $USER1$/check_nrpe -n -H $HOSTADDRESS$ -c check_traffic
        }

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfg@Š@fedora.cfg•ŇWŚNagiosƒT[ƒo[‘¤
ˆČ‰ş‚đĹIs‚֒ljÁ
define service{
        use                             generic-service
        host_name                       fedora
        service_description             Traffic Usage
        check_command                   check_remote_traffic
        }

[root@centos ~]# ln -s /usr/local/pnp4nagios/share/templates.dist/check_traffic.php /usr/local/pnp4nagios/share/templates.dist/check_remote_traffic.php@Š@PNP—pƒeƒ“ƒvƒŒ[ƒgƒŠƒ“ƒNÝ’职NagiosƒT[ƒo[‘¤ŚPNP“ą“üĎ‚Ěę‡‚Ě‚Ý

[root@centos ~]# systemctl restart nagios@Š@NagiosÄ‹N“ŽŚCentOS7‚Ěę‡
[root@centos ~]# /etc/rc.d/init.d/nagios restart@Š@NagiosÄ‹N“ŽŚCentOS6‚Ěę‡

ĄŠÄŽ‹ƒT[ƒrƒX’ljÁŠm”F

http://ƒT[ƒo[–ź/nagios/‚ÖƒAƒNƒZƒX‚ľAuƒT[ƒrƒX‰Ň“Žó‘ԁv‚ŒljÁ‚ľ‚˝ƒT[ƒrƒX‚Ş•\ŽŚ‚ł‚ę‚é‚ą‚Ć‚đŠm”FB






Ł‚ą‚Ěƒy[ƒW‚Ěƒgƒbƒv‚Ö–ß‚é

LPIƒƒS Copyright© 2005-2017 fallenangels, All rights reserved.
‚˛ŽŠ—R‚ɃŠƒ“ƒN‚ľ‚Ä‚­‚ž‚ł‚˘(˜A—‚Í•s—v‚Ĺ‚ˇ)
–{ƒy[ƒW‚Ö‚Ě‚˛ˆÓŒŠE‚˛—v–]AŒëŽšE’EŽšEƒŠƒ“ƒNŘ‚ę“™‚Ě‚˛˜A—‚Í‚ą‚ż‚ç‚Š‚炨Šč‚˘‚ľ‚Ü‚ˇ