Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xml xmlns="https://developers.google.com/blockly/xml">
- <variables>
- <variable type="cron" id="check">check</variable>
- </variables>
- <block type="schedule_clear" id="g_QojBu70p]?hJMSxU)," x="13" y="13">
- <field name="NAME">check</field>
- <next>
- <block type="schedule_create" id="KH:tR|R33%7dalN^=sJz">
- <field name="NAME">check</field>
- <value name="SCHEDULE">
- <shadow type="field_cron" id="*QE;5u$Bn2Q$Bm1MR/Hv">
- <field name="CRON">*/2 * * * *</field>
- </shadow>
- </value>
- <statement name="STATEMENT">
- <block type="comment" id="tMSS[7Ll1I;Yv=IETUu+">
- <field name="COMMENT">Proxmox Werte nicht aktuell</field>
- <next>
- <block type="controls_if" id="o.h`1Tb3#e8@5{])0!(,">
- <value name="IF0">
- <block type="logic_multi_and" id="hec%A({Hi?bvN^U**,kW">
- <mutation xmlns="http://www.w3.org/1999/xhtml" items="6"></mutation>
- <value name="AND0">
- <block type="logic_compare" id="MJma@ReHm5Z:ok6_mBWs">
- <field name="OP">GT</field>
- <value name="A">
- <block type="math_arithmetic" id="q){)pu?CR6*pJ0S4P;{W">
- <field name="OP">MINUS</field>
- <value name="A">
- <shadow type="math_number" id="dUGF$PF9M_u/orz01ruP">
- <field name="NUM">1</field>
- </shadow>
- <block type="time_get" id=":VIi[k5kdk}l[wV6Nzq3">
- <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
- <field name="OPTION">object</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="Hn)]B?ryu#A(`%UkP_rc">
- <field name="NUM">1</field>
- </shadow>
- <block type="get_value" id="d4uc1!n[AwW{e{6$TB:E">
- <field name="ATTR">ts</field>
- <field name="OID">proxmox.0.node_proxmox.cpu</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="math_arithmetic" id="(Op_FgKdn4;U$S%{nu~-">
- <field name="OP">MULTIPLY</field>
- <comment pinned="false" h="80" w="160">x Minuten</comment>
- <value name="A">
- <shadow type="math_number" id="z|O:dxu2=F6q|,EV|rS{">
- <field name="NUM">2</field>
- </shadow>
- </value>
- <value name="B">
- <shadow type="math_number" id="sZbknQ4#Hl9JXWx(z+/l">
- <field name="NUM">60000</field>
- </shadow>
- </value>
- </block>
- </value>
- </block>
- </value>
- <value name="AND1">
- <block type="logic_compare" id="lp`p+r{n+`S6BN/OfSPk">
- <field name="OP">GT</field>
- <value name="A">
- <block type="math_arithmetic" id="E?SHNe}40gf92`jvxW5*">
- <field name="OP">MINUS</field>
- <value name="A">
- <shadow type="math_number" id="dUGF$PF9M_u/orz01ruP">
- <field name="NUM">1</field>
- </shadow>
- <block type="time_get" id="JbvMwrPnm+sD+-wZ,)Vi">
- <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
- <field name="OPTION">object</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="Hn)]B?ryu#A(`%UkP_rc">
- <field name="NUM">1</field>
- </shadow>
- <block type="get_value" id="-Pg/k=!fk6G{Bl9T6y+`">
- <field name="ATTR">ts</field>
- <field name="OID">proxmox.0.node_proxmox.loadavg.0</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="math_arithmetic" id="=j^J4`Wf+@YO-ZZ{$oN7">
- <field name="OP">MULTIPLY</field>
- <comment pinned="false" h="80" w="160">x Minuten</comment>
- <value name="A">
- <shadow type="math_number" id="|T.$,)}vM0%{7(]M+7qJ">
- <field name="NUM">2</field>
- </shadow>
- </value>
- <value name="B">
- <shadow type="math_number" id="j5flZ/-b#LA2Eqg{cu4d">
- <field name="NUM">60000</field>
- </shadow>
- </value>
- </block>
- </value>
- </block>
- </value>
- <value name="AND2">
- <block type="logic_compare" id="!v}(^/F!p+Vb9IC[h*F{">
- <field name="OP">GT</field>
- <value name="A">
- <block type="math_arithmetic" id="!.oK}+`Wj%sez,r)[n(7">
- <field name="OP">MINUS</field>
- <value name="A">
- <shadow type="math_number" id="-Ft,6aMkKNGFXrrz?L]F">
- <field name="NUM">1</field>
- </shadow>
- <block type="time_get" id="m%:(bo[1z2CShp(LbD92">
- <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
- <field name="OPTION">object</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="L+Vrb`Or%J:!($4SZsAu">
- <field name="NUM">1</field>
- </shadow>
- <block type="get_value" id="i/5hK*3ftVQU|%#cQL:K">
- <field name="ATTR">ts</field>
- <field name="OID">proxmox.0.qemu_iobroker.cpu</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="math_arithmetic" id="[n#,kwfk/9@O7oRDtDjA">
- <field name="OP">MULTIPLY</field>
- <comment pinned="false" h="80" w="160">x Minuten</comment>
- <value name="A">
- <shadow type="math_number" id="?d0uXGdF%^)$2mKe+WT!">
- <field name="NUM">2</field>
- </shadow>
- </value>
- <value name="B">
- <shadow type="math_number" id="x%flj`NC(zYtYo93-w{*">
- <field name="NUM">60000</field>
- </shadow>
- </value>
- </block>
- </value>
- </block>
- </value>
- <value name="AND3">
- <block type="logic_compare" id="j;z|78`p}Z~/XVg1#C9r">
- <field name="OP">GT</field>
- <value name="A">
- <block type="get_value" id="_.`|h8OOkEufEQLzT.`S">
- <field name="ATTR">val</field>
- <field name="OID">system.host.iobroker.uptime</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="RWv1:XWCx6e4,^t?s(Qx">
- <field name="NUM">300</field>
- </block>
- </value>
- </block>
- </value>
- <value name="AND4">
- <block type="get_value" id="AU[v]fea_kys*$ABR^ur">
- <field name="ATTR">val</field>
- <field name="OID">system.adapter.proxmox.0.connected</field>
- </block>
- </value>
- <value name="AND5">
- <block type="logic_compare" id="wFT{l(sug^k,d74|lB?J">
- <field name="OP">GT</field>
- <value name="A">
- <block type="get_value" id="C~SJ6zy2b:(|T%[Bz|}e">
- <field name="ATTR">val</field>
- <field name="OID">system.adapter.proxmox.0.uptime</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="!c?ZoOoI_NFm%1wJ}%;_">
- <field name="NUM">300</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="debug" id="isSIi7rvvi%Pc@inVpTQ">
- <field name="Severity">warn</field>
- <value name="TEXT">
- <shadow type="text" id="r2XhDTSgAo{T,|Te)r+h">
- <field name="TEXT"></field>
- </shadow>
- <block type="text_join" id=")_$o8U[52Gv;(1_n~59o">
- <mutation items="7"></mutation>
- <value name="ADD0">
- <block type="text" id="xp0fnhdq-:_kq^M3]$-.">
- <field name="TEXT">*** Proxmox Werte nicht aktuell, </field>
- </block>
- </value>
- <value name="ADD1">
- <block type="text" id="xsw$}LCJ^@@=J`HoTMsE">
- <field name="TEXT">node_proxmox.cpu: </field>
- </block>
- </value>
- <value name="ADD2">
- <block type="convert_from_date" id="6*`wt;yQMYYZPkD(5Gcd">
- <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
- <field name="OPTION">hh:mm:ss</field>
- <value name="VALUE">
- <block type="get_value" id="~[U~.)=IPV7p]jj]4QuI">
- <field name="ATTR">ts</field>
- <field name="OID">proxmox.0.node_proxmox.cpu</field>
- </block>
- </value>
- </block>
- </value>
- <value name="ADD3">
- <block type="text" id="Y2Kh?){;myGzq;5V,Jd|">
- <field name="TEXT"> / node_proxmox.loadavg.0: </field>
- </block>
- </value>
- <value name="ADD4">
- <block type="convert_from_date" id=":dUBY!gDG=soUp!MeO0U">
- <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
- <field name="OPTION">hh:mm:ss</field>
- <value name="VALUE">
- <block type="get_value" id="H:MXgR]:Ci,R*gA}zt8a">
- <field name="ATTR">ts</field>
- <field name="OID">proxmox.0.node_proxmox.loadavg.0</field>
- </block>
- </value>
- </block>
- </value>
- <value name="ADD5">
- <block type="text" id="~Oxsn!7P9;l0y-pF#;2q">
- <field name="TEXT"> / qemu_iobroker.cpu: </field>
- </block>
- </value>
- <value name="ADD6">
- <block type="convert_from_date" id="D3H:A8t=YHBuS-?PbyoG">
- <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
- <field name="OPTION">hh:mm:ss</field>
- <value name="VALUE">
- <block type="get_value" id="S@}9{~HCq_V/3P+z1fQk">
- <field name="ATTR">ts</field>
- <field name="OID">proxmox.0.qemu_iobroker.cpu</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <next>
- <block type="control_instance" id="e3%o;@yb[a.!78$cWt02">
- <field name="INSTANCE">proxmox.0</field>
- <field name="ACTION">restartInstanceAsync</field>
- </block>
- </next>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </xml>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement