<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Package: nagios-nrpe-server<br>
    Version: 2.12-5ubuntu1.2<br>
    Severity: normal<br>
    <br>
    Dear Maintainer,<br>
    *** Please consider answering these questions, where appropriate ***<br>
    <br>
       * What led up to the situation?<br>
       * What exactly did you do (or not do) that was effective (or<br>
         ineffective)?<br>
       * What was the outcome of this action?<br>
       * What outcome did you expect instead?<br>
    <br>
    *** End of the template - remove these lines ***<br>
    <br>
    When setting nagios-nrpe-server to run under any user that is not
    nagios, the initscript creates a conflict since it has a chown
    command hardcoded to<br>
    user nagios which is the default in the package.<br>
    <br>
    The in the init script as per the package included in ubuntu
    precise:<br>
    <br>
    <br>
    *** 43,47 ****<br>
      #since /var/run can be wiped completly we create our run directory
    here<br>
      if [ ! -d "$PIDDIR" ]; then<br>
            mkdir "$PIDDIR"<br>
            chown nagios "$PIDDIR"<br>
      fi<br>
    ---<br>
    <br>
    <br>
    In my nrpe_local.cfg configuration I have nagios set to run as a
    custom user:<br>
    <br>
    nrpe_user=srv-monitor<br>
    nrpe_group=srv-monitor<br>
    <br>
    <br>
    Hence when I restart the server the upstart script will leave the
    permissions messed up and the service will fail to start properly.<br>
    <br>
    <br>
    IMHO the initscript should either not try to chown the piddir at
    all, or at least parse this setting from /etc/default or any other
    config,<br>
    but the way the package is right now makes unpractical or simply
    impossible to run the service reliably unless with the default
    "nagios" user.<br>
    <br>
    In my cluster I did add this setting as a variable in the header of
    the initscript. Ideally it should be parsed through the relevant
    /etc/default file.<br>
    <br>
    -----<br>
    NAGIOS_USER=srv-monitor<br>
    [...]<br>
            chown "$NAGIOS_USER" "$PIDDIR"<br>
    -----<br>
    <br>
    <br>
    <br>
    Cheers,<br>
    -kali-<br>
    <br>
    <br>
    <br>
    -- System Information:<br>
    Debian Release: wheezy/sid<br>
      APT prefers precise-updates<br>
      APT policy: (500, 'precise-updates'), (500, 'precise-security'),
    (500, 'precise'), (100, 'precise-backports')<br>
    Architecture: amd64 (x86_64)<br>
    <br>
    Kernel: Linux 3.5.0-51-generic (SMP w/4 CPU cores)<br>
    Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)<br>
    Shell: /bin/sh linked to /bin/dash<br>
    <br>
    Versions of packages nagios-nrpe-server depends on:<br>
    ii  adduser      3.113ubuntu2<br>
    ii  libc6        2.15-0ubuntu10.5<br>
    ii  libssl1.0.0  1.0.1-4ubuntu5.16<br>
    ii  libwrap0     7.6.q-21<br>
    ii  lsb-base     4.0-0ubuntu20.3<br>
    <br>
    Versions of packages nagios-nrpe-server recommends:<br>
    ii  nagios-plugins        1.4.15-5ubuntu3.2<br>
    ii  nagios-plugins-basic  1.4.15-5ubuntu3.2<br>
    <br>
    nagios-nrpe-server suggests no packages.<br>
    <br>
    -- no debconf information<br>
    <br>
    <div class="moz-signature">-- <br>
      <table class="the-signature" style="width: 1038px; display:
        inline-block; vertical-align: top; margin-left: 0px;
        font-family: Verdana,Arial,sans-serif; font-size: 8pt;
        padding-top: 0px;">
        <tbody>
          <tr>
            <td class="contact-cell" style="width: 1038px; padding: 10px
              0px 0px; line-height: 16px; font-size: 8pt;"> <span
                style="color: #283237;"><strong><span style=""
                    class="ng-binding" ng-show="contact.name">Kali
                    Hernandez</span></strong></span>  |  <span style=""
                class="ng-binding" ng-show="contact.job">System
                Administrator</span>   |  <span style="color:#5f6973;">Sociomantic
                Labs</span>  <a class="ng-binding" style="color:#0074b0
                !important;" href="https://www.sociomantic.com"
                target="_blank">www.sociomantic.com</a>
              <!-- <br> -->
              <!-- ngIf: contact.office_tel --><span class="ng-scope"
                ng-if="contact.office_tel" style="white-space: nowrap;">  |  

                <span style="color: #283237; "><strong>T</strong>  </span><span
                  class="ng-binding" style=" color:#5f6973;">+49 (0)30
                  3087 4615</span>  </span>
              <!-- ngIf: contact.mobile --><span class="ng-scope"
                ng-if="contact.mobile" style="white-space: nowrap;"> <span
                  style="color: #283237;"><strong>M</strong>  </span><span
                  class="ng-binding" style=" color:#5f6973;">+49 (0)176
                  6701 3633</span>  </span>
              <!-- ngIf: contact.fax -->
              <!-- ngIf: contact.skype --><span class="ng-scope"
                ng-if="contact.skype" style="white-space: nowrap;"> <span
                  style="color: #283237; "><strong>S</strong>  </span><span
                  class="ng-binding" style="color:#5f6973; "><a class="moz-txt-link-abbreviated" href="mailto:kali.hernandez@sociomantic.com">kali.hernandez@sociomantic.com</a></span>
              </span>
              <div style="padding: 0px 0 0px 0px; font-size: 7.5pt;">
                Follow us on <a style="color:#0074b0 !important; "
                  href="http://www.twitter.com/sociomantic">Twitter</a>
                + <a style="color:#0074b0 !important;"
                  href="http://www.facebook.com/sociomantic">Facebook</a>
                + <a style="color:#0074b0 !important;"
                  href="http://blog.sociomantic.com" target="_blank">Blog</a>  |  <span
                  style="color: #283237; text-transform: uppercase;"><strong>We're
                    hiring!</strong></span>  Check out our <a
                  style="color:#0074b0 !important;"
                  href="http://www.sociomantic.com/careers"
                  target="_blank">Careers</a> page. </div>
            </td>
          </tr>
          <tr class="footer-text" style="padding: 0px 0 0px 0;
            color:#c3c8cd; font-size: 6pt; line-height: 7pt;">
            <td style="width:100%; display:inline-block; vertical-align:
              top; padding-bottom:20px; padding-top: 17px;">
              <div> <img
                  src="cid:part6.00080909.07070904@sociomantic.com"
                  nosend="1" alt="Sociomantic Labs Logo"> </div>
            </td>
          </tr>
          <tr style="padding: 0px 0 0px 0; color:#c3c8cd; font-size:
            6pt; line-height: 7pt;">
            <td> <span class="ng-binding">This message and any
                attachments are confidential and intended solely for the
                use of the individual to whom it is addressed.<br>
                <br>
                <br>
                <br>
              </span> </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>