Zabbix template for monitoring Beanstalkd tubes.
netcat
-
Copy
beanstalkd-processor.sh
to the scripts directory.cp beanstalkd-processor.sh /etc/zabbix/scripts chmod 750 /etc/zabbix/scripts/beanstalkd-processor.sh chown zabbix:zabbix /etc/zabbix/scripts/beanstalkd-processor.sh
If you use non-standard host/port of Beanstalkd, please specify
BEANSTALK_HOST
andBEANSTALK_PORT
variables. -
Include
beanstalkd.conf
to the Zabbix agent configuration file.cp beanstalkd.conf /etc/zabbix/zabbix-agentd.d
Ensure, that your
zabbix-agent.conf
containsInclude
directive. Otherwise you have to paste the content to the end of file. -
Add cron job from
zabbix
user viacrontab
command:sudo -u zabbix crontab -e
It should looks similar like that:
*/10 * * * * /etc/zabbix/scripts/beanstalkd-processor.sh fetch &>/dev/null
Done. Now you can import zbx_beanstalkd.xml
file to the Zabbix.
Import zbx_beanstalkd.xml
to the Zabbix. After awhile you'll see metrics which has been automatically discovered via installed script.
MIT