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 = .com
HB_TO = you@<your-domain>.com[,your-buddy@<your-domain>.com]
HB_FROM = someone@thisplace.com
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.
$ evheartbeat
Heartbeat Results
-----------------
ExtraView status : EXTRAVIEW ALIVE
DataBase status : DB CONNECTION CONFIRMED
DataBase Timestamp: 2004-10-11 22:15:09.000 -0700
$
$ 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>
$