zorkian / nagios-api

A REST-like, JSON interface to Nagios
BSD 3-Clause "New" or "Revised" License
586 stars 173 forks source link

diesel.log has no sublog method #4

Closed gravityrd closed 11 years ago

gravityrd commented 12 years ago

Hello!

Diesel has innovated away their own logging and there's no longer a sublog method on their Logger class (which is just a Twiggy.Logger object).

So ./nagios-api -s ../tmp/nagios/status.dat results in a fatal error, complaining about glog.sublog().

zorkian commented 12 years ago

Thanks for the report. This is because Diesel has recently gone to version 3 and made a few backwards incompatible changes. I'll see if I can get the nagios-api to work with both.

If you want it to work "right now", you can downgrade to the Diesel 2 branch. Otherwise, I'll try to get an update done this afternoon to make it work on both.

gravityrd commented 12 years ago

Thanks for the quick reply! I saw that there was a diesel2 and diesel3 branch too, but their network graph wasn't making things any clearer.

On a completely unrelated note, have you thought about supporting NDO or Livestatus extensions?

jgoulah commented 12 years ago

+1

zorkian commented 12 years ago

I have thought about it and think it'd be useful -- haven't touched it yet though. Livestatus looks like it would be nice to support and add a lot of immediate functionality.

zorkian commented 11 years ago

I just committed the update to work with Diesel 3. Closing this.