Menu

Hello

Hello everybody.

I'm proudly presenting you the first (as I think) centralized program for monitoring server, trigger-catching and updating needed things.

So, what do we have?

We have a little program, which is a loader for core plugin. Core plugins is responsible for loading server-monitoring plugins. Currently there is plugin only for Apache web server monitoring (in fact, the hole project was designed for Apache monitoring and only after releasing 3 versions I realized that it would be better to support as many servers as it can).

What do plugins?

They are monitoring for an event, and then taking needed action. Simple, right?
Let's look at plugin for Apache. It is waiting for new folder being created in Apache's document root and if created then generating Vhost config file from a template, after what adds new entry to hosts file and finally restarts Apache.

I used C-pluff as a framework for plugin development, so you need C-pluff libraries installed. If you want to develop plugin yourself you must install C-pluff headers to. You can find C-pluff here: http://www.c-pluff.org/.
Also, minIni was used for ini file parser, but don't worry, if you check out source from SVN or download tarball there is already latest version of minIni included.

Why it has version number of 0.1.4-r1 instead of 0.1 etc?

Because, as it was mentioned earlier, project started as just a directory monitor for Apache's document root and etc... So, that was the very first version (0.1.0).

After that I decided to migrate to modular architecture. Fist step was to separate logic for server monitoring from core program's logic. So we've got version 0.1.2. It was kind of semi-modular program, for whom you can develop modules, but there were statically linked to program and for each new module you'll be have to recompile whole project.

Next, I was searching for a simple, yet powerful plugin framework for C and found C-pluff. After that, there was not so much work -- just to format plugins that i have already into the C-pluff code style. So, we've got version 0.1.4

Enjoy the program, feel free to contact me, to write plugins, to requesting a feature or plugin etc :)

Posted by Ashot Aslanyan 2011-03-27

Log in to post a comment.