merge recent v2 changes; migrating to v3
[monitor.git] / monitor / wrapper / emailTxt.py
index 05afe6e..c90cf5e 100644 (file)
@@ -207,7 +207,19 @@ ERROR-        This is an error state, where there is absolutely no contact
            with PlanetLab.
        """)
 
-       pcufailed_notice =("""Could not use PCU to reboot %(hostname)s""",
+       pcumissing_notice =("""MONTEST: No PCU available to reboot %(hostname)s""",
+"""As part of PlanetLab node monitoring and maintenance, we noticed that there is no PCU
+associated with %(hostname)s, so we could not reboot it ourselves.
+
+To save you time in the future, please take a moment to register the PCU functionality for
+your machines here:
+
+    http://www.planet-lab.org/db/sites/pcu.php
+
+Thank you very much for your help,
+  -- PlanetLab Central (support@planet-lab.org)
+""")
+       pcufailed_notice =("""MONTEST: Could not use PCU to reboot %(hostname)s""",
 
 """As part of PlanetLab node monitoring and maintenance, we tried to use the PCU
 registered for %(hostname)s, but could not for some reason.
@@ -217,21 +229,21 @@ Please help.
 Thank you very much for your help,
   -- PlanetLab Central (support@planet-lab.org)
 """)
-       online_notice=("""Host %(hostname)s is online""",
+       online_notice=("""MONTEST: Host %(hostname)s is online""",
        """
 This notice is simply to let you know that:
     %(hostname)s
 
 is online and operational.  Thank you very much for your help!
        """)
-       test_notice=("""Host %(hostname)s is testing""",
+       test_notice=("""MONTEST: Host %(hostname)s is testing""",
        """
 This notice is simply to test whether notices work.
     %(hostname)s
 
 Thank you very much for your help!
        """)
-       retry_bootman=("""Running BootManager on %(hostname)s""",
+       retry_bootman=("""MONTEST: Running BootManager on %(hostname)s""",
        """
 This notice is simply to let you know that:
     %(hostname)s
@@ -239,15 +251,19 @@ This notice is simply to let you know that:
 appears stuck in a debug mode.  To try to correct this, we're trying to rerun BootManager.py.  
 If any action is needed from you, you will recieve additional notices.  Thank you!
        """)
-       down_notice=("""Host %(hostname)s is down""",
+       down_notice=("""MONTEST: Host %(hostname)s is down""",
        """
 This notice is simply to let you know that:
     %(hostname)s
 
-is down, disconnected from the network and/or non-operational.  Please investigate, thank you very much for your help!
+is down, disconnected from the network and/or non-operational.  
+
+Please investigate, thank you very much for your help!
+
+       http://monitor.planet-lab.org:8082/pcuview?loginbase=%(loginbase)s
        """)
 
-       clear_penalty=("""All penalties have been cleared from site %(loginbase)s""",
+       clear_penalty=("""MONTEST: All penalties have been cleared from site %(loginbase)s""",
        """
 This notice is to let you know that any penalties previously applied to your site have 
 been removed: %(penalty_level)s.
@@ -262,7 +278,7 @@ Legend:
   2+ - all existing slices will be disabled.
        """)
 
-       increase_penalty=("""Penalty increased for site %(loginbase)s""",
+       increase_penalty=("""MONTEST: Penalty increased for site %(loginbase)s""",
        """
 This notice is to let you know that the penalty applied to your site has
 increased: %(penalty_level)s.
@@ -274,7 +290,7 @@ legend:
   2+ - all existing slices will be disabled.
        """)
 
-       newbootcd_notice=(""" Host %(hostname)s needs a new BootImage""", """
+       newbootcd_notice=("""MONTEST: Host %(hostname)s needs a new BootImage""", """
 As part of PlanetLab node monitoring, we noticed the following nodes have an out-dated BootCD: 
 
     %(hostname)s  
@@ -372,7 +388,7 @@ Thank you very much for your help,
   -- PlanetLab Central (support@planet-lab.org)
 """)
 
-       newalphacd_notice=(""" New Boot Images for %(hostname)s""", 
+       newalphacd_notice=("""MONTEST: New Boot Images for %(hostname)s""", 
 """As part of PlanetLab node monitoring, we noticed that we were not able to recognize all the hardware in your machine.  This means that it is so new that it needs a new BootCD, or that it is so old that it is no longer supported.
 
     %(hostname)s  
@@ -403,7 +419,7 @@ Thank you for your help,
        pcutonodemapping=[pcutonodemapping_one, pcutonodemapping_one, pcutonodemapping_one]
        pcudown=[pcudown_one, pcudown_one, pcudown_one]
 
-       unknownsequence_notice = ("""Unrecognized Error on PlanetLab host %(hostname)s""", 
+       unknownsequence_notice = ("""MONTEST: Unrecognized Error on PlanetLab host %(hostname)s""", 
                                           """
 While trying to automatically recover this machine:
 
@@ -489,7 +505,7 @@ Thank you for your help,
        donation_down = [ donation_down_one, donation_down_one, donation_down_one ]
 
 
-       minimalhardware_notice = ("""Hardware requirements not met on PlanetLab host %(hostname)s""", 
+       minimalhardware_notice = ("""MONTEST: Hardware requirements not met on PlanetLab host %(hostname)s""", 
                                           """
 While trying to automatically recover this machine:
 
@@ -509,7 +525,7 @@ BootManager.log output follows:
 %(bmlog)s
 """      )
 
-       baddisk_notice = ("""Bad Disk on PlanetLab node %(hostname)s""", 
+       baddisk_notice = ("""MONTEST: Bad Disk on PlanetLab node %(hostname)s""", 
                           """As part of PlanetLab node monitoring, we noticed %(hostname)s has a number of disk or media related I/O errors, that prevent it from either booting or reliably running as a PlanetLab node.
 
 Please verify the integrity of the disk, and order a replacement if needed.  If you need to schedule downtime for the node, please let us know at support@planet-lab.org. 
@@ -575,7 +591,7 @@ BootManager.log output follows:
 %(bmlog)s
 """)
 
-       nodeconfig_notice=(""" Please Update Configuration file for PlanetLab node %(hostname)s""", 
+       nodeconfig_notice=("""MONTEST:  Please Update Configuration file for PlanetLab node %(hostname)s""", 
 """As part of PlanetLab node monitoring, we noticed %(hostname)s has an out-dated plnode.txt file with no NODE_ID or a mis-matched HOSTNAME.  This can happen either due to an initial configuration failure at your site, with information entered into our database, or after a software upgrade.  To resolve the issue we require your assistance.  All that is needed is to visit:
 
        https://www.planet-lab.org/db/nodes/index.php?nodepattern=%(hostname)s
@@ -615,7 +631,7 @@ Thanks.
 """)
 
 
-       baddns_notice=("""Planetlab node down: broken DNS configuration for %(hostname)s""", 
+       baddns_notice=("""MONTEST: Planetlab node down: broken DNS configuration for %(hostname)s""", 
 """As part of PlanetLab node monitoring, we noticed the DNS servers used by the following machine(s) are not responding to queries.
 
     %(hostname)s 
@@ -628,7 +644,7 @@ To help us return this machine to running order, please verify that the register
 
 You may update the node's network information at the link below:
 
-    https://www.planet-lab.org/db/nodes/node_networks.php?id=%(nodenetwork_id)s
+    https://www.planet-lab.org/db/nodes/node_networks.php?id=%(interface_id)s
 
 If you have any questions, please feel free to contact us at PlanetLab Support (support@planet-lab.org).