components/net-snmp/sun/sdk/demo/demo_module_4/me4LoadGroup.h
changeset 252 ee0fb1eabcbf
equal deleted inserted replaced
251:f527656d334f 252:ee0fb1eabcbf
       
     1 /*
       
     2  * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
       
     3  *
       
     4  * U.S. Government Rights - Commercial software. Government users are subject to
       
     5  * the Sun Microsystems, Inc. standard license agreement and applicable
       
     6  * provisions of the FAR and its supplements.
       
     7  *
       
     8  *
       
     9  * This distribution may include materials developed by third parties. Sun, Sun
       
    10  * Microsystems, the Sun logo and Solaris are trademarks or registered
       
    11  * trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
       
    12  *
       
    13  */
       
    14 
       
    15 
       
    16 /*
       
    17  * Note: this file originally auto-generated by mib2c using
       
    18  *        : mib2c.scalar.conf,v 1.1.1.1 2003/03/26 18:12:30 pcarroll Exp $
       
    19  */
       
    20 
       
    21 #ifndef ME1LOADGROUP_H
       
    22 #define ME1LOADGROUP_H
       
    23 
       
    24 /* function declarations */
       
    25 void init_demo_module_4(void);
       
    26 Netsnmp_Node_Handler get_me4SystemLoadAvg15min;
       
    27 Netsnmp_Node_Handler get_me4SystemLoadAvg1min;
       
    28 Netsnmp_Node_Handler get_me4SystemLoadAvg5min;
       
    29 
       
    30 #define OK 0
       
    31 #define ERROR 1
       
    32 
       
    33 int demo_4_post_read_config(int a, int b, void *c, void *d);
       
    34 void refreshLoadAvg(unsigned int clientreg, void *clientarg);
       
    35 void check_loadavg1_state();
       
    36 void check_loadavg5_state();
       
    37 void check_loadavg15_state();
       
    38 char* conv_alarm_state(int state);
       
    39 void read_load_thresholds(const char *token, char *cptr);
       
    40 
       
    41 #endif /* ME1LOADGROUP_H */