skyNomad
"Blog of Ralfe Poisson"
Business picture

Code

FreeRadius ODBC Connection Monitoring Script


2008-09-09 11:21:19

Here is a script some sysadmins might find useful. This script monitors a log file for ODBC connection errors. Once an error is found, the script will continue to pin the database server until a response is achieved. At that point a command will be executed to restart the FreeRadius service.



It is configured by editing the variables in the top section of the script.



Here's the script:






View in new window

Plain Text