library/roles/keepalived/files/check_keepalived_state: Fix the keepalived nagios check.

This commit is contained in:
Andrea Dell'Amico 2018-05-04 20:05:15 +02:00
parent 4587971a12
commit 447dcebc5f
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@
MASTER='true'
# checking if there are alive keepalived processes so we can trust the content of the notify 'state' file
KEEPALIVENUM=`ps uax|grep '/usr/sbin/keepalived --dont-fork'|grep -v grep|wc -l|tr -d "\n"`
KEEPALIVENUM=`ps uax|grep '/usr/sbin/keepalived'|grep -v grep|wc -l|tr -d "\n"`
if [ $KEEPALIVENUM -gt 0 ]; then