forked from ISTI-ansible-roles/ansible-roles
library/roles/keepalived/files/check_keepalived_state: Fix the keepalived nagios check.
This commit is contained in:
parent
4587971a12
commit
447dcebc5f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue