I do not have the answer as to why this happens but I do know how to prevent it in the future and to fix it right now.

see this line DEBUG:zen.Schedule:Maintenance window stopping snmpd-restart for HP-G5

Remove that maintenance window and restart zenactions you should be good then.

Here is what happens to me at my company if someone puts in a maintenance window and leaves it there for more then a week, zenactions starts to die and you see the stale maintenance windows. Once I remove the stale maintenance windows zenactions works again with no issues.

Quoting mjoncic <[EMAIL PROTECTED]>:

Hi,

after running for a very long time (and running quite well i have to add!) it finally happend:
Zenoss crashed for no obvious reason

After a restart it seemed fine at first, as everything came back up, except zenactions, it just keeps dying...

When i run it from the console i get the following:

[EMAIL PROTECTED] bin]$ ./zenactions run -v10
DEBUG:zen.ZenActions:action:all for:--- loaded
DEBUG:zen.ZenActions:action:BGP up-down for:--- loaded
DEBUG:zen.ZenActions:action:SMS for:--- loaded
DEBUG:zen.ZenActions:action:SMS New Systems for:--- loaded
DEBUG:zen.ZenActions:action:alarm-critical for:--- loaded
DEBUG:zen.Events:EventClassInst=Start
DEBUG:zen.DbConnectionPool:Creating a new connection; Pool size: 0
DEBUG:zen.Events:update status set clearid = 'c0a82d1b366f8397ffff1f7' where device='xxx' and component='zenactions' and eventKey='' and (eventClass='/App/Stop' or eventClass='/App/Start'): --> 0
DEBUG:zen.DbConnectionPool:Returned a connection; Pool size: 1
DEBUG:zen.Schedule:Maintenance window stopping snmpd-restart for HP-G5
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenEvents/zenactions.py", line 543, in ?
    za.run()
  File "/opt/zenoss/Products/ZenEvents/zenactions.py", line 401, in run
    self.schedule.run()
  File "/opt/zenoss/Products/ZenEvents/Schedule.py", line 76, in run
    self.runEvents()
  File "/opt/zenoss/Products/ZenEvents/Schedule.py", line 115, in runEvents
    self.executeMaintenanceWindow(mw, next)
File "/opt/zenoss/Products/ZenEvents/Schedule.py", line 133, in executeMaintenanceWindow
    mw.execute(timestamp)
File "/opt/zenoss/Products/ZenModel/MaintenanceWindow.py", line 389, in execute
    self.end()
  File "/opt/zenoss/Products/ZenModel/MaintenanceWindow.py", line 383, in end
    self.setProdState(self.target(), self.stopProductionState)
File "/opt/zenoss/Products/ZenModel/MaintenanceWindow.py", line 367, in setProdState
    if state == -99: state = self.stopProductionStates[device.id]
KeyError: 'xxx'


What is going on here???

Thanks for your help!
Michael




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=16608#16608

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to