willsion / appaloosa-zabbix-templates

Automatically exported from code.google.com/p/appaloosa-zabbix-templates
0 stars 0 forks source link

MySQL Pearl Script Error #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I run this line
hg clone https://appaloosa-zabbix-templates.googlecode.com/hg/ 
appaloosa-zabbix-templates
2. Generate the MySQL template
3. Import the template on Zabbix Server 1.8.2

What is the expected output? What do you see instead?
It should import the template without problems. But zabbix report an error 
importing/parsing.
This problem is because there are missing () at this line on mysql.pl

Wrong line:
expression  => 
'{Template_MySQL:mysql.slave_running.last(0)}=-1|{Template_MySQL:mysql.slave_sto
pped.last(0)}=-1',

Correct line:
expression  => 
'{Template_MySQL:mysql.slave_running.last(0)}=(-1)|{Template_MySQL:mysql.slave_s
topped.last(0)}=(-1)',     

   >> It's problem only happen using mercurial

What version of the product are you using? On what operating system?
I'm using mercurial to clone your project and ubuntu 9.04.

Please provide any additional information below.
You should change this line in your project.

Original issue reported on code.google.com by luislope...@gmail.com on 9 Aug 2011 at 11:23