Browse Source

BugFix - check_reversetunnel

master
Dirk Alders 5 months ago
parent
commit
230dd25be6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      check_reversetunnel

+ 1
- 1
check_reversetunnel View File

12
     exit $NAGIOS_ERROR
12
     exit $NAGIOS_ERROR
13
 else
13
 else
14
     # there is an autossh process
14
     # there is an autossh process
15
-    ps x -q $AUTOSSH_PIDs | grep $MULTIMEDIA_TUNNEL_REGEX 2>&1 > /dev/null
15
+    ps x -q $AUTOSSH_PIDs | grep "$MULTIMEDIA_TUNNEL_REGEX" 2>&1 > /dev/null
16
     if [ $? -eq 0 ]; then
16
     if [ $? -eq 0 ]; then
17
         echo "OK - The required autossh process is running"
17
         echo "OK - The required autossh process is running"
18
         exit $NAGIOS_OK
18
         exit $NAGIOS_OK

Loading…
Cancel
Save