snmp_collator.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /** BEGIN COPYRIGHT BLOCK
  2. * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  3. * Copyright (C) 2005 Red Hat, Inc.
  4. * All rights reserved.
  5. *
  6. * License: GPL (version 3 or any later version).
  7. * See LICENSE for details.
  8. * END COPYRIGHT BLOCK **/
  9. #ifdef HAVE_CONFIG_H
  10. # include <config.h>
  11. #endif
  12. /******************************************************************************
  13. *
  14. * defines
  15. *
  16. ******************************************************************************/
  17. #define SNMP_CONFIG_DN "cn=SNMP,cn=config"
  18. #define SNMP_NAME_ATTR "nsSNMPName"
  19. #define SNMP_DESC_ATTR "nsSNMPDescription"
  20. #define SNMP_ORG_ATTR "nsSNMPOrganization"
  21. #define SNMP_LOC_ATTR "nsSNMPLocation"
  22. #define SNMP_CONTACT_ATTR "nsSNMPContact"
  23. /******************************************************************************
  24. *
  25. * function prototypes
  26. *
  27. ******************************************************************************/
  28. int snmp_collator_start();
  29. int snmp_collator_stop();
  30. void set_snmp_interaction_row(char *host, int port, int error);
  31. void snmp_collator_update(time_t, void *);