Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zabbix server not accepting the data from Zabbix sender: info from server: "processed: 0; failed: 28; total: 28; seconds spent: 0.000392" #9

Open
gijs007 opened this issue Aug 23, 2020 · 5 comments

Comments

@gijs007
Copy link

gijs007 commented Aug 23, 2020

I'm executing the script manually with the following commandline arguments:
./zbxApacheStatusCheck --host=99.99.99.99 --zabbixsource="the host name" --zabbixserver=127.0.0.1 -d

Where 99.99.99.99 is the IP of the webserver, and "the host name" is the host name of the machine in Zabbix.

Every time I run the script I get the following error:

zabbix_sender output

Response from "127.0.0.1:10051": "processed: 0; failed: 28; total: 28; seconds spent: 0.000374"
sent: 28; skipped: 0; total: 28

This is the commandline for the sender:
/usr/bin/zabbix_sender -v --zabbix-server 127.0.0.1 --host 'the host name' --port 10051 --input-file /tmp/tmp.PmTQvSti2f

I can see that the metrics which are to be send are Correct. Any idea why the Zabbix server is not accepting this data?

@rodrigoluissilva
Copy link
Owner

the problem could be the wrong host name or the template is not attached the the host

@gijs007
Copy link
Author

gijs007 commented Aug 25, 2020

I've checked both the host name and the item names. They are both correct.

The strange thing is, I had this template working fine on my old Zabbix install (4.0.23).
But I recently created a new install with Zabbix 5.0, which is experiencing this issue. As such I suspect it's an issue on the Zabbix server end (e.g. a configuration error).

@rodrigoluissilva
Copy link
Owner

I'm using Zabbix-5.0.2 and everything is working fine, I exported my template, try this one

Template App Apache Status (for zabbix 5).xml

@gijs007
Copy link
Author

gijs007 commented Aug 25, 2020

I've tried the attached template, but I still get the same error. I doubt it's something with the template or the command line as they were both the same as on my old installation.

I feel like I need to change something in a Zabbix configuration file (e.g. /etc/zabbix/zabbix_server.conf ) to make the trapper/sender work.

@rodrigoluissilva
Copy link
Owner

I don't think so, but for reference, here are my configuration

Server and agent in the same machine.

zabbix_server.conf

LogFile=/var/log/zabbix/zabbix_server.log
LogFileSize=0
PidFile=/var/run/zabbix/zabbix_server.pid
DBHost=mysqldb.....
DBName=zabbix
DBUser=zabbix
DBPassword=**************
StartPollers=10
StartPollersUnreachable=5
StartPingers=10
JavaGateway=localhost
StartJavaPollers=5
Timeout=4
AlertScriptsPath=/usr/lib/zabbix/alertscripts
ExternalScripts=/usr/lib/zabbix/externalscripts
FpingLocation=/usr/bin/fping
Fping6Location=/usr/bin/fping6
LogSlowQueries=3000

zabbix_agentd.conf

PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Server=127.0.0.1
ServerActive=127.0.0.1
Hostname=Zabbix
Include=/etc/zabbix/zabbix_agentd.d/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants