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:08] 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 112: | Line 111: | ||
| ... | ... | ||
| Target[dhcp-stat]: `/etc/mrtg-dhcp-stat.sh` | Target[dhcp-stat]: `/etc/mrtg-dhcp-stat.sh` | ||
| + | #Target[dhcp-stat]: `sudo /etc/mrtg-dhcp-stat.sh` | ||
| Title[dhcp-stat]: dhcp stat (ip) | Title[dhcp-stat]: dhcp stat (ip) | ||
| PageTop[dhcp-stat]: <H1>dhcp stat (ip)</H1> | PageTop[dhcp-stat]: <H1>dhcp stat (ip)</H1> | ||
| Line 121: | 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> | ||