I have created a file that lists out the sizes of a set of folders that contains two columns 1. Bytes and 2. Name. I then created a user parameter to read this file
UserParameter=vfs.projectdir.size[*],cat /etc/zabbix/outfiles/scanprojects.out | grep -iE "(^|\s)$1($|\s)" | awk '{ print $$1}'
When testing from the command line i get the following for 2 examples
sudo zabbix_agentd -t vfs.projectdir.size[cmsindo]
vfs.projectdir.size[cmsindo] [t|5109826095689]
sudo zabbix_agentd -t vfs.projectdir.size[IDS2014]
vfs.projectdir.size[IDS2014] [t|2902771243578]
The item value in zabbix shows the first as 4.65TB
The item value in zabbix for IDS2014 shows as 25.78PB
If I get rid of the "2014" in the name the value shows as
sudo zabbix_agentd -t vfs.projectdir.size[IDS]
vfs.projectdir.size[IDS] [t|2902771243578]
The item value now shows as 2.64TB which is correct.
So somehow if column2 ends in a numeric value it causes an issue with displayed value in the zabbix gui.
Item Values: (problem)
Type: Zabbix agent
key: vfs.projectdir.size[IDS2014]
Type of Information: Numeric(unsigned)
data type: Decimal
Units: B
Item Values: (working) must change outfile to match
Type: Zabbix agent
key: vfs.projectdir.size[IDS]
Type of Information: Numeric(unsigned)
data type: Decimal
Units: B
UserParameter=vfs.projectdir.size[*],cat /etc/zabbix/outfiles/scanprojects.out | grep -iE "(^|\s)$1($|\s)" | awk '{ print $$1}'
When testing from the command line i get the following for 2 examples
sudo zabbix_agentd -t vfs.projectdir.size[cmsindo]
vfs.projectdir.size[cmsindo] [t|5109826095689]
sudo zabbix_agentd -t vfs.projectdir.size[IDS2014]
vfs.projectdir.size[IDS2014] [t|2902771243578]
The item value in zabbix shows the first as 4.65TB
The item value in zabbix for IDS2014 shows as 25.78PB
If I get rid of the "2014" in the name the value shows as
sudo zabbix_agentd -t vfs.projectdir.size[IDS]
vfs.projectdir.size[IDS] [t|2902771243578]
The item value now shows as 2.64TB which is correct.
So somehow if column2 ends in a numeric value it causes an issue with displayed value in the zabbix gui.
Item Values: (problem)
Type: Zabbix agent
key: vfs.projectdir.size[IDS2014]
Type of Information: Numeric(unsigned)
data type: Decimal
Units: B
Item Values: (working) must change outfile to match
Type: Zabbix agent
key: vfs.projectdir.size[IDS]
Type of Information: Numeric(unsigned)
data type: Decimal
Units: B