2015-08-28 13:31:44 +02:00
|
|
|
# Proxmox graphing
|
|
|
|
|
2019-09-09 05:48:35 -05:00
|
|
|
It is possible to create graphs of the Proxmox **VMs** that run on
|
|
|
|
your monitored machines. Currently, only traffic graphs are
|
|
|
|
created. One for each interface on each VM. Possibly, IO graphs will
|
|
|
|
be added later on.
|
|
|
|
|
|
|
|
The ultimate goal is to be able to create traffic bills for VMs, no
|
|
|
|
matter on which physical machine that VM runs.
|
2015-08-28 13:31:44 +02:00
|
|
|
|
2021-07-10 03:34:01 +08:00
|
|
|
## Enabling Proxmox graphs
|
2015-08-28 13:31:44 +02:00
|
|
|
|
|
|
|
To enable Proxmox graphs, do the following:
|
|
|
|
|
|
|
|
In config.php, enable Proxmox:
|
2019-09-09 05:48:35 -05:00
|
|
|
|
2015-08-28 13:31:44 +02:00
|
|
|
```php
|
2015-11-21 17:36:01 +01:00
|
|
|
$config['enable_proxmox'] = 1;
|
2015-08-28 13:31:44 +02:00
|
|
|
```
|
|
|
|
|
2019-09-09 05:48:35 -05:00
|
|
|
Then, install git and
|
2020-11-27 23:34:58 +01:00
|
|
|
[librenms-agent](Applications.md) on
|
2019-09-09 05:48:35 -05:00
|
|
|
the machines running Proxmox and enable the Proxmox-script using:
|
2015-11-21 17:36:01 +01:00
|
|
|
|
2015-08-28 13:31:44 +02:00
|
|
|
```bash
|
2017-07-17 15:20:22 -05:00
|
|
|
cp /opt/librenms-agent/agent-local/proxmox /usr/lib/check_mk_agent/local/proxmox
|
2015-11-21 17:36:01 +01:00
|
|
|
chmod +x /usr/lib/check_mk_agent/local/proxmox
|
2015-08-28 13:31:44 +02:00
|
|
|
```
|
|
|
|
|
2018-01-26 21:51:45 +01:00
|
|
|
Then, enable and start the check_mk service using systemd
|
2019-09-09 05:48:35 -05:00
|
|
|
|
2015-11-21 17:36:01 +01:00
|
|
|
```bash
|
2018-01-26 21:51:45 +01:00
|
|
|
cp /opt/librenms-agent/check_mk@.service /opt/librenms-agent/check_mk.socket /etc/systemd/system
|
|
|
|
systemctl daemon-reload
|
|
|
|
systemctl enable check_mk.socket && systemctl start check_mk.socket
|
2015-11-21 17:36:01 +01:00
|
|
|
```
|
2015-08-28 13:31:44 +02:00
|
|
|
|
2019-09-09 05:48:35 -05:00
|
|
|
Then in LibreNMS active the librenms-agent and proxmox application
|
|
|
|
flag for the device you are monitoring. You should now see an
|
|
|
|
application in LibreNMS, as well as a new menu-item in the topmenu,
|
|
|
|
allowing you to choose which cluster you want to look at.
|
|
|
|
|
2021-07-10 03:34:01 +08:00
|
|
|
## Note, if you want to use use xinetd instead of systemd
|
2018-01-26 21:51:45 +01:00
|
|
|
|
2019-09-09 05:48:35 -05:00
|
|
|
Its possible to use the librenms-agent started by xinetd instead of
|
|
|
|
systemd. One use case is if you are forced to use a old Proxmox
|
|
|
|
installation. After installing the librenms-agent (see above) please
|
|
|
|
copy enable the xinetd config, then restart the xinetd service:
|
2018-01-26 21:51:45 +01:00
|
|
|
|
|
|
|
```bash
|
|
|
|
cp check_mk_xinetd /etc/xinetd.d/check_mk
|
|
|
|
/etc/init.d/xinetd restart
|
|
|
|
```
|