Ad Widget

Collapse

Zabbix 2.2 Simple Checks issue with proxies

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AmonRe
    Junior Member
    • Dec 2015
    • 1

    #1

    Zabbix 2.2 Simple Checks issue with proxies

    Hi all,

    I'm currently fighting an issue with a zabbix 2.2 installation, I need to check if the smtp service is running on some hosts whom are behind a Zabbix proxy, but for some reason I can't get the data into the Zabbix server.

    This is the setup:

    Zabbix Server (2.2) >> Active Zabbix Proxy (2.2) >> Passive Zabbix Agent (2.2)

    It's my understanding that the simple check should be done from the Zabbix Proxy, correct? Running zabbix-get from that machine does get me the expected result, but I see no indications the proxy actually doing the check.

    Also, I see the folowing in my zabbix server logs (debug=4) which seems to indicate the simple checks are running on that machine & not on the proxy:

    22107:20151207:131536.721 In evaluate_function() function:'f2w-appdp6-1-ta:net.tcp.service[smtp,,25].max(#3)'
    22107:20151207:131536.721 In evaluate_MAX()
    22107:20151207:131536.721 In __get_function_parameter_uint31() parameters:'#3' Nparam:1
    22107:20151207:131536.721 In substitute_simple_macros() data:'#3'
    22107:20151207:131536.722 __get_function_parameter_uint31() flag:1 value:3
    22107:20151207:131536.722 End of __get_function_parameter_uint31():SUCCEED
    22107:20151207:131536.722 In zbx_vc_get_value_range() itemid:27847 value_type:3 seconds:0 count:3 timestamp:1449490533
    22107:20151207:131536.722 query [txnlev:1] [select clock,ns,value from history_uint where itemid=27847 and clock<=1449490533 and clock>1449486933 order by clock desc limit 3]
    22107:20151207:131536.723 query [txnlev:1] [select clock,ns,value from history_uint where itemid=27847 and clock=1449490412]
    22107:20151207:131536.723 query [txnlev:1] [select clock,ns,value from history_uint where itemid=27847 and clock>1449490533 and clock<=1449490536]
    22107:20151207:131536.723 End of zbx_vc_get_value_range():SUCCEED count:3 cached:1
    22107:20151207:131536.723 End of evaluate_MAX():SUCCEED
    22107:20151207:131536.724 End of evaluate_function():SUCCEED value:'0'
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hello and welcome to Zabbix forums!

    Your understanding is correct. However please make sure your hosts behind the proxy are actually configured to be monitored by this proxy. Go to Configuration -> Hosts, open the host in question, and check if you have set "Monitored by proxy" to the proxy and that you have the IP of the proxy listed in Server and ServerActive settings on the agent configuration file.

    Hope this helps!

    Best Regards,
    Ingus

    Comment

    Working...