zenoss / ZenPacks.zenoss.OpenvSwitch

GNU General Public License v2.0
1 stars 0 forks source link

Output Parsing Fails on XenServer Hosts #71

Open sempervictus opened 9 years ago

sempervictus commented 9 years ago

This plugin is very useful for monitoring XenServer pools controlled by CloudStack using GRE via OVS - the setup has a tendency to degrade and suffer link failures which XenServer and CloudStack do not notice. This plugin actually detects unplugged VIFs and alerts on them. However, the collector appears to choke on stats collection and produces:

Traceback (most recent call last): File "/opt/zenoss/Products/ZenRRD/zencommand.py", line 819, in _processDatasourceResults parser.processResults(datasource, results) File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.OpenvSwitch-1.1.0.egg/ZenPacks/zenoss/OpenvSwitch/parsers/BridgePortStatus.py", line 57, in processResults events = get_ovsdb_records(logs[1], cmd.component, cmd.cycleTime, timedelta) File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.OpenvSwitch-1.1.0.egg/ZenPacks/zenoss/OpenvSwitch/utils.py", line 313, in get_ovsdb_records recordepoch = int(time.mktime(time.strptime(timestr, recordpattern2))) File "/opt/zenoss/lib/python2.7/_strptime.py", line 454, in _strptime_time return _strptime(data_string, format)[0] File "/opt/zenoss/lib/python2.7/_strptime.py", line 328, in _strptime data_string[found.end():]) ValueError: unconverted data remains: "ovs-xapi-sync: Updating records from XAPI 

To add to this, Zenoss also logs an 'ovsdb-server is not running; ovs-vswitchd is not running' event despite the services being live.