diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-15 13:06:26 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-15 13:06:26 +1200 |
commit | 82e4d1e7d9e2b0a2226a47b8b19e53b05706d4d2 (patch) | |
tree | b4553cfb64426c66aa617ae84a16c371e5afb8dc /nagios-clear | |
parent | Raise error on downtime ending before it starts (diff) | |
download | nagscripts-master.tar.gz nagscripts-master.zip |
Diffstat (limited to 'nagios-clear')
-rwxr-xr-x | nagios-clear | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/nagios-clear b/nagios-clear index e8a6de8..f46c878 100755 --- a/nagios-clear +++ b/nagios-clear @@ -34,12 +34,9 @@ if ! (($#)) ; then exit 1 fi -# Define relatively fixed/guaranteed fields for Nagios command; note that the -# comment has a default of 'no comment given' +# Define relatively fixed/guaranteed fields for Nagios command now=$(date +%s) -author=${SUDO_USER:-"$USER"} spec=$1 -comment=${2:-'no comment given'} cmdfile=${NAGCMD_FILE:-/usr/local/nagios/var/rw/nagios.cmd} # Define the path to the Livestatus socket |