...
The environment variables passed to the alert script and their meanings are included below but for the latest documentation please refer to Alert Profile and Action Profile Variables:
Variable | Description | Example Contents |
Service Message Fields - These will remain constant for each execution of your script associated with a single service outage. | ||
UPTIME_ALERTTYPE | This is the type of alert message | One of: Problem, Recovery |
UPTIME_HOSTNAME | The name of the host that the service outage is associated with. | oracle_server |
UPTIME_HOSTSTATUS | The status of the host that the service outage is associated with. | One of: OK, WARN, CRIT, MAINT, UNKNOWN |
UPTIME_MESSAGE | The output section of the alert. | Type: Problem Service: db_status (CRIT/threshold error) Host: oracle_db (OK) |
UPTIME_SUBJECT | The subject line that would normally appear in an emailed alert for this alert. | Uptime Alert - UPTIME-oracle_server -> CRIT |
UPTIME_SVCNAME | The name of the service monitor generating this alert. | UPTIME-oracle_server |
UPTIME_SVCOUTPUT | The output of the service monitor generating this alert. | processoccurrences: 0 is less than 1 |
UPTIME_SVCSTATUS | The current status of the service monitor generating this alert. | One of: OK, WARN, CRIT, MAINT, UNKNOWN. |
UPTIME_DATETIME | The date and time of the alert. | Mon May 15 11:12:22 EDT 2006 |
User related fields - these will change for each user that is passed to your script, the script will be executed once for each user that should be notified. | ||
UPTIME_CONTACTLOGINNAME | The login name of the user who is being notified. | testuser |
UPTIME_DESKTOPHOST | The windows desktop hostname setting for the user being notified. | testuser-pc |
UPTIME_DESKTOPWORKGROUP | The windows workgroup for the desktop host specified above. | WORKGROUP |
UPTIME_EMAIL | The email address associated with the user who is being notified. | [email protected] |
UPTIME_MOBILE | The pager number associated with the user being notified. | [email protected] |
General fields | ||
UPTIME_SCRIPT | The name of the current script being executed. | C:/Program Files/uptime software/uptime4/scripts/my_custom_alerter.bat |
UPTIME_SMTPHELOSTRING | The HELO string used in your SMTP server configuration. | |
UPTIME_SMTPPASSWORD | The password used from authentication in your SMTP server configuration. | |
UPTIME_SMTPPORT | The server port used in your SMTP server configuration. | |
UPTIME_SMTPSENDER | The sender address string used in your SMTP server configuration. | |
UPTIME_SMTPSERVER | The server hostname used in your SMTP server configuration. | |
UPTIME_SMTPUSER | The user name used for authentication in your SMTP server configuration. |
...