The configured environment variables can overridden using Arguments with TESTME as the first argument followed by the variables you want to override in the same format as above, eg.PASSWD = Account Password (Default: NoPassword).USER = User account (Default: radius_monitor).SECRET = Radius server secret (Default: NoSecret).MOD_PATH = Directory containing the Python modules (Default: /config/eav).Valid Environment Variables are as follows: Set up a monitor with at the very least a valid SECRET, if you're looking to simply test whether the Radius server is alive and responding then the user account does not need to be valid. If you're running python 2.6, which you probably will, then the radius module will need to be modified as per Code Mods section in the code below.Get and copy python modules Six (six py) and Py-Radius (radius py) then copy them to a directory with suitable permissions such as the /config/eav directory.Import as an External Monitor Program File and name it however you want.The script strips of routing domain tags and the IPv6 padding of the Node IPs. If the connection times out the script does not output any response and as such will result in the member being marked as down. This python script is an external monitor for radius that checks for any radius response in order to mark a pool member as up. This only occurs via a configured monitor using either variable or arguments, running the script via command line with the same arguments works. Note: This script works and is usable however currently the only issue is that for some unknown reason it fails authentication on valid credentials, but since it still gets a valid response from the Radius server it will still mark the pool member as up.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |