Search found 3 matches
- Thu Apr 06, 2017 12:39 am
- Forum: Nagios XI
- Topic: service fails but succeed if retried manually
- Replies: 5
- Views: 823
Re: service fails but succeed if retried manually
i solved my issue by changing my script like this : #!/bin/bash mount=${1} ls ${mount} > /dev/null 2>&1 if [ $? -eq 0 ]; then echo "OK - $mount accessible" exit 0 else echo "CRITICAL - $mount unreachable" exit 2 fi i still think that there's an issue here with nagios but i wo...
- Wed Apr 05, 2017 1:14 am
- Forum: Nagios XI
- Topic: service fails but succeed if retried manually
- Replies: 5
- Views: 823
Re: service fails but succeed if retried manually
Hi in attachment the profile. all hosts are producing this, randomly, and it only concerns the autofs mountpoints that i'm checking with a script. copying the script here, called check_mountpoints : #!/bin/bash mount=${1} fail=0 ls ${mount} >/dev/null & childpid=$! sleep 0.1 if [ -d "/proc/...
- Tue Apr 04, 2017 6:55 am
- Forum: Nagios XI
- Topic: service fails but succeed if retried manually
- Replies: 5
- Views: 823
service fails but succeed if retried manually
Hi i have a weird issue with nagios XI, like a false positive. i wrote a small check with NRPE that verify the accessibility of a mountpoint. i had to write a script because the mountpoints i'm checking are autofs managed, and not always mounted, and the nagios mountpoint wizard fails to monitor the...