Index of /archives/NetBSD/NetBSD-release-9/src/external/bsd/ntp/dist/ntpsnmpd
Name Last modified Size Description
Parent Directory -
CVS/ 2024-02-15 03:46 -
ntpsnmpd-opts.h 2018-09-30 06:52 8.7K
ntpsnmpd-opts.c 2018-09-30 06:52 33K
ntpsnmpd.mdoc.in 2018-09-30 02:28 4.5K
ntpsnmpd.man.in 2018-09-30 02:28 5.3K
ntpsnmpd.html 2018-09-30 02:28 2.8K
ntpsnmpd.1ntpsnmpdmdoc 2018-09-30 02:28 4.5K
ntpsnmpd.1ntpsnmpdman 2018-09-30 02:28 5.3K
invoke-ntpsnmpd.texi 2018-09-30 02:28 6.5K
netsnmp_daemonize.c 2018-04-07 09:19 6.6K
Makefile.in 2018-04-07 09:15 42K
Makefile.am 2017-04-14 04:17 3.8K
ntpsnmpd.c 2016-01-09 06:35 3.0K
ntp_snmp.h 2016-01-09 06:35 1.0K
ntpSnmpSubagentObject.h 2016-01-09 06:35 2.5K
ntpSnmpSubagentObject.c 2016-01-09 06:35 14K
ntpsnmpd-opts.def 2014-12-20 05:37 3.1K
ntpsnmpd.texi 2013-12-28 08:31 1.5K
invoke-ntpsnmpd.menu 2013-12-28 08:31 53
ntpv4-mib.mib 2012-02-01 06:27 29K
README 2009-12-14 01:56 1.6K
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).