-import bootman # debug nodes
from monitor import reboot
from monitor.common import *
m = Message(message[0] % args, message[1] % args, viart, self.db.message_id)
contacts = self.getContacts()
- contacts = [config.cc_email] # TODO: remove after testing...
print "sending message: %s to site %s for host %s" % (type, self.db.loginbase, hostname)
self.db.message_status = "new"
def runBootManager(self, hostname):
+ from monitor import bootman
print "attempting BM reboot of %s" % hostname
ret = ""
try:
act = ActionRecord(loginbase=self.db.loginbase,
hostname=hostname,
action='reboot',
- action_type='first_try_reboot',
+ action_type='try_reboot',
error_string=err)