SF.net SVN: opencsw:[675] buildfarm/bin/opencsw-future-update

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Wed Mar 26 21:49:21 CET 2014


Revision: 675
          http://sourceforge.net/p/opencsw/code/675
Author:   dmichelsen
Date:     2014-03-26 20:49:21 +0000 (Wed, 26 Mar 2014)
Log Message:
-----------
opencsw-future-update: Send passive checks on catalog generation

Modified Paths:
--------------
    buildfarm/bin/opencsw-future-update

Modified: buildfarm/bin/opencsw-future-update
===================================================================
--- buildfarm/bin/opencsw-future-update	2014-03-16 12:22:15 UTC (rev 674)
+++ buildfarm/bin/opencsw-future-update	2014-03-26 20:49:21 UTC (rev 675)
@@ -27,7 +27,7 @@
   fi
 fi
 
-trap "rm -f \"${pidfile}\"; rmdir \"${lockpath}\"; mv /opt/csw/apache2/share/htdocs/buildfarm/catalog-generation.log.new /opt/csw/apache2/share/htdocs/buildfarm/catalog-generation.log; exit 0" 1 2 3 5 6 15 ERR
+trap "rm -f \"${pidfile}\"; rmdir \"${lockpath}\"; mv /opt/csw/apache2/share/htdocs/buildfarm/catalog-generation.log.new /opt/csw/apache2/share/htdocs/buildfarm/catalog-generation.log; /usr/bin/printf 'buildfarm.opencsw.org\tCATALOG-GENERATION\t2\tCatalog generation failed\n' | /opt/csw/nagios/bin/send_nsca -H 192.168.1.50 -c /etc/opt/csw/nagios/send_nsca.cfg;exit 0" 1 2 3 5 6 15 ERR EXIT
 echo $$ > "${pidfile}"
 
 exec >/opt/csw/apache2/share/htdocs/buildfarm/catalog-generation.log.new 2>&1
@@ -50,3 +50,6 @@
 
 rm -f "${pidfile}"
 rmdir "${lockpath}"
+
+trap - EXIT
+printf "buildfarm.opencsw.org\tCATALOG-GENERATION\t0\tCatalog generation finished\n" | /opt/csw/nagios/bin/send_nsca -H 192.168.1.50 -c /etc/opt/csw/nagios/send_nsca.cfg

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list