Hello,

While running BackupPC 3.2.1 (CentOS), I found I can't set up backups for a host that can't be reached via ICMP Ping.

I have hping installed, and modified default PingCmd for the host in question with

/usr/bin/sudo /usr/sbin/hping $host -p 80 -c 1 -S

When I run it under backuppc user, it runs normally and returns with exit status 0 ("echo $?" under /bin/bash). However, when I attempt backup creation, I get something like

2019-10-16 12:44:37 no ping response

in it.

The manual run output looks like this:

----- output below
$ /usr/bin/sudo /usr/sbin/hping example.com -p 80 -c 1 -S
HPING example.com (eth0 93.184.216.34): S set, 40 headers + 0 data bytes
len=46 ip=52.34.179.106 ttl=36 DF id=0 sport=80 flags=SA seq=0 win=26883 rtt=239.1 ms

--- example.com hping statistic ---
1 packets tramitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 239.1/239.1/239.1 ms
----- output above

I would appreciate a hint on what I am doing wrong. Thank you.

Sincerely,
Konstantin


_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to