Ad Widget

Collapse

Templates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • markclark
    Member
    • Apr 2011
    • 70

    #1

    Templates

    Hi there,

    Trying to setup a ping test to client routers / firewalls but cant seem to get it working.

    Ive created a template and a item and a trigger.

    My trigger is

    {Template_Ping Response:agent.ping.max(60)}<1

    Item key

    agent.ping

    then added a new Host. The IP of the router, left the default Zabbix port as 10050 even though there wont be an agent running on it. No Proxy. Monitored and Linked Templates to the Ping Response template ive created.

    However this isnt working. Any ideas?

    Also is there a site or place you can download Templates to be imported into Zabbix?

    Thanks
  • untergeek
    Senior Member
    Zabbix Certified Specialist
    • Jun 2009
    • 512

    #2
    Originally posted by markclark
    left the default Zabbix port as 10050 even though there wont be an agent running on it.
    There's your answer. The agent.ping is for the Zabbix server to ping the Zabbix agent. If there's no agent running on it, this test will never succeed.

    I think what you're looking for is in "Simple Checks" and is called icmpping. Look up Simple Checks in the manual for more information.

    Comment

    • markclark
      Member
      • Apr 2011
      • 70

      #3
      ok thanks, have changed and running as follows for the trigger but still not working for some reason.
      Attached Files

      Comment

      • untergeek
        Senior Member
        Zabbix Certified Specialist
        • Jun 2009
        • 512

        #4
        Try icmpping without the square brackets first. Add options after you've verified they work. It will work as key icmpping (no args or square braces).

        One thing I note is that you have spaces between the commas, which is unnecessary and could possibly cause it to fail.

        Comment

        • markclark
          Member
          • Apr 2011
          • 70

          #5
          hi thanks for the response. ive tried it but it needs the square brackets. this is the latest ive tried to set it up but still not working.
          Attached Files

          Comment

          • markclark
            Member
            • Apr 2011
            • 70

            #6
            even with an IP it doesnt work. Ive created the template and assigned it to a Host that has the same IP address if this is correct so it gets applied somewhere right?

            thanks,

            Comment

            • markclark
              Member
              • Apr 2011
              • 70

              #7
              have also tried icmpping [,,,,,] and doesnt work

              Comment

              • ghoz
                Senior Member
                • May 2011
                • 204

                #8
                • Is fping installed ?, is "FpingLocation" correct in your zabbix_server.conf ?
                • If you have an ipv6 enabled zabbix, and no fping6 , you may have to make the "Fping6Location" empty even if you have no ipv6 hosts ...
                • In any case, you can troubleshoot this by setting Debuglevel to 4 in the config file, restarting zabbix_server and looking for fping or icmping in the logs. Just don't forget to reset the Debuglevel to default, it can be quite chatty.

                Comment

                • markclark
                  Member
                  • Apr 2011
                  • 70

                  #9
                  hi Ghoz,

                  thanks just managed to get it working late last night. Correct i did notice that fping was based in the wrong location firstly so altered the config file.

                  then it was tweaking the key string till got it to work, it is a bit hit and miss but when you work it out it works.

                  thanks guys.

                  Comment

                  • superittek
                    Junior Member
                    • Dec 2010
                    • 2

                    #10
                    How did you resolve the problem?

                    Hi Mark,

                    What was the solution for the problem? Please, share it, because I have the same issue and symptoms but no positive results.

                    Thanks,

                    Comment

                    • markclark
                      Member
                      • Apr 2011
                      • 70

                      #11
                      Hi,

                      First thing i noticed was that

                      fping wasnt working.

                      open up Terminal and try

                      fping www.google.com

                      and see if the response is Alive or if it isnt install. If fping isnt installed then you need to install it and test again. Let me know how that goes..

                      Comment

                      • superittek
                        Junior Member
                        • Dec 2010
                        • 2

                        #12
                        Hi,

                        Sorry for taking so long. Actually I've re-installed fping several times. I setup the following permissions:

                        chown root:zabbix /usr/sbin/fping
                        chmod 0770 /usr/sbin/fping
                        chmod ug+s /usr/sbin/fping

                        I also made sure that the right path is setup on zabbix_server.conf. The funny thing is that "icmppingsec" works; and , when I look at the data under "Latest Data", it shows up and connected. However, under the host's availability it shows the red "Z" and when I hoover my mouse over it, it says : Get valud from agent failed: cannot connect to [[hostnamex]:10050:[111]Connection refused .

                        Because I have CentOS 5.6 installed, so far my research points to fix it by applying a debian patch located here: bugs.debian.org/cgi-bin/bugreport.cgi?bug=198486.

                        Then apply it to the RPM during the rebuild process. Here is all the info.



                        Any other recommendation is greatly appreciated. Otherwise, I will keep you informed.

                        Comment

                        • markclark
                          Member
                          • Apr 2011
                          • 70

                          #13
                          hmmm interesting. I havent used the CentOS yet.

                          What you could do to check.

                          1) Are the rest of the services for that host working?
                          2) if not can you telnet into the client on port 10050?
                          3) is the agent conf on the clients side setup on the correct ports?
                          4) can you fping the client IP from the CentOS box?

                          See how that goes. Generally find if everything for that Host is not working then its usually a firewall / router thats blocking the port that needs to be opened up...best way to test first is telnet to the remote IP on port 10050? If that fails, can you gain remote access to the device and if its a server can you telnet to the localhost on port 10050 to check the zabbix agent is running?

                          see how that goes, hope it helps!

                          Comment

                          • markclark
                            Member
                            • Apr 2011
                            • 70

                            #14
                            the issue was for some reason fping wasnt installed.

                            so installed that and checked the config file was pointed the right directory for fping and all sorted

                            Comment

                            • markclark
                              Member
                              • Apr 2011
                              • 70

                              #15
                              then created a trigger and used...

                              {%name of template%:icmpping[192.168.1.4,10,,24,300].max(60)}<1

                              - note i created a seperate template to ensure the job didnt effect other templates assigned to hosts.

                              good luck!

                              Comment

                              Working...