samwiseg0 / zabbix

Collection of zabbix templates
GNU General Public License v3.0
31 stars 29 forks source link

Unbound memory not working #5

Closed AdmiraalA closed 6 years ago

AdmiraalA commented 6 years ago

Memory total gives me : value "" of type "string" is not suitable for value type "Numeric (float)"

samwiseg0 commented 6 years ago

What is the output of sudo /usr/sbin/unbound-control stats_noreset | grep mem.total?

The error indicates it is not getting back an integer like it should.

example:

sudo /usr/sbin/unbound-control stats_noreset | grep mem.total
mem.total.sbrk=339214336
AdmiraalA commented 6 years ago

sudo /usr/sbin/unbound-control stats_noreset | grep mem.total gives me nothing back , while i do see other stats displayed

Just sudo /usr/sbin/unbound-control stats_noreset gives : hread0.num.queries=416500 thread0.num.queries_ip_ratelimited=0 thread0.num.cachehits=412636 thread0.num.cachemiss=3864 thread0.num.prefetch=7714 thread0.num.zero_ttl=0 thread0.num.recursivereplies=3864 thread0.requestlist.avg=0.995422 thread0.requestlist.max=17 thread0.requestlist.overwritten=0 thread0.requestlist.exceeded=0 thread0.requestlist.current.all=0 (and more output)

samwiseg0 commented 6 years ago

For some reason your unbound-control does not have memory stats that is why it does not show in zabbix. I suggest you disable the check.

samwiseg0 commented 6 years ago

Closing as this is not an issue with the template but with the version on unbound-control that you are running