Title: [opsview-base] [40] Fix to Solaris agent packaging for etc/nrpe_local
Revision
40
Author
dferguson
Date
2012-09-18 09:05:14 +0100 (Tue, 18 Sep 2012)

Log Message

Fix to Solaris agent packaging for etc/nrpe_local

Fix the following error:

%% Executing postinstall script.
stty: : No such device or address
Sep 17 15:45:06 zng04-2 nrpe[857]: Could not open config directory '/usr/local/nagios/etc/nrpe_local' for reading.
Sep 17 15:45:06 zng04-2 nrpe[857]: Continuing with errors...
Sep 17 15:45:06 zng04-2 nrpe[857]: [ID 362232 daemon.error] Could not open config directory '/usr/local/nagios/etc/nrpe_local' for reading.
Sep 17 15:45:06 zng04-2 nrpe[857]: [ID 744170 daemon.error] Continuing with errors...
NRPE started

Modified Paths

Modified: trunk/CHANGES
===================================================================
--- trunk/CHANGES	2012-09-17 13:22:40 UTC (rev 39)
+++ trunk/CHANGES	2012-09-18 08:05:14 UTC (rev 40)
@@ -5,4 +5,5 @@
         NRPE now returns some system version information
     FIXES:
         Fix to nagvis for later versions of firefox and chrome where use of vairables was a bit lax in code
+        Fix to Solaris agent packaging when etc/nrpe_local didn't exisst
     TECHNICAL:

Modified: trunk/solaris_pkg/postinstall.ALTovagent
===================================================================
--- trunk/solaris_pkg/postinstall.ALTovagent	2012-09-17 13:22:40 UTC (rev 39)
+++ trunk/solaris_pkg/postinstall.ALTovagent	2012-09-18 08:05:14 UTC (rev 40)
@@ -24,6 +24,9 @@
     done
 done
 
+# also make sure nrpe_local etc directory exists
+installf $PKGINST $PKG_INSTALL_ROOT/usr/local/nagios/etc/nrpe_local d 0770 nagioa nagios
+
 # signal end of packaging changes
 installf -f $PKGINST
 

_______________________________________________
Opsview-checkins mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-checkins

Reply via email to