#!/bin/sh set -x groupadd nagios useradd -g nagios -s /sbin/nologin nagios 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/libexec set +x
第二版
让客户满意是我们工作的目标,不断超越客户的期望值来自于我们对这个行业的热爱。我们立志把好的技术通过有效、简单的方式提供给客户,将通过不懈努力成为客户在信息化领域值得信任、有价值的长期合作伙伴,公司提供的服务项目有:空间域名、虚拟主机、营销软件、网站建设、万荣网站维护、网站推广。
[root@xiazai data]# cat add_nagios.sh #!/bin/sh set -x groupadd nagios useradd -g nagios -s /sbin/nologin nagios rpm -qa|grep openssl-devel if [ $? == 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/libexec else echo "please install openssl-devel" fi set +x