• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

Makefile.amH A D03-May-20223.8 KiB12188

Makefile.inH A D03-May-202242.4 KiB1,2721,113

READMEH A D31-Aug-20081.6 KiB4132

invoke-ntpsnmpd.menuH A D23-Jun-202053 21

invoke-ntpsnmpd.texiH A D23-Jun-20206.5 KiB189159

netsnmp_daemonize.cH A D27-Feb-20186.5 KiB272160

ntpSnmpSubagentObject.cH A D05-Apr-201114.3 KiB550333

ntpSnmpSubagentObject.hH A D16-Oct-20102.4 KiB8252

ntp_snmp.hH A D29-Dec-2014971 3823

ntpsnmpd-opts.cH A D23-Jun-202032.7 KiB913672

ntpsnmpd-opts.defH A D23-Aug-20143.1 KiB147132

ntpsnmpd-opts.hH A D23-Jun-20208.6 KiB244125

ntpsnmpd.1ntpsnmpdmanH A D23-Jun-20205.3 KiB204191

ntpsnmpd.1ntpsnmpdmdocH A D23-Jun-20204.5 KiB145144

ntpsnmpd.cH A D23-Jun-20203 KiB11957

ntpsnmpd.man.inH A D23-Jun-20205.3 KiB204191

ntpsnmpd.mdoc.inH A D23-Jun-20204.5 KiB145144

ntpsnmpd.texiH A D23-Jun-20201.5 KiB5440

ntpv4-mib.mibH A D12-Oct-201029.4 KiB893794

README

1NTP SNMP subagent for Net-SNMP
2
3Installation Guides:
4
5- install net-snmp from source (configure, make;, make install)
6- edit the snmpd configuration file (/usr/local/share/snmp/snmpd.conf):
7  add the lines
8   master agentx
9   agentXSocket   tcp:localhost:705
10  and check which read-only community is configured (should be "rocommunity  public")
11- start snmpd (sudo /usr/local/sbin/snmpd) and check that it is running correctly by running the command
12  snmpwalk -v2c -c public localhost
13  (which should output a lot of data values for the supported built-in MIBs of net-snmp)
14- build the libntpq and the libntp library
15- build the ntpsnmpd application (make) and run it (./ntpsnmpd)
16- now you can run
17   snmpwalk -v2c -c public localhost enterprises.5597.99
18  which should give you a list of all currently supported NTP MIB objects and their current values
19
20Please 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).
21The final OID has to be registered with IANA and this is done by the RFC Editor when the NTPv4 MIB RFC is standardized.
22I will try to do this earlier in order to be able to have a working solution at the end of this project.
23
24In its current state the daemon supports these objects:
25
26ntpEntSoftwareName
27ntpEntSoftwareVersion
28ntpEntSoftwareVersionVal
29ntpEntSoftwareVendor
30ntpEntSystemType
31ntpEntTimeResolution
32ntpEntTimeResolutionVal
33ntpEntTimePrecision
34ntpEntTimePrecisionVal
35ntpEntTimeDistance
36
37They all use the libntpq library to access information from the ntpd instance with mode 6 packets.
38
39Next step is to implement the status section of the MIB (section 2).
40
41