Cacti (home)ForumsDocumentation

Differences

This shows you the differences between two versions of the page.

manual:087:1_installation.1_install_unix.4_configure_snmp [2009/02/21 19:48]
gandalf created
manual:087:1_installation.1_install_unix.4_configure_snmp [2019/10/29 15:16] (current)
Line 39: Line 39:
 UCD-SNMP-MIB::versionConfigureOptions.0 = STRING: "'-disable-shared' '--with-mib-modules=host/hr_system'"  UCD-SNMP-MIB::versionConfigureOptions.0 = STRING: "'-disable-shared' '--with-mib-modules=host/hr_system'" 
 </code> </code>
- 
 ==== Configuring the Net-SNMP agent ==== ==== Configuring the Net-SNMP agent ====
  
Line 57: Line 56:
 You can also make it listens on TCP, which is supported by Cacti <code>agentaddress tcp:161</code> You can also make it listens on TCP, which is supported by Cacti <code>agentaddress tcp:161</code>
  
-The "tcp" keyword can then be used in Cacti :\\ {{http://docs.cacti.net/system/files/images/listenstcpjt0.preview.png?640x113|listenstcpjt0}}+The "tcp" keyword can then be used in Cacti : 
 + 
 +{{http://docs.cacti.net/files/images/listenstcpjt0.preview.png?640x113|listenstcpjt0}}
  
 For those who want some more security, you can use the SNMP version 3 protocol, with MD5 or SHA hashing:<code>createUser frederic MD5 mypassphrase DES For those who want some more security, you can use the SNMP version 3 protocol, with MD5 or SHA hashing:<code>createUser frederic MD5 mypassphrase DES
Line 67: Line 68:
 SNMPv2-MIB::sysName.0 = STRING: cyclopes</code> SNMPv2-MIB::sysName.0 = STRING: cyclopes</code>
  
-In Cacti, add your device, choose SNMP version 3, and fill the username and password fields:{{http://docs.cacti.net/system/files/images/snmpv3gr1.preview.png?640x262|snmpv3gr1}}+In Cacti, add your device, choose SNMP version 3, and fill the username and password fields:\\ {{http://docs.cacti.net/files/images/snmpv3gr1.preview.png?640x262|snmpv3gr1}}
  
 Now that you're done with access control, add these 2 lines in **snmpd.conf** to indicate the location and contact name of your device:<code>syslocation Bat. C2 Now that you're done with access control, add these 2 lines in **snmpd.conf** to indicate the location and contact name of your device:<code>syslocation Bat. C2
Line 74: Line 75:
 They will then appear in Cacti management interface : They will then appear in Cacti management interface :
  
-{{http://docs.cacti.net/system/files/images/syslocationhb2.png?495x115|syslocationhb2}}+{{http://docs.cacti.net/files/images/syslocationhb2.png?495x115|syslocationhb2}}
  
-Some OIDs return a unit, eg "-153 0.1 dBm".\\  It's a safe idea to turn this off, by adding this to **snmpd.conf**:<code>dontPrintUnits true</code>+Some OIDs return a unit, eg "-153.1 dBm".\\  It's a safe idea to turn this off, by adding this to **snmpd.conf**:<code>dontPrintUnits true</code>
  
 Next step is to graph filesystems in Cacti; the easyest way is to add this line in **snmpd.conf**:<code>includeAllDisks</code> Next step is to graph filesystems in Cacti; the easyest way is to add this line in **snmpd.conf**:<code>includeAllDisks</code>
Line 82: Line 83:
 When you'll run the "ucd/net - Get Monitored Partitions" Data Query, all the mounted filesystems will show up: When you'll run the "ucd/net - Get Monitored Partitions" Data Query, all the mounted filesystems will show up:
  
-{{http://docs.cacti.net/system/files/images/disktableuk6.preview.png?640x57|disktableuk6}}+{{http://docs.cacti.net/files/images/disktableuk6.preview.png?640x57|disktableuk6}}
  
 If you want a filesystem not to be listed here, add this line to **snmpd.conf**:<code>ignoredisk /dev/rdsk/c0t2d0</code> If you want a filesystem not to be listed here, add this line to **snmpd.conf**:<code>ignoredisk /dev/rdsk/c0t2d0</code>
Line 150: Line 151:
 IF-MIB::ifDescr.2 = STRING: eth0 IF-MIB::ifDescr.2 = STRING: eth0
 IF-MIB::ifDescr.3 = STRING: eth1</code> IF-MIB::ifDescr.3 = STRING: eth1</code>
- 
- 
 ==== Extending the SNMP Agent ==== ==== Extending the SNMP Agent ====
  
Line 176: Line 175:
 In Cacti, use the "SNMP - Generic OID Template" like this: In Cacti, use the "SNMP - Generic OID Template" like this:
  
-{{http://docs.cacti.net/system/files/images/footh8.preview.png?640x234|footh8}}+{{http://docs.cacti.net/files/images/footh8.preview.png?640x234|footh8}}
  
 Voila! Result of the /tmp/foo.sh script is now graphed in Cacti. Voila! Result of the /tmp/foo.sh script is now graphed in Cacti.
Line 229: Line 228:
  
 Here, you'll find how to [[http://www.squid-cache.org/Doc/FAQ/FAQ-18.html|enable the Squid SNMP agent]]. Here, you'll find how to [[http://www.squid-cache.org/Doc/FAQ/FAQ-18.html|enable the Squid SNMP agent]].
- 





Personal Tools