TECHZEN Zenoss User Community ARCHIVE  

can't snmpwalk from zenoss webui

Subject: can't snmpwalk from zenoss webui
Author: [Not Specified]
Posted: 2015-06-24 04:15

Hi Zenoss community!

I have installed Zenoss 5.0.3 and I have problems collecting data through snmp.

Example...
I am on device page (Linux server with snmp working), i click on commands->ping...OK, i click on commands->traceroute...OK
But when i click on snmpwalk it displays this error:
==== debian ====
snmpwalk -${device/zSnmpVer} -c${device/zSnmpCommunity} 192.168.111.199 system
getaddrinfo: - Temporary failure in name resolution
snmpwalk: Unknown host (-) (Resource temporarily unavailable)

...with every single device....

the device is modeled with cople of selected snmp modeler plugins...also when i click on model device i get this one:
2015-06-24 09:09:21,512 INFO zen.ZenModeler: Connecting to localhost:8789
2015-06-24 09:09:21,550 INFO zen.ZenModeler: Connected to ZenHub
2015-06-24 09:09:22,134 INFO zen.ZenModeler: Collecting for device 192.168.111.199
2015-06-24 09:09:22,538 INFO zen.ZenModeler: skipping WMI-based collection, PySamba zenpack not installed
2015-06-24 09:09:22,594 INFO zen.ZenModeler: No Python plugins found for 192.168.111.199
2015-06-24 09:09:22,602 INFO zen.ZenModeler: Using SSH collection method for device 192.168.111.199
2015-06-24 09:09:22,602 INFO zen.ZenModeler: plugins: zenoss.cmd.linux.cpuinfo, zenoss.cmd.linux.ifconfig, zenoss.cmd.linux.memory, zenoss.cmd.linux.netstat_an, zenoss.cmd.linux.netstat_rn, zenoss.cmd.linux.process
2015-06-24 09:09:22,612 INFO zen.ZenModeler: SNMP collection device 192.168.111.199
2015-06-24 09:09:22,612 INFO zen.ZenModeler: plugins: zenoss.snmp.CpuMap, zenoss.snmp.DeviceMap, zenoss.snmp.HRFileSystemMap, zenoss.snmp.InformantHardDiskMap, zenoss.snmp.InterfaceMap, zenoss.snmp.IpServiceMap, zenoss.snmp.UCDHardDiskMap
Invalid version specified after -v flag:
2015-06-24 09:09:22,615 ERROR zen.ZenModeler: Unable to fill collection slots: [Failure instance: Traceback (failure with no frames): : ('Unable to parse arguments', ['/opt/zenoss/Products/DataCollector/zenmodeler.py', '-v', '', '-c', 'bcs', '-t', '1', '-r', '5', 'udp:192.168.111.199:161'])
]

Can someone point me on where to look for the problem in my zenoss instalation
snmpwalk is going OK through shell, but not web ui :S



Subject: IMO zproperty
Author: Jan Garaj
Posted: 2015-06-24 04:59

IMO zproperty

i have the same problem, the Zpropertie that sets the snmp version does not seem to get passed when the moddeler is ran.

I had to dig around a bit and found the following information: https://github.com/zenoss/zenoss-prodbin/commit/2e19dbc611d0a7f51a8b5f18...

it seems Roman Bakaleyko found the same problem, it started happening after 5.0.3 and it looks like he fixed the problem. Atleast if this is the same problem as I am facing at the moment.

Source: http://www.zenoss.org/forum/9416

snmpwalk -${device/zSnmpVer} -c${device/zSnmpCommunity} 192.168.111.199 system
is populated as
"snmpwalk - -c...." -> "-" = Unknown host (-)

Is it your problem

Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.

DevOps stack: Docker / Kubernetes / Mesos / Zabbix / Zenoss / Grafana / Puppet / Ansible / Vagrant / Terraform / Elasticsearch



Subject: well...
Author: [Not Specified]
Posted: 2015-06-24 05:57

I have changed the line in the mentioned file...
if value is not None:

to:

if value is not None and value != "":

with no improvements... i still get the same error when snmpwalk, and i still can't collect any data.



Subject: > I have changed the line
Author: Jan Garaj
Posted: 2015-06-24 06:57

> I have changed the line
Keep in mind that you are in container world = you need to change it and commit container/image. Pls check doc for committing,

Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.

DevOps stack: Docker / Kubernetes / Mesos / Zabbix / Zenoss / Grafana / Puppet / Ansible / Vagrant / Terraform / Elasticsearch



< Previous
Zenoss 4.2.5 - zenoss.queues.zep.zenevents fills into the 100's of thousands, ev ...
  Next
unable to commit changes
>