-
Type:
Incident report
-
Resolution: Fixed
-
Priority:
Minor
-
None
-
Affects Version/s: 1.6
-
Component/s: None
-
None
-
Environment:Oracle Enterprise Linux 5.1, Dell PE1850, zabbix-1.6.4, php-5.2.9, MySQL Enterprise Edition 5.1.34
The zabbix_sender program needs command line options for this script to work.
I would also update the ZABBIX_SERVER and ZABBIX_PORT to be more sane.
The original script:
ZABBIX_SERVER="zabbix";
ZABBIX_PORT="10001";
$ZABBIX_SENDER $ZABBIX_SERVER $ZABBIX_PORT $HOST $KEY "$str"
The modified script:
ZABBIX_SERVER="localhost";
ZABBIX_PORT="10051";
$ZABBIX_SENDER -z $ZABBIX_SERVER -p $ZABBIX_PORT -s $HOST -k $KEY -o "$str"