Back to ITRS Internal Only FAQ

Internal documentation only

This page has been marked as draft.

[INTERNAL] How to automatically restart a netprobe if it goes down

Note:

STEP 1

10628439288221 sampler

Sample XML Code:

<sampler name="probedata">
<plugin>
<Gateway-probeData></Gateway-probeData>
</plugin>
</sampler>

STEP 2

Geneos - [INTERNAL] How to automatically restart a netprobe if it goes down

Sample XML Code:

<command name="startnp">
<targets>
<target>/home/aptlorenzo/Downloads/netprobe</target>
</targets>
<userCommand>
<type>script</type>
<runLocation>gateway</runLocation>
<args>
<arg>
<static>./startnp.sh</static>
</arg>
</args>
</userCommand>
</command>

Notes:

Sample Bash Code:

Geneos - [INTERNAL] How to automatically restart a netprobe if it goes down

STEP 3

10628439954589 action

Sample XML Code:

<action name="startnp">
<command ref="startnp">
<args></args>
</command>
</action>

Notes:

STEP 4

10628447831453 rules

Sample XML Code:

<rule name="startnp">
<targets>
<target>/geneos/gateway[(@name=&quot;Demo Gateway&quot;)]/directory/probe[(@name=&quot;probe&quot;)]/managedEntity[(@name=&quot;monitoring entity&quot;)]/sampler[(@name=&quot;probedata&quot;)][(@type=&quot;&quot;)]/dataview[(@name=&quot;probedata&quot;)]/rows/row[(@name=&quot;probe5&quot;)]/cell[(@column=&quot;connectionState&quot;)]</target>
</targets>
<priority>5</priority>
<block>
<if>
<like>
<dataItem>
<property>@value</property>
</dataItem>
<string>Down</string>
</like>
<transaction>
<update>
<property>state/@severity</property>
<severity>critical</severity>
</update>
<action ref="startnp"></action>
</transaction>
<transaction>
<update>
<property>state/@severity</property>
<severity>ok</severity>
</update>
</transaction>
</if>
</block>
</rule>

Note:

["Geneos"] ["FAQ"]

Was this topic helpful?