This is a public Media Gallery  publicRSS

Action

    Post Device Status to Twitter
    Action posted 6/29/09 by Will Sansbury, last edited 8/13/09
    2352 Views, 2 Comments
    Name:
    Post Device Status to Twitter
    Description:

    I use Dreamhost to host my personal Web site and have always appreciated the blog they maintain which I can check to see if my server is having problems. I wanted to see if something similar could be accomplished automatically with WhatsUp Gold, so I put together this quick script for an action that tweets device status. I thought some of you might find it useful as a way of communicate server status to the outside world.

    This gets copied into an Active Script Action, which is then applied to devices.

    Hat tip to Brad Williams for the code that got me rolling.

    Language:
    VB Script
    Code:
    Disclaimer:
    All scripts found on wugSpace are provided as-is with no warranty or guarantee. These scripts are not supported by Ipswitch Technical Support. If you have a problem with this script, please ask any questions in the comments.

    Comments

    • posted 7/29/09 by azie ishak

      Hi,

      thank to ur script.

      Let's say i only want to appear sStatus only in WUG, in the action script, so i did like this:

      sStatus = "WhatsUp Gold says, '%Device.DisplayName %Device.State at %System.Time on %System.Date'"

      Context.SetResult 0, sStatus

      After running it, Under details in WUG this appeared:

      WhatsUp Gold says, 'azie down at least 20 minutes at 04:11:35PM on ???? 29,2009'


      My Questions is, why the '????' appeared instead of the 'July'??

      If i want to sent this message to another IPaddress how can i do that? Can use you approach of using xml ad POST? if u dont mind can you show me some solution??


      Thank you, hope to hear from you soon.

      Reply to this Comment

    • posted Apr 22 by Allen Barrett

      Thanks a bunch for this.  We're taking full advantage.  It'll be very handy.  :)

      Reply to this Comment