Debian Codegraph @

agent/mibgroup/default_modules.h

raw
1 /* this is a Net-SNMP distributed file that sets all default mib
2 modules to be built into the Net-SNMP agent */
3
4
5 /* these go into both the mini agent and the full agent */
6 config_require(snmpv3mibs);
7
8 /* very few default mibs */
9 config_add_mib(SNMPv2-MIB);
10 config_add_mib(IF-MIB);
11 config_add_mib(IP-MIB);
12 config_add_mib(TCP-MIB);
13 config_add_mib(UDP-MIB);
14
15 #ifdef NETSNMP_MINI_AGENT
16
17 /* limit the mibII modules to the bare minimum */
18 config_require(mibII/snmp_mib);
19 config_require(mibII/system_mib);
20 config_require(mibII/sysORTable);
21 config_require(mibII/vacm_vars);
22 config_require(mibII/vacm_conf);
23
24 #else /* !NETSNMP_MINI_AGENT == the full shabang */
25
26 config_require(mibII);
27 config_require(ucd_snmp);
28 config_require(notification);
29 config_require(notification-log-mib);
30 config_require(target);
31 config_require(agent_mibs);
32 config_require(agentx);
33 config_require(disman/event);
34 #ifndef NETSNMP_NO_WRITE_SUPPORT
35 config_require(disman/schedule);
36 #endif /* !NETSNMP_NO_WRITE_SUPPORT */
37 config_require(utilities);
38
39 /* default MIBs to auto-include for parsing */
40 /* NOTE: we consider these MIBs users will likely want to load by
41 default, even if they're not supporting it in the agent (ie, the
42 command line tools need to load them anyway) */
43 config_add_mib(HOST-RESOURCES-MIB);
44 config_add_mib(NOTIFICATION-LOG-MIB);
45 config_add_mib(DISMAN-EVENT-MIB);
46 #ifndef NETSNMP_NO_WRITE_SUPPORT
47 config_add_mib(DISMAN-SCHEDULE-MIB);
48 #endif /* !NETSNMP_NO_WRITE_SUPPORT */
49
50 /* architecture specific extra modules */
51 /* these symbols are set in the host specific net-snmp/system/<os>.h files */
52 #ifdef NETSNMP_INCLUDE_HOST_RESOURCES
53 config_require(host);
54 #endif
55
56 #endif