[icinga-checkins] icinga.org: dashing-icinga2/master: Immediately start job scheduler ( thx Tobias von der Krone)

git at icinga.org git at icinga.org
Sun Nov 27 19:16:59 CET 2016


Module: dashing-icinga2
Branch: master
Commit: e7afafa44f965b23df735a233a2efcda2c7655ec
URL:    https://git.icinga.org/?p=dashing-icinga2.git;a=commit;h=e7afafa44f965b23df735a233a2efcda2c7655ec

Author: Michael Friedrich <michael.friedrich at icinga.com>
Date:   Sun Nov 27 15:54:46 2016 +0100

Immediately start job scheduler (thx Tobias von der Krone)

---

 jobs/icinga2.rb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jobs/icinga2.rb b/jobs/icinga2.rb
index 3ac54e2..57f2df3 100644
--- a/jobs/icinga2.rb
+++ b/jobs/icinga2.rb
@@ -22,7 +22,7 @@ require './lib/icinga2'
 # initialize data provider
 icinga = Icinga2.new('config/icinga2.json') # fixed path
 
-SCHEDULER.every '5s' do
+SCHEDULER.every '5s', :first_in => 0 do |job|
   # run data provider
   icinga.run
 



More information about the icinga-checkins mailing list