Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
503
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. (a) Create document root to store mrtg graphs/html pages:
  2. # mkdir -p /var/www/html/mymrtg/
  3. (b) Run any one of the following cfgmaker command to create mrtg configuration file:
  4. #cfgmaker --global 'WorkDir: /var/www/html/mymrtg' --output /etc/mrtg/mymrtg.cfg public@localhost
  5.  
  6. Note : To query only specific interfaces, use :
  7. #cfgmaker --global 'WorkDir: /var/www/html/mymrtg' --output /etc/mrtg/mymrtg.cfg –ifref=ip public@localhost
  8.  
  9. Note that there is –-ifref=ip additional syntax. So far, this is only for interface that has IP address and up(???) 07 Nov 2009 Hendrik Suantio
  10.  
  11. OR (make sure your FQDN resolves, in following example i'm using rh9.test.com which is my router FQDN address)
  12. # cfgmaker --global 'WorkDir: /var/www/html/mymrtg' --output /etc/mrtg/mymrtg1.cfg public@rh9.test.com
  13. (c) Create default index page for your MRTG configuration:
  14. # indexmaker --output=/var/www/html/mymrtg/index.html /etc/mrtg/mymrtg.cfg
  15. (d) Copy all tiny png files to your mrtg path:
  16. # cp -av /var/www/html/mrtg/*.png /var/www/html/mymrtg/
  17. Step # 6 First test run of mrtg
  18. (a) Run mrtg command from command line with your configuration file:
  19. # mrtg /etc/mrtg/mymrtg.cfg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement