Ad Widget

Collapse

Can a host have both passive and active agents?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xtonymarsx
    Junior Member
    • Jun 2018
    • 5

    #1

    Can a host have both passive and active agents?

    I just started using zabbix a couple of weeks ago. So I'm quite the novice. I tried to search the boards, but didn't see any similar threads.

    Due to strict bandwidth and data restrictions, I have many of my hosts set up with passive agents, but I also need to do some log monitoring which can only be achieved with active agents (at least that's my understanding). Can a single host use both active and passive agents?

    I verified that the proxy is listening on port 10051. On the agent config, I have left the default port as 10050 (for the passive monitoring), but also exclusively set the ServerActive=<proxyIP>:10051. In the agent log, I see that agent is now starting an active check, but I don't see any connections for 10051 in my netstat.
  • kernbug
    Senior Member
    • Feb 2013
    • 330

    #2
    Hi

    Originally posted by xtonymarsx
    I just started using zabbix a couple of weeks ago. So I'm quite the novice. I tried to search the boards, but didn't see any similar threads.
    You're welcome!

    Originally posted by xtonymarsx
    Due to strict bandwidth and data restrictions, I have many of my hosts set up with passive agents, but I also need to do some log monitoring which can only be achieved with active agents (at least that's my understanding). Can a single host use both active and passive agents?
    One single agent can perform active and passive checks! So, yes, but you don't need to install it twice)
    Take a look here https://www.zabbix.com/documentation...concepts/agent


    Originally posted by xtonymarsx
    I verified that the proxy is listening on port 10051. On the agent config, I have left the default port as 10050 (for the passive monitoring), but also exclusively set the ServerActive=<proxyIP>:10051.
    Correct, 'Server=' for passive checks, 'ServerActive=' for the active checks.
    Originally posted by xtonymarsx
    In the agent log, I see that agent is now starting an active check, but I don't see any connections for 10051 in my netstat.
    Hm, I think you forget to set 'Monitored by proxy' in the web frontend (Administration-Hosts-Host settings-Monitored by proxy). Please, check.


    Comment

    • xtonymarsx
      Junior Member
      • Jun 2018
      • 5

      #3
      Thanks for the reply. Apparently I had it set up correctly. I had to clear the cache on the proxy for some reason before it recognized the new items/triggers that I'd created for the active agents.

      Comment

      • kernbug
        Senior Member
        • Feb 2013
        • 330

        #4
        Originally posted by xtonymarsx
        Thanks for the reply. Apparently I had it set up correctly. I had to clear the cache on the proxy for some reason before it recognized the new items/triggers that I'd created for the active agents.
        Hi,

        You can reload configuration cache by runtime control to apply changes immediately:
        Code:
         sudo zabbix_proxy -R config_cache_reload

        Comment

        Working...