User Tools

Site Tools


doc:tools_kadavercontrol

KadaverControl

This script is made to monitor the correcet function of the Kadaver server in an automated ennvironment

Usage: svd_KadaverControl.py [options]

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  --url=URL             hostname (ws://localhost:9000)
  --cert=CERT           cert file for SSL verification
  --loop                run in a loop instead only once
  --singleshot          runs until error condition is reached
  --debug               debug output
  --maxerror=ERRORCOUNT
                        Nr of continious errors before set error flag

The command line parameters are:

  • –url : The URL to monitor
  • –cert : In case of a secure socket, the certificate file to validate the server against. If not given, any secure server is allowed ( Unfortunately not working yet )
  • –loop : if set, program does not finish after one run, but runs endless even in case of errors. Helpful to write logs over time
  • –singleshot : Runs endless until a error condition is reached. Helpful to identify an nonfunctional Kadaver server over time. When the script is not running any more, that indicates a broken server too
  • –debug : shows each step. If not set, output is only made at any state change, but not for each repeating state
  • –maxerror : (default 3) This value defines, how many continious errors must occur to reach the final error state. This is needed to ignore single error glitches, where the server fails once, but is still working at the next trail

If neither –loop or –singleshot are given, the script is making ony one trial to either get a working connection or the reach the error state

When leaving, the scripts returns either 0 (Server is working well) or 1 (Server is not working) as exit code. This code can be evaluated to automatically restart the server, if needed.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
doc/tools_kadavercontrol.txt · Last modified: 2015/05/31 08:50 by admin