xosview  1.23
About: xosview is an X Windows based system monitor (cpu, memory, swap and network usage; interrupt and serial activities; load average).
  Fossies Dox: xosview-1.23.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

loadmeter.h
Go to the documentation of this file.
1 //
2 // Initial port performed by Stefan Eilemann (eilemann@gmail.com)
3 //
4 #ifndef _LOADMETER_H_
5 #define _LOADMETER_H_
6 
7 #include "fieldmetergraph.h"
8 #include <rpcsvc/rstat.h>
9 
10 class LoadMeter : public FieldMeterGraph {
11  public:
12  LoadMeter(XOSView *parent);
13  ~LoadMeter(void);
14 
15  const char *name(void) const { return "LoadMeter"; }
16  void checkevent(void);
17 
18  void checkResources(void);
19 
20 protected:
21  void getloadinfo(void);
22 
23  unsigned long procloadcol_, warnloadcol_, critloadcol_;
24 private:
26  char hostname[256];
27  struct statstime res;
28 };
29 
30 #endif
const char * name(void) const
Definition: loadmeter.h:15
struct statstime res
Definition: loadmeter.h:27
unsigned long warnloadcol_
Definition: loadmeter.h:36
int warnThreshold
Definition: loadmeter.h:32
LoadMeter(XOSView *parent)
void getloadinfo(void)
int alarmstate
Definition: loadmeter.h:32
char hostname[256]
Definition: loadmeter.h:26
void checkevent(void)
unsigned long critloadcol_
Definition: loadmeter.h:36
void checkResources(void)
int lastalarmstate
Definition: loadmeter.h:32
int critThreshold
Definition: loadmeter.h:32
unsigned long procloadcol_
Definition: loadmeter.h:36
~LoadMeter(void)