Title: [opsview] [5350] Run nagios profile for import_runtime in cron
Revision
5350
Author
dferguson
Date
2010-11-12 13:55:00 +0000 (Fri, 12 Nov 2010)

Log Message

Run nagios profile for import_runtime in cron

This is to have environment variables set to prevent certain information messages from being emailed out.

Modified Paths

Modified: trunk/CHANGES
===================================================================
--- trunk/CHANGES	2010-11-12 13:54:56 UTC (rev 5349)
+++ trunk/CHANGES	2010-11-12 13:55:00 UTC (rev 5350)
@@ -9,6 +9,7 @@
     Fixed showing welcome page when first logged into Opsview for admin user
     Fixed default value for auditlog's username column
     Fixed ambiguous term for hostgroup status query
+    Fixed cron import_runtime errors from not having profile run
 
 3.9.1.5340 8th November 2010
     FIXES:

Modified: trunk/opsview-core/installer/crontab.nagios
===================================================================
--- trunk/opsview-core/installer/crontab.nagios	2010-11-12 13:54:56 UTC (rev 5349)
+++ trunk/opsview-core/installer/crontab.nagios	2010-11-12 13:55:00 UTC (rev 5350)
@@ -6,7 +6,7 @@
 22 2,6,10,14,18,22 * * * . /usr/local/nagios/bin/profile && /usr/local/nagios/bin/opsview_cronjobs 4hourly > /dev/null 2>&1
 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/nagios/bin/call_nmis nmis.pl type=collect mthread=true > /dev/null 2>&1
 34 0,4,8,12,16,20 * * * /usr/local/nagios/bin/call_nmis nmis.pl type=update mthread=true > /dev/null 2>&1
-4 * * * * /usr/local/nagios/bin/import_runtime -q
+4 * * * * . /usr/local/nagios/bin/profile && /usr/local/nagios/bin/import_runtime -q
 # NMIS reports
 0 0 * * * /usr/local/nagios/bin/call_nmis run-reports.sh day health
 0 0 * * * /usr/local/nagios/bin/call_nmis run-reports.sh day top10

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

Reply via email to