This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
сервис_mrtg [2024/06/20 12:15] val [Использование скриптов] |
сервис_mrtg [2024/06/24 15:43] (current) val [Протоколирование загрузки интерфейсов] |
||
---|---|---|---|
Line 14: | Line 14: | ||
<code> | <code> | ||
server# cfgmaker public@router > /etc/mrtg.cfg | server# cfgmaker public@router > /etc/mrtg.cfg | ||
- | ubuntu24# cfgmaker public@router > /etc/mrtg/mrtg.cfg | + | ubuntu24# cfgmaker public@router | tee /etc/mrtg/mrtg.cfg |
server# cat /etc/mrtg.cfg | server# cat /etc/mrtg.cfg | ||
Line 23: | Line 23: | ||
</code><code> | </code><code> | ||
server# mkdir /var/www/html/mrtg/ | server# mkdir /var/www/html/mrtg/ | ||
- | ubuntu24# chmod 755 /var/www/html/mrtg/ | ||
server# indexmaker /etc/mrtg.cfg > /var/www/html/mrtg/index.html | server# indexmaker /etc/mrtg.cfg > /var/www/html/mrtg/index.html | ||
- | ubuntu24# indexmaker /etc/mrtg/mrtg.cfg > /var/www/html/mrtg/index.html | + | ubuntu24# indexmaker /etc/mrtg/mrtg.cfg | tee /var/www/html/mrtg/index.html |
</code> | </code> | ||
Line 122: | Line 121: | ||
LegendI[dhcp-stat]: dhcp leased | LegendI[dhcp-stat]: dhcp leased | ||
LegendO[dhcp-stat]: max ip in pool | LegendO[dhcp-stat]: max ip in pool | ||
+ | </code><code> | ||
+ | # watch head /var/www/html/mrtg/dhcp-stat.log | ||
</code> | </code> |