aouyar/PyMunin — Issue #11: Bug with port param of nginxstats plugin
Author: dchaplinsky
Created: 2012-02-23 01:31:08+00:00
State: open

Hi.

Installed subj and found this in munin-node logs:

```
2012/02/23-02:15:06 [11503] Error output from nginxstats:
2012/02/23-02:15:06 [11503] EXCEPTION: %d format: a number is required, not str
```

Turned out that I was trying to specify custom port for this plugin and all env variable are strings, and plugin expects int for port value.

So I've wrapped call to evnGet here:
https://github.com/aouyar/PyMunin/blob/master/pymunin/plugins/nginxstats.py#L82
into int()