Ad Widget

Collapse

Ping check on external host

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Ping check on external host

    Hi,

    I want to ping an external host where there is no zabbix agent installed on it.

    I have created a user parameter on zabbix server

    UserParameter=Ping_check[*],/sbin/fping $1 -t 100 | grep alive | wc -l

    I have created an item on Zabbix UI. Please check the below attached file

    Click image for larger version

Name:	item.PNG
Views:	5
Size:	74.9 KB
ID:	379632

    After creating the item it is showing this error as not supported(dont know why)

    Click image for larger version

Name:	item error.PNG
Views:	3
Size:	10.6 KB
ID:	379633

    I have created a trigger with the below expressions

    {Zabbix server:Ping_check.nodata(5m)}=1

    {Zabbix server:Ping_check.last()}=0


    I am not sure why the item is showing as unsupported and what expression should be used in the trigger. could you please help me with this

    Thanks

    #2
    Check and upload the message when you click on the red square.

    Also, your key definition is wrong. When you set your item you specify a parameter "$1", but when you create your item you're not passing it. So it should be something like Ping_check[IP_THAT_YOU_WANT_TO_PING]

    Comment


      #3
      Hi Brunohl,

      Thanks for the response and here we are passing the parameter for multiple hosts not just a single host, can you help me with it and when I created the item it is showing not supported(you can see it in the attached files) do you know why?

      Thanks

      Comment


        #4
        There's no attachment that shows the message of why is not supported. If you have multiple hosts, you should create an item for each one of them.

        Comment


          #5
          It shows unsupported item key. Is the Item creation is wrong?

          Let me know if you have any idea about it
          Click image for larger version

Name:	ping error.png
Views:	1
Size:	20.5 KB
ID:	379644

          Thanks

          Comment


            #6
            Ah, ok. You have to restart your agent to your new key apply.

            Comment


              #7
              Is there any way to add the keys without restart?

              Comment


                #8
                No, it's not possible

                Comment


                  #9
                  Thanks Brunohl. Will do it first and let you know if I face any other issues

                  Comment


                    #10
                    I tried restarting the zabbix host and still it is showing the same as not supported key

                    Comment


                      #11
                      Sorry it is working now.

                      Thanks

                      Comment


                        #12
                        Hi bruno,

                        I would like to test whether the ping is working or not

                        UserParameter=Ping_check[*],/sbin/fping $1 -t 100 | grep alive | wc -l

                        I created this trigger
                        {Zabbix server:Ping_check.last()}=0

                        Let me know if this works or not.

                        Click image for larger version

Name:	zabbix ping.PNG
Views:	1
Size:	30.6 KB
ID:	379831

                        Comment


                          #13
                          I guess this it would work

                          Comment


                            #14
                            Thanks for your help bruno

                            Comment


                              #15
                              Hi Bruno,

                              Can you help me with this https://www.zabbix.com/forum/zabbix-...meric-unsigned

                              Thanks

                              Comment

                              Announcement

                              Collapse
                              No announcement yet.
                              Working...
                              X