1 | # vi /etc/snmp/snmpd.conf |
1 2 3 4 5 | $database_type= “ mysql ” ; $database_default = “数据库名称” ; $database_hostname = “默认是 localhost ” ; $database_username = “用户名” ; $database_password = “密码” ; |
1 2 3 | */5 * * * * /usr/local/php/bin/php /data/web_server/admin/cacti/poller.php \ > /dev/null 2>&1 (其中 /usr/local/php/bin/php 这个为 php 的安装目录) |
1 2 3 4 5 6 | snmpwalk Binary Path : /usr/bin/snmpwalk snmpget Binary Path: /usr/bin/snmpget RRDTool Binary Path: /usr/local/rrdtool/bin/rrdtool PHP Binary Path: /usr/local/php/bin/php Cacti Log File Path: /data/web_server/admin/cacti/log/cacti.log Cactid Poller File Path: /data/web_server/admin/cacti/poller.php |
1 | /usr/local/php/bin/php /data/web_server/admin/cacti/poller.php > /dev/null 2>& |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |