icinga2/test/jenkins/logfile.test

13 lines
238 B
Bash
Executable File

#!/bin/sh
logfile_path="/var/log/icinga2/icinga2.log"
if sudo test -f $logfile_path;
then
echo "[OK] Icinga2 log file found ($logfile_path)"
exit 0
else
echo "[FAIL] Icinga2 log file not found ($logfile_path)"
exit 1
fi