Ad Widget

Collapse

Zabbix Agent Service Monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sleepy
    Junior Member
    • Dec 2016
    • 7

    #1

    Zabbix Agent Service Monitoring

    Hi there,

    I've installed Zabbix 4.0.1 and i've some machines being monitored with the default "Template OS Windows" that has the "Template App Zabbix Agent" included.

    In the "Template App Zabbix Agent" i've added an Item and a Trigger for "Zabbix Agent Service" with the following information:

    Item: Service State of Zabbix Agent service.info["Zabbix Agent"]
    Trigger: Zabbix Agent Service is not Running {Template App Zabbix Agent:service.info["Zabbix Agent"].last(0)}<>0

    I've tried with others settings like {Template App Zabbix Agent:service.info["Zabbix Agent"].last(,0)}=0

    My problem at the moment is that many alerts are showing but with the machines that Zabbix Server can't comunicate or Zabbix Agent has failed doesn't show anything in the Dashboard.

    Can you please help?

    Thanks in advance.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    If you want to check whether the Zabbix agent is up and communicating, check with the item "Agent ping" and the trigger "Zabbix agent on {HOST.NAME} is unreachable for 5 minutes" in the template "Template App Zabbix Agent" I think that I can do it.

    When using service.info ["Zabbix Agent"], since Zabbix agent can not be called unless the Zabbix agent is running in the first place, I think that it is not suitable for checking whether the Zabbix agent is running .

    Comment

    • Sleepy
      Junior Member
      • Dec 2016
      • 7

      #3
      Hey there Atsushi!

      First of all, thanks for your replay.

      I managed to get it working changing trigger to "{Template App Zabbix Agent:service_state["Zabbix Agent"].last(0)}<>0"

      When i stop Zabbix Agent in any machine after a few moments it show in Dashboard like i wanted.

      Every is ok now!

      Thanks

      Comment

      • Sleepy
        Junior Member
        • Dec 2016
        • 7

        #4
        Hi there again,

        Im posting here, because im having again the same problem. And i think is not needed to create a new thread.

        First of all, let me show u my Item and Trigger configs (pics)

        In the Item config, i've already tested in the "Show value" as "Windows Service State" and "As Is".

        I've stoped "Zabbix Agent" service in a Windows Server and in Hosts page i can see that ZBX is red but in Dashboard is not showing anything.

        Can you please help?

        Thanks in advance.
        Attached Files

        Comment


        • Atsushi
          Atsushi commented
          Editing a comment
          If you stop the Zabbix agent, you can not get the value of the item.
          If the value of the item can not be acquired, since the state of the trigger does not change, even if the value of service.info becomes a failure, it can not be judged as a failure.

          It is as I responded first.
      • Sleepy
        Junior Member
        • Dec 2016
        • 7

        #5
        Atsushi,

        First of all, thanks very much once again for your response.

        Don't get me wrong, when i had Zabbix 3.2 installed (with almost 95% of the same configuration), every time i stopped Zabbix Agent Service at some server, after some minutes in Dashboard appeared the Zabbix Agent is not running Trigger.

        Now i've installed 4.0, and nothing is happening.

        Thats why im posting this here.

        Once again, thanks for your help!!

        Cumps.

        Comment

        • Sleepy
          Junior Member
          • Dec 2016
          • 7

          #6
          Hi there ppl,

          No one that can help with this?

          All triggers work except Zabbix Agent.

          Comment

          • ermi
            Junior Member
            • Nov 2018
            • 2

            #7
            Same problem here. When i stop zabbix agent on Windows or Linux host then zabbix server will not alert me. When agent is running then i can receive all the data i need. All other alerts work.
            Zabbix-server 4.0.1
            Agent ver. 4.0
            OS: Centos 7

            EDIT:
            I fired up another zabbix in Docker and compared triggers and found that under Template OS Linux > Triggers i had "Zabbix agent on {HOST.NAME} is unreachable for 5 minutes expression" set to " {Template OS Linux:agent.ping.nodata(5m)}=5"
            I changed that to " {Template OS Linux:agent.ping.nodata(5m)}=1"
            And now, magically even Windows alerts are coming in.
            everything seems to be OK at the moment.
            Last edited by ermi; 14-12-2018, 12:05.

            Comment

            Working...