Blog of Alexander Mamchenkov … mammoth cave …

Working on Nagios perl module

11:29 27/12/2006 · Posted in Technology

I am currently working on creating a perl module do deal with Nagios configuration. The existing Nagios-Object package is quite limited, outdated and not that fully implemented. I checked it up and decided to rewrite it using my way.

Currently I am using Class-Generate package to help me with creating classes for Nagios object definitions and I already managed to write a parser which takes a path of nagios main configuration file, finds all links to object definition files and parses all definitions. One\’s parsed, the definitions are stored as objects with all accessorts/mutators available.

I am also implementing object linkage so that the relations of objects can be used easily. Currently most of the stuff is already working fine.

In addition I am planning to implement the write function so that it is possible to create problem text config files with object definitions. Also thinking on getting on status log parsing.

The idea behind is to create a web admin panel for Nagios and extend the functionality, plus maybe I will do a new web frontend for Nagios, since the one given is not that good (anymore). I already have some web stuff working (based on perl, Catalyst, CGI-FromBuilder and Template-Toolkit)

8 Responses to “Working on Nagios perl module”

  1. Sounds really interesting. I’ve been working on something like this my self (in Ruby though), but I’m far from finished (and not sure I ever will be). Maybe I should consider going with your stuff instead. Have you released any code?

  2. Honestly, I have temporarily stopped any coding due to the lack of time :( (as happens quite often)

  3. Hello,

    do you mind to share your existing source-code. I want to implement nearly the same and don´t want to invent the wheel a third time.

  4. I need to try and find the code, since I have stopped programing this and I don’t really remember where I have the stuff. Anyway, if I find something related – I will send it over to you for sure :)

  5. Netprofi says:

    great,

    i´m looking forward to the code.

  6. post the code!

  7. Hello,
    have you searched for the code ?!?
    Thanks

  8. I have checked all the possible places and I can’t bloody find it :( seems like I removed it some time ago when I was cleaning the stuff around.

Leave a Reply