This command checks the status of an ExtraView database, to indicate whether it is functioning correctly.
evheartbeat [-r] [-m]
This command checks the status of several components of the ExtraView installation, and provides immediate feedback to the user. Additionally, this command is designed to send optional email output, so that a system administrator can be automatically notified if there is a system outage.
The command may be configured with several entries in the evconfig.txt file as shown in this example:
HB_SMTP_SERVER =
HB_TO = you@<your-domain>.com[,your-buddy@<your-domain>.com] HB_FROM = someone@thisplace.com |
Note: The XML returned also includes tags named DB_DATETIME, FREE_MEMORY, TOTAL_MEMORY, SERVICE_COUNT and HEARTBEAT_EXEC_TIME along with values. This information is useful if you are developing scripts that need to accurately know the current time of the server or scripts that monitor the performance of ExtraView running on the server. The time returned is the time on the database server. The memory statistics are in megabytes and the execution time is in milliseconds
If the configuration file has not been set correctly, then a message or warning is displayed on the screen, informing the user of the error.
When sending email, evheartbeat places a header into the email message, entitled ExtraView-Audit.
ExtraView-Audit:
Sent by system user <login-name-of-sender>, from host <name-of-host-running-evheartbeat> (<ip-address-of-host>), on Tue Sep 30 17:04:17 2003, client program == evheartbeat. EXAMPLE 1 $ evheartbeat Heartbeat Results $ |
$ evheartbeat -r
<?xml version="1.0" encoding="UTF-8"?> <EV_HEARTBEAT> <EV_STATUS>EXTRAVIEW ALIVE</EV_STATUS> <DB_STATUS>DB CONNECTION CONFIRMED</DB_STATUS> <DB_DATETIME>2004-10-11 22:15:22.000 -0700</DB_DATETIME> <FREE_MEMORY>106</FREE_MEMORY> <TOTAL_MEMORY>128</TOTAL_MEMORY> <SERVICE_COUNT>1</SERVICE_COUNT> <HEARTBEAT_EXEC_TIME>396</HEARTBEAT_EXEC_TIME> </EV_HEARTBEAT> $ |