Hello dear all,
I have a Radius-Cluster with 3 Server, which I wish to monitor with Zabbix.
I already wrote an external script which send a Radius-Request to the cluster and the script is working really good with Zabbix.
The problem ist, that I can't send Radius-Requests to every single Radius-Server but only to the cluster and then the Request goes to one of the three servers (load distribution).
If one Radius-Server fails, the script gets an error, but bevor it can eskalate and trow a message, it is overwritten through the responce of the other two Radius-Servers. In this way I don't really get the event eskalated and I don't receive a messages, that something is wrong. The error is shown only in the "Events" section.
I am sure, there are parameters in Zabbix, which could adjust this behavior. How can I configure it in a way, that the event eskalate bevor the next responce comes from the other servers?
Thank you for any help!
Best Regards,
Ira
My configuration:
Zabbix 1.8
Item
--------------
Host Template_Radius
Description Radius Authentication
Type External Check
Key check_radius3.sh
Type of information Numeric
Data type Decimal
Units
Use custom multiplier
Update interval (in sec) 60
Flexible intervals (sec) No flexible intervals
New flexible interval
Delay 50
Period 1-7,00:00-23:59
Keep history (in days) 30
Keep trends (in days) 365
Status Active
Store value As is
Show value As is
Script check_radius3.sh
---------------------------
#This script is used to check running radius processes
#
# USAGE: check_radius.sh
# 12.10.2010
#
LOG=/tmp/check_radius3.log
#echo "args:" $* >> $LOG
PROCESS=`radtest "[email protected]" "pass" Cluster-IP-Address 0 'pass' | grep "rad_recv: Access-Accept" | wc -l`
if [ $PROCESS -eq 1 ]
then
echo 1
exit 1
else
echo 0
exit 0
fi
Trigger
--------
Name Radius Authentication on failed
Expression (Toggle input method) {Template_Radius:check_radius3.sh.last(0)}=0
I have a Radius-Cluster with 3 Server, which I wish to monitor with Zabbix.
I already wrote an external script which send a Radius-Request to the cluster and the script is working really good with Zabbix.
The problem ist, that I can't send Radius-Requests to every single Radius-Server but only to the cluster and then the Request goes to one of the three servers (load distribution).
If one Radius-Server fails, the script gets an error, but bevor it can eskalate and trow a message, it is overwritten through the responce of the other two Radius-Servers. In this way I don't really get the event eskalated and I don't receive a messages, that something is wrong. The error is shown only in the "Events" section.
I am sure, there are parameters in Zabbix, which could adjust this behavior. How can I configure it in a way, that the event eskalate bevor the next responce comes from the other servers?
Thank you for any help!
Best Regards,
Ira
My configuration:
Zabbix 1.8
Item
--------------
Host Template_Radius
Description Radius Authentication
Type External Check
Key check_radius3.sh
Type of information Numeric
Data type Decimal
Units
Use custom multiplier
Update interval (in sec) 60
Flexible intervals (sec) No flexible intervals
New flexible interval
Delay 50
Period 1-7,00:00-23:59
Keep history (in days) 30
Keep trends (in days) 365
Status Active
Store value As is
Show value As is
Script check_radius3.sh
---------------------------
#This script is used to check running radius processes
#
# USAGE: check_radius.sh
# 12.10.2010
#
LOG=/tmp/check_radius3.log
#echo "args:" $* >> $LOG
PROCESS=`radtest "[email protected]" "pass" Cluster-IP-Address 0 'pass' | grep "rad_recv: Access-Accept" | wc -l`
if [ $PROCESS -eq 1 ]
then
echo 1
exit 1
else
echo 0
exit 0
fi
Trigger
--------
Name Radius Authentication on failed
Expression (Toggle input method) {Template_Radius:check_radius3.sh.last(0)}=0

Comment