On Mon, Jun 13, 2011 at 7:32 PM, Adriano Marques <[email protected]> wrote: > Hi Dragos, > > Great that you asked. This is going to be useful for Piotrek as well. > > On Jun 10, 2011, at 7:54 PM, Dena Dragos wrote: > >> Hello! >> >> According to my timeline, my next task would be to make the first real >> monitoring module for the Umit Agent, which will be called "Device >> Sensor". The purpose of this module is to listen to various device >> parameters and report them. Now, obviously there are some questions >> which should be asked here and I hope you can help me here to make >> this as good as possible: >> >> * To what parameters should it listen? For example it could listen to >> CPU Load, RAM Usage, HDD Usage. But I don't have too much imagination >> and sufficient experience to think of all the useful (and eventually >> necessary) stuff that should be monitored here. I would like your >> suggestions if possible :). > > - Load Average > - Memory Usage (ram + swap) > - HD Available Space > - Snapshot of the top output > - Hostname (we want to be sure it didn't change) > - Uptime (we want to know if we had a restart recently) > - Ports Open (as well as the amount of open ports, so that we can have an > alarm threshold for amount and alarms for specific ports) - Network Bytes in/ Bytes out would be interesting as well > >> * With what parameters it should be configurable? For example, we >> could have something like sending "INFO" notifications every 30 >> (configurable) seconds with the RAM Usage. At the same time we could >> have the Device Sensor sending a "WARNING" notification sent when the >> RAM Usage is over 80% (configurable) for more than 20 seconds >> (configurable), or a "CRITICAL" one if it's over 90% (configurable) >> for more than 5 minutes (configurable). I think there are some options >> here, but I'm thinking of the best way to define these configurations: >> to have them a bit more "dynamic". By "dynamic", I mean something >> like: (target, condition, action), where, >> - target could be CPU, RAM, etc >> - condition would be 'is over 60% usage' and stuff like that >> - action would be: send CRITICAL/INFO/etc notification. > > It should be configurable by the user, though we should adopt some default > values, of course. Let's discuss this further when we have this functionality > ready and we can test and tweak. Agreed. > >> * What are your suggestions about the libraries that could be used >> here? I found [1] that seems okay for cross-platform monitoring tasks. >> It's under BSD license (I'm not very good with licenses, but that >> shouldn't interfere with ours, right?). If you make suggestions about >> stuff being monitored, it would be great if you could propose a >> framework or a basic idea to do it (if it isn't trivial of course). > > We don't necessarily need to have cross platform agents. Some of them, are > going to be too platform specific. But, yeah, psutil looks like a good choice > for what we're doing with this specific agent, and since it is BSD, we're > fine to use it. I need to take a look on psutil code, but it seems to be a good bridge to don't touch the operating system internals. > >> If you have other suggestions or questions, please ask :). >> >> As a side note, right now I'm also working in parallel for the SNMPv3 >> support, but I hope I will finish it fast. Just need to get the >> authentication and encryption sorted out, but there are some possible >> parameters here. Until I will get to code too much I hope to find a >> life-saver in PySNMP sources, but didn't seen one until now :( (that >> would involve not too much manual parsing of the header). It will also >> may require some database collection with entries like: (snmpv3 >> username, priv_key, auth_key). >> >> Best regards, >> Dragoș >> >> [1] http://code.google.com/p/psutil/ > > --- > Adriano Monteiro Marques > > http://www.thoughtspad.com > http://www.umitproject.org > http://blog.umitproject.org > > "Don't stay in bed, unless you can make money in bed." - George Burns > >
I'm sorry guys, I've been talking to Dragos, but I didn't manage to make a proper response to this e-mail earlier. -- Rodolfo Carvalho Web Developer [email protected] ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Umit-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/umit-devel
