a3rd / molniya

Automatically exported from code.google.com/p/molniya
GNU General Public License v2.0
0 stars 0 forks source link

Problem starting the daemon #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Just launching

What is the expected output? What do you see instead?

I get this:

./nagios.rb:446:in `load': undefined method `new' for nil:NilClass 
(NoMethodError)
    from ./nagios.rb:444:in `each'
    from ./nagios.rb:444:in `load'
    from ./nagios.rb:157:in `_refresh'
    from ./nagios.rb:126:in `refresh_if_needed'
    from /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
    from ./nagios.rb:124:in `refresh_if_needed'
    from ./nagios.rb:427:in `refresh_if_needed'
    from ./nagios.rb:162:in `contents'
    from ./molniya.rb:425:in `status_report'
    from ./molniya.rb:580:in `update_status_msg'
    from ./molniya.rb:507:in `initialize'
    from ./molniya.rb:746:in `new'
    from ./molniya.rb:746:in `launch'
    from -e:1

What version of the product are you using? On what operating system?

0.2.1 on Centos 5 x64

Please provide any additional information below.

[root@QA molniya-0.2.1]# more example.yaml 
# XMPP username (JID) to connect as
username: jira@atlasit.com/molniya
# Password for XMPP user
password: XXXXXXXXXXXX
# Base URI for your Nagios installation
nagios_uri: https://monitor01.atlasit.com/monitor
# /var directory of your Nagios installation
nagios_var: /opt/monitor/var
# Nagios contact field used to store XMPP JID
xmpp_field: address1
# email address to send mail as
smtp_from: op5@atlasit.com
# SMTP server to use
smtp_relay: localhost
# Options suitable for passing to Rack::Handler::Mongrel#run
http_opts:
  :Host: localhost
  :Port: 7991

Original issue reported on code.google.com by oscar...@gmail.com on 26 Sep 2009 at 7:50

GoogleCodeExporter commented 9 years ago
Hello,

Thanks for trying Molniya. I suspect you are using some Nagios object types 
that I'm not. Can you check out the 
trunk version of the code and see if it works? I've changed the Nagios 
configuration loading to ignore 
unrecognized object types.

If that doesn't fix it, please tell me what Nagios version you're running. 

Original comment by cswhee...@gmail.com on 29 Sep 2009 at 12:11

GoogleCodeExporter commented 9 years ago
I was experiencing the same problem as the initial reporter, however the 
version in
svn-trunk fixes this.

Original comment by matt.h...@gmail.com on 16 Apr 2010 at 1:48

GoogleCodeExporter commented 9 years ago
Thanks for the verification, Matt. Marking this fixed.

Original comment by cswhee...@gmail.com on 21 Apr 2010 at 9:26