Ad Widget

Collapse

item for checking zabbix connection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kopspa
    Junior Member
    • Apr 2006
    • 19

    #1

    item for checking zabbix connection

    hi,
    how i can make an item that
    report the seconds from the last connection from zabbix_agentd to zabbix_server (active check)

    and then a trigger if seconds > 120

    many thanks!
  • erisan500
    Senior Member
    Zabbix Certified Specialist
    • Aug 2005
    • 285

    #2
    Can you explain a bit more what you are trying to do?
    EriSan
    Zabbix Certified Specialist

    Comment

    • kopspa
      Junior Member
      • Apr 2006
      • 19

      #3
      i want to check if a remote zabbix_agentd is connected to my zabbix_server

      i use only active checks (because all my monitored machines are behind a firewall/nat) so i can't connect to the monitored zabbix_agentd port!

      i hope that you understand it now

      Comment

      • just2blue4u
        Senior Member
        • Apr 2006
        • 347

        #4
        Perhaps you can do this with item "agent.ping" ...
        (see http://www.zabbix.com/manual/v1.1/config_items.php for more information)
        Big ZABBIX is watching you!
        (... and my 48 hosts, 4513 items, 1280 triggers via zabbix v1.6 on CentOS 5.0)

        Comment

        • kopspa
          Junior Member
          • Apr 2006
          • 19

          #5
          can't be pinged... we have very strict policies for the firewalls

          i need to determine if a remote zabbix_agentd is connected to my zabbix_server (via a tcp check or any other trick)

          Comment

          • erisan500
            Senior Member
            Zabbix Certified Specialist
            • Aug 2005
            • 285

            #6
            Why don't you just use "status" and alert when status changed to 1?
            EriSan
            Zabbix Certified Specialist

            Comment

            • kopspa
              Junior Member
              • Apr 2006
              • 19

              #7
              doesn't return anything (tried as simple check, zabbix agent and zabbix agent active)
              it shows

              Status | - | - | - | Graph (in Overview -> Latest Data)

              i think that it must return 0 or 1, no?

              Comment

              • erisan500
                Senior Member
                Zabbix Certified Specialist
                • Aug 2005
                • 285

                #8
                What version are you using?

                Status used to work in beta9 but seems to be broken in beta10 :/
                EriSan
                Zabbix Certified Specialist

                Comment

                • kopspa
                  Junior Member
                  • Apr 2006
                  • 19

                  #9
                  server side beta9
                  client side beta9 and 10
                  but returns nothing on all hosts (b9 and b10)

                  Comment

                  • kopspa
                    Junior Member
                    • Apr 2006
                    • 19

                    #10
                    otherwise can i make a check like this?

                    if zabbix_server doesn't receive data from a zabbix_agentd for 5 minutes (or if the time of the last check is more then 5 minutes), than launch the trigger (and then the action)

                    anyone can help me??? my setup is almost complete (basic checks, as if process slapd,mysqld, ecc are running ecc), but i don't know how to make the item and the trigger for this condition (i can't find something useful in the docs)!
                    Last edited by kopspa; 19-05-2006, 16:13.

                    Comment

                    • Alexei
                      Founder, CEO
                      Zabbix Certified Trainer
                      Zabbix Certified SpecialistZabbix Certified Professional
                      • Sep 2004
                      • 5654

                      #11
                      Function nodata(<sec>) will return 1 of no data were received for an item.
                      Alexei Vladishev
                      Creator of Zabbix, Product manager
                      New York | Tokyo | Riga
                      My Twitter

                      Comment

                      • kopspa
                        Junior Member
                        • Apr 2006
                        • 19

                        #12
                        ok but i see in the documentation that is only supported in 'zabbix trapper' items

                        what is a zabbix trapper? i can't find anything in the docs.
                        if i try to make a trapper item, i can't set the 'update interval'

                        Comment

                        • erisan500
                          Senior Member
                          Zabbix Certified Specialist
                          • Aug 2005
                          • 285

                          #13
                          You need to use that in a trigger like:

                          {Host.Win32:vfs.fs.size[c:,free].nodata(120)}=1
                          EriSan
                          Zabbix Certified Specialist

                          Comment

                          • Alexei
                            Founder, CEO
                            Zabbix Certified Trainer
                            Zabbix Certified SpecialistZabbix Certified Professional
                            • Sep 2004
                            • 5654

                            #14
                            Originally posted by kopspa
                            ok but i see in the documentation that is only supported in 'zabbix trapper' items
                            The documentation is wrong, sorry for this. It is supported for any item regardless of its type.
                            Alexei Vladishev
                            Creator of Zabbix, Product manager
                            New York | Tokyo | Riga
                            My Twitter

                            Comment

                            • kopspa
                              Junior Member
                              • Apr 2006
                              • 19

                              #15
                              now my setup is ok (and the boss is happy! )

                              thanks very much

                              Comment

                              Working...