/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to mandos-monitor

  • Committer: Teddy Hogeborn
  • Date: 2012-06-22 23:33:56 UTC
  • mto: (237.7.272 trunk)
  • mto: This revision was merged to the branch mainline in revision 303.
  • Revision ID: teddy@recompile.se-20120622233356-odoqqt2ki2gssn37
* Makefile (check): Also check mandos-ctl.
* mandos-ctl: All options taking a time interval argument can now take
              an RFC 3339 duration.
  (rfc3339_duration_to_delta): New function.
  (string_to_delta): Try rfc3339_duration_to_delta first.
  (main): New "--check" option.
* mandos-ctl.xml (SYNOPSIS, OPTIONS): Document new "--check" option.

Show diffs side-by-side

added added

removed removed

Lines of Context:
489
489
        self.topwidget = urwid.Pile(self.uilist)
490
490
    
491
491
    def log_message(self, message):
492
 
        """Log message formatted with timestamp"""
493
492
        timestamp = datetime.datetime.now().isoformat()
494
493
        self.log_message_raw(timestamp + ": " + message)
495
494
    
585
584
        try:
586
585
            mandos_clients = (self.mandos_serv
587
586
                              .GetAllClientsWithProperties())
588
 
            if not mandos_clients:
589
 
                self.log_message_raw(("bold", "Note: Server has no clients."))
590
587
        except dbus.exceptions.DBusException:
591
 
            self.log_message_raw(("bold", "Note: No Mandos server running."))
592
588
            mandos_clients = dbus.Dictionary()
593
589
        
594
590
        (self.mandos_serv