[Pkg-nagios-devel] Bug#680615: nagios3: init script confusion between 'check' and 'status'

Stephen Gran sgran at debian.org
Sat Jul 7 10:39:50 UTC 2012


Package: nagios3
Version: 3.2.1-2
Severity: normal

excerpts from /etc/init.d/nagios3:

status()
{
  log_action_begin_msg "checking $DAEMON"
  if check_started; then
    log_action_end_msg 0 "running"
  else
    if [ -e "$THEPIDFILE" ]; then
      log_action_end_msg 1 "$DAEMON failed"
      exit 1
    else
      log_action_end_msg 1 "not running"
      exit 3
    fi
  fi
}

status () {
   $DAEMON -v $NAGIOSCFG
}

case $1 in
  status)
    status
    ;;
  check)
    check
    ;;
esac

~# /etc/init.d/nagios3 check
/etc/init.d/nagios3: 247: check: not found

Cheers,

-- System Information:
Debian Release: 6.0.5
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.utf8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nagios3 depends on:
pn  nagios3-cgi                   <none>     (no description available)
pn  nagios3-core                  <none>     (no description available)

nagios3 recommends no packages.

Versions of packages nagios3 suggests:
pn  nagios-nrpe-plugin            <none>     (no description available)

-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sgran at debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20120707/474548f3/attachment.pgp>


More information about the Pkg-nagios-devel mailing list