Skip to content

Commit

Permalink
added keepalive ds
Browse files Browse the repository at this point in the history
  • Loading branch information
mjr2595 committed Mar 25, 2024
1 parent 0e1143b commit 13008b7
Showing 1 changed file with 126 additions and 0 deletions.
126 changes: 126 additions & 0 deletions LogicModules/Importable/DataSources/keepalive.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="UTF-8" ?>
<feed version="1.0" hasPendingRequests="false" >
<company></company>
<status>200</status>
<errmsg>OK</errmsg>
<interval>0</interval>
<isCollectorPublisherEnabled>false</isCollectorPublisherEnabled>
<entry type="predatasource">
<version>1650319305</version>
<name>keepalive</name>
<displayedas>keepalive</displayedas>
<description>***

NOT supported by LogicMonitor support

***</description>
<collector>script</collector>
<hasMultiInstances>false</hasMultiInstances>
<useWildValueAsUniqueIdentifier>false</useWildValueAsUniqueIdentifier>
<schedule>60</schedule>
<appliesTo>system.displayname == &#34;dummydevice&#34;</appliesTo>
<wildcardauto>false</wildcardauto>
<wildcardpersist>false</wildcardpersist>
<wildcardlinuxscript></wildcardlinuxscript>
<wildcardlinuxcmdline></wildcardlinuxcmdline>
<wildcardwinscript></wildcardwinscript>
<wildcardwincmdline></wildcardwincmdline>
<wildcardgroovyscript></wildcardgroovyscript>
<wildcardschedule>1440</wildcardschedule>
<wildcarddisable>false</wildcarddisable>
<wildcarddeleteinactive>false</wildcarddeleteinactive>
<agdmethod>none</agdmethod>
<agdparams></agdparams>
<group>LMTest</group>
<tags></tags>
<technology>Workaround DataSource used to tell Collector that the monitored host is &#34;alive&#34;, when no other hostactive DataSources are applied. Will update system.hoststatus property to &#34;normal&#34; and remove skull icon.</technology>
<adlist><![CDATA[{"agdmethod":"none","agdparams":"","id":0,"filters":[],"params":{}}]]></adlist>
<schemaVersion>2</schemaVersion>
<dataSourceType>1</dataSourceType>
<attributes>
<attribute>
<name>scripttype</name>
<value>embed</value>
<comment></comment>
</attribute>
<attribute>
<name>scriptgroovy</name>
<value>/*******************************************************************************
* © 2007-2021 - LogicMonitor, Inc. All rights reserved.
******************************************************************************/

import com.santaba.agent.live.LiveHostSet
def props = hostProps.toProperties()
// Update the liveHost set so tell the collector we are happy.
hostId = hostProps.get(&#34;system.deviceId&#34;).toInteger()
liveHostSet = LiveHostSet.getInstance()
liveHostSet.flag(hostId)

return 0</value>
<comment></comment>
</attribute>
<attribute>
<name>windowsscript</name>
<value></value>
<comment></comment>
</attribute>
<attribute>
<name>linuxscript</name>
<value></value>
<comment></comment>
</attribute>
<attribute>
<name>windowscmdline</name>
<value></value>
<comment></comment>
</attribute>
<attribute>
<name>linuxcmdline</name>
<value></value>
<comment></comment>
</attribute>
<attribute>
<name>properties</name>
<value></value>
<comment></comment>
</attribute>
</attributes>
<datapoints>
<datapoint>
<name>exitcode</name>
<originId></originId>
<dataType>4</dataType>
<type>2</type>
<postprocessormethod>none</postprocessormethod>
<postprocessorparam></postprocessorparam>
<usevalue>exitCode</usevalue>
<alertexpr></alertexpr>
<alertmissing>1</alertmissing>
<alertsubject></alertsubject>
<alertbody></alertbody>
<enableanomalyalertsuppression></enableanomalyalertsuppression>
<adadvsettingenabled>false</adadvsettingenabled>
<warnadadvsetting></warnadadvsetting>
<erroradadvsetting></erroradadvsetting>
<criticaladadvsetting></criticaladadvsetting>
<description></description>
<maxvalue></maxvalue>
<minvalue></minvalue>
<maxdigits>4</maxdigits>
<userparam1></userparam1>
<userparam2></userparam2>
<userparam3></userparam3>
<iscomposite>false</iscomposite>
<rpn></rpn>
<alertTransitionIval>0</alertTransitionIval>
<alertClearTransitionIval>0</alertClearTransitionIval>
</datapoint>
</datapoints>
<graphs>
</graphs>
<overviewgraphs>
</overviewgraphs>
<scripts>
</scripts>
</entry>
</feed>

0 comments on commit 13008b7

Please sign in to comment.