Ad Widget

Collapse

Changing the macro value doesn't seem to have an effect on the agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aram535
    Junior Member
    • Aug 2021
    • 3

    #1

    Changing the macro value doesn't seem to have an effect on the agent

    I'm new Zabbix, running 5.4.

    Every host I have is getting a lot of duplicate log eateries from the Zabbix agentd:

    34154:20210815:102415.292 active check "vfs.file.contents[/sys/block/cdrom/stat]" is not supported: Cannot open file: [2] No such file or directory
    34154:20210815:102415.293 active check "vfs.file.contents[/sys/block/cdrw/stat]" is not supported: Cannot open file: [2] No such file or directory
    34154:20210815:102415.293 active check "vfs.file.contents[/sys/block/dvd/stat]" is not supported: Cannot open file: [2] No such file or directory

    I tried changing the {$VFS.DEV.DEVNAME.NOT_MATCHES} to include the 3 devices:
    Code:
    ^(loop[0-9]*|sd[a-z][0-9]+|nbd[0-9]+|sr[0-9]+|fd[0-9]+|dm-[0-9]+|ram[0-9]+|cdrom|cdrw|dvd|ploop[a-z0-9]+|md[0-9]*|hcp[0-9]*|zram[0-9]*)
    I tried add that to the Linux by Zabbix agent active template (Template -> Macros). When that didn't work, I tried adding it to the host directly as a Macro value override. I also restarted the agent after each of those changes (in case it needs to pickup configuration from the server).

    Now I'm thinking that this would also stop the alerts, not the agent from scanning? How do I get the agent to stop checking/logging for these?

    Thanks.
Working...