1
#ifndef NOTIFICATION_LOG_H
2
#define NOTIFICATION_LOG_H
3
#include <net-snmp/agent/agent_handler.h>
6
* function declarations
8
void init_notification_log(void);
9
Netsnmp_Node_Handler nlmLogTable_handler;
10
Netsnmp_Node_Handler nlmLogVariableTable_handler;
11
Netsnmp_Trap_Handler notification_handler;
14
log_notification(struct hostent *host, netsnmp_pdu *pdu,
15
netsnmp_transport *transport);
17
#define NETSNMP_DS_APP_DONT_LOG 9 /* must match notification_log. */
20
* column number definitions for table nlmLogTable
22
#define COLUMN_NLMLOGINDEX 1
23
#define COLUMN_NLMLOGTIME 2
24
#define COLUMN_NLMLOGDATEANDTIME 3
25
#define COLUMN_NLMLOGENGINEID 4
26
#define COLUMN_NLMLOGENGINETADDRESS 5
27
#define COLUMN_NLMLOGENGINETDOMAIN 6
28
#define COLUMN_NLMLOGCONTEXTENGINEID 7
29
#define COLUMN_NLMLOGCONTEXTNAME 8
30
#define COLUMN_NLMLOGNOTIFICATIONID 9
33
* column number definitions for table nlmLogVariableTable
35
#define COLUMN_NLMLOGVARIABLEINDEX 1
36
#define COLUMN_NLMLOGVARIABLEID 2
37
#define COLUMN_NLMLOGVARIABLEVALUETYPE 3
38
#define COLUMN_NLMLOGVARIABLECOUNTER32VAL 4
39
#define COLUMN_NLMLOGVARIABLEUNSIGNED32VAL 5
40
#define COLUMN_NLMLOGVARIABLETIMETICKSVAL 6
41
#define COLUMN_NLMLOGVARIABLEINTEGER32VAL 7
42
#define COLUMN_NLMLOGVARIABLEOCTETSTRINGVAL 8
43
#define COLUMN_NLMLOGVARIABLEIPADDRESSVAL 9
44
#define COLUMN_NLMLOGVARIABLEOIDVAL 10
45
#define COLUMN_NLMLOGVARIABLECOUNTER64VAL 11
46
#define COLUMN_NLMLOGVARIABLEOPAQUEVAL 12
48
#endif /* NOTIFICATION_LOG_H */