centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
311 stars 274 forks source link

Use of uninitialized value in sprintf at /usr/lib64/nagios/plugins/centreon-plugins/centreon/plugins/values.pm line 216. #1494

Closed thatsk closed 5 years ago

thatsk commented 5 years ago

Varnish backend giving error.

thatsk commented 5 years ago

perl /usr/lib64/nagios/plugins/centreon-plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=backend --hostname=test-machine --remote --ssh-option='-l=root' Use of uninitialized value in sprintf at /usr/lib64/nagios/plugins/centreon-plugins/centreon/plugins/values.pm line 216. Use of uninitialized value in sprintf at /usr/lib64/nagios/plugins/centreon-plugins/centreon/plugins/values.pm line 216. OK: Backend con: 0.00/s, Backend unhealthy: 0.00/s, Backend busy: 0.00/s, Backend fail: 0.00/s, Backend reuse: 0.00/s, Backend recycle: 0.00/s, Backend retry: 0.00/s, Backend recycle: 0.00/s, Backend requests: 0.00/s | 'backend_conn'=0.00;;;0; 'backend_unhealthy'=0.00;;;0; 'backend_miss'=0.00;;;0; 'backend_fail'=0.00;;;0; 'backend_reuse'=0.00;;;0; 'backend_recycle'=0.00;;;0; 'backend_retry'=0.00;;;0; 'backend_recycle'=0.00;;;0; 'backend_req'=0.00;;;0;

thatsk commented 5 years ago

how to add critical and warning option. I didn't get from script.

thatsk commented 5 years ago

perl /usr/lib64/nagios/plugins/centreon-plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=backend --hostname=test --remote --ssh-option='-l=root' --warning-unhealthy=4 --critical-unhealthy=5

Use of uninitialized value in sprintf at /usr/lib64/nagios/plugins/centreon-plugins/centreon/plugins/values.pm line 216. Use of uninitialized value in sprintf at /usr/lib64/nagios/plugins/centreon-plugins/centreon/plugins/values.pm line 216. OK: Backend con: 0.00/s, Backend unhealthy: 0.00/s, Backend busy: 0.00/s, Backend fail: 0.00/s, Backend reuse: 0.00/s, Backend recycle: 0.00/s, Backend retry: 0.00/s, Backend recycle: 0.00/s, Backend requests: 0.00/s | 'backend_conn'=0.00;;;0; 'backend_unhealthy'=0.00;0:4;0:5;0; 'backend_miss'=0.00;;;0; 'backend_fail'=0.00;;;0; 'backend_reuse'=0.00;;;0; 'backend_recycle'=0.00;;;0; 'backend_retry'=0.00;;;0; 'backend_recycle'=0.00;;;0; 'backend_req'=0.00;;;0;

Sims24 commented 5 years ago

Hi,

Could you provide the output of your command line please :

/usr/bin/varnishstat -1 Thanks

thatsk commented 5 years ago

/usr/bin/varnishstat -1 client_conn 2 0.00 Client connections accepted client_drop 0 0.00 Connection dropped, no sess/wrk client_req 2 0.00 Client requests received cache_hit 0 0.00 Cache hits cache_hitpass 0 0.00 Cache hits for pass cache_miss 2 0.00 Cache misses backend_conn 0 0.00 Backend conn. success backend_unhealthy 0 0.00 Backend conn. not attempted backend_busy 0 0.00 Backend conn. too many backend_fail 0 0.00 Backend conn. failures backend_reuse 0 0.00 Backend conn. reuses backend_toolate 0 0.00 Backend conn. was closed backend_recycle 0 0.00 Backend conn. recycles backend_retry 0 0.00 Backend conn. retry fetch_head 0 0.00 Fetch head fetch_length 0 0.00 Fetch with Length fetch_chunked 0 0.00 Fetch chunked fetch_eof 0 0.00 Fetch EOF fetch_bad 0 0.00 Fetch had bad headers fetch_close 0 0.00 Fetch wanted close fetch_oldhttp 0 0.00 Fetch pre HTTP/1.1 closed fetch_zero 0 0.00 Fetch zero len fetch_failed 0 0.00 Fetch failed fetch_1xx 0 0.00 Fetch no body (1xx) fetch_204 0 0.00 Fetch no body (204) fetch_304 0 0.00 Fetch no body (304) n_sess_mem 5 . N struct sess_mem n_sess 0 . N struct sess n_object 0 . N struct object n_vampireobject 0 . N unresurrected objects n_objectcore 2 . N struct objectcore n_objecthead 2 . N struct objecthead n_waitinglist 2 . N struct waitinglist n_vbc 0 . N struct vbc n_wrk 400 . N worker threads n_wrk_create 400 0.07 N worker threads created n_wrk_failed 0 0.00 N worker threads not created n_wrk_max 0 0.00 N worker threads limited n_wrk_lqueue 0 0.00 work request queue length n_wrk_queued 0 0.00 N queued work requests n_wrk_drop 0 0.00 N dropped work requests n_backend 2 . N backends n_expired 0 . N expired objects n_lru_nuked 0 . N LRU nuked objects n_lru_moved 0 . N LRU moved objects losthdr 0 0.00 HTTP header overflows n_objsendfile 0 0.00 Objects sent with sendfile n_objwrite 2 0.00 Objects sent with write n_objoverflow 0 0.00 Objects overflowing workspace s_sess 2 0.00 Total Sessions s_req 2 0.00 Total Requests s_pipe 0 0.00 Total pipe s_pass 0 0.00 Total pass s_fetch 0 0.00 Total fetch s_hdrbytes 498 0.09 Total header bytes s_bodybytes 38 0.01 Total body bytes sess_closed 2 0.00 Session Closed sess_pipeline 0 0.00 Session Pipeline sess_readahead 0 0.00 Session Read Ahead sess_linger 0 0.00 Session Linger sess_herd 0 0.00 Session herd shm_records 5425 0.95 SHM records shm_writes 5359 0.94 SHM writes shm_flushes 0 0.00 SHM flushes due to overflow shm_cont 0 0.00 SHM MTX contention shm_cycles 0 0.00 SHM cycles through buffer sms_nreq 2 0.00 SMS allocator requests sms_nobj 0 . SMS outstanding allocations sms_nbytes 0 . SMS outstanding bytes sms_balloc 38 . SMS bytes allocated sms_bfree 38 . SMS bytes freed backend_req 0 0.00 Backend requests made n_vcl 1 0.00 N vcl total n_vcl_avail 1 0.00 N vcl available n_vcl_discard 0 0.00 N vcl discarded n_ban 1 . N total active bans n_ban_gone 1 . N total gone bans n_ban_add 1 0.00 N new bans added n_ban_retire 0 0.00 N old bans deleted n_ban_obj_test 0 0.00 N objects tested n_ban_re_test 0 0.00 N regexps tested against n_ban_dups 0 0.00 N duplicate bans removed hcb_nolock 2 0.00 HCB Lookups without lock hcb_lock 2 0.00 HCB Lookups with lock hcb_insert 2 0.00 HCB Inserts esi_errors 0 0.00 ESI parse errors (unlock) esi_warnings 0 0.00 ESI parse warnings (unlock) accept_fail 0 0.00 Accept failures client_drop_late 0 0.00 Connection dropped late uptime 5727 1.00 Client uptime dir_dns_lookups 0 0.00 DNS director lookups dir_dns_failed 0 0.00 DNS director failed lookups dir_dns_hit 0 0.00 DNS director cached lookups hit dir_dns_cache_full 0 0.00 DNS director full dnscache vmods 0 . Loaded VMODs n_gzip 0 0.00 Gzip operations n_gunzip 0 0.00 Gunzip operations sess_pipe_overflow 0 . Dropped sessions due to session pipe overflow LCK.sms.creat 1 0.00 Created locks LCK.sms.destroy 0 0.00 Destroyed locks LCK.sms.locks 6 0.00 Lock Operations LCK.sms.colls 0 0.00 Collisions LCK.smp.creat 0 0.00 Created locks LCK.smp.destroy 0 0.00 Destroyed locks LCK.smp.locks 0 0.00 Lock Operations LCK.smp.colls 0 0.00 Collisions LCK.sma.creat 2 0.00 Created locks LCK.sma.destroy 0 0.00 Destroyed locks LCK.sma.locks 4 0.00 Lock Operations LCK.sma.colls 0 0.00 Collisions LCK.smf.creat 0 0.00 Created locks LCK.smf.destroy 0 0.00 Destroyed locks LCK.smf.locks 0 0.00 Lock Operations LCK.smf.colls 0 0.00 Collisions LCK.hsl.creat 0 0.00 Created locks LCK.hsl.destroy 0 0.00 Destroyed locks LCK.hsl.locks 0 0.00 Lock Operations LCK.hsl.colls 0 0.00 Collisions LCK.hcb.creat 1 0.00 Created locks LCK.hcb.destroy 0 0.00 Destroyed locks LCK.hcb.locks 36 0.01 Lock Operations LCK.hcb.colls 0 0.00 Collisions LCK.hcl.creat 0 0.00 Created locks LCK.hcl.destroy 0 0.00 Destroyed locks LCK.hcl.locks 0 0.00 Lock Operations LCK.hcl.colls 0 0.00 Collisions LCK.vcl.creat 1 0.00 Created locks LCK.vcl.destroy 0 0.00 Destroyed locks LCK.vcl.locks 4 0.00 Lock Operations LCK.vcl.colls 0 0.00 Collisions LCK.stat.creat 1 0.00 Created locks LCK.stat.destroy 0 0.00 Destroyed locks LCK.stat.locks 7 0.00 Lock Operations LCK.stat.colls 0 0.00 Collisions LCK.sessmem.creat 1 0.00 Created locks LCK.sessmem.destroy 0 0.00 Destroyed locks LCK.sessmem.locks 6 0.00 Lock Operations LCK.sessmem.colls 0 0.00 Collisions LCK.wstat.creat 1 0.00 Created locks LCK.wstat.destroy 0 0.00 Destroyed locks LCK.wstat.locks 11486 2.01 Lock Operations LCK.wstat.colls 0 0.00 Collisions LCK.herder.creat 1 0.00 Created locks LCK.herder.destroy 0 0.00 Destroyed locks LCK.herder.locks 1 0.00 Lock Operations LCK.herder.colls 0 0.00 Collisions LCK.wq.creat 4 0.00 Created locks LCK.wq.destroy 0 0.00 Destroyed locks LCK.wq.locks 23312 4.07 Lock Operations LCK.wq.colls 0 0.00 Collisions LCK.objhdr.creat 4 0.00 Created locks LCK.objhdr.destroy 2 0.00 Destroyed locks LCK.objhdr.locks 6 0.00 Lock Operations LCK.objhdr.colls 0 0.00 Collisions LCK.exp.creat 1 0.00 Created locks LCK.exp.destroy 0 0.00 Destroyed locks LCK.exp.locks 5726 1.00 Lock Operations LCK.exp.colls 0 0.00 Collisions LCK.lru.creat 2 0.00 Created locks LCK.lru.destroy 0 0.00 Destroyed locks LCK.lru.locks 0 0.00 Lock Operations LCK.lru.colls 0 0.00 Collisions LCK.cli.creat 1 0.00 Created locks LCK.cli.destroy 0 0.00 Destroyed locks LCK.cli.locks 1922 0.34 Lock Operations LCK.cli.colls 0 0.00 Collisions LCK.ban.creat 1 0.00 Created locks LCK.ban.destroy 0 0.00 Destroyed locks LCK.ban.locks 5728 1.00 Lock Operations LCK.ban.colls 0 0.00 Collisions LCK.vbp.creat 1 0.00 Created locks LCK.vbp.destroy 0 0.00 Destroyed locks LCK.vbp.locks 1127 0.20 Lock Operations LCK.vbp.colls 0 0.00 Collisions LCK.vbe.creat 1 0.00 Created locks LCK.vbe.destroy 0 0.00 Destroyed locks LCK.vbe.locks 0 0.00 Lock Operations LCK.vbe.colls 0 0.00 Collisions LCK.backend.creat 2 0.00 Created locks LCK.backend.destroy 0 0.00 Destroyed locks LCK.backend.locks 0 0.00 Lock Operations LCK.backend.colls 0 0.00 Collisions SMA.s0.c_req 2 0.00 Allocator requests SMA.s0.c_fail 0 0.00 Allocator failures SMA.s0.c_bytes 68224 11.91 Bytes allocated SMA.s0.c_freed 68224 11.91 Bytes freed SMA.s0.g_alloc 0 . Allocations outstanding SMA.s0.g_bytes 0 . Bytes outstanding SMA.s0.g_space 2147483648 . Bytes available SMA.Transient.c_req 0 0.00 Allocator requests SMA.Transient.c_fail 0 0.00 Allocator failures SMA.Transient.c_bytes 0 0.00 Bytes allocated SMA.Transient.c_freed 0 0.00 Bytes freed SMA.Transient.g_alloc 0 . Allocations outstanding SMA.Transient.g_bytes 0 . Bytes outstanding SMA.Transient.g_space 0 . Bytes available VBE.default(127.0.0.1,,80).vcls 1 . VCL references VBE.default(127.0.0.1,,80).happy 0 . Happy health probes VBE.media_backend_01(10.174.24.66,,80).vcls 1 . VCL references VBE.media_backend_01(10.174.24.66,,80).happy 0 . Happy health probes

thatsk commented 5 years ago

@Sims24 is there any issue?

Sims24 commented 5 years ago

My bad, the correct command is

/usr/bin/varnishstat -1 -j 2>&1

Which varnish version are you using ?

thatsk commented 5 years ago
/usr/bin/varnishstat -1 -j 2>&1
{
        "timestamp": "2019-05-06T09:02:30",
        "client_conn": {"value": 2, "flag": "a", "description": "Client connections accepted"},
        "client_drop": {"value": 0, "flag": "a", "description": "Connection dropped, no sess/wrk"},
        "client_req": {"value": 2, "flag": "a", "description": "Client requests received"},
        "cache_hit": {"value": 0, "flag": "a", "description": "Cache hits"},
        "cache_hitpass": {"value": 0, "flag": "a", "description": "Cache hits for pass"},
        "cache_miss": {"value": 2, "flag": "a", "description": "Cache misses"},
        "backend_conn": {"value": 0, "flag": "a", "description": "Backend conn. success"},
        "backend_unhealthy": {"value": 0, "flag": "a", "description": "Backend conn. not attempted"},
        "backend_busy": {"value": 0, "flag": "a", "description": "Backend conn. too many"},
        "backend_fail": {"value": 0, "flag": "a", "description": "Backend conn. failures"},
        "backend_reuse": {"value": 0, "flag": "a", "description": "Backend conn. reuses"},
        "backend_toolate": {"value": 0, "flag": "a", "description": "Backend conn. was closed"},
        "backend_recycle": {"value": 0, "flag": "a", "description": "Backend conn. recycles"},
        "backend_retry": {"value": 0, "flag": "a", "description": "Backend conn. retry"},
        "fetch_head": {"value": 0, "flag": "a", "description": "Fetch head"},
        "fetch_length": {"value": 0, "flag": "a", "description": "Fetch with Length"},
        "fetch_chunked": {"value": 0, "flag": "a", "description": "Fetch chunked"},
        "fetch_eof": {"value": 0, "flag": "a", "description": "Fetch EOF"},
        "fetch_bad": {"value": 0, "flag": "a", "description": "Fetch had bad headers"},
        "fetch_close": {"value": 0, "flag": "a", "description": "Fetch wanted close"},
        "fetch_oldhttp": {"value": 0, "flag": "a", "description": "Fetch pre HTTP/1.1 closed"},
        "fetch_zero": {"value": 0, "flag": "a", "description": "Fetch zero len"},
        "fetch_failed": {"value": 0, "flag": "a", "description": "Fetch failed"},
        "fetch_1xx": {"value": 0, "flag": "a", "description": "Fetch no body (1xx)"},
        "fetch_204": {"value": 0, "flag": "a", "description": "Fetch no body (204)"},
        "fetch_304": {"value": 0, "flag": "a", "description": "Fetch no body (304)"},
        "n_sess_mem": {"value": 5, "flag": "i", "description": "N struct sess_mem"},
        "n_sess": {"value": 0, "flag": "i", "description": "N struct sess"},
        "n_object": {"value": 0, "flag": "i", "description": "N struct object"},
        "n_vampireobject": {"value": 0, "flag": "i", "description": "N unresurrected objects"},
        "n_objectcore": {"value": 2, "flag": "i", "description": "N struct objectcore"},
        "n_objecthead": {"value": 2, "flag": "i", "description": "N struct objecthead"},
        "n_waitinglist": {"value": 2, "flag": "i", "description": "N struct waitinglist"},
        "n_vbc": {"value": 0, "flag": "i", "description": "N struct vbc"},
        "n_wrk": {"value": 400, "flag": "i", "description": "N worker threads"},
        "n_wrk_create": {"value": 400, "flag": "a", "description": "N worker threads created"},
        "n_wrk_failed": {"value": 0, "flag": "a", "description": "N worker threads not created"},
        "n_wrk_max": {"value": 0, "flag": "a", "description": "N worker threads limited"},
        "n_wrk_lqueue": {"value": 0, "flag": "a", "description": "work request queue length"},
        "n_wrk_queued": {"value": 0, "flag": "a", "description": "N queued work requests"},
        "n_wrk_drop": {"value": 0, "flag": "a", "description": "N dropped work requests"},
        "n_backend": {"value": 2, "flag": "i", "description": "N backends"},
        "n_expired": {"value": 0, "flag": "i", "description": "N expired objects"},
        "n_lru_nuked": {"value": 0, "flag": "i", "description": "N LRU nuked objects"},
        "n_lru_moved": {"value": 0, "flag": "i", "description": "N LRU moved objects"},
        "losthdr": {"value": 0, "flag": "a", "description": "HTTP header overflows"},
        "n_objsendfile": {"value": 0, "flag": "a", "description": "Objects sent with sendfile"},
        "n_objwrite": {"value": 2, "flag": "a", "description": "Objects sent with write"},
        "n_objoverflow": {"value": 0, "flag": "a", "description": "Objects overflowing workspace"},
        "s_sess": {"value": 2, "flag": "a", "description": "Total Sessions"},
        "s_req": {"value": 2, "flag": "a", "description": "Total Requests"},
        "s_pipe": {"value": 0, "flag": "a", "description": "Total pipe"},
        "s_pass": {"value": 0, "flag": "a", "description": "Total pass"},
        "s_fetch": {"value": 0, "flag": "a", "description": "Total fetch"},
        "s_hdrbytes": {"value": 498, "flag": "a", "description": "Total header bytes"},
        "s_bodybytes": {"value": 38, "flag": "a", "description": "Total body bytes"},
        "sess_closed": {"value": 2, "flag": "a", "description": "Session Closed"},
        "sess_pipeline": {"value": 0, "flag": "a", "description": "Session Pipeline"},
        "sess_readahead": {"value": 0, "flag": "a", "description": "Session Read Ahead"},
        "sess_linger": {"value": 0, "flag": "a", "description": "Session Linger"},
        "sess_herd": {"value": 0, "flag": "a", "description": "Session herd"},
        "shm_records": {"value": 5821, "flag": "a", "description": "SHM records"},
        "shm_writes": {"value": 5755, "flag": "a", "description": "SHM writes"},
        "shm_flushes": {"value": 0, "flag": "a", "description": "SHM flushes due to overflow"},
        "shm_cont": {"value": 0, "flag": "a", "description": "SHM MTX contention"},
        "shm_cycles": {"value": 0, "flag": "a", "description": "SHM cycles through buffer"},
        "sms_nreq": {"value": 2, "flag": "a", "description": "SMS allocator requests"},
        "sms_nobj": {"value": 0, "flag": "i", "description": "SMS outstanding allocations"},
        "sms_nbytes": {"value": 0, "flag": "i", "description": "SMS outstanding bytes"},
        "sms_balloc": {"value": 38, "flag": "i", "description": "SMS bytes allocated"},
        "sms_bfree": {"value": 38, "flag": "i", "description": "SMS bytes freed"},
        "backend_req": {"value": 0, "flag": "a", "description": "Backend requests made"},
        "n_vcl": {"value": 1, "flag": "a", "description": "N vcl total"},
        "n_vcl_avail": {"value": 1, "flag": "a", "description": "N vcl available"},
        "n_vcl_discard": {"value": 0, "flag": "a", "description": "N vcl discarded"},
        "n_ban": {"value": 1, "flag": "i", "description": "N total active bans"},
        "n_ban_gone": {"value": 1, "flag": "i", "description": "N total gone bans"},
        "n_ban_add": {"value": 1, "flag": "a", "description": "N new bans added"},
        "n_ban_retire": {"value": 0, "flag": "a", "description": "N old bans deleted"},
        "n_ban_obj_test": {"value": 0, "flag": "a", "description": "N objects tested"},
        "n_ban_re_test": {"value": 0, "flag": "a", "description": "N regexps tested against"},
        "n_ban_dups": {"value": 0, "flag": "a", "description": "N duplicate bans removed"},
        "hcb_nolock": {"value": 2, "flag": "a", "description": "HCB Lookups without lock"},
        "hcb_lock": {"value": 2, "flag": "a", "description": "HCB Lookups with lock"},
        "hcb_insert": {"value": 2, "flag": "a", "description": "HCB Inserts"},
        "esi_errors": {"value": 0, "flag": "a", "description": "ESI parse errors (unlock)"},
        "esi_warnings": {"value": 0, "flag": "a", "description": "ESI parse warnings (unlock)"},
        "accept_fail": {"value": 0, "flag": "a", "description": "Accept failures"},
        "client_drop_late": {"value": 0, "flag": "a", "description": "Connection dropped late"},
        "uptime": {"value": 6188, "flag": "a", "description": "Client uptime"},
        "dir_dns_lookups": {"value": 0, "flag": "a", "description": "DNS director lookups"},
        "dir_dns_failed": {"value": 0, "flag": "a", "description": "DNS director failed lookups"},
        "dir_dns_hit": {"value": 0, "flag": "a", "description": "DNS director cached lookups hit"},
        "dir_dns_cache_full": {"value": 0, "flag": "a", "description": "DNS director full dnscache"},
        "vmods": {"value": 0, "flag": "i", "description": "Loaded VMODs"},
        "n_gzip": {"value": 0, "flag": "a", "description": "Gzip operations"},
        "n_gunzip": {"value": 0, "flag": "a", "description": "Gunzip operations"},
        "sess_pipe_overflow": {"value": 0, "flag": "c", "description": "Dropped sessions due to session pipe overflow"},
        "LCK.sms.creat": {"type": "LCK", "ident": "sms", "value": 1, "flag": "a", "description": "Created locks"},
        "LCK.sms.destroy": {"type": "LCK", "ident": "sms", "value": 0, "flag": "a", "description": "Destroyed locks"},
        "LCK.sms.locks": {"type": "LCK", "ident": "sms", "value": 6, "flag": "a", "description": "Lock Operations"},
        "LCK.sms.colls": {"type": "LCK", "ident": "sms", "value": 0, "flag": "a", "description": "Collisions"},
        "LCK.smp.creat": {"type": "LCK", "ident": "smp", "value": 0, "flag": "a", "description": "Created locks"},
        "LCK.smp.destroy": {"type": "LCK", "ident": "smp", "value": 0, "flag": "a", "description": "Destroyed locks"},
        "LCK.smp.locks": {"type": "LCK", "ident": "smp", "value": 0, "flag": "a", "description": "Lock Operations"},
        "LCK.smp.colls": {"type": "LCK", "ident": "smp", "value": 0, "flag": "a", "description": "Collisions"},
        "LCK.sma.creat": {"type": "LCK", "ident": "sma", "value": 2, "flag": "a", "description": "Created locks"},
        "LCK.sma.destroy": {"type": "LCK", "ident": "sma", "value": 0, "flag": "a", "description": "Destroyed locks"},
        "LCK.sma.locks": {"type": "LCK", "ident": "sma", "value": 4, "flag": "a", "description": "Lock Operations"},
        "LCK.sma.colls": {"type": "LCK", "ident": "sma", "value": 0, "flag": "a", "description": "Collisions"},
        "LCK.smf.creat": {"type": "LCK", "ident": "smf", "value": 0, "flag": "a", "description": "Created locks"},
        "LCK.smf.destroy": {"type": "LCK", "ident": "smf", "value": 0, "flag": "a", "description": "Destroyed locks"},
        "LCK.smf.locks": {"type": "LCK", "ident": "smf", "value": 0, "flag": "a", "description": "Lock Operations"},
        "LCK.smf.colls": {"type": "LCK", "ident": "smf", "value": 0, "flag": "a", "description": "Collisions"},
        "LCK.hsl.creat": {"type": "LCK", "ident": "hsl", "value": 0, "flag": "a", "description": "Created locks"},
        "LCK.hsl.destroy": {"type": "LCK", "ident": "hsl", "value": 0, "flag": "a", "description": "Destroyed locks"},
        "LCK.hsl.locks": {"type": "LCK", "ident": "hsl", "value": 0, "flag": "a", "description": "Lock Operations"},
        "LCK.hsl.colls": {"type": "LCK", "ident": "hsl", "value": 0, "flag": "a", "description": "Collisions"},
        "LCK.hcb.creat": {"type": "LCK", "ident": "hcb", "value": 1, "flag": "a", "description": "Created locks"},
        "LCK.hcb.destroy": {"type": "LCK", "ident": "hcb", "value": 0, "flag": "a", "description": "Destroyed locks"},
        "LCK.hcb.locks": {"type": "LCK", "ident": "hcb", "value": 39, "flag": "a", "description": "Lock Operations"},
        "LCK.hcb.colls": {"type": "LCK", "ident": "hcb", "value": 0, "flag": "a", "description": "Collisions"},
        "LCK.hcl.creat": {"type": "LCK", "ident": "hcl", "value": 0, "flag": "a", "description": "Created locks"},
        "LCK.hcl.destroy": {"type": "LCK", "ident": "hcl", "value": 0, "flag": "a", "description": "Destroyed locks"},
        "LCK.hcl.locks": {"type": "LCK", "ident": "hcl", "value": 0, "flag": "a", "description": "Lock Operations"},
        "LCK.hcl.colls": {"type": "LCK", "ident": "hcl", "value": 0, "flag": "a", "description": "Collisions"},
        "LCK.vcl.creat": {"type": "LCK", "ident": "vcl", "value": 1, "flag": "a", "description": "Created locks"},
        "LCK.vcl.destroy": {"type": "LCK", "ident": "vcl", "value": 0, "flag": "a", "description": "Destroyed locks"},
        "LCK.vcl.locks": {"type": "LCK", "ident": "vcl", "value": 4, "flag": "a", "description": "Lock Operations"},
        "LCK.vcl.colls": {"type": "LCK", "ident": "vcl", "value": 0, "flag": "a", "description": "Collisions"},
        "LCK.stat.creat": {"type": "LCK", "ident": "stat", "value": 1, "flag": "a", "description": "Created locks"},
        "LCK.stat.destroy": {"type": "LCK", "ident": "stat", "value": 0, "flag": "a", "description": "Destroyed locks"},
        "LCK.stat.locks": {"type": "LCK", "ident": "stat", "value": 7, "flag": "a", "description": "Lock Operations"},
        "LCK.stat.colls": {"type": "LCK", "ident": "stat", "value": 0, "flag": "a", "description": "Collisions"},
        "LCK.sessmem.creat": {"type": "LCK", "ident": "sessmem", "value": 1, "flag": "a", "description": "Created locks"},
        "LCK.sessmem.destroy": {"type": "LCK", "ident": "sessmem", "value": 0, "flag": "a", "description": "Destroyed locks"},
        "LCK.sessmem.locks": {"type": "LCK", "ident": "sessmem", "value": 6, "flag": "a", "description": "Lock Operations"},
        "LCK.sessmem.colls": {"type": "LCK", "ident": "sessmem", "value": 0, "flag": "a", "description": "Collisions"},
        "LCK.wstat.creat": {"type": "LCK", "ident": "wstat", "value": 1, "flag": "a", "description": "Created locks"},
        "LCK.wstat.destroy": {"type": "LCK", "ident": "wstat", "value": 0, "flag": "a", "description": "Destroyed locks"},
        "LCK.wstat.locks": {"type": "LCK", "ident": "wstat", "value": 12411, "flag": "a", "description": "Lock Operations"},
        "LCK.wstat.colls": {"type": "LCK", "ident": "wstat", "value": 0, "flag": "a", "description": "Collisions"},
        "LCK.herder.creat": {"type": "LCK", "ident": "herder", "value": 1, "flag": "a", "description": "Created locks"},
        "LCK.herder.destroy": {"type": "LCK", "ident": "herder", "value": 0, "flag": "a", "description": "Destroyed locks"},
        "LCK.herder.locks": {"type": "LCK", "ident": "herder", "value": 1, "flag": "a", "description": "Lock Operations"},
        "LCK.herder.colls": {"type": "LCK", "ident": "herder", "value": 0, "flag": "a", "description": "Collisions"},
        "LCK.wq.creat": {"type": "LCK", "ident": "wq", "value": 4, "flag": "a", "description": "Created locks"},
        "LCK.wq.destroy": {"type": "LCK", "ident": "wq", "value": 0, "flag": "a", "description": "Destroyed locks"},
        "LCK.wq.locks": {"type": "LCK", "ident": "wq", "value": 25156, "flag": "a", "description": "Lock Operations"},
        "LCK.wq.colls": {"type": "LCK", "ident": "wq", "value": 0, "flag": "a", "description": "Collisions"},
        "LCK.objhdr.creat": {"type": "LCK", "ident": "objhdr", "value": 4, "flag": "a", "description": "Created locks"},
        "LCK.objhdr.destroy": {"type": "LCK", "ident": "objhdr", "value": 2, "flag": "a", "description": "Destroyed locks"},
        "LCK.objhdr.locks": {"type": "LCK", "ident": "objhdr", "value": 6, "flag": "a", "description": "Lock Operations"},
        "LCK.objhdr.colls": {"type": "LCK", "ident": "objhdr", "value": 0, "flag": "a", "description": "Collisions"},
        "LCK.exp.creat": {"type": "LCK", "ident": "exp", "value": 1, "flag": "a", "description": "Created locks"},
        "LCK.exp.destroy": {"type": "LCK", "ident": "exp", "value": 0, "flag": "a", "description": "Destroyed locks"},
        "LCK.exp.locks": {"type": "LCK", "ident": "exp", "value": 6187, "flag": "a", "description": "Lock Operations"},
        "LCK.exp.colls": {"type": "LCK", "ident": "exp", "value": 0, "flag": "a", "description": "Collisions"},
        "LCK.lru.creat": {"type": "LCK", "ident": "lru", "value": 2, "flag": "a", "description": "Created locks"},
        "LCK.lru.destroy": {"type": "LCK", "ident": "lru", "value": 0, "flag": "a", "description": "Destroyed locks"},
        "LCK.lru.locks": {"type": "LCK", "ident": "lru", "value": 0, "flag": "a", "description": "Lock Operations"},
        "LCK.lru.colls": {"type": "LCK", "ident": "lru", "value": 0, "flag": "a", "description": "Collisions"},
        "LCK.cli.creat": {"type": "LCK", "ident": "cli", "value": 1, "flag": "a", "description": "Created locks"},
        "LCK.cli.destroy": {"type": "LCK", "ident": "cli", "value": 0, "flag": "a", "description": "Destroyed locks"},
        "LCK.cli.locks": {"type": "LCK", "ident": "cli", "value": 2075, "flag": "a", "description": "Lock Operations"},
        "LCK.cli.colls": {"type": "LCK", "ident": "cli", "value": 0, "flag": "a", "description": "Collisions"},
        "LCK.ban.creat": {"type": "LCK", "ident": "ban", "value": 1, "flag": "a", "description": "Created locks"},
        "LCK.ban.destroy": {"type": "LCK", "ident": "ban", "value": 0, "flag": "a", "description": "Destroyed locks"},
        "LCK.ban.locks": {"type": "LCK", "ident": "ban", "value": 6189, "flag": "a", "description": "Lock Operations"},
        "LCK.ban.colls": {"type": "LCK", "ident": "ban", "value": 0, "flag": "a", "description": "Collisions"},
        "LCK.vbp.creat": {"type": "LCK", "ident": "vbp", "value": 1, "flag": "a", "description": "Created locks"},
        "LCK.vbp.destroy": {"type": "LCK", "ident": "vbp", "value": 0, "flag": "a", "description": "Destroyed locks"},
        "LCK.vbp.locks": {"type": "LCK", "ident": "vbp", "value": 1217, "flag": "a", "description": "Lock Operations"},
        "LCK.vbp.colls": {"type": "LCK", "ident": "vbp", "value": 0, "flag": "a", "description": "Collisions"},
        "LCK.vbe.creat": {"type": "LCK", "ident": "vbe", "value": 1, "flag": "a", "description": "Created locks"},
        "LCK.vbe.destroy": {"type": "LCK", "ident": "vbe", "value": 0, "flag": "a", "description": "Destroyed locks"},
        "LCK.vbe.locks": {"type": "LCK", "ident": "vbe", "value": 0, "flag": "a", "description": "Lock Operations"},
        "LCK.vbe.colls": {"type": "LCK", "ident": "vbe", "value": 0, "flag": "a", "description": "Collisions"},
        "LCK.backend.creat": {"type": "LCK", "ident": "backend", "value": 2, "flag": "a", "description": "Created locks"},
        "LCK.backend.destroy": {"type": "LCK", "ident": "backend", "value": 0, "flag": "a", "description": "Destroyed locks"},
        "LCK.backend.locks": {"type": "LCK", "ident": "backend", "value": 0, "flag": "a", "description": "Lock Operations"},
        "LCK.backend.colls": {"type": "LCK", "ident": "backend", "value": 0, "flag": "a", "description": "Collisions"},
        "SMA.s0.c_req": {"type": "SMA", "ident": "s0", "value": 2, "flag": "a", "description": "Allocator requests"},
        "SMA.s0.c_fail": {"type": "SMA", "ident": "s0", "value": 0, "flag": "a", "description": "Allocator failures"},
        "SMA.s0.c_bytes": {"type": "SMA", "ident": "s0", "value": 68224, "flag": "a", "description": "Bytes allocated"},
        "SMA.s0.c_freed": {"type": "SMA", "ident": "s0", "value": 68224, "flag": "a", "description": "Bytes freed"},
        "SMA.s0.g_alloc": {"type": "SMA", "ident": "s0", "value": 0, "flag": "i", "description": "Allocations outstanding"},
        "SMA.s0.g_bytes": {"type": "SMA", "ident": "s0", "value": 0, "flag": "i", "description": "Bytes outstanding"},
        "SMA.s0.g_space": {"type": "SMA", "ident": "s0", "value": 2147483648, "flag": "i", "description": "Bytes available"},
        "SMA.Transient.c_req": {"type": "SMA", "ident": "Transient", "value": 0, "flag": "a", "description": "Allocator requests"},
        "SMA.Transient.c_fail": {"type": "SMA", "ident": "Transient", "value": 0, "flag": "a", "description": "Allocator failures"},
        "SMA.Transient.c_bytes": {"type": "SMA", "ident": "Transient", "value": 0, "flag": "a", "description": "Bytes allocated"},
        "SMA.Transient.c_freed": {"type": "SMA", "ident": "Transient", "value": 0, "flag": "a", "description": "Bytes freed"},
        "SMA.Transient.g_alloc": {"type": "SMA", "ident": "Transient", "value": 0, "flag": "i", "description": "Allocations outstanding"},
        "SMA.Transient.g_bytes": {"type": "SMA", "ident": "Transient", "value": 0, "flag": "i", "description": "Bytes outstanding"},
        "SMA.Transient.g_space": {"type": "SMA", "ident": "Transient", "value": 0, "flag": "i", "description": "Bytes available"},
        "VBE.default(127.0.0.1,,80).vcls": {"type": "VBE", "ident": "default(127.0.0.1,,80)", "value": 1, "flag": "i", "description": "VCL references"},
        "VBE.default(127.0.0.1,,80).happy": {"type": "VBE", "ident": "default(127.0.0.1,,80)", "value": 0, "flag": "b", "description": "Happy health probes"},
        "VBE.media_backend_01(10.174.24.66,,80).vcls": {"type": "VBE", "ident": "media_backend_01(10.174.24.66,,80)", "value": 1, "flag": "i", "description": "VCL references"},
        "VBE.media_backend_01(10.174.24.66,,80).happy": {"type": "VBE", "ident": "media_backend_01(10.174.24.66,,80)", "value": 0, "flag": "b", "description": "Happy health probes"}
}
thatsk commented 5 years ago
rpm -qa | grep varnish
varnish-libs-3.0.7-1.el7.centos.x86_64
varnish-3.0.7-1.el7.centos.x86_64
thatsk commented 5 years ago

@Sims24 anything more information you need?

Sims24 commented 5 years ago

Could you test with the last version please.

Threshold are described in plugin help :

=item B<--warning-*>
Warning Threshold for:
conn      => Backend conn. success,
unhealthy => Backend conn. not attempted,
busy      => Backend conn. too many,
fail      => Backend conn. failures,
reuse     => Backend conn. reuses,
toolate   => Backend conn. was closed,
recycle   => Backend conn. recycles,
retry     => Backend conn. retry,
request   => Backend requests made
=item B<--critical-*>
Critical Threshold for:
conn      => Backend conn. success,
unhealthy => Backend conn. not attempted,
busy      => Backend conn. too many,
fail      => Backend conn. failures,
reuse     => Backend conn. reuses,
toolate   => Backend conn. was closed,
recycle   => Backend conn. recycles,
retry     => Backend conn. retry,
request   => Backend requests made

As a side note, some counters are only available with Varnish 4.

thatsk commented 5 years ago

ok checking

thatsk commented 5 years ago
 perl /usr/lib64/nagios/plugins/centreon-plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=backend --hostname=test --remote --ssh-option='-l=root' --warning-unhealthy=0 --critical-unhealthy=0

OK: Backend con: 0.00/s, Backend unhealthy: 0.00/s, Backend busy: 0.00/s, Backend fail: 0.00/s, Backend reuse: 0.00/s, Backend recycle: 0.00/s, Backend retry: 0.00/s, Backend recycle: 0.00/s, Backend requests: 0.00/s | 'backend_conn'=0.00;;;0; 'backend_unhealthy'=0.00;0:0;0:0;0; 'backend_busy'=0.00;;;0; 'backend_fail'=0.00;;;0; 'backend_reuse'=0.00;;;0; 'backend_recycle'=0.00;;;0; 'backend_retry'=0.00;;;0; 'backend_recycle'=0.00;;;0; 'backend_req'=0.00;;;0;
thatsk commented 5 years ago

is this correct way to add warning or critical --warning-unhealthy=4 --critical-unhealthy=5 ?

thatsk commented 5 years ago

@Sims24

Sims24 commented 5 years ago

Yes it is

vkvk783 commented 5 years ago

below command is not working in varnish 3.0 root@X.X.X.X: ~# perl /usr/lib64/nagios/plugins/centreon_plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=sessions it gives below output : OK:

Varnish RPM : root@X.X.X.X: ~# rpm -qa | grep varnish varnish-libs-3.0.4-1.el6.x86_64 varnish-3.0.4-1.el6.x86_64

~# /usr/bin/varnishstat -1 -j 2>&1 { "timestamp": "2019-05-09T13:31:18", "client_conn": {"value": 575116, "flag": "a", "description": "Client connections accepted"}, "client_drop": {"value": 0, "flag": "a", "description": "Connection dropped, no sess/wrk"}, "client_req": {"value": 575123, "flag": "a", "description": "Client requests received"}, "cache_hit": {"value": 52721, "flag": "a", "description": "Cache hits"}, "cache_hitpass": {"value": 0, "flag": "a", "description": "Cache hits for pass"}, "cache_miss": {"value": 55118, "flag": "a", "description": "Cache misses"}, "backend_conn": {"value": 518, "flag": "a", "description": "Backend conn. success"}, "backend_unhealthy": {"value": 0, "flag": "a", "description": "Backend conn. not attempted"}, "backend_busy": {"value": 0, "flag": "a", "description": "Backend conn. too many"}, "backend_fail": {"value": 0, "flag": "a", "description": "Backend conn. failures"}, "backend_reuse": {"value": 503912, "flag": "a", "description": "Backend conn. reuses"}, "backend_toolate": {"value": 17, "flag": "a", "description": "Backend conn. was closed"}, "backend_recycle": {"value": 503930, "flag": "a", "description": "Backend conn. recycles"}, "backend_retry": {"value": 0, "flag": "a", "description": "Backend conn. retry"}, "fetch_head": {"value": 0, "flag": "a", "description": "Fetch head"}, "fetch_length": {"value": 504429, "flag": "a", "description": "Fetch with Length"}, "fetch_chunked": {"value": 0, "flag": "a", "description": "Fetch chunked"}, "fetch_eof": {"value": 0, "flag": "a", "description": "Fetch EOF"}, "fetch_bad": {"value": 0, "flag": "a", "description": "Fetch had bad headers"}, "fetch_close": {"value": 0, "flag": "a", "description": "Fetch wanted close"}, "fetch_oldhttp": {"value": 0, "flag": "a", "description": "Fetch pre HTTP/1.1 closed"}, "fetch_zero": {"value": 0, "flag": "a", "description": "Fetch zero len"}, "fetch_failed": {"value": 0, "flag": "a", "description": "Fetch failed"}, "fetch_1xx": {"value": 0, "flag": "a", "description": "Fetch no body (1xx)"}, "fetch_204": {"value": 1, "flag": "a", "description": "Fetch no body (204)"}, "fetch_304": {"value": 0, "flag": "a", "description": "Fetch no body (304)"}, "n_sess_mem": {"value": 13, "flag": "i", "description": "N struct sess_mem"}, "n_sess": {"value": 0, "flag": "i", "description": "N struct sess"}, "n_object": {"value": 1, "flag": "i", "description": "N struct object"}, "n_vampireobject": {"value": 0, "flag": "i", "description": "N unresurrected objects"}, "n_objectcore": {"value": 5, "flag": "i", "description": "N struct objectcore"}, "n_objecthead": {"value": 7, "flag": "i", "description": "N struct objecthead"}, "n_waitinglist": {"value": 6, "flag": "i", "description": "N struct waitinglist"}, "n_vbc": {"value": 1, "flag": "i", "description": "N struct vbc"}, "n_wrk": {"value": 400, "flag": "i", "description": "N worker threads"}, "n_wrk_create": {"value": 400, "flag": "a", "description": "N worker threads created"}, "n_wrk_failed": {"value": 0, "flag": "a", "description": "N worker threads not created"}, "n_wrk_max": {"value": 0, "flag": "a", "description": "N worker threads limited"}, "n_wrk_lqueue": {"value": 0, "flag": "a", "description": "work request queue length"}, "n_wrk_queued": {"value": 0, "flag": "a", "description": "N queued work requests"}, "n_wrk_drop": {"value": 0, "flag": "a", "description": "N dropped work requests"}, "n_backend": {"value": 21, "flag": "i", "description": "N backends"}, "n_expired": {"value": 55117, "flag": "i", "description": "N expired objects"}, "n_lru_nuked": {"value": 0, "flag": "i", "description": "N LRU nuked objects"}, "n_lru_moved": {"value": 52721, "flag": "i", "description": "N LRU moved objects"}, "losthdr": {"value": 0, "flag": "a", "description": "HTTP header overflows"}, "n_objsendfile": {"value": 0, "flag": "a", "description": "Objects sent with sendfile"}, "n_objwrite": {"value": 575122, "flag": "a", "description": "Objects sent with write"}, "n_objoverflow": {"value": 0, "flag": "a", "description": "Objects overflowing workspace"}, "s_sess": {"value": 575117, "flag": "a", "description": "Total Sessions"}, "s_req": {"value": 575123, "flag": "a", "description": "Total Requests"}, "s_pipe": {"value": 0, "flag": "a", "description": "Total pipe"}, "s_pass": {"value": 449312, "flag": "a", "description": "Total pass"}, "s_fetch": {"value": 504430, "flag": "a", "description": "Total fetch"}, "s_hdrbytes": {"value": 200932279, "flag": "a", "description": "Total header bytes"}, "s_bodybytes": {"value": 36200251, "flag": "a", "description": "Total body bytes"}, "sess_closed": {"value": 467276, "flag": "a", "description": "Session Closed"}, "sess_pipeline": {"value": 0, "flag": "a", "description": "Session Pipeline"}, "sess_readahead": {"value": 0, "flag": "a", "description": "Session Read Ahead"}, "sess_linger": {"value": 107849, "flag": "a", "description": "Session Linger"}, "sess_herd": {"value": 107846, "flag": "a", "description": "Session herd"}, "shm_records": {"value": 39048659, "flag": "a", "description": "SHM records"}, "shm_writes": {"value": 3533570, "flag": "a", "description": "SHM writes"}, "shm_flushes": {"value": 0, "flag": "a", "description": "SHM flushes due to overflow"}, "shm_cont": {"value": 12, "flag": "a", "description": "SHM MTX contention"}, "shm_cycles": {"value": 13, "flag": "a", "description": "SHM cycles through buffer"}, "sms_nreq": {"value": 17972, "flag": "a", "description": "SMS allocator requests"}, "sms_nobj": {"value": 0, "flag": "i", "description": "SMS outstanding allocations"}, "sms_nbytes": {"value": 0, "flag": "i", "description": "SMS outstanding bytes"}, "sms_balloc": {"value": 503216, "flag": "i", "description": "SMS bytes allocated"}, "sms_bfree": {"value": 503216, "flag": "i", "description": "SMS bytes freed"}, "backend_req": {"value": 504430, "flag": "a", "description": "Backend requests made"}, "n_vcl": {"value": 34, "flag": "a", "description": "N vcl total"}, "n_vcl_avail": {"value": 34, "flag": "a", "description": "N vcl available"}, "n_vcl_discard": {"value": 0, "flag": "a", "description": "N vcl discarded"}, "n_ban": {"value": 1, "flag": "i", "description": "N total active bans"}, "n_ban_gone": {"value": 1, "flag": "i", "description": "N total gone bans"}, "n_ban_add": {"value": 1, "flag": "a", "description": "N new bans added"}, "n_ban_retire": {"value": 0, "flag": "a", "description": "N old bans deleted"}, "n_ban_obj_test": {"value": 0, "flag": "a", "description": "N objects tested"}, "n_ban_re_test": {"value": 0, "flag": "a", "description": "N regexps tested against"}, "n_ban_dups": {"value": 0, "flag": "a", "description": "N duplicate bans removed"}, "hcb_nolock": {"value": 107839, "flag": "a", "description": "HCB Lookups without lock"}, "hcb_lock": {"value": 13, "flag": "a", "description": "HCB Lookups with lock"}, "hcb_insert": {"value": 13, "flag": "a", "description": "HCB Inserts"}, "esi_errors": {"value": 0, &qu...

Working Fine in varnish 6.0

root@X.X.X.X: /usr/lib64/nagios/plugins# perl /usr/lib64/nagios/plugins/centreon-plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=sessions OK: Session accepted: 0.00/s, Session dropped: 0.00/s, Session fail: 0.00/s, Session queued: 0.00/s, Session dropped: 0.00/s, Session readahead: 0.00/s, Session closed: 0.00/s, Session herd: 0.00/s | 'sess_conn'=0.00;;;0; 'sess_drop'=0.00;;;0; 'sess_fail'=0.00;;;0; 'sess_queued'=0.00;;;0; 'sess_dropped'=0.00;;;0; 'sess_readahead'=0.00;;;0; 'sess_closed'=0.00;;;0; 'sess_herd'=0.00;;;0;

vkvk783 commented 5 years ago

below modes are not working in varnsih 3.0 version

'connections'       => 'apps::varnish::local::mode::connections',
                    'clients'           => 'apps::varnish::local::mode::clients',
                    'cache'             => 'apps::varnish::local::mode::cache',
                    'sessions'          => 'apps::varnish::local::mode::sessions',
                    'fetch'             => 'apps::varnish::local::mode::fetch',
                    'workers'           => 'apps::varnish::local::mode::workers',
                    'totals'            => 'apps::varnish::local::mode::totals',
                    'objects'           => 'apps::varnish::local::mode::objects',
                    'uptime'            => 'apps::varnish::local::mode::uptime',
                    'bans'              => 'apps::varnish::local::mode::bans',
                    'dns'               => 'apps::varnish::local::mode::dns',
                    'shm'               => 'apps::varnish::local::mode::shm',
                    'vcl'               => 'apps::varnish::local::mode::vcl',
                    'n'                 => 'apps::varnish::local::mode::n',
                    'sms'               => 'apps::varnish::local::mode::sms',
                    'hcb'               => 'apps::varnish::local::mode::hcb',
                    'esi'               => 'apps::varnish::local::mode::esi',
                    'threads'           => 'apps::varnish::local::mode::threads',
vkvk783 commented 5 years ago

It gives below Output : varnish 3

root@X.X.X.X: ~# perl /usr/lib64/nagios/plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=sessions OK: | root@X.X.X.X: ~# perl /usr/lib64/nagios/plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=sessions OK: | root@X.X.X.X: ~# perl /usr/lib64/nagios/plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=threads OK: | root@X.X.X.X: ~# perl /usr/lib64/nagios/plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=sessions OK: | root@X.X.X.X: ~# perl /usr/lib64/nagios/plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=bans OK: Buffer creation... | root@X.X.X.X: ~# perl /usr/lib64/nagios/plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=uptime OK: Buffer creation... | root@X.X.X.X: ~# perl /usr/lib64/nagios/plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=dns OK: Buffer creation... | root@X.X.X.X: ~# perl /usr/lib64/nagios/plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=fetch OK: Buffer creation... | root@X.X.X.X: ~# perl /usr/lib64/nagios/plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=vcl OK: Buffer creation... | root@X.X.X.X: ~# perl /usr/lib64/nagios/plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=cache OK: Cache hit: Buffer creation, Cache hitpass : Buffer creation, Cache miss : Buffer creation | root@X.X.X.X: ~# perl /usr/lib64/nagios/plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=clients OK: | root@X.X.X.X: ~# perl /usr/lib64/nagios/plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=connections OK: Buffer creation... | root@X.X.X.X: ~# perl /usr/lib64/nagios/plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=workers OK: Buffer creation... | root@X.X.X.X: ~# perl /usr/lib64/nagios/plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=totals OK: Buffer creation... | root@X.X.X.X: ~# perl /usr/lib64/nagios/plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=n OK: Buffer creation... | root@X.X.X.X: ~# perl /usr/lib64/nagios/plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=esi OK: Buffer creation... |

vkvk783 commented 5 years ago

output of varnish 6.0 : root@x.x.x.x: /usr/lib64/nagios/plugins# perl /usr/lib64/nagios/plugins/centreon-plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=fetch OK: Buffer creation... | root@x.x.x.x: /usr/lib64/nagios/plugins# perl /usr/lib64/nagios/plugins/centreon-plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=hcb OK: Buffer creation... | root@x.x.x.x: /usr/lib64/nagios/plugins# perl /usr/lib64/nagios/plugins/centreon-plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=workers OK: Buffer creation... | root@x.x.x.x: /usr/lib64/nagios/plugins# perl /usr/lib64/nagios/plugins/centreon-plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=vcl OK: Buffer creation... | root@x.x.x.x: /usr/lib64/nagios/plugins# perl /usr/lib64/nagios/plugins/centreon-plugins/centreon_plugins.pl --plugin=apps::varnish::local::plugin --mode=uptime OK: Buffer creation... |