Hi all,
I'm trying to monitor mysql replication on four of my servers but I keep winding up with "No Data"
This is my setup:
UserParameter=mysql.slave_running,mysql -u username -ppassword -e "show slave status" -E | grep Slave_SQL_Running | cut -d: -f2 | sed "s/ \s//g" | sed "s/Yes/1/" | sed "s/No/0/"
When I run zabbix_agentd -t mysql.slave_running I get a [t|1]:
However in my item configuration, I input:
{Template_App_MySQL:mysql.slave_running.last(0)}=1
Should I use this instead:
{Template_App_MySQL:mysql[slave_running].last(0)}=1
This is my Item::Configuration:
Type: Zabbix agent(active)
Key: mysql.slave_running
Type of information: Numeric (integer 64 bit)
Units: N/A
Use Multiplier: Do Not User
Update Interval: 60
no flexible intervals.
Any help is greatly appreciated. I know I'm doing something obviously stupid here and am just overlooking it.
Thanks,
Chris
I'm trying to monitor mysql replication on four of my servers but I keep winding up with "No Data"
This is my setup:
UserParameter=mysql.slave_running,mysql -u username -ppassword -e "show slave status" -E | grep Slave_SQL_Running | cut -d: -f2 | sed "s/ \s//g" | sed "s/Yes/1/" | sed "s/No/0/"
When I run zabbix_agentd -t mysql.slave_running I get a [t|1]:
However in my item configuration, I input:
{Template_App_MySQL:mysql.slave_running.last(0)}=1
Should I use this instead:
{Template_App_MySQL:mysql[slave_running].last(0)}=1
This is my Item::Configuration:
Type: Zabbix agent(active)
Key: mysql.slave_running
Type of information: Numeric (integer 64 bit)
Units: N/A
Use Multiplier: Do Not User
Update Interval: 60
no flexible intervals.
Any help is greatly appreciated. I know I'm doing something obviously stupid here and am just overlooking it.
Thanks,
Chris
Comment