aouyar/PyMunin — Issue #7: Aachestats raises exception when there is a ^@ in the scoreboard.
Author: phizev
Created: 2011-12-16 13:55:32+00:00
State: open

First of all, thanks for the project.

I can't seem to find any information on why there is a ^@ in the server status scoreboard, so I'm not sure where to investigate further for it. Though it did result in Munin not logging anything for Apache until I restarted Apache. I'm not sure if this is an Apache problem which Pymunin should not have to worry about.

I do think it's the ^@ causing the problem as comparing the server status before and after restarting apache this is the only difference I could find really. After restarting Apache, PyMunin apachestats began to work again.

Sample of Scoreboard:
`.....^@.....`

Apachestats pidebug message:
```user@example:~$ munin-run --pidebug apachestats
Traceback (most recent call last):
File "/etc/munin/plugins/apachestats", line 126, in
sys.exit(muninMain(MuninApachePlugin))
File "/usr/share/munin/plugins/pymunin/__init__.py", line 697, in muninMain
ret = plugin.run()
File "/usr/share/munin/plugins/pymunin/__init__.py", line 494, in run
ret = self.fetch()
File "/usr/share/munin/plugins/pymunin/__init__.py", line 472, in fetch
self.retrieveVals()
File "/etc/munin/plugins/apachestats", line 122, in retrieveVals
self.setGraphVal('apache_workers', 'max', stats['MaxWorkers'])
KeyError: 'MaxWorkers'
```