From cedf10c846c8ea35edd8de628598f29033b6e37f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1ll=20Gu=C3=B0j=C3=B3n=20Sigur=C3=B0sson?= Date: Thu, 25 Nov 2010 23:35:33 +0000 Subject: [PATCH] typo fixed --- check_uptime/trunk/check_uptime | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_uptime/trunk/check_uptime b/check_uptime/trunk/check_uptime index a9a7fee..6a1e2d9 100644 --- a/check_uptime/trunk/check_uptime +++ b/check_uptime/trunk/check_uptime @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright 2010, Pall Sigurdsson # @@ -23,7 +23,7 @@ HOSTN="localhost" # By default check localhost CHECK_COMMAND="uptime" # Default command to check uptime # We we are not checking localhost, lets get remote uptime via NRPE -if [ "$HOSTN" -ne "localhost" ]; then +if [ "$HOSTN" != "localhost" ]; then export PATH=$PATH:/usr/lib/nagios/plugins:/usr/lib64/nagios/plugins CHECK_COMMAND="check_nrpe -H $HOSTN -c get_uptime" fi