[bug-notifications] [nrpe 0003730]: svcadm disable cswnrpe does not gracefully handle missing pid_file param, hangs system on shutdown

Mantis Bug Tracker noreply at opencsw.org
Tue Jul 7 18:36:50 CEST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://opencsw.org/bugtrack/view.php?id=3730 
====================================================================== 
Reported By:                gadavis
Assigned To:                ja
====================================================================== 
Project:                    nrpe
Issue ID:                   3730
Category:                   regular use
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2009-06-26 00:28 CEST
Last Modified:              2009-07-07 18:36 CEST
====================================================================== 
Summary:                    svcadm disable cswnrpe does not gracefully handle
missing pid_file param, hangs system on shutdown
Description: 
CSWnpre 2.12,REV=2009.06.18 fails to successfully shutdown on Solaris 10
SPARC. This causes something in the SMF framework to hang when the system
is init 6'd or init 1'd. The system must be Stop-A'd and rebooted.

When a manual svcadm enable/ svcadm disable is issued, the following is
observed in /var/svc/log/application-cswnrpe:default.log:

[ Jun 25 22:01:14 Executing start method
("/var/opt/csw/svc/method/svc-cswnrpe s
tart") ]
[ Jun 25 22:01:16 Method "start" exited with status 0 ]
[ Jun 25 22:02:12 Stopping because service disabled. ]
[ Jun 25 22:02:12 Executing stop method
("/var/opt/csw/svc/method/svc-cswnrpe st
op") ]
/usr/bin/kill[8]: kill: bad argument count
[ Jun 25 22:02:13 Method "stop" exited with status 0 ]

svcs -xv shows:
# svcs -xv cswnrpe
svc:/application/cswnrpe:default (?)
 State: online since June 25, 2009 10:02:12 PM UTC
   See: /var/svc/log/application-cswnrpe:default.log
Impact: None.

Digging a bit further, it appears that the stop method script does not
have any sort of error checking to see if pid_file is defined in nrpe.cfg.

This is a bit of a problem for those of us upgrading from an older version
of NRPE that didn't support the pid_file argument.

====================================================================== 

---------------------------------------------------------------------- 
 (0006406) gadavis (reporter) - 2009-07-07 18:36
 http://opencsw.org/bugtrack/view.php?id=3730#c6406 
---------------------------------------------------------------------- 
I tried to install the package but got errors in the non-global zones when
the zones are not booted. It only installs in zones that are currently
running.

I don't think I had noticed the error before, but the old versions of the
package apparently give the same error.

# zoneadm list -cv
  ID NAME             STATUS     PATH                           BRAND   
IP    
   0 global           running    /                              native  
shared
   1 anfweb-dev       running    /zones/anfweb-dev              native  
shared
   - anfwfproc        installed  /zones/anfwfproc               native  
shared

# pkgadd -d nrpe-2.12\,REV\=2009.06.30-SunOS5.8-sparc-CSW.pkg all
## Verifying package <CSWnrpe> dependencies in zone <anfweb-dev>
## Booting non-running zone <anfwfproc> into administrative state
## Verifying package <CSWnrpe> dependencies in zone <anfwfproc>
## Restoring state of global zone <anfwfproc>

The package <CSWnrpe> contains scripts which will be executed on
zones <anfwfproc, anfweb-dev> with super-user permission during the
process of installing this package.

Do you want to continue with the installation of <CSWnrpe> [y,n,?] y

Processing package instance <CSWnrpe> from
</root/nrpe-2.12,REV=2009.06.30-SunOS5.8-sparc-CSW.pkg>
## Installing package <CSWnrpe> in global zone

nrpe - nagios remote plugin executor(sparc) 2.12,REV=2009.06.30
http://downloads.sourceforge.net/nagios/ packaged for CSW by Juergen
Arndt
## Executing checkinstall script.
nagios user detected
nagios group detected
## Processing package information.
## Processing system information.
   2 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of <CSWnrpe> [y,n,?] y

Installing nrpe - nagios remote plugin executor as <CSWnrpe>

## Executing preinstall script.
## Installing part 1 of 1.
/opt/csw/bin/nrpe <symbolic link>
/opt/csw/bin/nrpe_1k
/opt/csw/bin/nrpe_8k
/opt/csw/share/doc/nrpe/LEGAL
/opt/csw/share/doc/nrpe/NRPE.pdf
/opt/csw/share/doc/nrpe/README
/opt/csw/share/doc/nrpe/README.SSL
/opt/csw/share/doc/nrpe/README_8k
/opt/csw/share/doc/nrpe/SECURITY
[ verifying class <none> ]
Restoring /etc/opt/csw/preserve/CSWnrpe/nrpe.cfg

[ verifying class <cswpreserveconf> ]
Installing class <cswinitsmf> ...
Creating /var/opt/csw/svc/manifest/application ...
Creating service script in /var/opt/csw/svc/method/svc-cswnrpe ...
Creating manifest ...
Configuring service in SMF ...
CSWnrpe is using Service Management Facility. The FMRI is
svc:/application/cswnrpe:default
[ verifying class <cswinitsmf> ]

Installation of <CSWnrpe> was successful.
## Installing package <CSWnrpe> in zone <anfweb-dev>

nrpe - nagios remote plugin executor(sparc) 2.12,REV=2009.06.30
## Executing checkinstall script.
nagios user detected
nagios group detected
## Processing package information.
## Processing system information.
   2 package pathnames are already properly installed.

Installing nrpe - nagios remote plugin executor as <CSWnrpe>

## Executing preinstall script.
## Installing part 1 of 1.
/opt/csw/bin/nrpe <symbolic link>
/opt/csw/bin/nrpe_1k
/opt/csw/bin/nrpe_8k
/opt/csw/share/doc/nrpe/LEGAL
/opt/csw/share/doc/nrpe/NRPE.pdf
/opt/csw/share/doc/nrpe/README
/opt/csw/share/doc/nrpe/README.SSL
/opt/csw/share/doc/nrpe/README_8k
/opt/csw/share/doc/nrpe/SECURITY
[ verifying class <none> ]
Copying sample config to /opt/csw/etc/nrpe.cfg

[ verifying class <cswpreserveconf> ]
Installing class <cswinitsmf> ...
Creating service script in /var/opt/csw/svc/method/svc-cswnrpe ...
Creating manifest ...
Configuring service in SMF ...
CSWnrpe is using Service Management Facility. The FMRI is
svc:/application/cswnrpe:default
[ verifying class <cswinitsmf> ]

Installation of <CSWnrpe> on zone <anfweb-dev> was successful.
## Booting non-running zone <anfwfproc> into administrative state
## Installing package <CSWnrpe> in zone <anfwfproc>

nrpe - nagios remote plugin executor(sparc) 2.12,REV=2009.06.30
## Executing checkinstall script.
nagios user detected
nagios group detected
/var/tmp//installM_aiEa/checkinstallR_aiEa: /tmp/sh2470: cannot create
pkginstall: ERROR: checkinstall script did not complete successfully

Installation of <CSWnrpe> on zone <anfwfproc> failed.
No changes were made to the system.
## Restoring state of global zone <anfwfproc>




More information about the bug-notifications mailing list