Az,

zenactions is checking to see if there is a newer version of zenoss available, in which case it will create an event to let you know. It's dying though because it can't reach our server to check for latest version. Consequently it isn't reaching the email sending actions. This change ought to fix that problem:

In $ZENHOME/Products/ZenEvents/UpdateCheck.py, around line 91 replace these lines:

        dmd.lastVersionCheckAttempt = now
        available = self.getUpdate(dmd, manual)
        if not isinstance(available, Version):

with these lines:

        dmd.lastVersionCheckAttempt = now
        try:
            available = self.getUpdate(dmd, manual)
        except IOError:
            available = None
        if not isinstance(available, Version):

Careful with indentation, it makes a difference. Those two lines are indented 4 spaces more than the surrounding ones.

-jason


On Feb 6, 2007, at 11:44 PM, Jewel Muffin wrote:

Hi,

I need some help on the email alert notification.
I have setup the alert as per the manual instructions and I can even sent a test email but but I cannot receive any notification when a device goes down.

Alert rule has been set to TRUE and test email works.

*****************************
This is a test message sent by admin from the Zenoss installation on zenoss.localhost.

*****************************

SMTP server/port been setup on the SETTING TAB
I just can't get an email when a device goes down; installed EXIM4 locally and from the mail logs; i do not see any transcation betwen Zenoss to the mailserver.


When I run zenactions; I do get some error - is this related ??

[EMAIL PROTECTED]:~$ zenactions run
INFO:zen.ZenActions:Processed 0 commands in 0.002673
Traceback (most recent call last):
File "/usr/local/zenoss/Products/ZenEvents/zenactions.py", line 503, in ?
    za.run()
File "/usr/local/zenoss/Products/ZenEvents/zenactions.py", line 377, in run
    return self.mainbody()
File "/usr/local/zenoss/Products/ZenEvents/zenactions.py", line 355, in mainbody
    self.checkVersion(self.dmd, zem)
File "/usr/local/zenoss/Products/ZenEvents/zenactions.py", line 208, in checkVersion
    self.updateCheck.check(db, zem)
File "/usr/local/zenoss/Products/ZenEvents/UpdateCheck.py", line 91, in check
    available = self.getUpdate(dmd, manual)
File "/usr/local/zenoss/Products/ZenEvents/UpdateCheck.py", line 71, in getUpdate
    for line in urllib.urlopen(URL + '?' + query):
  File "/usr/lib/python2.4/urllib.py", line 82, in urlopen
    return opener.open(url)
  File "/usr/lib/python2.4/urllib.py", line 190, in open
    return getattr(self, name)(url)
  File "/usr/lib/python2.4/urllib.py", line 313, in open_http
    h.endheaders()
  File "/usr/lib/python2.4/httplib.py", line 798, in endheaders
    self._send_output()
  File "/usr/lib/python2.4/httplib.py", line 679, in _send_output
    self.send(msg)
  File "/usr/lib/python2.4/httplib.py", line 646, in send
    self.connect()
  File "/usr/lib/python2.4/httplib.py", line 630, in connect
    raise socket.error, msg
IOError: [Errno socket error] (101, 'Network is unreachable')


Any help on this is very much appreciated.

Thanks,


Az


********************************************************************** ********************************************************************** ****************************************************

Setup :

Zenoss  Zenoss 1.1.0 r4021
OS      Linux (i686) 2.6.17
Zope    Zope 2.8.8
Python  Python 2.4.4
Database        MySQL 5.0.24 (Ver 5.0.24)
RRD     RRDtool 1.2.15
Twisted Twisted 2.4.0
SNMP    PySNMP 3.4.3
Twisted SNMP    TwistedSNMP 0.3.13

_______________________________________________
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