NRPE - Client
-------------------
# /usr/local/nagios/etc/
# vi nrpe.cfg
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/sda1
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
NRPE - Server
------------------
[root@nagioscore ~]# /usr/local/nagios/libexec/check_nrpe -H 192.168.3.101 -c check_users
USERS OK - 3 users currently logged in |users=3;5;10;0
[root@nagioscore ~]# /usr/local/nagios/libexec/check_nrpe -H 192.168.3.101 -c check_load
OK - load average: 0.00, 0.00, 0.00|load1=0.000;15.000;30.000;0; load5=0.000;10.000;25.000;0; load15=0.000;5.000;20.000;0;
[root@nagioscore ~]# /usr/local/nagios/libexec/check_nrpe -H 192.168.3.101 -c check_hda1
DISK OK - free space: /boot 227 MB (84% inode=99%);| /boot=40MB;225;253;0;282
[root@nagioscore ~]# /usr/local/nagios/libexec/check_nrpe -H 192.168.3.101 -c check_total_procs
PROCS OK: 146 processes | procs=146;150;200;0;
No comments:
Post a Comment