[Nagiosplug-devel] Please can I have GIT access

Alain Williams addw at phcomp.co.uk
Fri Sep 4 15:03:42 CEST 2009


On Fri, Sep 04, 2009 at 01:47:49PM +0100, Ton Voon wrote:
> Sorry, didn't read this thread earlier.
> 
> I also prefer the files option. My approach is to abstract the  
> plugin's interface to the actual implementation, and then get the  
> implementation working in the simplest way possible first. If it turns  
> out to be a bottleneck, we can enhance the implementation without  
> changes to the plugin.
> 
> So I think we should have a nagios plugins library called  
> np_write_state_data() and np_read_state_data().

Since I started all of this I'll do the first cut of these.
I will only start of this is agreed to be the correct approach,
it the work will be accepted (assuming suitable quality).

> What's the interface? Please help flesh this out. I'm guessing on a  
> write you would pass:
>    * plugin name
>    * optional index name for the state data (eg, hostname)
>    * time of invocation
>    * serialized data
> 
> On a read, you pass:
>    * plugin name
>    * optional index name
> 
> You get returned (null for error):
>    * last time
>    * serialized data
> 
> We can implement this first as writing to files. If this is a problem,  
> we can always switch to memcache or sqllite or some other technique  
> later.
> 
> If we can agree a design, I'll be looking for someone to volunteer to  
> write this with appropriate tests to go into core plugins code. Then  
> we can switch any particular plugins to use this if state info is  
> required.

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
Past chairman of UKUUG: http://www.ukuug.org/
#include <std_disclaimer.h>




More information about the Devel mailing list