|
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.
- 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)
- 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
- 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)
- 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.
|
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
"We are using Servers Alive now for about 5 years. We do monitoring our customers servers and services and we are very happy to inform you that eventhough the simple interface (non-graphical) our customers are pleased to have their systems monitored with Servers Alive. At this moment we are monitoring about 1000 systems 24/7 and stillg rowing. Praise to you Woodstone for this fine product."R.B. - Remote support/DataCenter Databalk bv
|