Your message dated Sat, 16 Nov 2013 18:18:09 +0100
with message-id <3167821.G91CuaSYN4@k>
and subject line Re: Bug#729679: Bug in monitoring apache service
has caused the Debian Bug report #729679,
regarding Bug in monitoring apache service
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
729679: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=729679
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: apache2.2-common
Version: 2.2.22-13

Hi,

this is my problem:

~$ /etc/init.d/apache2 status
Apache2 is running (pid 22202).
~$ sudo service apache2 stop
[ ok ] Stopping web server: htcacheclean apache2 ... waiting .
~$ sudo service apache2 status; echo $?
Apache2 is NOT running.
3

cat -n /etc/init.d/apache2
(...)
   268          status)
   269                  PID=$(pidof_apache) || true
   270                  if [ -n "$PID" ]; then
   271                          echo "Apache2$DIR_SUFFIX is running (pid $PID)."
   272                          exit 0
   273                  else
   274                          echo "Apache2$DIR_SUFFIX is NOT running."
   275                          if [ -e "$PIDFILE" ]; then
   276                                  exit 1
   277                          else
   278                                  exit 3
   279                          fi
   280                  fi
   281          ;;
(...)

Bug is when NAGIOS checks apache2 service:
~$ grep status /etc/nagios/nrpe_local.cfg
command[check_centreon_service]=/etc/init.d/$ARG1$ status

It's possible to change exit 3 to exit 2 ?

Regards

--- End Message ---
--- Begin Message ---
Hi Pascal,

Am Freitag, 15. November 2013, 18:31:59 schrieb Pascal Vibet - ADACIS:
>    274                                echo "Apache2$DIR_SUFFIX is NOT 
> running."
>    275                                if [ -e "$PIDFILE" ]; then
>    276                                        exit 1
>    277                                else
>    278                                        exit 3
>    279                                fi
>    280                        fi
>    281                ;;
> (...)
> 
> Bug is when NAGIOS checks apache2 service:
> ~$ grep status /etc/nagios/nrpe_local.cfg
> command[check_centreon_service]=/etc/init.d/$ARG1$ status
> 
> It's possible to change exit 3 to exit 2 ?

I think code 3 is correct. See 
http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html
 . Maybe nagios should be modified to handle 
that (but I don't know nagios)

Cheers,
Stefan

--- End Message ---

Reply via email to