<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Tue, Aug 25, 2015 at 10:36 AM Tom Taylor <<a href="mailto:tom@tombox.me">tom@tombox.me</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi there,<div><br></div><div>I was hoping someone could help me with the SNMP plugin. </div><div><br></div><div>I'm trying to query the amount of tapes in my tape library, the following works fine;</div><div><br></div><div>







<p><span>[root@logs ~]# snmpwalk -v2c -c public X.X.X.X 1.3.6.1.4.1.3478.1.1.3.2.1.2.1.1.1.4.1.6.1</span></p>
<p><span>SNMPv2-SMI::enterprises.3478.1.1.3.2.1.2.1.1.1.4.1.6.1 = INTEGER: 95</span></p><p>I've got the following defined in /etc/collectd.conf</p><p><span><Data "tapes"></span></p><p><span>            Type "gauge"</span></p><p><span>            Table true</span></p><p><span>            Values "1.3.6.1.4.1.3478.1.1.3.2.1.2.1.1.1.4.1.6.1"</span></p><p>











</p><p><span>    </Data></span></p><p><span><br></span></p><p><span><Host "<a href="http://t120.mydomain.com" target="_blank">t120.mydomain.com</a>"></span></p><p><span>            Address X.X.X.X</span></p><p><span>            Version 2</span></p><p><span>            Community "public"</span></p><p><span>            Collect "tapes"</span></p><p><span>












</span></p><p><span>    </Host></span></p><p><span><br></span></p><p><span>Collectd starts up no problem without throwing any errors but for some reason nothing ever gets parsed into graphite. (Other stats are)</span></p><p><span><br></span></p><p><span>Any ideas? I'm out of places to look.</span></p></div></div></blockquote><div><br></div><div>Hi Tom,<br><br></div><div>When testing gauge types with snmp from the command line, I would recommend using snmpget and not snmpwalk.  The difference is subtle but important.<br><br></div><div>Try doing a tcpdump capture on the host with collectd configured.  You will want to verify that the snmp request is going and there is a response.  If there is a response from the tape library, check the payload and make sure there is a value and not an error.<br><br></div><div>If all this is working and graphite still is not showing anything, increase the logging level to debug to see more information in the logs.  Remember to turn down logging when you are done.<br><br></div><div>Other things to check: is the collectd snmp module installed (there should be an snmp.so module within collectd's lib/lib64 directory); is the plugin loaded ("LoadPlugin snmp") <br></div><div><br></div><div>Lastly, I don't think that value is a table.  You could use a mib browser like mbrowse or look at the MIB to verify.  I would set Table to false and optionally an Instance string.<br><br></div><div>Giovanni<br></div></div></div>