Introduction

Ping monitoring is used to track the availability and responsiveness of devices, such as servers, routers and so on.

When you apply ping monitoring on the device OpsRamp Gateway send ICMP requests to the host and measure the packet loss percentage and RTA information. By default we will send 3 requests and time interval between each request is 1000ms with packet size of 64 bytes.

Prerequisites

  • Allow ICMP between end-device and OpsRamp Gateway.
  • Device/Resource must have the Ip address.

Graphical metrics representation

Linux Install Integration

Get Latest Metric Values

Linux Install Integration

Configuration Parameters

  • Data Bytes: The size of the packet. The default value is 64 bytes.

  • Packet Interval: Time interval between the requests. The default value is 1000ms.

  • Packet Count: The number of packets sent to the device. The default value is 3.

Sample Alert

Linux Install Integration

Troubleshooting Steps

  1. Check whether ping template is applied on device or not.

  2. Navigate to Infrastructure > select the required device.

  3. Select monitors tab in the device and verify if the ping template is applied or not.

  4. Check the reachability of the device from gateway using ping command

    Syntax: ping <ipaddress>
    Example: ping 172.26.1.18

Note: Duplicate template should not be applied on the device.

  1. Verify the gateway timezone is properly synchronized with the correct timezone. Otherwise, there will be delay or drop of metric data.

    Example: If gateway timezone is UTC, then it must have the exact UTC time.

    Command to verify the date/Time: date

  2. Check whether gateway is collecting ping monitoring data by enabling flag at the gateway end and verify vprobe logs.

    1. Login to gateway cli and enter sudo su.

    2. Now, enter gcli command.

    3. Enable the below flag:
      flag add ping.log on 30

    4. Now click the exit command to exit from gcli.

      Note:

      • Once you have enabled the above flag wait for one or two monitoring polls to get completed (if template frequency is 5 mins, enable the flag and wait for 5 to 10mins) and check whether request and response is getting printed in logs.

      • Below are the grep command to check the response.

        grep 'Response MSG from the target host = ' /var/log/app/vprobe.log

        or

        grep 'deviceIp' /var/log/app/vprobe.log

        You will find the device ip in logs and also response against the device.

  3. Verify whether the ping monitoring is applied on any non ipaddress devices by checking the request in vprobe logs as the ping monitoring affects if the ping request having the hostnames in place of Ipaddress for any of the devices.

    grep 'Reqest MSG to target hosts= ' /var/log/app/vprobe.log