Discussion:
Configuration Properties inconsistency
campapy
2012-11-12 22:03:38 UTC
Permalink
campapy [http://community.zenoss.org/people/campapy] created the discussion

"Configuration Properties inconsistency"

To view the discussion, visit: http://community.zenoss.org/message/69841#69841

--------------------------------------------------------------
Hi,

Installed from apt-get Zenoss 3.2.1

I change discovered devices from zendmd with this script:

+for d in dmd.Devices.Discovered.getSubDevices():+
+if d.zSnmpCommunity == 'public':+
+  d.zSnmpCommunity = 'some_comm'+

+commit()+

Then, verify the changes with:

+for d in dmd.Devices.Discovered.getSubDevices():+
+  print "%s, %s" % (d, d.zSnmpCommunity)+

And everything is fine.
*"BadRequest Property. zSnmpCommunitydoes not exist"*

I try to solve the problem with:

/etc/init.d/zenoss-stack stop
/etc/init.d/zenoss-stack start

python $ZENHOME/Products/ZenUtils/zencatalog.py --createcatalog --forceindex
reindex()
Nothing work. Please Help.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69841#69841]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
campapy
2012-11-12 22:20:42 UTC
Permalink
campapy [http://community.zenoss.org/people/campapy] created the discussion

"Re: Configuration Properties inconsistency"

To view the discussion, visit: http://community.zenoss.org/message/69842#69842

--------------------------------------------------------------
I manually set again to 'public' de Community parameter from sendmd, but problem still.

+for d in dmd.Groups.RDD.getSubDevices():+
+if d.manageIp == 'some_ip':+
+  d.zSnmpCommunity = 'public'+

Only deleting and re creating de device the problem solves.

Do I need to do this for de up to 80 discovered device routers?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69842#69842]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
jcurry
2012-11-13 20:13:35 UTC
Permalink
jcurry [http://community.zenoss.org/people/jcurry] created the discussion

"Re: Configuration Properties inconsistency"

To view the discussion, visit: http://community.zenoss.org/message/69901#69901

--------------------------------------------------------------
Check this thread - http://community.zenoss.org/message/69612#69612 http://community.zenoss.org/message/69612#69612 .
Cheers,
Jane
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69901#69901]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2012-11-13 20:13:48 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Configuration Properties inconsistency"

To view the discussion, visit: http://community.zenoss.org/message/69884#69884

--------------------------------------------------------------
campapy:

On the devices you modified the zSnmpCommunity on do the following, where d is the device object:

del d.zSnmpCommunity
d.setZenProperty('zSnmpCommunity', 'newCommunity')

Best,
--Shane Scott (Hackman238)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69884#69884]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
campapy
2012-11-14 18:07:39 UTC
Permalink
campapy [http://community.zenoss.org/people/campapy] created the discussion

"Re: Configuration Properties inconsistency"

To view the discussion, visit: http://community.zenoss.org/message/69928#69928

--------------------------------------------------------------
Thanks both!

You solution Shane work perfectly.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69928#69928]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...