Skip to content

Commit

Permalink
Added 'MAIN.n_object_hitmiss' and 'MAIN.n_object_hitpass'
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfb committed May 3, 2023
1 parent 6563976 commit ba34ddc
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- ?:
- Added 'MAIN.n_object_hitmiss' and 'MAIN.n_object_hitpass'.

- 19.0 (2023-04-11):
- Removed support for Zabbix 5.0, 5.2 & 5.4.

Expand Down
30 changes: 30 additions & 0 deletions template-app-varnish-cache.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3235,6 +3235,36 @@
},
],
},
{
'id': 'item-prototype-1.151',
'name': 'MAIN.n_object_hitmiss (object structs made that are hit-for-miss)',
'type': 'DEPENDENT',
'key': 'varnish.stat["{#LOCATION_ID}","MAIN.n_object_hitmiss"]',
'value_type': 'UNSIGNED',
'master_item_key': master,
'preprocessing': [
{
'type': 'JSONPATH',
'params': ['$[\'{#LOCATION_ID}.MAIN.n_object_hitmiss\']'],
'error_handler': 'DISCARD_VALUE',
},
],
},
{
'id': 'item-prototype-1.152',
'name': 'MAIN.n_object_hitpass (object structs made that are hit-for-pass)',
'type': 'DEPENDENT',
'key': 'varnish.stat["{#LOCATION_ID}","MAIN.n_object_hitpass"]',
'value_type': 'UNSIGNED',
'master_item_key': master,
'preprocessing': [
{
'type': 'JSONPATH',
'params': ['$[\'{#LOCATION_ID}.MAIN.n_object_hitpass\']'],
'error_handler': 'DISCARD_VALUE',
},
],
},
],
[
{
Expand Down
2 changes: 2 additions & 0 deletions zabbix-varnish-cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@
r'MAIN\.n_object',
r'MAIN\.n_objecthead',
r'MAIN\.n_objectcore',
r'MAIN\.n_object_hitmiss',
r'MAIN\.n_object_hitpass',
# Objects: removals.
r'MAIN\.n_expired',
r'MAIN\.n_lru_nuked',
Expand Down

0 comments on commit ba34ddc

Please sign in to comment.