More short tag fixes.
Tidy up PHP short tags.
Fix previous commit.
Bunch of updates from skel to sort the encoding of filenames. I'm beginning to think that we should be just encoding the whole name or something like that :)
Fix a few bugs in the uptime reporting. Mostly reported by skel.
return nothing if we don't get a match - this is what was happening anyway, except it generated a warning whilst doing it.
Updates from skel (Daniel Piddock): - Fix undefined variable warnings - Comment out auto-scroll code since it doesn't really work - Fix some minor formatting problems Also various other updates to the main page and comments.
Updates from skel (Daniel Piddock): - Fix overflow in disk inodes on PHP page. - Added code to get passed in variables from the $_GET variable. Makes things work under a pretty default Debian apache2/php4 set up. - Graphs displays "Network IO" in the drop down list, not "Network usage" for consistency with everything else. - Display Swap, memory and disk usage in MB rather than bytes in latest view. - Display uptime in a pretty days/hours/minutes/seconds rather than just seconds, in latest view - Include file system type under Disks in latest view Thanks Daniel!
Catch a lot of old URL's and update them. Also remove a couple of old files that aren't used.
Update the web pages to deal with the new data.
Add support for disk inode usage, and paging activity. Have added to both the latest data page, and to the graphs sections. Also reworked the memory, swap, and disk graphing to be percentage based.
Updated the "latest data" page to link to the newer graphs.php script rather than the obselete browser.php script.
Added URL to GPL headers.
Slightly better - this way we will still show all the disks.
We need to make sure the max is not 0 either, otherwise we'll get a divide by zero a few lines further down.
empty($var) tests if $var is unset AND if $var is 0. We don't want the latter so we now use !isset($var) instead. This only tests if it is unset.
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 ;)
Included the year in the report date.... for those people that accidentally turn off their i-scream server and don't notice for a couple of years......
Some browsers do not correctly render images if their size is set to zero. If one of the graph bar images has a zero width, then it will be set to 1.
Put the mount point of disk graphs on the next line, as if these are too long, it causes the graph to be stretched.
Removed the display of number of disks in the packet (this shouldn't be there)
Removed the echo of disk information beneath each bar
Put the correct parameters in the call to showBar from within showDisks()
Stopped the disk loop going forever when it reached the last disk(!)
Added the disk report to the display list. Fixed the getPregMatch function so it actually works now ;)
Blimey, added all the stuff needed to make reports on all the disks described in the packet.
Rather than changing the size of the bar to draw, we now change the original value given to the function, as this is then echoed above the bar itself.
Bar displays can now be called with the optional paramter of $arrange. If this is set to "swap", then the 'difference' is displayed. I.e. if we have the data available for free memory and total memory, then it will be possible to display a bar of used memory.
A sensible error message is shown for machines for which no reports are available, or if the data is not readable.
Added links to charts for all scalar values that are numbers. Corrected the spelling of "Receipt" while I was at it... well, nobody else noticed ;)
Tidied up the way links are presented for historical reports
Minor changes
Small chart image shown as a link to the historical reports
Now got a function to provide a link to the relevant historical report
Used a style for the color of lines, as the color attribute is not a valid HTML4 attribute
File listing function is included from the shared iutil.inc.php file.
Altered the display of the packet date.
Minor changes
Graphs are now a little more spaced out so that there is no confusion about which title belongs to which graph.
Graphs display their actual value rather than just a graphic
Those little bar chart bits now have a handy little addition to the scale... units!
Added age warnings to the reports. Jibbled the layout a little as well.
Last report has a line after it now. Makes each section more obvious.
Graphs at the bottom of the page are now centered. This seems to look better.
Layout changes. Each section is now titled. Horizontal rules are now where they should be ;) Font sizes are slightly smaller as well.
Cell contents in showStat(. . .) are now aligned to the top of the cell.
Minor regexp change
Added virtually all of the report fields to the display list (phew). This now also used the printLine() method to separate fields as desired.
The machine name list is now in alphabetical order.
The preg_match on the packet data now matches with an optional "}" at the end of a value such that the last item in a packet is never forgotten about
For some odd reason, the drop down menu was unable to populate itself with machine names. This was traced to the is_dir method in PHP which seems to not always do as it should... i.e. return true if the argument is a directory.
Modified the config so that the report data comes from the group file space. The latest.php file now also allows the report file name to be configured... this is because Tim wrote the first lot with the wrong filename ;)
The PHP interface for viewing the latest data about hosts. This file gets its config from another php file and the reports to run from yet another php file.
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.