Working on Nagios perl module

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)

This article has 8 comments so far!

  1. Christian says —

    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. Alexander Mamchenkov says —

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

  3. Netprofi says —

    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. Alexander Mamchenkov says —

    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. Semireg says —

    post the code!

  7. Netprofi says —

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

  8. Alexander Mamchenkov says —

    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 Comment