cacti被控端配置脚本

#!/bin/bash
yum -y install net-snmp*
sed -i '41s/default/192.168.1.1/g' /etc/snmp/snmpd.conf
sed -i '62s/systemview/all/g' /etc/snmp/snmpd.conf
sed -i '85s/#view all    included  .1                               80/view all  included  .1   80/g' /etc/snmp/snmpd.conf
/etc/init.d/snmpd restart
chkconfig --add snmpd
chkconfig snmpd on
/etc/init.d/iptables stop

本文出自 “liunx系统” 博客,谢绝转载!

你可能感兴趣的:(cacti被控端)