Advertisement
Guest User

Untitled

a guest
Jun 30th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. sudo apt-get install syslog-ng-core
  2.  
  3. source s_myrouter {
  4. udp(ip(0.0.0.0) port(514));
  5. };
  6.  
  7. filter f_myrouter { host("192.168.1.1"); }; # replace with your router's IP address
  8.  
  9. destination d_myrouter { file("/var/log/myrouter.log"); }; # replace with where you want to log
  10.  
  11. log { source(s_myrouter); filter(f_myrouter); destination(d_myrouter); };
  12.  
  13. <Plugin snmp>
  14. <Data "if_Octets">
  15. Type "if_octets"
  16. Table true
  17. Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
  18. </Data>
  19. <Host "tp-link">
  20. Address "192.168.0.1"
  21. Version 1
  22. Community "public"
  23. Collect "if_Octets"
  24. Interval 60
  25. </Host>
  26. </Plugin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement