2015-10-27 11:22:23 +03:30
|
|
|
[](https://travis-ci.org/farrokhi/ifstatd)
|
|
|
|
|
2015-09-15 18:38:21 +04:30
|
|
|
# ifstatd_ plugin
|
2015-09-13 16:55:40 +04:30
|
|
|
|
2015-09-15 18:38:21 +04:30
|
|
|
Interface statistics plugin for munin with [supersampling](http://guide.munin-monitoring.org/en/latest/plugin/supersampling.html) capability
|
|
|
|
|
2015-10-21 11:31:58 +03:30
|
|
|
NOTE: This plugin builds on FreeBSD and Darwin, but not tested on other paltforms.
|
2015-10-21 11:40:40 +03:30
|
|
|
|
2015-10-21 11:31:58 +03:30
|
|
|
NOTE: This program depends on [libpidutil](https://github.com/farrokhi/libpidutil)
|
2015-09-15 18:25:06 +04:30
|
|
|
|
|
|
|
## Installation
|
|
|
|
1. Clone this repo and build using `make`
|
2015-09-15 18:31:49 +04:30
|
|
|
2. Copy `ifstatd_` binary to munin plugins directory:
|
|
|
|
|
|
|
|
```
|
|
|
|
cp ifstatd_ /usr/local/share/munin/plugins/
|
|
|
|
```
|
|
|
|
3. Make necessary links to active plugins directory :
|
|
|
|
|
|
|
|
```
|
|
|
|
ln -s /usr/local/share/munin/ifstatd _/usr/local/etc/munin/plugins/ifstatd_em0
|
|
|
|
```
|
|
|
|
4. Make sure plugin is run as `root` by adding these lines to munin
|
|
|
|
`plugins.conf`:
|
|
|
|
|
|
|
|
```
|
|
|
|
[ifstatd_*]
|
|
|
|
user root
|
|
|
|
```
|
|
|
|
5. Start `ifstatd_` as daemon:
|
|
|
|
|
|
|
|
```
|
|
|
|
munin-run ifstatd_em0 acquire
|
|
|
|
```
|
|
|
|
6. Restart `munin-node` service:
|
|
|
|
|
|
|
|
```
|
|
|
|
service munin-node restart
|
|
|
|
```
|
|
|
|
|