
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.
Comments
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
Be the first to rate this
|
Sign in to rate this
Thanks a bunch for this. We're taking full advantage. It'll be very handy. :)
Reply to this Comment
Be the first to rate this
|
Sign in to rate this