Not sure why this isn’t working.
Trying to set up a simple pre-backup script:
#!/bin/sh /bin/wget http://hc-ping.com/12345678-abcd-efgh-jklm-901234567890 -O /dev/null
This pings a preconfigured health check alert thing at https://healthchecks.io. That’s the command they suggest to use in a bash script (I added
#!/bin/sh to the top, prepended
/bin/ to the path and stripped the s in https due to probably lack of certs on the ESXi box).
The script works fine on its own but not when Vertical Backup executes it:
[root@funhost:/vmfs/volumes/datastore1/verticalbackup] ./vertical backup Funmail --email --threads 2 2019-05-21 16:22:03.485218 INFO PROGRAM_VERSION Vertical Backup 1.3.2 2019-05-21 16:22:04.287885 INFO LICENSE_INFO Licensed to BigTech; expires on 2020-XX-XX 2019-05-21 16:22:04.808180 INFO STORAGE_CREATE Storage set to sftp://duplicacy@funback:22222//media/vbackup/verticalbackup 2019-05-21 16:22:05.250146 INFO COMMAND_RUN Running command: /vmfs/volumes/datastore1/verticalbackup/.verticalbackup/scripts/pre-backup 2019-05-21 16:22:05.339431 INFO COMMAND_OUTPUT Connecting to hc-ping.com (188.8.131.52:80) 2019-05-21 16:22:05.478143 INFO EMAIL_SEND A notification email has been sent to firstname.lastname@example.org Traceback (most recent call last): File "vertical_main.py", line 150, in <module> File "vertical_backup.py", line 484, in backupCommand File "vertical_utils.py", line 491, in runScript File "vertical_utils.py", line 474, in runCommand File "vertical_utils.py", line 76, in LOG_INFO File "vertical_utils.py", line 104, in log TypeError: not enough arguments for format string
Note it does in fact execute the ping and I see it in HCs control panel, but it exits with that failure instead of going on to run the backup.