Can someone help me with a proxy setup?
Zabbix Server MySQL 2.2
Zabbix Proxy 2.2
Zabbix Agent 2.2
All under Ubuntu 13.04.
The agent (prodBETA-lb-0) has the Hostname in zabbix_agent.conf set to prodBETA-lb-0. Ditto the entry on the Zabbix server, as verified by doing "select host from hosts where host='prodBETA-lb-0';" against the server's DB.
But the server keeps complaining: 15060:20140227:233847.161 cannot send list of active checks to [10.164.38.249]: host [prodBETA-lb-0] not found
And the Proxy complains on startup: 18455:20140227:234927.846 failed to update local proxy configuration copy: invalid field name "items.snmpv3_authprotocol"
18470:20140227:234927.860 housekeeper deleted 26 records from history (spent 0.002139 seconds)
And then once running: 18389:20140227:234046.739 cannot send list of active checks to [10.164.38.249]: host [prodBETA-lb-0] not found
And the agent complains: 17314:20140227:232446.596 No active checks on server: host [prodBETA-lb-0] not found
So I'm clearly missing __something___. I've read the forums and the dredged every link I can find on the first 4 pages of results from Google...but no luck so far.
Other details that were asked about on IRC: The proxy is set to active (ProxyMode=0). The host entries on the Zabbix server were created with the following:
The result of the above script is what looks like a good host entry for prodBETA-lb-0 in the Zabbix PHP frontend..
Logs from the proxy with debuglevel set to 4 can be found here: http://pastebin.com/SkBnHMJi
What am I missing? It would be really nice to get this working.
-- JCL
PS zabbix_server.conf:
zabbix_proxy.conf:
zabbix_agent.conf:
Zabbix Server MySQL 2.2
Zabbix Proxy 2.2
Zabbix Agent 2.2
All under Ubuntu 13.04.
The agent (prodBETA-lb-0) has the Hostname in zabbix_agent.conf set to prodBETA-lb-0. Ditto the entry on the Zabbix server, as verified by doing "select host from hosts where host='prodBETA-lb-0';" against the server's DB.
But the server keeps complaining: 15060:20140227:233847.161 cannot send list of active checks to [10.164.38.249]: host [prodBETA-lb-0] not found
And the Proxy complains on startup: 18455:20140227:234927.846 failed to update local proxy configuration copy: invalid field name "items.snmpv3_authprotocol"
18470:20140227:234927.860 housekeeper deleted 26 records from history (spent 0.002139 seconds)
And then once running: 18389:20140227:234046.739 cannot send list of active checks to [10.164.38.249]: host [prodBETA-lb-0] not found
And the agent complains: 17314:20140227:232446.596 No active checks on server: host [prodBETA-lb-0] not found
So I'm clearly missing __something___. I've read the forums and the dredged every link I can find on the first 4 pages of results from Google...but no luck so far.
Other details that were asked about on IRC: The proxy is set to active (ProxyMode=0). The host entries on the Zabbix server were created with the following:
Code:
#! /usr/bin/env python
import json, sys
from pyzabbix import ZabbixAPI
c = dict ()
try:
zapi = ZabbixAPI ("https://monitorboxhere/")
zapi.login ("api", "SuperSekritPasswordHere")
c = zapi.host.create ({
"host": "prodBETA-lb-0",
"interfaces": [
{
"type": 1,
"main": 1,
"useip": 1,
"ip": "10.164.38.249",
"dns": "",
"port": "10050"
},
{
"type": 2,
"main": 1,
"useip": 1,
"ip": "10.164.38.249",
"dns": "",
"port": "161"
}
],
"templates": [
{
"templateid": "10050" # Zabbix agent
},
{
"templateid": "10069" # SNMP Linux
},
{
"templateid": "10102" # SSH
},
{
"templateid": "10095" # HTTPS
},
{
"templateid": "10104" # Ping
},
],
"groups": [{"groupid": "9"}],
"proxy_hostid": "10108",
}
)
change = "yes"
verb = json.dumps (c)
rc = 0
except Exception as e:
c["exception"] = str (e)
change = "no"
verb = json.dumps (c)
rc = 1
print
print "changed=%s comment='%s'" % (change, verb)
sys.exit (rc)
Logs from the proxy with debuglevel set to 4 can be found here: http://pastebin.com/SkBnHMJi
What am I missing? It would be really nice to get this working.
-- JCL
PS zabbix_server.conf:
Code:
LogFile=/var/log/zabbix/zabbix_server.log LogFileSize=0 PidFile=/var/run/zabbix/zabbix_server.pid DBHost=ops-zabbix-db.caio0hscwe7s.us-east-1.rds.amazonaws.com DBName=zabbix DBUser=zabbix DBPassword=SomeSekritHere DBPort=3306 AlertScriptsPath=/usr/lib/zabbix/alertscripts ExternalScripts=/usr/lib/zabbix/externalscripts FpingLocation=/usr/bin/fping Fping6Location=/usr/bin/fping6
Code:
ProxyMode=0 Server=10.168.24.153 Hostname=prodBETA-mon-master LogFile=/var/log/zabbix/zabbix_proxy.log LogFileSize=0 DebugLevel=3 PidFile=/var/run/zabbix/zabbix_proxy.pid DBName=/var/lib/zabbix/zabbix_proxy.db ProxyOfflineBuffer=24 ExternalScripts=/usr/lib/zabbix/externalscripts FpingLocation=/usr/bin/fping Fping6Location=/usr/bin/fping6
Code:
PidFile=/var/run/zabbix/zabbix_agentd.pid LogFile=/var/log/zabbix/zabbix_agentd.log LogFileSize=0 EnableRemoteCommands=1 LogRemoteCommands=1 Server=10.168.24.153,10.185.3.248 # First address is the server, second the proxy ServerActive=10.168.24.153,10.185.3.248 Hostname=prodBETA-lb-0 Include=/etc/zabbix/zabbix_agentd.d/
Comment