mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-22 02:13:44 +01:00
typo fixed
This commit is contained in:
parent
68e44f853e
commit
cedf10c846
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Copyright 2010, Pall Sigurdsson <palli@opensource.is>
|
# Copyright 2010, Pall Sigurdsson <palli@opensource.is>
|
||||||
#
|
#
|
||||||
@ -23,7 +23,7 @@ HOSTN="localhost" # By default check localhost
|
|||||||
CHECK_COMMAND="uptime" # Default command to check uptime
|
CHECK_COMMAND="uptime" # Default command to check uptime
|
||||||
|
|
||||||
# We we are not checking localhost, lets get remote uptime via NRPE
|
# 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
|
export PATH=$PATH:/usr/lib/nagios/plugins:/usr/lib64/nagios/plugins
|
||||||
CHECK_COMMAND="check_nrpe -H $HOSTN -c get_uptime"
|
CHECK_COMMAND="check_nrpe -H $HOSTN -c get_uptime"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user