|
The value is produced by a rule which calculates the difference between a now function and the connection's duration value, then converted from epoch time to a human-readable time format.
Please see below XML:
GWClients sampler:
<sampler name="GWClients"> <plugin> <Gateway-clientConnectionData></Gateway-clientConnectionData> </plugin> <dataviews> <dataview name="GWClients"> <description></description> <displayName>loginTime</displayName> <additions> <var-columns> <data> <column> <data>loginTime</data> </column> </data> </var-columns> </additions> </dataview> </dataviews> </sampler>
LoginTimes Rule for populating the Time of login:
<rule name="LoginTimes"> <targets> <target>/geneos/gateway/directory/probe/managedEntity/sampler[(@name="GWClients")][(@type="")]/dataview[(@name="GWClients")]/rows/row/cell[(@column="loginTime")]</target> </targets> <priority>1</priority> <pathAliases> <pathAlias name="DurVar">../cell[(@column="duration")]</pathAlias> </pathAliases> <evaluateOnDataviewSample>true</evaluateOnDataviewSample> <block> <transaction> <update> <property>@value</property> <printDate> <string>%Y %b %d %H:%M:%S</string> <subtract> <now></now> <multiply> <dataItem> <pathAlias ref="DurVar"></pathAlias> <property>@value</property> </dataItem> <integer>60</integer> </multiply> </subtract> </printDate> </update> </transaction> </block> </rule>
|
You will need to use the gateway connection plugin, and a rule, to achieve this.
Comments
0 comments
Please sign in to leave a comment.