Ad Widget

Collapse

Zabbix agent active checks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mr.Pelovski
    Junior Member
    • Aug 2016
    • 17

    #1

    Zabbix agent active checks

    Hello everyone

    I'm new in zabbix and after deep research prefer Zabbix for our monitor system, but now we are facing to the problem where we want to run active agent without "The agent must first retrieve from the server(s) a list of items for independent processing"

    It is possible for agent to know what have to send to the server without retrieve "list of items" ? Somewhere of config file of agent to tell him what we need to send.

    And if is possible how to do it ?

    Thanks a lot Have a nice day.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    If you want to use the Zabbix agent, all monitoring items exists on the Zabbix server database.
    Monitoring item and its result in the Zabbix server side has centralized management.

    It is not possible to place a list of monitoring items by config file in Zabbix agent side.

    When the Zabbix agent is started, the agent connect to server and get list of active items from server.

    Comment

    • andris
      Zabbix developer
      • Feb 2012
      • 228

      #3
      Why an agent requesting a list of items to be checked is undesirable ?
      Even if it was possible to read the list of checks from config file the agent periodically would connect to server to send data.
      If agent connections to server are not acceptable you can use only passive checks (server connects to agent). But some items (e.g. log[], logrt[]) are only available as active checks.

      Comment

      • Mr.Pelovski
        Junior Member
        • Aug 2016
        • 17

        #4
        Originally posted by andris
        Why an agent requesting a list of items to be checked is undesirable ?
        Even if it was possible to read the list of checks from config file the agent periodically would connect to server to send data.
        If agent connections to server are not acceptable you can use only passive checks (server connects to agent). But some items (e.g. log[], logrt[]) are only available as active checks.
        I want to use monitoring over NAT and FireWall then Zabbix server can't reach the agents, because they are behind nat or firewall,but agent can access Zabbix Server.

        Comment

        • andris
          Zabbix developer
          • Feb 2012
          • 228

          #5
          Originally posted by Mr.Pelovski
          ... then Zabbix server can't reach the agents, because they are behind nat or firewall,but agent can access Zabbix Server.
          Zabbix agent can access server - very good, that is enough. Configure ServerActive= parameter in agent config file and agent will regularly retrieve list of items to monitor from server and send collected data to server. See https://www.zabbix.com/documentation...concepts/agent , https://www.zabbix.com/documentation.../zabbix_agentd , https://www.zabbix.com/documentation...#active_checks for more info.

          Comment

          • Mr.Pelovski
            Junior Member
            • Aug 2016
            • 17

            #6
            Originally posted by andris
            Zabbix agent can access server - very good, that is enough. Configure ServerActive= parameter in agent config file and agent will regularly retrieve list of items to monitor from server and send collected data to server. See https://www.zabbix.com/documentation...concepts/agent , https://www.zabbix.com/documentation.../zabbix_agentd , https://www.zabbix.com/documentation...#active_checks for more info.
            Thanks a lot for help.

            Here my config file

            ServerActive=some_IP_adress:10051
            Hostname=some_name - exactly same like on zabbix server configuration
            LogFile=C:\zabbix\zabbix_agentd.log
            DebugLevel=3
            StartAgents=0
            Timeout=10
            RefreshActiveChecks=60

            Works great

            Comment

            Working...