EvoBSD/roles/nagios-nrpe/files/plugins_bsd/check_ospfd_simple

13 lines
326 B
Plaintext
Raw Normal View History

2018-12-28 11:23:49 +01:00
#!/bin/sh
. /usr/local/libexec/nagios/utils.sh
# check if ospfd is running
if ospfctl show 2>&1 | grep -q "ospfctl: connect: /var/run/ospfd.sock: No such file or directory"; then
2018-12-28 11:23:49 +01:00
echo "CRITICAL - OSPFD not running"
exit "$STATE_CRITICAL"
else
echo "OK - OSPFD is running"
exit "$STATE_OK"
fi