linuxserver / docker-smokeping

GNU General Public License v3.0
346 stars 95 forks source link

[BUG] <tiIssue with Alerts exec failed!.tle> #145

Closed rodrigostival closed 1 year ago

rodrigostival commented 1 year ago

Is there an existing issue for this?

Current Behavior

Hi

I´m triying setup to send alert through script.

The problem doesn´t start trigger. The log show the following error:

Docker LOG: “Alert someloss_maior is active for FACEBOOK loss: 10%(2/20) rtt: 12ms prevmatch: 1 comment: ANY LOSS exec failed! at /usr/share/perl5/vendor_perl/Smokeping.pm line 1922.“

Expected Behavior

After the start trigger should save to .log file and save to a file

I have another smokeping running bare metal and it's working as good the log below:

Thu 23 Mar 2023 10:42:47 AM -03 someloss_maior ISP.ISP_ASIAN.SG_Singapore loss: 10% rtt: 347ms 103.24.5.4

user@smokepingserver:/etc/smokeping/config.d$

Steps To Reproduce

I tested several images and still the problem. “Alert someloss_maior is active for FACEBOOK loss: 10%(2/20) rtt: 12ms prevmatch: 1 comment: ANY LOSS exec failed! at /usr/share/perl5/vendor_perl/Smokeping.pm line 1922.“

Doesn't save to file....

Environment

PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian

/smokeping $ docker -v
Docker version 20.10.5+dfsg1, build 55c4c88

CPU architecture

arm64

Docker creation

version: "2.1"
services:
  smokeping:
    image: lscr.io/linuxserver/smokeping:latest
    container_name: smokeping
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Sao_Paulo
    volumes:
      - /home/user/smokeping/config:/config
      - /home/user/smokeping/data:/data
    ports:
      - "8080:80"
    restart: unless-stopped
    networks:
    smokeping_default:
    enable_ipv6: true

Container logs

exec failed! at /usr/share/perl5/vendor_perl/Smokeping.pm line 1922.
exec failed! at /usr/share/perl5/vendor_perl/Smokeping.pm line 1922.
TCPPing: NOTE: smokeping took 281.58230805397 seconds to complete 1 round of polling. This is over 80% of the max time available for a polling cycle (300 seconds).
TCPPing: NOTE: smokeping took 281.371636152267 seconds to complete 1 round of polling. This is over 80% of the max time available for a polling cycle (300 seconds).
TCPPing: NOTE: smokeping took 280.261379003525 seconds to complete 1 round of polling. This is over 80% of the max time available for a polling cycle (300 seconds).
Got TERM signal, terminating child processes.
got TERM signal, terminating.
got TERM signal, terminating.
All child processes successfully terminated, exiting.
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────

[custom-init] No custom files found, skipping...
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.0.4. Set the 'ServerName' directive globally to suppress this message
[ls.io-init] done.
### assuming you are using an tcpping copy reporting in milliseconds
Smokeping version 2.007003 successfully launched.
Entering multiprocess mode.
No targets defined for probe DNS, skipping.
No targets defined for probe FPing6, skipping.
### parsing dig output...OK
Child process 220 started for probe TCPPing.
TCPPing: probing 47 targets with step 300 s and offset 150 s.
Child process 221 started for probe FPing.
All probe processes started successfully.
FPing: probing 31 targets with step 300 s and offset 119 s.
Alert someloss_maior is active for FACEBOOK loss: 10%(2/20)  rtt: 12ms prevmatch: 0 comment: ANY LOSS
exec failed! at /usr/share/perl5/vendor_perl/Smokeping.pm line 1922.
TCPPing: NOTE: smokeping took 282.661092042923 seconds to complete 1 round of polling. This is over 80% of the max time available for a polling cycle (300 seconds).
Alert someloss_maior is active for FACEBOOK loss: 10%(2/20)  rtt: 12ms prevmatch: 1 comment: ANY LOSS
exec failed! at /usr/share/perl5/vendor_perl/Smokeping.pm line 1922.
TCPPing: NOTE: smokeping took 283.097227096558 seconds to complete 1 round of polling. This is over 80% of the max time available for a polling cycle (300 seconds).
TCPPing: NOTE: smokeping took 282.482851028442 seconds to complete 1 round of polling. This is over 80% of the max time available for a polling cycle (300 seconds).
TCPPing: NOTE: smokeping took 282.659663915634 seconds to complete 1 round of polling. This is over 80% of the max time available for a polling cycle (300 seconds).
TCPPing: NOTE: smokeping took 282.855803966522 seconds to complete 1 round of polling. This is over 80% of the max time available for a polling cycle (300 seconds).
TCPPing: NOTE: smokeping took 282.852540016174 seconds to complete 1 round of polling. This is over 80% of the max time available for a polling cycle (300 seconds).
TCPPing: NOTE: smokeping took 282.494251966476 seconds to complete 1 round of polling. This is over 80% of the max time available for a polling cycle (300 seconds).
TCPPing: NOTE: smokeping took 282.028181791306 seconds to complete 1 round of polling. This is over 80% of the max time available for a polling cycle (300 seconds).
TCPPing: NOTE: smokeping took 282.779873132706 seconds to complete 1 round of polling. This is over 80% of the max time available for a polling cycle (300 seconds).
TCPPing: NOTE: smokeping took 282.238768100739 seconds to complete 1 round of polling. This is over 80% of the max time available for a polling cycle (300 seconds).
TCPPing: NOTE: smokeping took 282.066293954849 seconds to complete 1 round of polling. This is over 80% of the max time available for a polling cycle (300 seconds).
TCPPing: NOTE: smokeping took 283.496334791183 seconds to complete 1 round of polling. This is over 80% of the max time available for a polling cycle (300 seconds).
TCPPing: NOTE: smokeping took 283.306147098541 seconds to complete 1 round of polling. This is over 80% of the max time available for a polling cycle (300 seconds).
TCPPing: NOTE: smokeping took 282.658686876297 seconds to complete 1 round of polling. This is over 80% of the max time available for a polling cycle (300 seconds).
TCPPing: NOTE: smokeping took 282.540194988251 seconds to complete 1 round of polling. This is over 80% of the max time available for a polling cycle (300 seconds).
TCPPing: WARNING: smokeping took 308.646079063416 seconds to complete 1 round of polling. It should complete polling in 300 seconds. You may have unresponsive devices in your setup.
Alert someloss_maior is active for FACEBOOK loss: 5%(1/20)  rtt: 13ms prevmatch: 0 comment: ANY LOSS
exec failed! at /usr/share/perl5/vendor_perl/Smokeping.pm line 1922.
TCPPing: WARNING: smokeping took 369.799046039581 seconds to complete 1 round of polling. It should complete polling in 300 seconds. You may have unresponsive devices in your setup.
Alert someloss_maior is active for FACEBOOKs loss: 10%(2/20)  rtt: 13ms prevmatch: 0 comment: ANY LOSS
exec failed! at /usr/share/perl5/vendor_perl/Smokeping.pm line 1922.
TCPPing: WARNING: smokeping took 370.008884906769 seconds to complete 1 round of polling. It should complete polling in 300 seconds. You may have unresponsive devices in your setup.
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

thespad commented 1 year ago

Unfortunately the logging for the script execution is lousy https://github.com/oetiker/SmokePing/blob/2.7.3/lib/Smokeping.pm#L1909-L1926 - could be any number of reasons it doesn't work and without some idea of the source of the issue there's no much we can do to troubleshoot.

rodrigostival commented 1 year ago

Hi... Looking at the link below, this is different from the version that is running in my container... https://github.com/oetiker/SmokePing/blob/master/lib/Smokeping.pm#:~:text=foreach%20my%20%24addr,snpp%3A(.%2B)/%20)%20%7B

https://github.com/oetiker/SmokePing/blob/master/lib/Smokeping.pm

Is it not possible to update the version?

thespad commented 1 year ago

See https://github.com/linuxserver/docker-smokeping/issues/125

nzjc commented 6 months ago

@rodrigostival I have nearly the exact same issue, albeit not in a container. I'm running smokeping 2.73 (which seems to be the latest Ubuntu will give me). I am similarly trying to execute a script (in my case just a shell script that shoots a notification to slack) - I get nearly the same error: smokeping[9157]: exec failed! at /usr/share/perl5/Smokeping.pm line 1921.

I wonder, did you ever find a solution?

In my case, i had a leading space before the path to the script. Once I removed that, it executed fine.