Server monitoring

From TempusServa wiki
Revision as of 14:44, 10 February 2017 by old>Admin (→‎Setup the website monitor)
Jump to navigation Jump to search

Monitoring options

The builtin status page will display important server metrics

 <serverstatus>
 <flag name="Source version">4081</flag>
 <flag name="Unused storage">23%</flag>
 <flag name="Unused PermGen">58%</flag>
 <flag name="Database motor">OK</flag>
 <flag name="Authentication">OK</flag>
 <flag name="Daemon running">NO</flag>
 <flag name="Server healthy">HEALTHY</flag>
 <flag name="Is user online">NO</flag>
 <flag name="Session length">30</flag>
 <flag name="DB schema LIVE">tslive</flag>
 <flag name="DB schema TEST">tstest</flag>
 <flag name="Last view data">2017-02-10 11:22:53</flag>
 <flag name="Last exception">2017-02-02 09:51:26</flag>
 </serverstatus>

If everything is OK (storage, memory and database) the "Server healthy" node will contain the value "HEALTHY".


Using site 24x7 for monitoring your server

First create an account at https://www.site24x7.com/

Setup the website monitor

URL example

   http://www.acme.com/TempusServa/service?OkToday

Should contain string

  HEALTHY

Should not contain string

  "<flag name='Daemon running'>NO</flag>"

Note that :

  • Quotes (") have been replaced by opings (')
  • The whole line is wrapped in quotes