Like many before me (judging from Google), I haven't been able to get log monitoring to work. I am new to Zabbix.
I created a host with one item:
Name: test
Type: Zabbix agent (active)
Key: log.count[/tmp/test.log,"error"]
Type info: Numeric (unsigned)
"Latest data" show no data and no value for last check.
Running agent with debug level 4 reports:
... In refresh_active_checks() host:'127.0.0.1' port:10051
... sending [{"request":"active checks","host":"Zabbix server"}]
... before read
... got [{"response":"success","data":[]}]
... In parse_list_of_checks()
... End of parse_list_of_checks():SUCCEED
... End of refresh_active_checks():SUCCEED
According to
comment #12, the "got" line should have some data, and there should be lines mentioning the active checks to do.
The other problem is that in Administration/Queues shows all with 0 items *except* "Zabbix Agent (active)" which has my active check queued for a long time.
What I've checked:
- /tmp/test.log, exists, has content that matches regex, is world readable.
- The item is *not* marked as unsupported on Latest Data page.
- zabbix_agentd.conf:
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
DebugLevel=4
Server=127.0.0.1,10.1.65.222
ServerActive=127.0.0.1
Hostname=Zabbix server [matches name in Hosts page]
Include=/opt/zabbix/etc/zabbix_agentd.conf.d/*.conf [these are empty]
- zabbix_server.conf:
LogFile=/var/log/zabbix/zabbix_server.log
PidFile=/var/run/zabbix/zabbix_server.pid
DBName=zabbix
DBUser=****
DBPassword=****
Timeout=4
AlertScriptsPath=/opt/zabbix/etc/alert.d/
FpingLocation=/usr/bin/fping
LogSlowQueries=3000
Include=/opt/zabbix/etc/zabbix_server.conf.d/*.conf
- Server log does not seem to have anything that looked relevant.
- Both server and agent have been restarted multiple times.
- Zabbix 3.4 on Ubuntu-18.04.
I'm sure I'm overlooking something simple but I've read the manual until my eyes hurt and after spending most of the day on this figure it's time to ask....
I created a host with one item:
Name: test
Type: Zabbix agent (active)
Key: log.count[/tmp/test.log,"error"]
Type info: Numeric (unsigned)
"Latest data" show no data and no value for last check.
Running agent with debug level 4 reports:
... In refresh_active_checks() host:'127.0.0.1' port:10051
... sending [{"request":"active checks","host":"Zabbix server"}]
... before read
... got [{"response":"success","data":[]}]
... In parse_list_of_checks()
... End of parse_list_of_checks():SUCCEED
... End of refresh_active_checks():SUCCEED
According to
comment #12, the "got" line should have some data, and there should be lines mentioning the active checks to do.
The other problem is that in Administration/Queues shows all with 0 items *except* "Zabbix Agent (active)" which has my active check queued for a long time.
What I've checked:
- /tmp/test.log, exists, has content that matches regex, is world readable.
- The item is *not* marked as unsupported on Latest Data page.
- zabbix_agentd.conf:
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
DebugLevel=4
Server=127.0.0.1,10.1.65.222
ServerActive=127.0.0.1
Hostname=Zabbix server [matches name in Hosts page]
Include=/opt/zabbix/etc/zabbix_agentd.conf.d/*.conf [these are empty]
- zabbix_server.conf:
LogFile=/var/log/zabbix/zabbix_server.log
PidFile=/var/run/zabbix/zabbix_server.pid
DBName=zabbix
DBUser=****
DBPassword=****
Timeout=4
AlertScriptsPath=/opt/zabbix/etc/alert.d/
FpingLocation=/usr/bin/fping
LogSlowQueries=3000
Include=/opt/zabbix/etc/zabbix_server.conf.d/*.conf
- Server log does not seem to have anything that looked relevant.
- Both server and agent have been restarted multiple times.
- Zabbix 3.4 on Ubuntu-18.04.
I'm sure I'm overlooking something simple but I've read the manual until my eyes hurt and after spending most of the day on this figure it's time to ask....