|
Client Configuration:
Let nagios account have permission to view ipvsadmin
vim / etc / sudoers
[Root @ linuxabc etc] # visodu / etc / sudoers
Join nagios ALL = (ALL) NOPASSWD: ALL
# Defaults requiretty
[Root @ linuxabc libexec] # pwd
/ Usr / local / nagios / libexec
[Root @ linuxabc libexec] # chmod + x check_lvs.sh
[Root @ linuxabc etc] # pwd
/ Usr / local / nagios / etc
Modify nrpe.cfg
command [check_lvs] = / usr / bin / sudo / usr / local / nagios / libexec / check_lvs
[Root @ SSAVL2475 libexec] # service xinetd start
Starting xinetd: [OK]
[Root @ SSAVL2475 libexec] # ps -ef | grep xinetd
root 27293 1 0 16:41? 00:00:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
root 27483 27089 0 16:42 pts / 3 00:00:00 grep xinetd
[Root @ SSAVL2475 libexec] # |
|
|
|