3 Replies Latest reply on Apr 3, 2017 10:40 AM by Michael Halpin

    After upgrade to SAM 6.4 node status names have changed

    erikhk

      Hi guys,

       

      I have enabled some Slack integration with my Solarwinds alerts and it has work perfectly up until i upgraded to SAM 6.4. My slack alerts get colorized and a special emoji according to the node status. However, after the upgrade they have removed the node status "Error" and replaced it with "Major Failure". But, since I'm using powershell (not really that good at it) i can't seem to get my head around how I'm now supposed to address this string as there is a space in the status message.

       

      example of the old working code:

      switch ($ORIONNODESTATE)
      {
      OK {$emoji = ":white_check_mark:"; $MessageFormat="Up";$color="good" }
      Error {$emoji = ":x:";$color="danger" }
      }

      New non-working code:

      switch ($ORIONNODESTATE)
      {
      OK {$emoji = ":white_check_mark:"; $MessageFormat="Up";$color="good" }
      #Example below is not allowed as there is a space between "Major" and "Failure". What is the new code for "Major Failures"?
      Major Failure {$emoji = ":x:";$color="danger" }
      }

       

      I can't find documentation for this change and SW support could not help me out because of this being an SDK issue :/

       

      So, hopefully someone here in Thwack can help me out