dpiquet/pve-monitor — pull request #4 by dvoryanchikov (2013-08-08 15:12:50+00:00)
Title: Added monitoring by pools

New features:
1. Added --pools option to moniitor everything defined in cluster's pool according to choosen option from openvz/qemu/storage.

So there is no need to update all VM's definitions in pve-monitor.conf everytime when new VM is added. Just ask your cluster administrator to add VMs for monitoring to pool and define it once in your conf.

You can also define storages, qemu and openvz in script config separately with different gauges, it will be preffered if object exists in defined pools.

2. Monitoring options can be used together, for example pve-monitor.pl --openvz --qemu

3. Shorten output, for example, to fit text in SMS notification
Removed OPENVZ/STORAGE/QEMU from each line of status text, left only in status summary.

4. Line break can be quickly changed from \n to
for better representation in nagios logs.
Nagios will not record nothing more than one line of script output. When escape_html_tags is on in cgi.cfg you can put it in plugin output. In notification template commands it can be simply removed.

5. Disable Nagios EPN. Usable when script should be called from another perl version. to force enable change to "+epn".
We use perl 5.18 on monitoring host with system perl 5.8, so needed to install separate perl to make Net::Proxmox::VE working properly.