[NLUUG]   Welcome to ftp.nluug.nl
Current directory: /pub/os/BSD/NetBSD/NetBSD-current/src/external/bsd/ntp/dist/ntpsnmpd/
 
Current bandwidth utilization 1850.88 Mbit/s
Bandwidth utilization bar
Contents of README:
NTP SNMP subagent for Net-SNMP

Installation Guides:

- install net-snmp from source (configure, make;, make install)
- edit the snmpd configuration file (/usr/local/share/snmp/snmpd.conf):
  add the lines
   master agentx
   agentXSocket   tcp:localhost:705
  and check which read-only community is configured (should be "rocommunity  public")  
- start snmpd (sudo /usr/local/sbin/snmpd) and check that it is running correctly by running the command
  snmpwalk -v2c -c public localhost
  (which should output a lot of data values for the supported built-in MIBs of net-snmp)
- build the libntpq and the libntp library
- build the ntpsnmpd application (make) and run it (./ntpsnmpd)
- now you can run 
   snmpwalk -v2c -c public localhost enterprises.5597.99
  which should give you a list of all currently supported NTP MIB objects and their current values
  
Please note that currently I use a private MIB OID (enterprises.5597 is the Meinberg top level OEM OID and 99 is my temporary working space for this project). 
The final OID has to be registered with IANA and this is done by the RFC Editor when the NTPv4 MIB RFC is standardized. 
I will try to do this earlier in order to be able to have a working solution at the end of this project.

In its current state the daemon supports these objects:

ntpEntSoftwareName
ntpEntSoftwareVersion
ntpEntSoftwareVersionVal
ntpEntSoftwareVendor
ntpEntSystemType
ntpEntTimeResolution
ntpEntTimeResolutionVal
ntpEntTimePrecision
ntpEntTimePrecisionVal
ntpEntTimeDistance

They all use the libntpq library to access information from the ntpd instance with mode 6 packets.

Next step is to implement the status section of the MIB (section 2). 


Icon  Name                                                         Last modified      Size  
[DIR] Parent Directory - [DIR] CVS/ 17-Dec-2022 22:27 - [   ] Makefile.am 14-Apr-2017 05:01 3.8K [TXT] Makefile.in 26-May-2020 05:01 42K [TXT] README 13-Dec-2009 17:56 1.6K [   ] invoke-ntpsnmpd.menu 28-Dec-2013 00:31 53 [   ] invoke-ntpsnmpd.texi 10-Oct-2022 05:00 6.5K [TXT] netsnmp_daemonize.c 26-May-2020 05:01 6.6K [TXT] ntpSnmpSubagentObject.c 26-May-2020 05:01 14K [TXT] ntpSnmpSubagentObject.h 26-May-2020 05:01 2.5K [TXT] ntp_snmp.h 26-May-2020 05:01 1.0K [TXT] ntpsnmpd-opts.c 10-Oct-2022 05:00 33K [TXT] ntpsnmpd-opts.def 20-Dec-2014 04:02 3.1K [TXT] ntpsnmpd-opts.h 10-Oct-2022 05:00 8.7K [   ] ntpsnmpd.1ntpsnmpdman 10-Oct-2022 05:00 5.3K [   ] ntpsnmpd.1ntpsnmpdmdoc 10-Oct-2022 05:00 4.5K [TXT] ntpsnmpd.c 26-May-2020 05:01 3.0K [TXT] ntpsnmpd.html 10-Oct-2022 05:00 4.2K [   ] ntpsnmpd.man.in 10-Oct-2022 05:00 5.3K [   ] ntpsnmpd.mdoc.in 10-Oct-2022 05:00 4.5K [   ] ntpsnmpd.texi 28-Dec-2013 00:31 1.5K [TXT] ntpv4-mib.mib 01-Feb-2012 04:13 29K

NLUUG - Open Systems. Open Standards
Become a member and get discounts on conferences and more, see the NLUUG website!