diff options
-rwxr-xr-x | nagios-clear | 5 | ||||
-rwxr-xr-x | nagios-problem-list | 3 | ||||
-rwxr-xr-x | nagios-unhandled-list | 3 |
3 files changed, 1 insertions, 10 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 diff --git a/nagios-problem-list b/nagios-problem-list index 3927feb..f56e544 100755 --- a/nagios-problem-list +++ b/nagios-problem-list @@ -18,9 +18,6 @@ usage() { printf 'USAGE: %s [-h]\n' "$self" } -# By default we search hosts, not services -services=0 - # Handle options, just -h help at the moment OPTIND=1 while getopts 'h' opt ; do diff --git a/nagios-unhandled-list b/nagios-unhandled-list index 92909cc..06b1d3e 100755 --- a/nagios-unhandled-list +++ b/nagios-unhandled-list @@ -18,9 +18,6 @@ usage() { printf 'USAGE: %s [-h]\n' "$self" } -# By default we search hosts, not services -services=0 - # Handle options, just -h help at the moment OPTIND=1 while getopts 'h' opt ; do |