dagwieers/dstat — pull request #36 by jburnham (2012-12-14 18:21:07+00:00)
Title: Fix to mysql5-innodb plugin

Prevents the mysql5_innodb plugin from giving mysql the
wrong arguments and thus hanging dstat or not giving output.

Running dstat with the plugin hangs.

```bash
./dstat --mysql5-innodb
./dstat:1771: DeprecationWarning: os.popen3 is deprecated. Use the subprocess module.
pipes[cmd] = os.popen3(cmd, 't', 0)
^C
```

From pdb I found this:

```
python -m pdb dstat --mysql5-innodb
> /root/dstat/dstat(18)()
-> from __future__ import generators
(Pdb) b plugins/dstat_mysql5_innodb.py:94
Breakpoint 1 at /root/dstat/plugins/dstat_mysql5_innodb.py:94
(Pdb) c
dstat:1771: DeprecationWarning: os.popen3 is deprecated. Use the subprocess module.
pipes[cmd] = os.popen3(cmd, 't', 0)
> /root/dstat/plugins/dstat_mysql5_innodb.py(94)extract()
-> self.stdin.write('show global status;\n')
(Pdb) p mysql_options
None
(Pdb) p self.stderr.read()
"ERROR 1049 (42000): Unknown database 'None'\n"
```