~ubuntu-branches/ubuntu/trusty/net-snmp/trusty

« back to all changes in this revision

Viewing changes to apps/notification_log.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-05-10 22:20:23 UTC
  • mto: (1.4.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: james.westby@ubuntu.com-20070510222023-3fr07xb9i17xvq32
Tags: upstream-5.3.1
ImportĀ upstreamĀ versionĀ 5.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef NOTIFICATION_LOG_H
2
 
#define NOTIFICATION_LOG_H
3
 
#include <net-snmp/agent/agent_handler.h>
4
 
 
5
 
/*
6
 
 * function declarations 
7
 
 */
8
 
void            init_notification_log(void);
9
 
Netsnmp_Node_Handler nlmLogTable_handler;
10
 
Netsnmp_Node_Handler nlmLogVariableTable_handler;
11
 
Netsnmp_Trap_Handler notification_handler;
12
 
 
13
 
void
14
 
                log_notification(struct hostent *host, netsnmp_pdu *pdu,
15
 
                                 netsnmp_transport *transport);
16
 
 
17
 
#define NETSNMP_DS_APP_DONT_LOG    9    /* must match notification_log. */
18
 
 
19
 
/*
20
 
 * column number definitions for table nlmLogTable 
21
 
 */
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
31
 
 
32
 
/*
33
 
 * column number definitions for table nlmLogVariableTable 
34
 
 */
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
47
 
 
48
 
#endif                          /* NOTIFICATION_LOG_H */