[2014/03/07 12:05:53] #net-snmp <benighted> Hey all, having a bit of trouble - just installed snmpd on a ubuntu 12.04LTS and when I run 'snmpwalk -v 1 -c public localhost' doesn't give me any output
[2014/03/07 12:07:02] #net-snmp <rstory-work> does 'ps -ef|grep snmpd' show that it's running?
[2014/03/07 12:11:01] #net-snmp <benighted> no, when trying to start it getting 'starting network management services', no error but not running
[2014/03/07 12:11:18] #net-snmp <benighted> cat /etc/default/snmpd doesn't have anything listed for default config file
[2014/03/07 12:22:40] #net-snmp <rstory-work> ok, try starting it manually in the foreground: snmpd -f -Lo localhost:161
[2014/03/07 12:30:08] #net-snmp <benighted> net-snmp: 33 error(s) in config file(s), tried 'command | pastebinit' and got error "You are trying to send an empty document, exiting'
[2014/03/07 12:31:03] #net-snmp <benighted> example of one error: /etc/snmp/snmpd.conf: line 144: Error: unknown payload OID
[2014/03/07 12:31:03] #net-snmp <benighted> Unknown payload OID: prNames
[2014/03/07 12:31:32] #net-snmp <rstory-work> ok, that means it's not finding/loading mibs..
[2014/03/07 12:32:00] #net-snmp <rstory-work> see http://thejoyofstick.com/blog/2012/12/01/installing-snmp-mib-files-in-linux-ubuntu-12-04-lts/
[2014/03/07 12:32:47] #net-snmp <benighted> that's what it looked like, I've installed/configured snmp plenty of times, but first time I've needed to install the default mibs..
[2014/03/07 12:33:01] #net-snmp <rstory-work> yeah, ubuntu is 'special'
[2014/03/07 12:33:47] #net-snmp <benighted> ugh, tell me about it.... very nice of you to put it that way. wish the colleagues would just stick to debian - thanks rstory
[2014/03/07 13:00:02] #net-snmp <benighted> ok - mibs installed, getting 'getaddrinfo: Lo Name or service not known
[2014/03/07 13:01:05] #net-snmp <rstory-work> are you missing a '-'? snmpd -f -Lo localhost:161
[2014/03/07 13:04:49] #net-snmp <benighted> ah, I was - now I'm getting 'Error opening specified endpoint "udp:127.0.0.1:161" ', looks like a bug? http://sourceforge.net/p/net-snmp/mailman/message/29539491/
[2014/03/07 13:06:25] #net-snmp <rstory-work> that generally means something already has the port open.. 'ps -ef|grep snmpd' to see if it is running..
[2014/03/07 13:14:18] #net-snmp <benighted> nope, also ran 'service snmpd status' states not running either
[2014/03/07 13:27:33] #net-snmp <rstory-work> and you're running it as root, right?
[2014/03/07 13:28:01] #net-snmp <rstory-work> try this: snmpd -f -Lo udp:1161
[2014/03/07 13:37:32] #net-snmp <benighted> yes, as root - 'Error opening specified endpoint udp:161' (I entered udp:1161)
[2014/03/07 13:38:31] #net-snmp <rstory-work> that's weird..
[2014/03/07 13:39:19] #net-snmp <rstory-work> try snmpd -C -f -Lo udp:1161
[2014/03/07 13:40:22] #net-snmp <rstory-work> and look at /etc/defaults/snmpd and /etc/snmp/snmpd.conf and look for 161
[2014/03/07 13:45:02] #net-snmp <benighted> adding -C yielded iquerySecName has not been configured, guess I should run through snmpconf -g basic_setup?
[2014/03/07 13:45:40] #net-snmp <rstory-work> before that, just try snmpd -f -Lo
[2014/03/07 13:51:03] #net-snmp <ClearleapMatt> Evening, all. Does anyone here monitor macs in your environment? I'm seeing something weird where sshd doesn't always appear in the snmpwalk but I know it's running because I can ssh into it.
[2014/03/07 14:01:44] #net-snmp <benighted> rstory-work, same deal - iquerySecName not been configured, and no access control configured
[2014/03/07 14:03:11] #net-snmp <benighted> says the config search path includes /etc/snmp, and running 'cat /etc/snmp/snmpd.conf | grep iquerySecName' and returned 'iquerySecName internalUser'
[2014/03/07 14:04:56] #net-snmp <rstory-work> to see what files it's reading: snmpd -f -Lo -Dread_config:file
[2014/03/07 14:08:09] #net-snmp <benighted> registered debug toden read_config:file, 1
[2014/03/07 14:08:58] #net-snmp <benighted> token*, after turning on AgentX master support, 'Error oening specified endpoint "udp:161"
[2014/03/07 14:09:29] #net-snmp <rstory-work> you should get a lot more than that... unfortunately, my day is pretty much over.. you can keep trying and post here, i'll check in once in a while over the weekend..
[2014/03/07 14:12:17] #net-snmp <benighted> thanks again, was about to say the same... cheers!
<-- ClearleapMatt1 has left #net-snmp