net-snmp 5.7
|
00001 #ifndef NETSNMP_DS_AGENT_H 00002 #define NETSNMP_DS_AGENT_H 00003 /* 00004 * defines agent's default store registrations 00005 */ 00006 /* 00007 * Note: 00008 * If new ds_agent entries are added to this header file, 00009 * then remember to run 'perl/agent/default_store/gen' to 00010 * update the corresponding perl interface. 00011 */ 00012 00013 /* 00014 * booleans 00015 */ 00016 #define NETSNMP_DS_AGENT_VERBOSE 0 /* 1 if verbose output desired */ 00017 #define NETSNMP_DS_AGENT_ROLE 1 /* 0 if master, 1 if client */ 00018 #define NETSNMP_DS_AGENT_NO_ROOT_ACCESS 2 /* 1 if we can't get root access */ 00019 #define NETSNMP_DS_AGENT_AGENTX_MASTER 3 /* 1 if AgentX desired */ 00020 #define NETSNMP_DS_AGENT_QUIT_IMMEDIATELY 4 /* 1 to never start the agent */ 00021 #define NETSNMP_DS_AGENT_DISABLE_PERL 5 /* 1 to never enable perl */ 00022 #define NETSNMP_DS_AGENT_NO_CONNECTION_WARNINGS 6 /* 1 = !see !connect msgs */ 00023 #define NETSNMP_DS_AGENT_LEAVE_PIDFILE 7 /* 1 = leave PID file on exit */ 00024 #define NETSNMP_DS_AGENT_NO_CACHING 8 /* 1 = disable netsnmp_cache */ 00025 #define NETSNMP_DS_AGENT_STRICT_DISMAN 9 /* 1 = "correct" object ordering */ 00026 #define NETSNMP_DS_AGENT_DONT_RETAIN_NOTIFICATIONS 10 /* 1 = disable trap logging */ 00027 #define NETSNMP_DS_AGENT_DONT_LOG_TCPWRAPPERS_CONNECTS 12 /* 1 = disable logging */ 00028 #define NETSNMP_DS_APP_DONT_LOG NETSNMP_DS_AGENT_DONT_RETAIN_NOTIFICATIONS /* compat */ 00029 #define NETSNMP_DS_AGENT_SKIPNFSINHOSTRESOURCES 13 /* 1 = don't store NFS entries in hrStorageTable */ 00030 #define NETSNMP_DS_AGENT_REALSTORAGEUNITS 14 /* 1 = use real allocation units in hrStorageTable, 0 = recalculate it to fit 32bits */ 00031 00032 /* Repeated from "apps/snmptrapd_ds.h" */ 00033 #define NETSNMP_DS_APP_NUMERIC_IP 16 00034 #define NETSNMP_DS_APP_NO_AUTHORIZATION 17 00035 00036 #define NETSNMP_DS_AGENT_DISKIO_NO_FD 18 /* 1 = don't report /dev/fd* entries in diskIOTable */ 00037 #define NETSNMP_DS_AGENT_DISKIO_NO_LOOP 19 /* 1 = don't report /dev/loop* entries in diskIOTable */ 00038 #define NETSNMP_DS_AGENT_DISKIO_NO_RAM 20 /* 1 = don't report /dev/ram* entries in diskIOTable */ 00039 00040 /* WARNING: The trap receiver also uses DS flags and must not conflict with these! 00041 * If you define additional boolean entries, check in "apps/snmptrapd_ds.h" first */ 00042 00043 /* 00044 * strings 00045 */ 00046 #define NETSNMP_DS_AGENT_PROGNAME 0 /* argv[0] */ 00047 #define NETSNMP_DS_AGENT_X_SOCKET 1 /* AF_UNIX or ip:port socket addr */ 00048 #define NETSNMP_DS_AGENT_PORTS 2 /* localhost:9161,tcp:localhost:9161... */ 00049 #define NETSNMP_DS_AGENT_INTERNAL_SECNAME 3 /* used by disman/mteTriggerTable. */ 00050 #define NETSNMP_DS_AGENT_PERL_INIT_FILE 4 /* used by embedded perl */ 00051 #define NETSNMP_DS_SMUX_SOCKET 5 /* ip:port socket addr */ 00052 #define NETSNMP_DS_NOTIF_LOG_CTX 6 /* "" | "snmptrapd" */ 00053 #define NETSNMP_DS_AGENT_TRAP_ADDR 7 /* used as v1 trap agent address */ 00054 00055 /* 00056 * integers 00057 */ 00058 #define NETSNMP_DS_AGENT_FLAGS 0 /* session.flags */ 00059 #define NETSNMP_DS_AGENT_USERID 1 00060 #define NETSNMP_DS_AGENT_GROUPID 2 00061 #define NETSNMP_DS_AGENT_AGENTX_PING_INTERVAL 3 /* ping master every SECONDS */ 00062 #define NETSNMP_DS_AGENT_AGENTX_TIMEOUT 4 00063 #define NETSNMP_DS_AGENT_AGENTX_RETRIES 5 00064 #define NETSNMP_DS_AGENT_X_SOCK_PERM 6 /* permissions for the */ 00065 #define NETSNMP_DS_AGENT_X_DIR_PERM 7 /* AgentX socket */ 00066 #define NETSNMP_DS_AGENT_X_SOCK_USER 8 /* ownership for the */ 00067 #define NETSNMP_DS_AGENT_X_SOCK_GROUP 9 /* AgentX socket */ 00068 #define NETSNMP_DS_AGENT_CACHE_TIMEOUT 10 /* default cache timeout */ 00069 #define NETSNMP_DS_AGENT_INTERNAL_VERSION 11 /* used by internal queries */ 00070 #define NETSNMP_DS_AGENT_INTERNAL_SECLEVEL 12 /* used by internal queries */ 00071 #define NETSNMP_DS_AGENT_MAX_GETBULKREPEATS 13 /* max getbulk repeats */ 00072 #define NETSNMP_DS_AGENT_MAX_GETBULKRESPONSES 14 /* max getbulk respones */ 00073 00074 #endif