icinga2/test/jenkins/logfile.test

13 lines
238 B
Plaintext
Raw Normal View History

2013-12-05 09:46:51 +01:00
#!/bin/sh
logfile_path="/var/log/icinga2/icinga2.log"
if sudo test -f $logfile_path;
2013-12-05 09:46:51 +01:00
then
echo "[OK] Icinga2 log file found ($logfile_path)"
2013-12-05 09:46:51 +01:00
exit 0
else
echo "[FAIL] Icinga2 log file not found ($logfile_path)"
2013-12-05 09:46:51 +01:00
exit 1
fi