[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: | image-2018-12-18-08-38-30-058.png |
Description |
Steps to reproduce:
vfs.file.regexp[/proc/mounts," {#FSNAME} {#FSTYPE} (.+) [0-9] [0-9]",,,,\1]
vfs.file.regexp[/proc/mounts," / ext4 (.+) [0-9] [0-9]",,,,\1]
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:
Expected:
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. |
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. |