Scripts in Servers Alive Servers Alive can use a custom script to convert the check result to something that is more understandable for the user.
This document will show you what scripting can do and this based on a example were a you get the temperature back in degrees Celcius while you want to see it in degrees Fahreneit.


  1. Paste the following function into a text document and rename the file as C2FConversion.vbs.
    Function fnC2FConversion(x)
           fnC2FConversion = (((x/10)/5)*9) + 32
    End Function
    When using SNMP to retrieve the temperature probe value from a Server Tech Sentry PDU, you must first divide the retrieved number by ten in order to get the actual Centigrade temperature. (E.g. If the SNMP get returns 214, then the actual Centigrade temperature is 21.4 degrees)


  2. Save the newly created script to your Servers Alive directory. You can also create a sub-folder called "SCRIPTS" and save the file there. Fahrenheit


  3. Open SETUP and navigate to the Custom Scripts Section under the General setup options. Press the Add button and fill out the path to the new conversion script. Fill out the Function field exactly as shown and provide a description for the script.(screenshot)


  4. Open the properties for the Sentry PDU entry in Server's Alive (SNMP check - OID .1.3.6.1.4.1.1718.3.2.5.1.6.1.1) and navigate to the Custom tab. Put a checkmark in the "Convert check reponse using" field and choose the conversion script description you entered in step 3. (screenshot)
Notes:
  • Once the conversion function is working properly, the new Fahrenheit value will be available for your notifications via SMTP, SMS, etc.
  • The device being used for the check is a ServerTech CDU-84 PDU with built in Environmental monitoring.



Woodstone would like to thank David White for creating the document on which this HOWTO is based.
Order online Servers Alive to monitor your network
Program Features
What's new in v10.x?
Download
Document Collection
Template examples
Free add-ons
License Agreement
Prices from 199 EURO
Different editions

Download Free Trial Servers Alive

from our main website
or download it from one of our mirror download sites around the world.
If you're a business owner or manager, you know that network outages can affect your income, brand integrity, and bottom line. Here's a non-technical description of how Servers Alive can monitor your network and alert your IT staff when there's a problem.

Servers Alive - Like Life Insurance For Your Business - Only Cheaper

Try Before You Buy!

Try Servers Alive for FREE with no time limit....
You can try all of the features to see if the program meets your needs.
Download page

Customer praise

"I think your software is great, and recommend it to anyone looking for monitoring software. I have had a wonderful experience with it."

E. Townsend