ソスソスソスソスソス[ソスgソスzソスXソスgソスTソス[ソスrソスXソスト趣ソス(Nagios+nrpe)

ソスナ終ソスXソスVソスソスソスF 2020.12.29

ソスソスソスTソスv

NagiosソスフアソスhソスIソスソスnrpeソスナ托ソスソスTソス[ソスoソス[ソスフサソス[ソス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

ソスソスソスナ新ソスナゑソスURLソスソスソス_ソスEソスソスソスソスソス[ソスhソスyソス[ソスWソスナ確ソス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ソスト趣ソスソスホ象サソス[ソスoソス[ソスソス

[root@fedora ~]# yum -y install openssl-develソス@ソスソスソス@nrpeソスCソスソスソスXソスgソス[ソスソスソスノ必ソスvソスネパソス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ソスメ変更

[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

ソスソスソスナ新ソスナゑソスURLソスソスソス_ソスEソスソスソスソスソス[ソスhソスyソス[ソスWソスナ確ソス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ソスメ集
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
# '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ソスト起ソスソスソスソスCentOS7ソスフ場合

ソスiソスQソスjソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
[root@fedora ~]# echo "nrpe 5666/tcp # NRPE" >> /etc/servicesソス@ソスソスソス@TCP5666ソスソスnrpeソスフサソス[ソスrソスXソス|ソス[ソスgソスニゑソスソスト追会ソス

[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpeソスン抵ソスtソス@ソスCソスソスソスメ集
allowed_hosts=127.0.0.1,::1,192.168.1.30ソス@ソスソスソス@NagiosソスTソス[ソスoソス[ソスソスIPソスAソスhソスソスソスX(ソスソス:192.168.1.30)ソスソスヌ会ソス

ソスソスnrpeソスNソスソス

ソスiソスPソスjソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
[root@fedora ~]# vi /usr/lib/systemd/system/nrpe.serviceソス@ソスソスソス@nrpeソスNソスソスソスン抵ソスtソス@ソスCソスソスソスメ集
ExecStart=/usr/local/nagios/bin/nrpe -n -c /usr/local/nagios/etc/nrpe.cfg -fソス@ソスソスソス@ソスu-nソスvソスソスヌ会ソスソスソスソスソスSSLソスソスソスソスソスソス

[root@fedora ~]# systemctl daemon-reloadソス@ソスソスソス@nrpeソスNソスソスソスン抵ソスtソス@ソスCソスソスソスメ集ソスソスソスf

[root@fedora ~]# systemctl start nrpeソス@ソスソスソス@nrpeソスNソスソス

[root@fedora ~]# systemctl enable nrpeソス@ソスソスソス@nrpeソスソスソスソスソスNソスソスソスン抵ソス



ソスソスソスト趣ソスソスTソス[ソスrソスXソスヌ会ソス

ソスソスニゑソスソストホソスXソスgソスソスfedoraソスフ監趣ソスソスTソス[ソスrソスXソスソスヌ会ソスソスソスソスソスB
ソスソスソスzソスXソスgソスソスfedoraソスヘ監趣ソスソスzソスXソスgソスニゑソスソスト追会ソスソスマでゑソスソス驍アソスソスソスソスソスソスソスソスソスト趣ソスソスVソスXソスeソスソスソス\ソスz(Nagios)ソスフ「ソスソスソスト趣ソスソスzソスXソスgソスヌ会ソスソスvソスQソスソス

ソスiソスPソスjCPUソスソスソスソス
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソス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ソスナ警ソスソスソスA10.0,8.0,7.0ソスナ異擾ソスニゑソスソスソス

[root@fedora ~]# systemctl restart nrpeソス@ソスソスソス@nrpeソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/objects/commands.cfgソス@ソスソスソス@commands.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスト起ソスソスソスソスCentOS7ソスフ場合

ソスiソスQソスjソスfソスBソスXソスNソスき擾ソス
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
command[check_disk]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /ソス@ソスソスソス@/(ソスソスソス[ソスg)ソスpソス[ソスeソスBソスVソスソスソスソスソスフ空きゑソス20%ソスナ警ソスソスソスA10%ソスナ異擾ソスニゑソスソスソス

[root@fedora ~]# systemctl restart nrpeソス@ソスソスソス@nrpeソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/objects/commands.cfgソス@ソスソスソス@commands.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスト起ソスソスソスソスCentOS7ソスフ場合

ソス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ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス

[root@fedora ~]# /bin/mv check_mem /usr/local/nagios/libexec/ソス@ソスソスソス@check_memソスvソスソスソスOソスCソスソスソスソスソスソスソスソスフデソスBソスソスソスNソスgソスソスソスヨ移難ソスソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス

[root@fedora ~]# chmod +x /usr/local/nagios/libexec/check_memソス@ソスソスソス@check_memソスvソスソスソスOソスCソスソスソスノ趣ソスソスsソスソスソスソスソスtソスソスソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス

[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
command[check_mem]=/usr/local/nagios/libexec/check_mem -w 80 -c 90 -W 80 -C 90ソス@ソスソスソス@ソスソスソスソスソスソスソスソスソスソスソスgソスpソスソスソスソス80%ソスナ警ソスソスソスA90%ソスナ異擾ソスAソスソスソスzソスソスソスソスソスソスソスgソスpソスソスソスソス80%ソスナ警ソスソスソスA90%ソスナ異擾ソスニゑソスソスソス

[root@fedora ~]# systemctl restart nrpeソス@ソスソスソス@nrpeソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/objects/commands.cfgソス@ソスソスソス@commands.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスト起ソスソスソスソスCentOS7ソスフ場合

ソスiソスSソスjソスvソスソスソスZソスXソスソス
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 250 -c 400 -s RSZDTソス@ソスソスソス@ソスvソスソスソスZソスXソスソスソスソス250ソスナ警ソスソスソスA400ソスナ異擾ソスニゑソスソスソス

[root@fedora ~]# systemctl restart nrpeソス@ソスソスソス@nrpeソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfgソス@ソスソスソス@fedora.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスト起ソスソスソスソスCentOS7ソスフ場合

ソスiソスTソスjソスソスソスOソスCソスソスソスソスソス[ソスUソス[ソスソス
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
command[check_users]=/usr/local/nagios/libexec/check_users -w 3 -c 5ソス@ソスソスソス@ソスソスソスOソスCソスソスソスソスソス[ソスUソス[ソスソスソスソス3ソスナ警ソスソスソスA5ソスナ異擾ソスニゑソスソスソス

[root@fedora ~]# systemctl restart nrpeソス@ソスソスソス@nrpeソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfgソス@ソスソスソス@fedora.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
define service{
        use                             generic-service
        host_name                       fedora
        service_description             Current Users
        check_command                   check_nrpe!check_users
        }

[root@centos ~]# systemctl restart nagiosソス@ソスソスソス@Nagiosソスト起ソスソスソスソスCentOS7ソスフ場合

ソスiソスUソスjSSH
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
command[check_ssh]=/usr/local/nagios/libexec/check_ssh -H 127.0.0.1

[root@fedora ~]# systemctl restart nrpeソス@ソスソスソス@nrpeソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfgソス@ソスソスソス@fedora.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
define service{
        use                             generic-service
        host_name                       fedora
        service_description             SSH
        check_command                   check_nrpe!check_ssh
        }

[root@centos ~]# systemctl restart nagiosソス@ソスソスソス@Nagiosソスト起ソスソスソスソスCentOS7ソスフ場合

ソスiソスVソスjNTP
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfgソス@ソスソスソス@fedora.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
define service{
        use                             generic-service
        host_name                       fedora
        service_description             NTP
        check_command                   check_nrpe!check_ntp
        }

[root@centos ~]# systemctl restart nagiosソス@ソスソスソス@Nagiosソスト起ソスソスソスソスCentOS7ソスフ場合

ソスiソスWソスjclamdソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソスソスソスClam AntiVirusソスソスソスソスソスマの場合ソスフゑソス
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスソスソスソスソスナ指ソス閧オソスソスソスl

[root@fedora ~]# chmod u+s /usr/local/nagios/libexec/check_clamdソス@ソスソスソス@clamdソス\ソスPソスbソスgソスtソス@ソスCソスソスソスヨ接托ソスソスナゑソスソスソス謔、ソスノゑソスソス驕ヲソスト趣ソスソスホ象サソス[ソスoソス[ソスソス

[root@fedora ~]# systemctl restart nrpeソス@ソスソスソス@nrpeソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfgソス@ソスソスソス@fedora.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
define service{
        use                             generic-service
        host_name                       fedora
        service_description             clamd
        check_command                   check_nrpe!check_clamd
        }

[root@centos ~]# systemctl restart nagiosソス@ソスソスソス@Nagiosソスト起ソスソスソスソスCentOS7ソスフ場合

ソスiソスXソスjDNSソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソスソスソスBINDソスソスソスソスソスマの場合ソスフゑソス
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
command[check_dig]=/usr/local/nagios/libexec/check_dig -H 127.0.0.1 -l fedorasrv.comソス@ソスソスソス@ソスソスソスOソスソスソスソスソスzソスXソスgソスソスソスノ監趣ソスソスホ象サソス[ソスoソス[ソスフドソスソスソスCソスソスソスソスソスソスソスwソスソス

[root@fedora ~]# systemctl restart nrpeソス@ソスソスソス@nrpeソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfgソス@ソスソスソス@fedora.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
define service{
        use                             generic-service
        host_name                       fedora
        service_description             DNS
        check_command                   check_nrpe!check_dig
        }

[root@centos ~]# systemctl restart nagiosソス@ソスソスソス@Nagiosソスト起ソスソスソスソスCentOS7ソスフ場合

ソスiソスPソスOソスjHTTPソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソスソスソスApacheソスソスソスソスソスマの場合ソスフゑソス
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
command[check_http]=/usr/local/nagios/libexec/check_http -H 127.0.0.1

[root@fedora ~]# systemctl restart nrpeソス@ソスソスソス@nrpeソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/objects/commands.cfgソス@ソスソスソス@commands.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスト起ソスソスソスソスCentOS7ソスフ場合

ソスiソスPソスPソスjSMTPソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソスソスノソスソス[ソスソスソスTソス[ソスoソス[ソスソスソスソスソスマの場合ソスフゑソス
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
command[check_smtp]=/usr/local/nagios/libexec/check_smtp -H 127.0.0.1

[root@fedora ~]# systemctl restart nrpeソス@ソスソスソス@nrpeソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/objects/commands.cfgソス@ソスソスソス@commands.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスト起ソスソスソスソスCentOS7ソスフ場合

ソスiソスPソスQソスjPOPソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソスソスノソスソス[ソスソスソスTソス[ソスoソス[ソスソスソスソスソスマの場合ソスフゑソス
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
command[check_pop]=/usr/local/nagios/libexec/check_pop -H 127.0.0.1

[root@fedora ~]# systemctl restart nrpeソス@ソスソスソス@nrpeソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfgソス@ソスソスソス@fedora.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
define service{
        use                             generic-service
        host_name                       fedora
        service_description             POP
        check_command                   check_nrpe!check_pop
        }

[root@centos ~]# systemctl restart nagiosソス@ソスソスソス@Nagiosソスト起ソスソスソスソスCentOS7ソスフ場合

ソスiソスPソスRソスjIMAPソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソスソスノソスソス[ソスソスソスTソス[ソスoソス[ソスソスソスソスソスマの場合ソスフゑソス
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
command[check_imap]=/usr/local/nagios/libexec/check_imap -H 127.0.0.1 -p 143

[root@fedora ~]# systemctl restart nrpeソス@ソスソスソス@nrpeソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfgソス@ソスソスソス@fedora.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
define service{
        use                             generic-service
        host_name                       fedora
        service_description             IMAP
        check_command                   check_nrpe!check_imap
        }

[root@centos ~]# systemctl restart nagiosソス@ソスソスソス@Nagiosソスト起ソスソスソスソスCentOS7ソスフ場合

ソスiソスPソスSソスjmilter-managerソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソスソスソスmilter-manager(milter-greylistソスAclamav-milterソスAspamass-milter)ソスソスソスソスソスマの場合ソスフゑソス
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
command[check_milter-manager]=/usr/local/nagios/libexec/check_tcp -H /var/run/milter-manager/milter-manager.sock

[root@fedora ~]# systemctl restart nrpeソス@ソスソスソス@nrpeソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfgソス@ソスソスソス@fedora.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスト起ソスソスソスソスCentOS7ソスフ場合

ソスiソスPソスTソスjmilter-greylistソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソスソスソスmilter-greylistソスソスソスソスソスマの場合ソスフゑソス
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
command[check_milter-greylist]=/usr/local/nagios/libexec/check_tcp -H /run/milter-greylist/milter-greylist.sock

[root@fedora ~]# systemctl restart nrpeソス@ソスソスソス@nrpeソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfgソス@ソスソスソス@fedora.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスト起ソスソスソスソスCentOS7ソスフ場合

ソスiソスPソスUソスjclamav-milterソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソスソスソスclamav-milterソスソスソスソスソスマの場合ソスフゑソス
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
command[check_clamav-milter]=/usr/local/nagios/libexec/check_tcp -H /var/run/clamav-milter/clamav-milter.socket

[root@fedora ~]# systemctl restart nrpeソス@ソスソスソス@nrpeソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfgソス@ソスソスソス@fedora.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスト起ソスソスソスソスCentOS7ソスフ場合

ソスiソスPソスVソスjspamass-milterソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソスソスソスspamass-milterソスソスソスソスソスマの場合ソスフゑソス
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
command[check_spamass-milter]=/usr/local/nagios/libexec/check_tcp -H /run/spamass-milter/postfix/sock

[root@fedora ~]# systemctl restart nrpeソス@ソスソスソス@nrpeソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfgソス@ソスソスソス@fedora.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスト起ソスソスソスソスCentOS7ソスフ場合

ソスiソスPソスWソスjspamdソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソスソスソスSpamAssassinソスソスソスソスソスマの場合ソスフゑソス
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
command[check_spamd]=/usr/local/nagios/libexec/check_tcp -H 127.0.0.1 -p 783

[root@fedora ~]# systemctl restart nrpeソス@ソスソスソス@nrpeソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfgソス@ソスソスソス@fedora.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
define service{
        use                             generic-service
        host_name                       fedora
        service_description             spamd
        check_command                   check_nrpe!check_spamd
        }

[root@centos ~]# systemctl restart nagiosソス@ソスソスソス@Nagiosソスト起ソスソスソスソスCentOS7ソスフ場合

ソスiソスPソスXソスjSambaソスソスソスト趣ソスソスホ象サソス[ソス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ソスソスソスメ集
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ソスソスソスソスヌ会ソスソスソスソスソス
ソスソスSambaソスTソス[ソスoソス[IPソスAソスhソスソスソスXソスノソスソス[ソスvソスoソスbソスNソスAソスhソスソスソスX(127.0.0.1)ソスヘ指ソスソスナゑソスソスネゑソス

[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/objects/commands.cfgソス@ソスソスソス@commands.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスト起ソスソスソスソスCentOS7ソスフ場合

ソスiソスQソスOソスjMySQLソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソスソスソスMySQLソスソスソスソスソスマの場合ソスフゑソス
[root@fedora ~]# vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/servers/fedora.cfgソス@ソスソスソス@fedora.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
define service{
        use                             generic-service
        host_name                       fedora
        service_description             MySQL
        check_command                   check_nrpe!check_mysql
        }

[root@centos ~]# systemctl restart nagiosソス@ソスソスソス@Nagiosソスト起ソスソスソスソスCentOS7ソスフ場合

ソス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ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス

[root@fedora ~]# mv check_traffic_pnp4naios.sh /usr/local/nagios/libexec/ソス@ソスソスソス@check_traffic_pnp4naiosソスvソスソスソスOソスCソスソスソスソスソスソスソスソスフデソスBソスソスソスNソスgソスソスソスヨ移難ソスソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス

[root@fedora ~]# chmod +x /usr/local/nagios/libexec/check_traffic_pnp4naios.shソス@ソスソスソス@check_traffic_pnp4naiosソスvソスソスソスOソスCソスソスソスノ趣ソスソスsソスソスソスソスソスtソスソスソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス

[root@fedora ~]# vi /usr/local/nagios/libexec/check_traffic_pnp4naios.shソス@ソスソスソス@check_traffic_pnp4naiosソスvソスソスソスOソスCソスソスソスメ集ソスソスソスト趣ソスソスホ象サソス[ソスoソス[ソスソス
#DIR=/App/nagios/tmpソス@ソスソスソス@ソスsソスソスソスソス#ソスソスヌ会ソスソスソスソストコソスソスソスソスソスgソスAソスEソスg
DIR=/usr/local/nagios/varソス@ソスソスソス@ソスヌ会ソスソスiソス齊橸ソスfソスBソスソスソスNソスgソスソスソスソスソスwソスソスj

#if [ `cat /App/nagios/tmp/.network-$DEVICE.tmp | wc -c` -eq 0 ];thenソス@ソスソスソス@ソスsソスソスソスソス#ソスソスヌ会ソスソスソスソストコソスソスソスソスソスgソスAソスEソスg
if [ `cat $FILE | wc -c` -eq 0 ];thenソス@ソスソスソス@ソスヌ会ソスソスiソスOソスソス謫セソスlソスiソス[ソスソスソスマ撰ソスソスノ変更ソスj
        echo -en `date +%s`"\t" >$FILE
        #echo -en `ifconfig $DEVICE | grep "RX bytes" | awk '{print $2}' | awk -F: '{print $NF}'`"\t" >>$FILEソス@ソスソスソス@ソスsソスソスソスソス#ソスソスヌ会ソスソスソスソストコソスソスソスソスソスgソスAソスEソスg
        #echo `ifconfig $DEVICE | grep "RX bytes" | awk '{print $6}' | awk -F: '{print $NF}'`>>$FILEソス@ソスソスソス@ソスsソスソスソスソス#ソスソスヌ会ソスソスソスソストコソスソスソスソスソスgソスAソスEソスg
        echo -en `ifconfig $DEVICE | grep "RX " | grep "bytes" | awk '{print $5}'`"\t" >>$FILEソス@ソスソスソス@ソスヌ会ソスソスiifconfigソスRソス}ソスソスソスhソスtソスHソス[ソス}ソスbソスgソスソスソスソスホ会ソスソスj
        echo `ifconfig $DEVICE | grep "TX " | grep "bytes" | awk '{print $5}'`>>$FILEソス@ソスソスソス@ソスヌ会ソスソス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ソスソスソスソス#ソスソスヌ会ソスソスソスソストコソスソスソスソスソスgソスAソスEソスg
        #New_Out=`ifconfig $DEVICE | grep "RX bytes" | awk '{print $6}' | awk -F: '{print $NF}'`ソス@ソスソスソス@ソスsソスソスソスソス#ソスソスヌ会ソスソスソスソストコソスソスソスソスソスgソスAソスEソスg
        New_In=`ifconfig $DEVICE | grep "RX " | grep "bytes" | awk '{print $5}'`ソス@ソスソスソス@ソスヌ会ソスソスiifconfigソスRソス}ソスソスソスhソスtソスHソス[ソス}ソスbソスgソスソスソスソスホ会ソスソスj
        New_Out=`ifconfig $DEVICE | grep "TX " | grep "bytes" | awk '{print $5}'`ソス@ソスソスソス@ソスヌ会ソスソスiifconfigソスRソス}ソスソスソスhソスtソスHソス[ソス}ソスbソスgソスソスソスソスホ会ソスソスj

[root@fedora ~]#  vi /usr/local/nagios/etc/nrpe.cfgソス@ソスソスソス@nrpe.cfgソスメ集ソスソスソスト趣ソスソスホ象サソス[ソス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ソスフ単ソスハ趣ソスソスヤゑソスソスソスソスソスgソスpソスハゑソス80Mbitソスナ警ソスソスソスA90Mbitソスナ異擾ソスニゑソスソスソス

[root@fedora ~]# systemctl restart nrpeソス@ソスソスソス@nrpeソスト起ソスソス

[root@centos ~]# vi /usr/local/nagios/etc/objects/commands.cfgソス@ソスソスソス@commands.cfgソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスメ集ソスソスNagiosソスTソス[ソスoソス[ソスソス
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
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ソスト起ソスソスソスソスCentOS7ソスフ場合

ソスソスソスト趣ソスソスTソス[ソスrソスXソスヌ会ソスソスmソスF

http://ソスTソス[ソスoソス[ソスソス/nagios/ソスヨアソスNソスZソスXソスソスソスAソスuソスTソス[ソスrソスXソスメ難ソスソスソスヤ」ソスナ追会ソスソスソスソスソスソスTソス[ソスrソスXソスソスソス\ソスソスソスソスソスソス驍アソスニゑソスソスmソスFソスB


ソスソスソスヨ連ソスRソスソスソスeソスソスソスc

<!ソス\ソスeソスLソスXソスgソスフみゑソス4ソスsソス\ソスソスソスノ追会ソスソスソスCソスソスソスソスソスソス\>



ソスソスソスソスソスフペソス[ソスWソスフトソスbソスvソスヨ戻ゑソス

ソスvソスソスソスCソスoソスVソス[ソス|ソスソスソスVソス[
centossrv.com