dnaeon / py-vpoller

Distributed vSphere API Proxy
Other
84 stars 31 forks source link

Adding support for disk consolidation needed. #103

Closed takenek closed 9 years ago

takenek commented 9 years ago

Hello This is possible to add trigger to vpoller for disk consolidation? Now when i got information in vCenter about disk need consolidation in zabbix there is no info....

Thanks

dnaeon commented 9 years ago

Hi,

This would be useful to have indeed. I will check that soon and get back to you.

Thanks, Marin

dnaeon commented 9 years ago

Hi,

I was looking for some VM in our environment that needs consolidation, but so far no luck.

I need to have a VM that reports it needs snapshot consolidation in order to check the alarm, so once I have one I will be able to check it and implement it.

Regards, Marin

dnaeon commented 9 years ago

vPoller now supports getting alarms from the vSphere environment. I will update soon the Zabbix templates to include alarms as well.

That should show up in the Zabbix Dashboard as snapshot consolidation should trigger an alarm in vSphere.

dnaeon commented 9 years ago

@takenek: Can you please run this command from the command-line and let me know whether you see the vSphere alarms for snapshot consolidation?

$ vpoller-client --method vm.alarm.get --vsphere-host <vcenter-fqdn> --name <vm-name>

I don't have any VMs that need snapshot consolidation and can't test it myself, so want to be sure that this alarm is caught by vPoller before I update the Zabbix templates.

Thanks, Marin

takenek commented 9 years ago
taken@WIZJA2:~$ vpoller-client --method vm.alarm.get --vsphere-host vc02.xxx.net --name NMS.xxx.net
{"msg": "Successfully retrieved alarms", "result": [{"info": "Virtual machine Consolidation Needed status", "acknowledgedByUser": null, "acknowledged": false, "entity": "NMS.xxx.net", "key": "alarm-61.vm-122", "time": "2014-12-05 02:12:01.250577+00:00", "overallStatus": "yellow"}], "success": 0}
dnaeon commented 9 years ago

Thanks for providing that info!

I will update soon the Zabbix templates to report vSphere alarms as well.

Thanks, Marin

takenek commented 9 years ago

This is from other cluster:

taken@WIZJA2:~$ vpoller-client --method vm.alarm.get --vsphere-host vc02.xxx.net --name FF01.xxx.net
{"msg": "Successfully retrieved alarms", "result": [{"info": "Virtual machine Consolidation Needed status", "acknowledgedByUser": null, "acknowledged": false, "entity": "FF01.xxx.net", "key": "alarm-61.vm-362", "time": "2014-12-04 17:02:35.656962+00:00", "overallStatus": "yellow"}], "success": 0}
dnaeon commented 9 years ago

Zabbix support for vSphere alarms is present in the latest vPoller release.

Make sure to get the latest vPoller templates for Zabbix as well.

The example items in the Template VMware vSphere Datacenter - vPoller Native template contains discovery items, which would discover all triggered alarms in a Datacenter.

sirmaxru commented 8 years ago

Hello. What is about alarms from vCenter. I cant get how to recieve alarms from it. for example "vCenter Server Health Alarm"?