What I try to do is to collect informations about file size with the check_http 
plugin.
What I do is launch check_http and put a threshold on the file size so that it 
will trigger an event everytime
Then I put a mapping on the event triggered with the following transform :
evt.summary = evt.message.split()[3]
to get the size of the file into the event.summary variable

Then, I launch an event command to echo the event summary into a file :
\bin\echo ${evt/summary} > /tmp/test

But nothing appears in my test file and in the zenactions log, I've got the 
following message :


Code:

2009-01-29 11:49:58 ERROR zen.ZenActions: unexpected exception
Traceback (most recent call last):
  File "/usr/local/zenoss/zenoss/Products/ZenEvents/zenactions.py", line 498, 
in runCycle
    self.mainbody()
  File "/usr/local/zenoss/zenoss/Products/ZenEvents/zenactions.py", line 486, 
in mainbody
    self.eventCommands(zem)
  File "/usr/local/zenoss/zenoss/Products/ZenEvents/zenactions.py", line 475, 
in eventCommands
    self.processEvent(zem, command, self.runEventCommand)
  File "/usr/local/zenoss/zenoss/Products/ZenEvents/zenactions.py", line 260, 
in processEvent
    for result in self.query(q):
  File "/usr/local/zenoss/zenoss/Products/ZenEvents/zenactions.py", line 196, 
in query
    curs.execute(stmt)
  File 
"/usr/local/zenoss/python/lib/python2.4/site-packages/MySQLdb/cursors.py", line 
137, in execute
    self.errorhandler(self, exc, value)
  File 
"/usr/local/zenoss/python/lib/python2.4/site-packages/MySQLdb/connections.py", 
line 33, in defaulterrorhandler
    raise errorclass, errorvalue
OperationalError: (1017, "Can't find file: './events/alert_state.frm' (errno: 
13)")





Does someone know what is the problem?

Thanks




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

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

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



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

Reply via email to