ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/client/monitors/Disk__Monitor.java
Revision 1.23 - (view) (annotate) - [select for diffs]
Thu Feb 10 17:36:00 2005 UTC (19 years, 2 months ago) by tdb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.22: +5 -5 lines
Diff to previous 1.22
Commit various fixes from skel (Daniel Piddock):

CMS Server:
 - DiskMonitor was overflowing due to using an int variable for the
   inode count. Upped to a long.
 - Updated URL to iscream cms javadoc

RRD graphing:
 - added uptime logging and graph creation
 - diskio - Cope with modern linux device paths
   (eg "ide/host0/bus0/target0/lun0/disc") by replacing / with hex
 - diskio - Cope with windows device paths (eg "0 C: D:") by
   replacing : and space with hex
 - disk - Cope with windows mount points (eg C:\) by
   replacing : and \ with hex
 - net - Cope with windows network "device names". Basically
   the whole network card as it appears in Device Manager,
   not "Local Area Connection"
 - Include total processes (for winhost)

Also modified the PHP code to catch up. Patch slightly modified from that
submitted, but only minor alterations.

Thanks skel!

Revision 1.22 - (view) (annotate) - [select for diffs]
Sun Aug 1 10:40:45 2004 UTC (19 years, 9 months ago) by tdb
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21
Catch a lot of old URL's and update them. Also remove a couple of old files
that aren't used.

Revision 1.21 - (view) (annotate) - [select for diffs]
Thu Jan 15 14:10:13 2004 UTC (20 years, 3 months ago) by tdb
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20
OK - I can still program Java, I just can't remember how this works :-)

Revision 1.20 - (view) (annotate) - [select for diffs]
Thu Jan 15 13:41:47 2004 UTC (20 years, 3 months ago) by tdb
Branch: MAIN
Changes since 1.19: +5 -2 lines
Diff to previous 1.19
Assuming I can still program in Java, these changes allow monitoring to
be disabled at a per-host level or a per-host-per-monitor level.

Revision 1.19 - (view) (annotate) - [select for diffs]
Sun Mar 9 21:49:13 2003 UTC (21 years, 1 month ago) by tdb
Branch: MAIN
Changes since 1.18: +77 -32 lines
Diff to previous 1.18
Added support for all the new stuff that ihost provides us with. Ideally
this lot needs to be revamped some day, but for now this brings it all back
up to date.

The biggest change is in the Disk monitor. It wasn't overly neat before,
so I've tidied that up, and also added support for inode monitoring.

Created the DiskIO, NetIO, and Paging monitors to support new types of data
we now handle. The first two sprung from the Disk monitor, whilst the last
is pretty normal.

Configuration has been updated to support the new monitors, although I
don't really have a feel for thresholds for the new types of data.

Revision 1.18 - (view) (annotate) - [select for diffs]
Wed Feb 5 16:43:45 2003 UTC (21 years, 3 months ago) by tdb
Branch: MAIN
Changes since 1.17: +4 -4 lines
Diff to previous 1.17
Changed the server to use the external util package. Quite a minor change,
but does affect a lot of files.

Revision 1.17 - (view) (annotate) - [select for diffs]
Tue May 21 16:47:16 2002 UTC (21 years, 11 months ago) by tdb
Branch: MAIN
Changes since 1.16: +3 -2 lines
Diff to previous 1.16
Added URL to GPL headers.

Revision 1.16 - (view) (annotate) - [select for diffs]
Sat May 18 18:16:00 2002 UTC (21 years, 11 months ago) by tdb
Branch: MAIN
Changes since 1.15: +22 -3 lines
Diff to previous 1.15
i-scream is now licensed under the GPL. I've added the GPL headers to every
source file, and put a full copy of the license in the appropriate places.
I think I've covered everything. This is going to be a mad commit ;)

Revision 1.15 - (view) (annotate) - [select for diffs]
Sat Jan 19 17:54:57 2002 UTC (22 years, 3 months ago) by tdb
Branch: MAIN
Branch point for: SERVER_PIRCBOT
Changes since 1.14: +6 -6 lines
Diff to previous 1.14
After some work elsewhere in i-scream it became apparent that using the
device (filesystem) as the key might not work. As an example:

swap                 7346808      32 7346776     1%    /var/run
swap                  686080    1912  684168     1%    /tmp

These two mounts have the same device name, "swap", but different mount
points. Before this change they would have been treated as the same, even
though they clearly have different properties. Using the mount point isn't
as ideal as the device, as you could move a mount point on a live
filesystem... but that wouldn't cause too many problems as a new Register
would just be created.

Revision 1.14 - (view) (annotate) - [select for diffs]
Mon Nov 26 11:59:19 2001 UTC (22 years, 5 months ago) by tdb
Branch: MAIN
Changes since 1.13: +5 -5 lines
Diff to previous 1.13
Changed the Memory Monitor to correctly deal with "kb" values.

This parallels the change in the Disk Monitor detailed by this Sourceforge
bug tracker:
  [ #476364 ] disk monitor using 'value' thresholds

Revision 1.13 - (view) (annotate) - [select for diffs]
Thu Nov 15 11:47:30 2001 UTC (22 years, 5 months ago) by tdb
Branch: MAIN
Changes since 1.12: +14 -5 lines
Diff to previous 1.12
A small change to allow the 'thresholdMeasure' to be specified on a per
mount point basis. This seems a good idea because the actual thresholds can
already be specified for individual mount points. Of course, as with the
thresholds, a more global one can be specified which covers all mount of
the mount points.
The format is similar to that for mount points.
Monitor.Disk./fs.thresholdMeasure={PERCENTAGE,VALUE}
Monitor.Disk.thresholdMeasure={PERCENTAGE,VALUE}

Revision 1.12 - (view) (annotate) - [select for diffs]
Wed Nov 7 17:55:40 2001 UTC (22 years, 5 months ago) by tdb
Branch: MAIN
Changes since 1.11: +8 -5 lines
Diff to previous 1.11
Bug Fix for the following tracker ID on sourceforge:
  [ #479162 ] Disk Monitor - assumption of order

As stated in the above bug report, the state of a disk was stored using only
it's position in (ultimately) df's output. This position could change at runtime
which makes it not that reliable. The consequences of a change in the position
would not have been a disaster, but would have caused some confusion.

The key for storing a disks state is now the physical device name, as this is
will not change. The mount point was considered as the key, but it was decided
that this could change at runtime too.

Revision 1.11 - (view) (annotate) - [select for diffs]
Wed Nov 7 16:44:11 2001 UTC (22 years, 5 months ago) by tdb
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10
Typo fixes.

Revision 1.10 - (view) (annotate) - [select for diffs]
Wed Nov 7 15:58:43 2001 UTC (22 years, 5 months ago) by tdb
Branch: MAIN
Changes since 1.9: +32 -16 lines
Diff to previous 1.9
Bug Fix for the following tracker ID on sourceforge:
  [ #476364 ] disk monitor using 'value' thresholds

This bug fix addresses the issue with 'kb disk checks' not checking the amount
of disk space free, but rather the disk space in use. Whilst this was probably
the plan initially, it seems somewhat more useful to check the amount of free
space and alert if the value falls too low. This change has now been made.

It should be noted that the documentation talks about 'kb of disk in use', which
is not correct. The comments in the configuration file, however, talk about the
'absolute value of space free'. We'll take the latter as correct.

Revision 1.9 - (view) (annotate) - [select for diffs]
Tue May 29 17:02:34 2001 UTC (22 years, 11 months ago) by tdb
Branch: MAIN
Changes since 1.8: +9 -9 lines
Diff to previous 1.8
Major change in the java package naming. This has been held off for some time
now, but it really needed doing. The future packaging of all i-scream products
will be;

uk.org.iscream.<product>.<subpart>.*

In the case of the central monitoring system server this will be;

uk.org.iscream.cms.server.*

The whole server has been changed to follow this structure, and tested to a
smallish extent. Further changes in other parts of the CMS will follow.

Revision 1.8 - (view) (annotate) - [select for diffs]
Fri Mar 23 02:32:49 2001 UTC (23 years, 1 month ago) by tdb
Branch: MAIN
CVS Tags: PROJECT_COMPLETION
Changes since 1.7: +48 -17 lines
Diff to previous 1.7
Fully javadoc'd all the monitors. Also made a few little changes here and there,
removing code that had been duplicated by copying other monitors, and tidying
up any silly little things (such has hardcoded integer values).

Revision 1.7 - (view) (annotate) - [select for diffs]
Thu Mar 22 17:57:05 2001 UTC (23 years, 1 month ago) by ajm
Branch: MAIN
Changes since 1.6: +114 -112 lines
Diff to previous 1.6
Modified to use the new style queuing in the local client

Revision 1.6 - (view) (annotate) - [select for diffs]
Thu Mar 22 01:51:27 2001 UTC (23 years, 1 month ago) by ajm
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5
modified old comment

Revision 1.5 - (view) (annotate) - [select for diffs]
Thu Mar 22 00:59:13 2001 UTC (23 years, 1 month ago) by ajm
Branch: MAIN
Changes since 1.4: +9 -6 lines
Diff to previous 1.4
Now has support for giving separate mount points

Revision 1.4 - (view) (annotate) - [select for diffs]
Sun Mar 18 00:54:04 2001 UTC (23 years, 1 month ago) by ajm
Branch: MAIN
Changes since 1.3: +27 -6 lines
Diff to previous 1.3
added the option:

Monitor.Disk.thresholdMeasure=VALUE/PERCENTAGE
Monitor.Memory.thresholdMeasure=VALUE/PERCENTAGE

to allow the choosing of what is used to measure the crossing of a threshold.

Revision 1.3 - (view) (annotate) - [select for diffs]
Wed Mar 14 23:25:29 2001 UTC (23 years, 1 month ago) by tdb
Branch: MAIN
Changes since 1.2: +8 -8 lines
Diff to previous 1.2
The whole server package structure has been changed.
Old Package: uk.ac.ukc.iscream.*
New Package: uk.org.iscream.*

Revision 1.2 - (view) (annotate) - [select for diffs]
Fri Mar 9 03:30:55 2001 UTC (23 years, 1 month ago) by ajm
Branch: MAIN
Changes since 1.1: +15 -6 lines
Diff to previous 1.1
TOTALLY re-wrote the Register class and made appropriate changes thoughout.  It
is now much more obvious what is going on in many places.

The problem was probably caused by doing CPU as a first monitor and hard coding
the number of attributes a Register stores.  Now if a monitor wants to store
multiple attributes, it has to do that itself.  This makes alot of things
much more readable and inteligable as a result.

Revision 1.1 - (view) (annotate) - [select for diffs]
Fri Mar 9 01:22:46 2001 UTC (23 years, 1 month ago) by ajm
Branch: MAIN
The new Disk monitor, allows the monitoring of all disks on a host.

Convenience Links

Links to HEAD: (view) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a