252N/A/*
252N/A * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
252N/A *
252N/A * U.S. Government Rights - Commercial software. Government users are subject
252N/A * to the Sun Microsystems, Inc. standard license agreement and applicable
252N/A * provisions of the FAR and its supplements.
252N/A *
252N/A *
252N/A * This distribution may include materials developed by third parties. Sun,
252N/A * Sun Microsystems, the Sun logo and Solaris are trademarks or registered
252N/A * trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
252N/A *
252N/A */
252N/A
252N/A/*
252N/A * Note: this file originally auto-generated by mib2c using
252N/A * : mib2c.scalar.conf,v 1.5 2002/07/18 14:18:52 dts12 Exp $
252N/A */
252N/A
252N/A
252N/A#ifndef HEALTHMONITOR_H
252N/A#define HEALTHMONITOR_H
252N/A
252N/A/* function declarations */
252N/Avoid init_healthMonitor(void);
252N/ANetsnmp_Node_Handler get_hmSpinsOnMutexes;
252N/ANetsnmp_Node_Handler get_hmTotProcInRunQueue;
252N/ANetsnmp_Node_Handler get_hmTotRPCCalls;
252N/ANetsnmp_Node_Handler get_hmUsedSwapSpace;
252N/ANetsnmp_Node_Handler get_hmDNLCMisses;
252N/ANetsnmp_Node_Handler get_hmReservedSwapSpace;
252N/ANetsnmp_Node_Handler get_hmTotMemAllocFails;
252N/ANetsnmp_Node_Handler get_hmAvailableSwapSpace;
252N/ANetsnmp_Node_Handler get_hmDNLCHitRate;
252N/ANetsnmp_Node_Handler get_hmDNLCHits;
252N/ANetsnmp_Node_Handler get_hmAllocatedSwapSpace;
252N/ANetsnmp_Node_Handler get_hmTotNumOfCPUs;
252N/ANetsnmp_Node_Handler get_hmPageScanRate;
252N/ANetsnmp_Node_Handler get_hmTimers;
252N/ANetsnmp_Node_Handler get_hmTotBadRPCCalls;
252N/ANetsnmp_Node_Handler get_hmDNLCRefRate;
252N/ANetsnmp_Node_Handler get_hmTotSendFails;
252N/ANetsnmp_Node_Handler get_hmTotFailedCallsBV;
252N/ANetsnmp_Node_Handler get_hmTotNumOfAuthRefresh;
252N/ANetsnmp_Node_Handler get_hmHandspread;
252N/ANetsnmp_Node_Handler get_hmTotRPCRetransmissions;
252N/ANetsnmp_Node_Handler get_hmKmemFreeMem;
252N/ANetsnmp_Node_Handler get_hmTotBadRPCReplies;
252N/ANetsnmp_Node_Handler get_hmKmemErrors;
252N/ANetsnmp_Node_Handler get_hmTotProcReadyInSwap;
252N/ANetsnmp_Node_Handler get_hmTotProcBlocked;
252N/ANetsnmp_Node_Handler get_hmTotRPCCallsTimedOut;
252N/A
252N/A
252N/A/* Additions to the template generated by mib2c */
252N/A
252N/A/* Define node alarm states */
252N/A
252N/A#define OK 0
252N/A#define INFO 1
252N/A#define WARNING 2
252N/A#define ERROR 3
252N/A
252N/A/* Defile various rule states */
252N/A
252N/A#define NOTINIT 0
252N/A#define INIT 1
252N/A#define OPEN 2
252N/A#define CONTINUE 3
252N/A#define CLOSE 4
252N/A#define CONDITION 5
252N/A
252N/A/* Forward Function declarations */
252N/A
252N/Aint hm_post_read_config(int a, int b, void *c, void *d);
252N/Avoid read_health_monitor_thresholds(const char *token, char *cptr);
252N/Avoid send_trap(u_char *host , u_char *mod , u_char* con, oid *asdf, int size, u_char *stat , u_char *desc , u_char* dvalue, int dtype);
252N/Avoid hm_handle_rule(int* rule_state, int (*rule) (int action));
252N/A
252N/Aint SWAP_rule(int action);
252N/Aint Kernel_rule(int action);
252N/Aint NFS_rule(int action);
252N/Aint CPU_rule(int action);
252N/Aint RAM_rule(int action);
252N/Aint KMEM_rule(int action);
252N/Aint DNLC_rule(int action);
252N/A
252N/Avoid refresh_all_HM_data(unsigned int clientreg, void *clientarg);
252N/Avoid refresh_SWAP_data();
252N/Avoid refresh_Kernel_data();
252N/Avoid refresh_NFS_data();
252N/Avoid refresh_CPU_data();
252N/Avoid refresh_RAM_data();
252N/Avoid refresh_KMEM_data();
252N/Avoid refresh_DNLC_data();
252N/A
252N/Achar* conv_alarm_state(int);
252N/A
252N/A/*
252N/A * Additions from hmDiskGroup.h required for implementing hmDiskGroup
252N/A *
252N/A */
252N/A
252N/A/* function declarations */
252N/Avoid initialize_table_hmDiskTable(void);
252N/ANetsnmp_Node_Handler hmDiskTable_handler;
252N/A
252N/ANetsnmp_First_Data_Point hmDiskTable_get_first_data_point;
252N/ANetsnmp_Next_Data_Point hmDiskTable_get_next_data_point;
252N/A
252N/A/* column number definitions for table hmDiskTable */
252N/A #define COLUMN_HMDISKNAME 1
252N/A #define COLUMN_HMDISKALIASNAME 2
252N/A #define COLUMN_HMAVGWAITTRANSACTIONS 3
252N/A #define COLUMN_HMDISKBUSYPCNT 4
252N/A #define COLUMN_HMAVGDISKSVCTIME 5
252N/A
252N/Atypedef struct HmDiskEntry {
252N/A char *hmDiskName;
252N/A char *hmDiskAliasName;
252N/A char *hmAvgWaitTransactions;
252N/A char *hmDiskBusyPcnt;
252N/A char *hmAvgDiskSvcTime;
252N/A int hmDiskState;
252N/A int hmTraversed;
252N/A
252N/A struct HmDiskEntry* pNext;
252N/A} hmDiskTable;
252N/A
252N/A#define DISK_DATA_LEN 8
252N/A
252N/A/* Function prototypes */
252N/A
252N/Avoid construct_DISK_table();
252N/Avoid refresh_DISK_table(unsigned int clientreg, void *clientarg);
252N/AhmDiskTable* get_first_node();
252N/Avoid check_state_DISK();
252N/A
252N/A#endif /* HEALTHMONITOR_H */