diff options
author | Viktors Tjarve <viktors.tjarve@zabbix.com> | 2019-01-09 12:30:54 +0300 |
---|---|---|
committer | Viktors Tjarve <viktors.tjarve@zabbix.com> | 2019-01-09 12:30:54 +0300 |
commit | 581f8def93a7b5e4acaaee56ad95ec4ec32bf476 (patch) | |
tree | 69e45543ef444b3683fd6cdb623a6a0d6a886a21 /include/zbxself.h | |
parent | bf12a71f2a54fd207068a23a58a1cdef04d606f8 (diff) |
...G...PS. [ZBXNEXT-401] added functionality for retrieving statistics from external Zabbix instance
Diffstat (limited to 'include/zbxself.h')
-rw-r--r-- | include/zbxself.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/zbxself.h b/include/zbxself.h index a165a27a76b..be1e18809bc 100644 --- a/include/zbxself.h +++ b/include/zbxself.h @@ -31,6 +31,20 @@ #define ZBX_SELFMON_DELAY 1 +/* the process statistics */ +typedef struct +{ + int process_type; + double busy_max; + double busy_min; + double busy_avg; + double idle_max; + double idle_min; + double idle_avg; + int count; +} +zbx_process_info_t; + int get_process_type_forks(unsigned char process_type); #ifndef _WINDOWS @@ -40,6 +54,7 @@ void update_selfmon_counter(unsigned char state); void collect_selfmon_stats(void); void get_selfmon_stats(unsigned char process_type, unsigned char aggr_func, int process_num, unsigned char state, double *value); +void zbx_get_all_process_stats(zbx_process_info_t *stats); void zbx_sleep_loop(int sleeptime); void zbx_sleep_forever(void); void zbx_wakeup(void); |