Problems with DBFullLogger and DBStatusLogger

Bug #740992 reported by Yves
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SimpleMonitor
In Progress
Medium
JamesOff

Bug Description

Bonjour,

Thnak you for this usefull script

When I run the script with “logger=db,dbstatus”, I have the following error:

Traceback (most recent call last):
  File "monitor.py", line 348, in <module>
    main()
  File "monitor.py", line 266, in main
    m = load_loggers(m, config, options.quiet)
  File "monitor.py", line 151, in load_loggers
    l = DBFullLogger(config_options)
NameError: global name 'DBFullLogger' is not defined

I modified :

        if type == "db":
            l = DBFullLogger(config_options)
        elif type == "dbstatus":
            l = DBStatusLogger(config_options)

By :

      if type == "db":
            l = Loggers.db.DBFullLogger(config_options)
        elif type == "dbstatus":
            l = Loggers.db.DBStatusLogger(config_options)

It works but I have another problem : the boolean field « monitor_result » is always empty in the database

Do you have some idea about this mistake

Thanks

Changed in simplemonitor:
assignee: nobody → JamesOff (james-jamesoff)
Revision history for this message
JamesOff (james-jamesoff) wrote :

Please try revision 24 to see if this fixes the issue :)

Changed in simplemonitor:
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Yves (yvestan+ubuntu) wrote :

It works. Thanks :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.