Ah, ok, thanks for that.  I was able to use –c and –w to fix my issue…thanks for your help!

 

Tony

From: Ahmed Rahal via observium <observium@lists.observium.org>
Sent: Wednesday, May 24, 2023 11:23 AM
To: Observium <observium@lists.observium.org>
Cc: Ahmed Rahal <arahal@fibrenoire.ca>
Subject: [Observium] Re: how can i tune the ping probe for a custom RTA?

 

Hi Tony,

 

I see this in /opt/observium/includes/definitions/entities/probes.inc.php

 

$probe = 'check_ping';
$config['probes'][$probe]['enable'] = 1;
$config['probes'][$probe]['descr']  = 'Use ping to check connection statistics for a remote host.';
$config['probes'][$probe]['args']['default']         = "-H %hostname% -w 15,2% -c 20,5%";
// PING OK - Packet loss = 0%, RTA = 4.85 ms|rta=4.847000ms;15.000000;20.000000;0.000000 pl=0%;2;5;0
// PING OK - Packet loss = 0%, RTA = 0.67 ms|rta=0.668000ms;15.000000;20.000000;0.000000 pl=0%;2;5;0
// PING CRITICAL - Packet loss = 0%, RTA = 63.59 ms|rta=63.589001ms;15.000000;20.000000;0.000000 pl=0%;2;5;0
$config['probes'][$probe]['output'][] = '/^PING (?<status>\S+) - (?<message>Packet loss = (?<packet_loss>\S+), RTA = (?<RTA>\d[^\|]+))\|/';

 

I guess that these are the default values -w 15,2% -c 20,5%

 

Cheers,

 

Ahmed.

 

Le mar. 23 mai 2023, à 19 h 41, Tony Guadagno via observium <observium@lists.observium.org> a écrit :

Ahmed, this is great, do you happen to know what the defaults for THRESHOLD are?  RTA,PL?

 

Tony

 

From: Ahmed Rahal <arahal@fibrenoire.ca>
Sent: Tuesday, May 23, 2023 5:32 PM
To: Observium <observium@lists.observium.org>
Subject: [Observium] Re: how can i tune the ping probe for a custom RTA?

 

Hi Tony,

 

You can customize the command line of the probe.

Here is the help output of the check_ping probe

 

Usage:
check_ping -H <host_address> -w <wrta>,<wpl>% -c <crta>,<cpl>%
 [-p packets] [-t timeout] [-4|-6]

Options:
 -h, --help
    Print detailed help screen
 -V, --version
    Print version information
 --extra-opts=[section][@file]
    Read options from an ini file. See
    https://www.monitoring-plugins.org/doc/extra-opts.html
    for usage and examples.
 -4, --use-ipv4
    Use IPv4 connection
 -6, --use-ipv6
    Use IPv6 connection
 -H, --hostname=HOST
    host to ping
 -w, --warning=THRESHOLD
    warning threshold pair
 -c, --critical=THRESHOLD
    critical threshold pair
 -p, --packets=INTEGER
    number of ICMP ECHO packets to send (Default: 5)
 -L, --link
    show HTML in the plugin output (obsoleted by urlize)
 -t, --timeout=INTEGER
    Seconds before connection times out (default: 10)

THRESHOLD is <rta>,<pl>% where <rta> is the round trip average travel
time (ms) which triggers a WARNING or CRITICAL state, and <pl> is the
percentage of packet loss to trigger an alarm state.

HTH,

 

Ahmed.

 

Le mar. 23 mai 2023, à 16 h 20, Tony Guadagno via observium <observium@lists.observium.org> a écrit :

Hi, I am using the ping probes and I just noticed that it seems to go critical when the RTA is too high….even if the ping is successful…like so:

 

How do I change the RTA threshold ?

 

thanks

 

Tony

 

_______________________________________________
observium mailing list -- observium@lists.observium.org
To unsubscribe send an email to observium-leave@lists.observium.org



--

Ahmed Rahal

Administrateur de Systèmes / Systems Administrator

Videotron/Fibrenoire - www.fibrenoire.ca

A: 612 Rue Saint-Jacques, Montréal, QC H3C 1E2

ahmed.rahal@videotron.com

Twitter: @fibrenoire

_______________________________________________
observium mailing list -- observium@lists.observium.org
To unsubscribe send an email to observium-leave@lists.observium.org



--

Ahmed Rahal

Administrateur de Systèmes / Systems Administrator

Videotron/Fibrenoire - www.fibrenoire.ca

A: 612 Rue Saint-Jacques, Montréal, QC H3C 1E2

ahmed.rahal@videotron.com

Twitter: @fibrenoire