X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=emailTxt.py;h=62e652ce7b84afe657dcb0755dae40c63da1a6a6;hb=dc70043f70f08f0d6540c77e53d30c0ed6e58ad5;hp=8ee1d36a5d3f5e52179b348643ec4e88e5364530;hpb=c002f6f7007a9266df5b5dce134e4799f8eefacb;p=monitor.git diff --git a/emailTxt.py b/emailTxt.py index 8ee1d36..62e652c 100644 --- a/emailTxt.py +++ b/emailTxt.py @@ -191,12 +191,85 @@ Monitor restarted NM on the following machines: %(hostname_list)s """) + pcudown_one =("""Could not use PCU to reboot %(hostname)s""", + +"""As part of our machine monitoring and maintenance, we tried to use the PCU +registered below, but could not for the following reason at the link below: + + https://pl-virtual-03.cs.princeton.edu/cgi-bin/printbadpcus.php#id%(pcu_id)s + +We need your help resolving this issue in two ways: + +* First, we need your help rebooting %(hostname)s. Because we cannot leverage + the above PCU, please manually reboot this machine and we can help you + resolve any configuration errors with the PCU independently. + +* Second, if it is possible, please correcct the above PCU problem. + By enabling us to take administrative actions automatically from + PlanetLab Central without local intervention, you can trade a small + amount of time now for a time savings in the future. + +If the PCU is up and running, but behind a firewall, please make it accessible +from address block 128.112.139.0/25. You can confirm that this is the address +space from which the PlanetLab Central servers run. + +If the above PCU is no longer in service, please delete it by visiting: + + https://www.planet-lab.org/db/sites/pcu.php?id=%(pcu_id)s + +and selecting 'Delete PCU'. You may then register a new PCU for your nodes. + +Thank you very much for your help, + -- PlanetLab Central (support@planet-lab.org) +""") + pcutonodemapping_one =("""PCU to Node mapping is incorrect for %(hostname)s""", + """ + As part of our machine monitoring and maintenance, we tried to use the PCU +registered below, and though it appears to succeed, we do not subsequently +observe the associated nodes rebooting: + + https://pl-virtual-03.cs.princeton.edu/cgi-bin/printbadpcus.php#id%(pcu_id)s + +%(hostname_list)s + +We need your help resolving this issue in two ways: + +* First, we need your help rebooting %(hostname)s. Because the above PCU + does not appear to actually control the above Nodes, we cannot use it to + reboot these machines. So, please manually reboot the machine and we can + help you resolve any configuration errors with the PCU independently. + +* Second, please check the configuration of the above PCU. Check that the + PCU is physically connected to the servers that it should be able to + control. A common mistake is that the PCU is registered for a machine, + but not actually connected physically to the machine. + +By enabling us to take administrative actions automatically from PlanetLab +Central without local intervention, you can trade a small amount of time now +for a time savings in the future. + +If the above PCU is no longer in service, please delete it by visiting: + + https://www.planet-lab.org/db/sites/pcu.php?id=%(pcu_id)s + +and selecting 'Delete PCU'. You may then register a new PCU for your nodes. + +Alternately, if the machines listed above are no longer in service, please +delete them by visiting your sites page at: + + https://www.planet-lab.org/ + +Thank you very much for your help, + -- PlanetLab Central (support@planet-lab.org) +""") # TODO: need reminder versions for repeats... newdown=[newdown_one, newdown_two, newdown_three] newbootcd=[newbootcd_one, newbootcd_two, newbootcd_three] newthankyou=[thankyou,thankyou,thankyou] NMReset=[nmreset,nmreset,nmreset] + pcutonodemapping=[pcutonodemapping_one, pcutonodemapping_one, pcutonodemapping_one] + pcudown=[pcudown_one, pcudown_one, pcudown_one] down=("""PlanetLab node %(hostname)s down.""", """As part of PlanetLab node monitoring, we noticed %(hostname)s has been down for %(days)s days.