Closed GoogleCodeExporter closed 9 years ago
Index: molniya
===================================================================
--- molniya (revision 44)
+++ molniya (working copy)
@@ -1,4 +1,4 @@
-#!/bin/ksh
+#!/bin/sh
## molniya: a Nagios IM (XMPP) gateway.
##
Index: molniya.rb
===================================================================
--- molniya.rb (revision 44)
+++ molniya.rb (working copy)
@@ -420,9 +420,10 @@
@last_mtime = nil
@sb = sb
nagios_var = Pathname.new(conf['nagios_var'])
+ nagios_cache = Pathname.new(conf['nagios_cache'])
#log "Nagios /var is #{nagios_var}"
- @config = Nagios::Config.new(nagios_var + 'objects.cache', self)
- @status = Nagios::Status.new(nagios_var + 'status.dat', self)
+ @config = Nagios::Config.new(nagios_cache + 'objects.cache', self)
+ @status = Nagios::Status.new(nagios_cache + 'status.dat', self)
@cmd_t = Nagios::CommandTarget.new(nagios_var + 'rw' + 'nagios.cmd')
end
this patch and using
nagios_var: /var/lib/nagios3/
nagios_cache: /var/cache/nagios3/
in the config.yaml makes things go further for me.
also i can recommend installing rubygems1.8 from backports for lenny to get
ruby going.
Original comment by g_c...@hyte.de
on 30 Sep 2010 at 6:28
Good catch, and thanks for the patch. I've committed a fix. Sorry for the delay
in attending to this one!
Original comment by cswhee...@gmail.com
on 7 Oct 2010 at 8:55
Original issue reported on code.google.com by
dm8...@gmail.com
on 8 Aug 2010 at 6:04