Archived community.zenoss.org | full text search
Skip navigation
3939 Views 2 Replies Latest reply: Feb 27, 2008 4:39 AM by mjoncic RSS
mjoncic Rank: White Belt 49 posts since
Aug 14, 2007
Currently Being Moderated

Feb 26, 2008 4:30 AM

Problem with zenactions

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:

[zenoss@xxx 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
  • linuxdynasty ZenossMaster 156 posts since
    Apr 10, 2007
    Currently Being Moderated
    1. Feb 26, 2008 8:01 AM (in response to mjoncic)
    Problem with zenactions
    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 <michael.joncic@neotel.at>:

     

     

    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:

    [zenoss@xxx 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







    _______________________________________________
    zenoss-users mailing list
    zenoss-users@zenoss.org
    http://lists.zenoss.org/mailman/listinfo/zenoss-users



    _______________________________________________
    zenoss-users mailing list
    zenoss-users@zenoss.org
    http://lists.zenoss.org/mailman/listinfo/zenoss-users

More Like This

  • Retrieving data ...