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
Get Latest Metric Values
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
Troubleshooting Steps
Check whether ping template is applied on device or not.
Navigate to Infrastructure > select the required device.
Select monitors tab in the device and verify if the ping template is applied or not.
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.
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
Check whether gateway is collecting ping monitoring data by enabling flag at the gateway end and verify vprobe logs.
Login to gateway cli and enter
sudo su
.Now, enter gcli command.
Enable the below flag:
flag add ping.log on 30
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.
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