Server status is recorded in the server log and can be remotely monitored using the mtping utility. This utility can be found in the "Server Files" folder of each ExpeDat package.
Pinging servedat will return version, license, and runtime information. The exact information available may vary depending on the version and configuration.
host-14# mtping dataexpedition.com ACT_IDSTR dataexpedition.com (18.104.22.168:8080) Response 0 of 200 bytes after 0 repeats in 1ms (Version 2/0): servedat - 1.15.0 August 2013 - DEI, DOC-1.15.0 MTP-osx-3.15.11 853 00000001: ExpeDat-1.15A Data Expedition Inc., DataExpedition.com Server Statistics (11500): Name: servedat Version: 1.15.0 Platform: osx Clock: Fri Aug 23 10:45:57 2013 Clock Skew: 0 seconds Delimiter: / Load: Current: 0, MaxConfig: 1, MaxStart: 1, TotalStart: 7 Capacity: 10 Up Time: 1.82 days Config Time: 1.80 hours Idle Time: 1.35 minutes Errors: Errors 0, Failures: 0, Warnings: 0, Denials: 1
See the mtping section for more details on using mtping.
Object Handlers also have access to server configuration and load details through environment variables such as SV_SERVERLOAD.
Monitoring Server Health
The Load line tells you how busy your server has been.
|Current||The number of transactions currently active.|
|MaxConfig||The peak number of simultaneous transactions since the last configuration reload.|
|MaxStart||The peak number of simultaneous transactions since server startup.|
|TotalStart||The total number of transactions started or attempted since server startup.|
If MaxStart is at or near Capacity, you should consider upgrading your server's capacity.
The Errors line counts how many times problems have been observed since the server was started.
|Errors||Serious problems which should be investigated and corrected. Check the server log for lines starting with 'E'.|
|Failures||Transactions which started successfully, then failed before completing. A large number of these compared to TotalStart could indicate network problems.|
|Warnings||Problems with the configuration or unusual run-time events. Check the server log for lines starting with 'W'.|
|Denials||Transactions which could not begin. Incorrect passwords, mistyped file names, and file permission issues are the most common causes.|
It is a good idea to check these values periodically, either with mtping or by looking for 'S' entries in the log file.