diff options
Diffstat (limited to 'agent/mibgroup/struct.h')
-rw-r--r-- | agent/mibgroup/struct.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/agent/mibgroup/struct.h b/agent/mibgroup/struct.h new file mode 100644 index 0000000..d025ed0 --- /dev/null +++ b/agent/mibgroup/struct.h @@ -0,0 +1,46 @@ +#ifndef UCD_SNMP_STRUCT +#define UCD_SNMP_STRUCT + +#define STRMAX 1024 +#define SHPROC 1 +#define EXECPROC 2 +#define PASSTHRU 3 +#define PASSTHRU_PERSIST 4 +#define MIBMAX 30 + +struct extensible { + char name[STRMAX]; + char command[STRMAX]; + char fixcmd[STRMAX]; + int type; + int result; + char output[STRMAX]; + struct extensible *next; + oid miboid[MIBMAX]; + size_t miblen; + int mibpriority; + netsnmp_pid_t pid; +#if defined(WIN32) + HANDLE tid; /* WIN32 thread */ +#endif +}; + +struct myproc { + char name[STRMAX]; + char fixcmd[STRMAX]; + int min; + int max; + struct myproc *next; +}; + +/* + * struct mibinfo + * { + * int numid; + * unsigned long mibid[10]; + * char *name; + * void (*handle) (); + * }; + */ + +#endif |