#!/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