Ad Widget

Collapse

Can't make log[rt].count work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jalawrence@gmail.com
    Junior Member
    • Sep 2016
    • 1

    #1

    Can't make log[rt].count work

    Howdy,

    We are using 3.2, and I cannot get log.count or logrt.count to work.

    I checked all the usual; it is an active check, permissions are correct, the hostname in the config matches server-side config, log and logrt both work correctly (the agent can read the logs).

    I tried setting up a minimal test case;

    log.count[/var/log/test.log,WARN,,,,]

    Which leads to...

    28022:20161110:162205.940 active check "log.count[/var/log/test.log,WARN,,,,]" is not supported: Unsupported item key.

    I've tried quoting the regex and the path with both log and logrt variants (logrt both using an actual regex that would capture rotated files and just the path to a single file). I've also tried a ton of variants, experiments with the other parameters, 'skip' or 'all', etc.

    I'm stumped. Is this just broken?
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Please check that the version of Zabbix agent is newer than 3.2.0.

    Comment

    Working...