orangle / mysql-cacti-templates

Automatically exported from code.google.com/p/mysql-cacti-templates
GNU General Public License v2.0
0 stars 0 forks source link

make_template --mpds port,password,username generate a bad input_string #192

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. generate a new template the following command :

perl tools/make-template.pl --script scripts/ss_get_mysql_stats.php 
definitions/mysql_definitions.pl --mpds port,username,password > 
mysql-cacti-fields-required.xml

2. search for the input string in the template output

grep input_string mysql-cacti-fields-required.xml|head -1
        <input_string>&lt;path_php_binary&gt; -q &lt;path_cacti&gt;/scripts/ss_get_mysql_stats.php --host &lt;hostname&gt; --items a0,a1,a2,a3 --user &lt;username&gt; --pass &lt;password&gt; --port &lt;port&gt; --password &lt;password&gt; --username &lt;username&gt;</input_string>

As you can see, you add --password and --username to the input_string, but they 
refer to --pass and --user that already exist !

I was thinking that maybe the fieldname were "pass,user" and not 
"password,username", but if I try it in mdps option you add 2 new fields pass 
and user as they don't exist

Original issue reported on code.google.com by cscet...@gmail.com on 8 Aug 2011 at 2:43

GoogleCodeExporter commented 9 years ago
FYI, I use the following sed command on the xml output to be able to use your 
template :

sed -i -e 's/--port .*lt;port.*gt; --password .*lt;password.*gt; --username 
.*lt;username.*gt;/--port \<port\>/g' mysql-cacti-fields-required.xml

Original comment by cscet...@gmail.com on 8 Aug 2011 at 5:05

GoogleCodeExporter commented 9 years ago
Marking for migration / fixing in a new project.

Original comment by baron.schwartz on 4 Jan 2012 at 6:21