glensc / cacti-template-varnish

Cacti Varnish Template
7 stars 4 forks source link

Support for Varnish 4 #1

Open huayra opened 8 years ago

huayra commented 8 years ago

Hello, It might be worth to have a look at the following post: https://blog.jeremm.fr/?p=805 Files: http://blog.jeremm.fr/wp-content/uploads/2014/06/cacti_host_template_varnish_4_0_1.xml http://blog.jeremm.fr/wp-content/uploads/2014/06/get_varnish_stats.py

Also, I'm adding your repository as the official one for the cacti varnish plugin. Keep up the good work! :)

madpsy commented 8 years ago

Here's a partial remap for v4 (just replace the remap which is already in the original script).

remap = { 'uptime': 'MAIN.uptime', 'client_conn': 'MAIN.sess_conn', 'client_drop': 'MAIN.sess_drop', 'client_req': 'MAIN.client_req', 'cache_hit': 'MAIN.cache_hit', 'cache_hitpass': 'MAIN.cache_hitpass', 'cache_miss': 'MAIN.cache_miss', 'backend_conn': 'MAIN.backend_conn', 'backend_unhealthy': 'MAIN.backend_unhealthy', 'backend_busy': 'MAIN.backend_busy', 'backend_fail': 'MAIN.backend_fail', 'backend_reuse': 'MAIN.backend_reuse', 'backend_toolate': '', 'backend_recycle': 'MAIN.backend_recycle', 'backend_unused': 'MAIN.backend_retry', 'fetch_head': 'MAIN.fetch_head', 'fetch_length': 'MAIN.fetch_length', 'fetch_chunked': 'MAIN.fetch_chunked', 'fetch_eof': 'MAIN.fetch_eof', 'fetch_bad': 'MAIN.fetch_bad', 'fetch_close': 'MAIN.sess_closed', 'fetch_oldhttp': '', 'fetch_zero': 'MAIN.fetch_eof', 'fetch_failed': 'MAIN.fetch_failed', 'n_srcaddr': '', 'n_srcaddr_act': '', 'n_sess_mem': 'MEMPOOL.sess1.sz_actual', 'n_sess': 'MAIN.s_sess', 'n_object': 'MAIN.n_object', 'n_objecthead': 'MAIN.n_objecthead', 'n_smf': '', 'n_smf_frag': '', 'n_smf_large': '', 'n_vbe_conn': 'VBE.boot.default.conn', 'n_bereq': 'VBE.boot.default.req', 'n_wrk': 'MAIN.threads', 'n_wrk_create': 'MAIN.threads_created', 'n_wrk_failed': 'MAIN.threads_failed', 'n_wrk_max': '', 'n_wrk_queue': 'MAIN.thread_queue_len', 'n_wrk_overflow': '', 'n_wrk_drop': 'MAIN.sess_dropped', 'n_backend': 'MAIN.n_backend', 'n_expired': 'MAIN.n_expired', 'n_lru_nuked': 'MAIN.n_lru_nuked', 'n_lru_saved': '', 'n_lru_moved': 'MAIN.n_lru_moved', 'n_deathrow': '', 'losthdr': 'MAIN.losthdr', 'n_objsendfile': '', 'n_objwrite': '', 'n_objoverflow': '', 's_sess': 'MAIN.s_sess', 's_req': 'MAIN.s_req', 's_pipe': 'MAIN.s_pipe', 's_pass': 'MAIN.s_pass', 's_fetch': 'MAIN.s_fetch', 's_hdrbytes': 'MAIN.s_req_hdrbytes', 's_bodybytes': 'MAIN.s_req_bodybytes', 'sess_closed': 'MAIN.sess_closed', 'sess_pipeline': 'MAIN.s_pipe', 'sess_readahead': 'MAIN.sess_readahead', 'sess_linger': '', 'sess_herd': 'MAIN.sess_herd', 'shm_records': 'MAIN.shm_records', 'shm_writes': 'MAIN.shm_writes', 'shm_flushes': 'MAIN.shm_flushes', 'shm_cont': 'MAIN.shm_cont', 'shm_cycles': 'MAIN.shm_cycles', 'sm_nreq': 'SMA.s0.c_req', 'sm_nobj': 'SMA.s0.g_alloc', 'sm_balloc': 'SMA.s0.c_bytes', 'sm_bfree': 'SMA.s0.c_bytes', 'sma_nreq': 'SMA.Transient.c_req', 'sma_nobj': 'SMA.Transient.g_alloc', 'sma_nbytes': 'SMA.Transient.g_bytes', 'sma_balloc': 'SMA.Transient.c_bytes', 'sma_bfree': 'SMA.Transient.g_space', 'sms_nreq': '', 'sms_nobj': '', 'sms_nbytes': '', 'sms_balloc': '', 'sms_bfree': '', 'backend_req': 'MAIN.backend_req', 'n_vcl': 'MAIN.n_vcl', 'n_vcl_avail': 'MAIN.n_vcl_avail', 'n_vcl_discard': 'MAIN.n_vcl_discard', 'n_purge': 'MAIN.bans', 'n_purge_add': 'MAIN.bans_added', 'n_purge_retire': 'MAIN.bans_deleted', 'n_purge_obj_test': 'MAIN.bans_tested', 'n_purge_re_test': 'MAIN.bans_lurker_tests_tested', 'n_purge_dups': 'MAIN.bans_dups', 'hcb_nolock': 'MAIN.hcb_nolock', 'hcb_lock': 'MAIN.hcb_lock', 'hcb_insert': 'MAIN.hcb_insert', 'esi_parse': '', 'esi_errors': 'MAIN.esi_errors', }

glensc commented 7 years ago

@huayra sorry, i had somehow notifications turned off for this repository. will check soon(ish)!

PS: what do you mean "official", give link?

this gives 0 results: http://docs.cacti.net/doku.php?do=search&id=varnish&fulltext=Search

glensc commented 5 years ago

I'm no longer using this template, could you please submit changes as pull request?

huayra commented 5 years ago

@glensc I meant adding it to the official Varnish Cache extras list: https://varnish-cache.org/extras/

glensc commented 3 years ago

@huayra perhaps need to add it to cacti list as well? :)