icinga2/test/jenkins/icinga2_state.test

11 lines
180 B
Bash
Executable File

#!/bin/sh
sudo service icinga2 status &> /dev/null
if [ $? -gt 0 ]; then
echo '[FAIL] icinga2 is not running'
exit 1
else
echo '[OK] icinga2 is running'
exit 0
fi