On 29. aug. 2005, at 12:11, Asbj?rn Pr?is wrote:
- service ftp on a ip-device (SRV)
servicemon.log says : abstractChecker.py:__init__:104 [Info] New checker instance for x:http abstractChecker.py:__init__:104 [Info] New checker instance for x:https abstractChecker.py:__init__:104 [Info] New checker instance for x:ssh abstractChecker.py:__init__:104 [Info] New checker instance for y:ssh db.py:getCheckers:225 [Critical] no such checker: ftp
Unfortunaly the FTP checker has not been tested in a long time.
Try this patch to FtpChecker.py:
: stain@isbre ~/navme/subsystem/statemon/nav/statemon/checker;svn diff Index: FtpChecker.py =================================================================== --- FtpChecker.py (revision 3231) +++ FtpChecker.py (working copy) @@ -22,8 +22,10 @@ # Authors: Magnus Nordseth magnun@itea.ntnu.no # -from nav.statemon.abstractChecker import AbstractChecker, Event -import ftplib, Socket +from nav.statemon.abstractChecker import AbstractChecker +from nav.statemon.event import Event +from nav.statemon import Socket +import ftplib class FTP(ftplib.FTP): def __init__(self,timeout,host='',user='',passwd='',acct=''): ftplib.FTP.__init__(self)
Please report back if this works as I unfortunately don't have time to check this now..
I think this bug also effects PostgresqlChecker and DummyChecker as they also try to import Event from abstractChecker.py instead of event.py