nagios客户端脚本安装
#!/bin/shset -xgroupadd nagiosuseradd -g nagios -s /sbin/nologin nagioscd nrpe-2.12./configuremake all make install-plugin make install-daemon make install-daemon-configcd /data/nagios-plugins-1.4.11/./configure --with-nagios-user=nagios --with-nagios-group=nagiosmakemake installchown nagios.nagios /usr/local/nagioschown -R nagios.nagios /usr/local/nagios/libexecset +x
第二版
[root@xiazai data]# cat add_nagios.sh#!/bin/shset -xgroupadd nagiosuseradd -g nagios -s /sbin/nologin nagiosrpm -qa|grep openssl-develif [ $? == 0 ]then cd nrpe-2.12 ./configure make all make install-plugin make install-daemon make install-daemon-config cd /data/nagios-plugins-1.4.11/ ./configure --with-nagios-user=nagios --with-nagios-group=nagios make make install chown nagios.nagios /usr/local/nagios chown -R nagios.nagios /usr/local/nagios/libexecelse echo "please install openssl-devel"fiset +x
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。