o id# @s2ddlmZmZmZddlZGdddeeZdS))Plugin RedHatPlugin PluginOptNc@sZeZdZdZdZdZdZdZedde dd ed de d ed ed de d d gZ ddZ dS)Skydivez.Skydive network topology and protocol analyzerskydive)network)z/usr/bin/skydive/etc/skydive/skydive.ymlz' (password visible in process listings)usernamezskydive username)defaultval_typedescpasswordzskydive passwordanalyzerzskydive analyzer addresscCs|d|d|dptddptdd}|dp+tddp+td d}|d p6td d }t|||gsD|jd |tjd<|tjd<|tjd <d}||dS)Nrz/var/log/skydive.logr SKYDIVE_USERNAMEr OS_USERNAMErSKYDIVE_PASSWORD OS_PASSWORDrSKYDIVE_ANALYZERzlocalhost:8082ziSome or all of the skydive params are not set properly. Skydive status command may not work as expected.zskydive client status) add_copy_spec get_optionosgetenvallsoslogwarningenvironadd_cmd_output)selfr rr status_cmdr s