[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ソスフ場合
|
|