This is an old revision of the document!
# apt install cacti !!! Пароль root в mysql пустой, базу данных создавать визардом, все по умолчанию!!! # less /etc/cacti/debian.php # less /etc/apache2/conf-enabled/cacti.conf
# cat /etc/cron.d/cacti
Console->Create devices for network->Add Description: router Hostname: router Host Template: Cisco Router SNMP Version: Version 2 SNMP Timeout: 2000 Console->Create graphs for your new devices Host: ... Check Graph Templates Select a graph type: ... Console->Graph Trees->Default Tree->Add Tree Item Type: Host Host: ...
# cat /usr/share/cacti/site/scripts/cacti-dhcp-stat.sh
#!/bin/sh CMD='rsh router show ip dhcp binding | grep 192.168 | wc -l' MAX=99 #CUR=`eval $CMD` CUR=1 echo MAX:${MAX} CUR:${CUR}
# mysql cacti -e 'update user_auth set password=md5("admin") where username="admin"'