[ZBX-15339] vfs.file.regexp not working Created: 2018 Dec 18  Updated: 2018 Dec 18  Resolved: 2018 Dec 18

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: None
Fix Version/s: None

Type: Incident report Priority: Minor
Reporter: Michael P Assignee: Unassigned
Resolution: Won't fix Votes: 0
Labels: agent, items
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 16.04 LTS


Attachments: PNG File image-2018-12-18-08-38-30-058.png    

 Description   

Steps to reproduce:

  1. Create a LLD Item Prototype with thew following Key (Linux only!)
vfs.file.regexp[/proc/mounts," {#FSNAME} {#FSTYPE} (.+) [0-9] [0-9]",,,,\1]
  1. Result looks like this:
vfs.file.regexp[/proc/mounts," / ext4 (.+) [0-9] [0-9]",,,,\1]
  1. This
zabbix_agent -t 'vfs.file.regexp[/proc/mounts," / ext4 (.+) [0-9] [0-9]",,,,\1]'

is working fine! Result:+
+

vfs.file.regexp[/proc/mounts," / ext4 (.+) [0-9] [0-9]",,,,\1]        [s|rw,relatime,errors=remount-ro,data=ordered]

Result:
But Server is not getting any data?


Also no errors in the Log files (neither Server nor Agent)

Expected:

  1. $ zabbix_agentd -t 'vfs.file.regexp[/proc/mounts," / ext4 (.+) [0-9] [0-9]",,,,\1]'
    vfs.file.regexp[/proc/mounts," / ext4 (.+) [0-9] [0-9]",,,,\1] [s|rw,relatime,errors=remount-ro,data=ordered]
  1. $ perl -n -e'/ \/ ext4 (.+) [0-9] [0-9]/ && print $1' /proc/mounts
    rw,relatime,errors=remount-ro,data=ordered

So The agent is allowed to read /proc/mounts, and the Reguilar expression is working as expected /testet with zabbix_agent -t and perl. 

I have no Idea why the output is just empty?



 Comments   
Comment by Michael P [ 2018 Dec 18 ]

Seems to be related to Agent Version 4

I have now found Servers with working Items. They all Have Agent Version 3.4.* installed

But All Machines have no problem when I try the Item on the commandline via zabbix_agent -t

Comment by Arturs Lontons [ 2018 Dec 18 ]

Hello and thank you for reporting the issue.
Have you tried obtaining the values using the "Check now" button under the specific item menu? Are you using a proxy for these specific items? 
Just to double check and confirm - is the agent interface for the problematic hosts enabled and working?

Comment by dimir [ 2018 Dec 18 ]

Go to "Configuration -> Hosts -> (Items)" and check if they are set to NOTSUPPORTED. If yes, you should see the error message at the red cross indicating error.

Comment by Michael P [ 2018 Dec 18 ]

EDIT: STUPID ME!!!

The Item was configured as Passive check, and my setup mostly configured as "Active only" (but only MOSTLY as is figured out...)

Ticket can be closed.... (in shame...)

Comment by Michael P [ 2018 Dec 18 ]

Own fault...

Comment by dimir [ 2018 Dec 18 ]

How often does your server reloads configuration cache (CacheUpdateFrequency=60 in server configuration file)?

How often do your Active agents request active checks (RefreshActiveChecks=120 in agent configuration file)?

Comment by Glebs Ivanovskis [ 2018 Dec 18 ]

To err is human, don't worry!

Comment by dimir [ 2018 Dec 18 ]

No worries, we all learn from our faults.

Generated at Fri Apr 19 08:28:41 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.