I talked about this on the discussion list, but it's more of a feature
request so I thought I'd ask it here.

We want to enable the monitoring on network to make sure that our devices
clocks remain synchronized.

I read an old post that gave one possible solution to :

1. poll for hrSystemDate on the device
2. poll *ntp* for its data.
3. if they are within 10 seconds of each other, you're good to go.

I've verified that the systems I want to monitor return values for
hrSystemDate. Would I be correct in the assumption that because hrSystemDate
is a string, I'm going to have to write something that allows me to perform
some date manipulation to determine if the difference in time is greater or
less than the threshold we decide on (I didn't see anything like this in the
onms docs)? What would be the best way to accomplish this?

I see in a sample pollerconfiguration.xml that there is a way to do this for
systems with time servers on unix servers
<service name="UnixTime" interval="300000" user-defined="false" status="on">
<parameter key="timeout" value="3000"/> <parameter key="retry" value="1"/>
<parameter key="protocol" value="tcp"/><!-- UDP also supported -->
<parameter key="port" value="37"/>
<parameter key="allowed-skew" value="300"/><!-- Seconds, i.e. 5 minutes -->
<parameter key="persist-skew" value="true"/>
<!-- If true, return a multi-valued PollStatus with skew included -->
</service>

<monitor service="UnixTime"
class-name="org.*opennms*.netmgt.poller.monitors.TrivialTimeMonitor"/>


Would there be merit to writing a poller that checks the hrSystemDate via
snmp? Something that would poll hrSystemDate, and check against our
localNtpServer? Looking from a config standpoint something like:

<service name="SnmpTime" interval="300000" user-defined="false" status="on">
<parameter key="timeout" value="3000"/>
<parameter key="retry" value="1"/>
<parameter key="protocol" value="tcp"/>
<parameter key="port" value="161"/>
<parameter key="ntpServer" value="localNtpServer"/>
<parameter key="allowed-skew" value="300"/><!-- Seconds, i.e. 5 minutes -->
<parameter key="persist-skew" value="true"/><!-- If true, return a
multi-valued PollStatus with skew included -->

</service>

<monitor service="SnmpTime"
class-name="org.*opennms*.netmgt.poller.monitors.SNMPTimeMonitor"/>


Or am I missing a more straightforward way of accomplishing this?

Cheers,
Jason.
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this 
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

Reply via email to