masaku / 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 optional arguments easier to handle #69

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In ss_get_mysql_stats.php there is special-case code for --user and
friends, because by default Cacti does this:

10/10/2009 03:40:05 PM - CMDPHP: Poller[0] Host[1] DS[33] WARNING: Result
from CMD not valid.  Partial Result: Missing argument to 
10/10/2009 03:40:05 PM - CMDPHP: Poller[0] Host[1] DS[33] CMD: /usr/bin/php
-q /usr/share/cacti/site/scripts/ss_get_mysql_stats.php --host 127.0.0.1
--items di,ds,dt,du --user  --pass  --port , output: U

Make the special-case code go away so it just ignores any --foo without an
argument given.

Original issue reported on code.google.com by baron.schwartz on 10 Oct 2009 at 3:47

GoogleCodeExporter commented 9 years ago
See r216 and r217, for example.

Original comment by baron.schwartz on 10 Oct 2009 at 3:51

GoogleCodeExporter commented 9 years ago
Removing unused labels.

Original comment by baron.schwartz on 16 Apr 2010 at 2:14

GoogleCodeExporter commented 9 years ago

Original comment by baron.schwartz on 21 Apr 2010 at 2:07