LINUX自动安装nagiso client插件脚本
2013-06-17 15:18
543 查看
#!/bin/bash
#!make in 小5 on 2013-05 at picc
###############QQ:1214854702###############################
#scp 10.132.40.13:/usr/local/src/nagios-plugins-1.4.15.tar.gz /usr/local/src/nrpe-2.14.tar.gz
useradd -s /sbin/nologin nagios
cd /usr/local/src/
tar zxvf nagios-plugins-1.4.16.tar.gz
cd nagios-plugins-1.4.16
./configure --prefix=/usr/local/nagios
make && make install
chown -R nagios.nagios /usr/local/nagios
cd /usr/local/src/
tar zxvf nrpe-2.14.tar.gz
cd nrpe-2.14
./configure ; make all ; make install-plugin ; make install-daemon ; make install-daemon-config ;make install-xinetd
if [ "$?" == "0" ];then
echo "installed ok!"
else
exit 1
fi
sed -i 's/127.0.0.1/127.0.0.1 10.128.118.141/g' /etc/xinetd.d/nrpe
echo "nrpe 5666/tcp #nrpe" >> /etc/services
service xinetd restart
chkconfig --add xinetd
chkconfig xinetd on
echo "complete installed !"
本文出自 “神奇的网络” 博客,请务必保留此出处http://wxlxiao5.blog.51cto.com/4284565/1223583
#!make in 小5 on 2013-05 at picc
###############QQ:1214854702###############################
#scp 10.132.40.13:/usr/local/src/nagios-plugins-1.4.15.tar.gz /usr/local/src/nrpe-2.14.tar.gz
useradd -s /sbin/nologin nagios
cd /usr/local/src/
tar zxvf nagios-plugins-1.4.16.tar.gz
cd nagios-plugins-1.4.16
./configure --prefix=/usr/local/nagios
make && make install
chown -R nagios.nagios /usr/local/nagios
cd /usr/local/src/
tar zxvf nrpe-2.14.tar.gz
cd nrpe-2.14
./configure ; make all ; make install-plugin ; make install-daemon ; make install-daemon-config ;make install-xinetd
if [ "$?" == "0" ];then
echo "installed ok!"
else
exit 1
fi
sed -i 's/127.0.0.1/127.0.0.1 10.128.118.141/g' /etc/xinetd.d/nrpe
echo "nrpe 5666/tcp #nrpe" >> /etc/services
service xinetd restart
chkconfig --add xinetd
chkconfig xinetd on
echo "complete installed !"
本文出自 “神奇的网络” 博客,请务必保留此出处http://wxlxiao5.blog.51cto.com/4284565/1223583
相关文章推荐
- linux下自动安装keepalived、inotify-tools并检测是否安装成功脚本
- linux自动交互工具expect,tcl安装和安装包,以及自动互信脚本
- linux杂谈(三):自动安装脚本kickstart
- 【Linux】apt-get install 怎么阻止弹出框,使用脚本默认自动安装?
- 网络游戏服务器开发::学习了两天python写了一个linux下自动安装程序的脚本
- Linux自动安装脚本(全自动)
- Shell脚本实现在Linux系统中自动安装JDK
- 利用脚本自动安装Linux系统
- ubuntu 14.04 安装vim YouCompleteMe自动补全插件 Linux C/C++高手必备
- linux自动交互工具expect,tcl安装和安装包,以及自动互信脚本
- Linux无法写入权限问题 & 解决Wordpress不能自动安装主题、插件
- apache自动安装脚本(linux)
- Linux自动安装JDK的shell脚本
- 实用脚本----Linux下Jdk和Tomcat自动安装shell脚本总结
- Linux安装脚本需要交互之如何实现自动安装
- 自动安装Zabbix Agent的linux 脚本
- zabbix agentd客户端插件Shell一键自动安装脚本
- Linux自动安装JDK的shell脚本
- zabbix_agent for linux自动安装脚本
- Linux-自动安装的脚本