HewlettPackard / nagios-plugins-hpilo

Nagios plug-in for iLO Agentless Management
Other
27 stars 11 forks source link

error messages when running nagios_hpeilo_cfg_generator #6

Open berobero opened 6 years ago

berobero commented 6 years ago

It appears to complain about dirname, grep, and sed. I'm using the Restful API plugin installed via dpkg. My OS is Ubuntu 16.04

/usr/lib/nagios/plugins [481]$ /usr/lib/nagios/plugins/nagios_hpeilo_cfg_generator -m 2 -s /usr/lib/nagios/plugins/hpeilo_nagios_config.cfg
dirname: invalid option -- 'd'
Try 'dirname --help' for more information.
grep: invalid argument ‘/usr/local/nagios/etc/nagios.cfg’ for ‘--directories’
Valid arguments are:
  - ‘read’
  - ‘recurse’
  - ‘skip’
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
grep: invalid argument ‘/usr/local/nagios/etc/nagios.cfg’ for ‘--directories’
Valid arguments are:
  - ‘read’
  - ‘recurse’
  - ‘skip’
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
wc: invalid option -- 'd'
Try 'wc --help' for more information.
sed: invalid option -- 'd'
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

  -n, --quiet, --silent
                 suppress automatic printing of pattern space
  -e script, --expression=script
                 add the script to the commands to be executed
  -f script-file, --file=script-file
                 add the contents of script-file to the commands to be executed
  --follow-symlinks
                 follow symlinks when processing in place
  -i[SUFFIX], --in-place[=SUFFIX]
                 edit files in place (makes backup if SUFFIX supplied)
  -l N, --line-length=N
                 specify the desired line-wrap length for the `l' command
  --posix
                 disable all GNU extensions.
  -r, --regexp-extended
                 use extended regular expressions in the script.
  -s, --separate
                 consider files as separate rather than as a single continuous
                 long stream.
  -u, --unbuffered
                 load minimal amounts of data from the input files and flush
                 the output buffers more often
  -z, --null-data
                 separate lines by NUL characters
      --help     display this help and exit
      --version  output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret.  All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

GNU sed home page: <http://www.gnu.org/software/sed/>.
General help using GNU software: <http://www.gnu.org/gethelp/>.
mv: invalid option -- 'd'
Try 'mv --help' for more information.