# Defaults requiretty
修改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]#
--------------------------------------分割线 --------------------------------------
--------------------------------------分割线 --------------------------------------