| Author |
Message |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 05/08/2010 07:07:00
|
fclauson
Initiate
Joined: 21/05/2010 07:55:11
Messages: 56
Location: Ireland
Offline
|
Coming from an enterprise system management background I wanted to build in some op sys monitoring into Mango ....... So this is what I have done/am doing
I am running on Ubuntu - but you could just as well do this in DOS/Windows
1 - create a JSP page which looks at Disk space utilisation
2 - write an HTTP retreiver to read this data and parse it with events to warn if limits have been reached
to date I have
1 - monitoried disk space - if exceeds 70% then warn me
2 - monitor tomcat log files - if there are more than 50 then warn me (you get a new one each night - I will probably create a script to purge them out on reaching 50 at some stage)
3 - monitor my ADSL router - checking for line speed (I am 9kms from the exchange and the speed goes up an down during the week based on weather, the price of fish etc etc ... !!)
Any other suggestions on what people think would be sensiable to monitor from a Mango perspective - I was thinking of DB size
drop me a note if you want the scripts and screen shots etc
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 05/08/2010 14:53:45
|
Jokke
Initiate
Joined: 19/10/2009 05:08:44
Messages: 52
Location: Oulu Finland
Offline
|
Sounds like a good idea. I have also been thinking about such. Been only monitoring memory and CPU usage with mango but that does not need any specialities.
Alternative way for the monitoring you mentioned could be done the way I tried the owfs here: http://mango.serotoninsoftware.com/forum/posts/list/478.page
In my case I am not so concerned about disk usage as having 1TB space for nothing. I would add the HW monitoring into the list (CPU temp, fans rpm and HDD SMART values etc. which is appropriate on the case)
I have been planning to add watchdogs. With the process handler the 1wire scripts (owfs) could be restarted if the values has not been updated in some period. If it does not help or with some more major problem the whole system could be restarted. This needs some consideration to avoid endless reboot loop and how warnings are raised in mango etc.
Now after upgrade to ubuntu server 10.04 I have noticed tomcat has crashed twice in few days. the reason is still unknown. restarting tomcat and mango is up again. This made me think of a script which would restart tomcat if it is not getting refresh from mango.
BR
Jokke
|
Mango for HA |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 06/08/2010 04:26:16
|
fclauson
Initiate
Joined: 21/05/2010 07:55:11
Messages: 56
Location: Ireland
Offline
|
I have set my PC to autostart in event of power failure and Tomcat (and Mango) to start on boot
Why are you using OWFS when Mango can do all of the 1-wire stuff ?
Francis
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 06/08/2010 05:20:23
|
Jokke
Initiate
Joined: 19/10/2009 05:08:44
Messages: 52
Location: Oulu Finland
Offline
|
As far as I know mango supports the most common devices(ds1820, the switch ds24??, and upcoming counter ds????) with serial adapter(DS9097U). I have not seen the complete list of devices. Please correct if someone knows more details.
I use owfs is because I am using 1wire K-type thermocouple sensors which is not supported. I think also DIY serial adapter and 1wire USB adapter are not supported.
There is huge amount of different 1wire devices which are supported by owfs. Something I might add are 1wire LCD displays, CO2 sensor and humidity sensors.
BR
Jokke
This message was edited 1 time. Last update was at 06/08/2010 05:22:24
|
Mango for HA |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 06/08/2010 17:36:52
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1456
Offline
|
Note that there already is a vmstat data source in Mango, of course only useful on *nix hosts, and only for specific data. But, it's more efficient than some other means of getting this data.
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 06/08/2010 17:40:09
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1456
Offline
|
I have not seen the complete list of devices.
Mango supports "container types", not specific devices. If a new device comes out that is a supported container, it will automatically be supported by Mango. See here for more details:
http://mango.serotoninsoftware.com/forum/posts/list/242.page#1067
|
Best regards,
Matthew Lohbihler |
|
|
 |
|
|