[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bigsister-general] plugin for environmental variables


Stefan,
 
Thanks for your advices. After my mail I managed to find the Developer's Manual which is of great help.
Nevertheless, its usefulness notwithstanding, I found it lacking information about the structure and
how to write a REQUESTER module (the interface between opsys shell commands and UXMON).
I got some useful information also from the doxydoc (http://www.bigsister.ch/doxydoc/html/) reading
the classes one by one. 
 
I'm using the VMSTAT function as a template for the sensors function I want to write. 
I reckon It is simple and functionally close to it
 
VMSTAT.pm contains a routine called AVAILABLE  and a second routine called PARSE.
From my understanding of the way it works I guess I will also need a PARSE function in order to
extract the info from the SENSORS command output. But, do I need the AVAILABLE  routine?
what is it for? and, who is calling them? are theirs standard names with standard functions
and  what those functions are supposed to be?
The Requester.pm module, which it looks like the one calling the registered modules, does not
seem to contain clues that could answer my questions.
 
I hope that some developer can spare a bit of time to document or at least quickly provide some
information about how to write a REQUESTER module.
 
  Costa
-----Original Message-----
From: stefan steimann [mailto:suppressed
Sent: 19 September 2007 21:49
Subject: Re: [Bigsister-general] plugin for environmental variables

Hi Costa,
 
I don´t know about such a check, so it seems a good idea to write one. I wrote some specific checks for Sun Raids and ZFS Monitoring. I never officially released them due to the fact, that they are quite not perfect, e.g. status messages are displayed twice in the webinterface. It seemed that no one really wanted/could help me so you are on your one in most cases.
Take a look at bigsister.graeff.com; you will find a document describing how to create cfg-File. This is a good start, but not all commands are covered in this document. I also recommend looking at some other requesters to get to know how to create a perl module. Always keep in mind that you can´t invent names for the subroutines. Instead you should name the routine which returns values "getinfo()".
 
Hope this helps a little bit....
 
Best Regards
 
Stefan Steimann
 
2007/9/13, Costantino Balletta <suppressed>:
Apparently global warming is affecting even my home LAN.
Without air conditioning in my office, last year I've lost two machines due
to the
heat and malfunctioning fans, and the other day my backup/restore server got
busted.

I need to monitor the room and computer's environmental variables if I want
to
prevent next disastrous event.

On Fedora, which I use, there is the lm_sensors package that provide the
necessary
information, typically temperatures + fans rpms.

If nobody has already done it, I'm  willing to write the plugin to interface
the
lm_sensors output for BigSister.

Any pointers where to look for about how to write such a plugin for
BigSister and
any advice is greatly encouraged + welcome.

Thanks,

Costa.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bigsister-general mailing list
suppressed
https://lists.sourceforge.net/lists/listinfo/bigsister-general

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bigsister-general mailing list
suppressed
https://lists.sourceforge.net/lists/listinfo/bigsister-general

Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.