1、编写shell2、将编写好的shell放在服务器与客户端/usr/local/nagios/libexec路径下把开发的shell拷贝至客户端/usr/local/nagios/libexec目录下注意属组及执行权限修改chown-Rnagios.nagios./check_updatechmod+x./check_update3、添加服务器配置文件(目录/usr/local/nagios/etc/objects)localhost.cfg配置servicedefineservice{host_name