I'd like suggestions for my PHP script, Linfo

Coding Critique is the place to post source code for peer review by other members of DevNetwork. Any kind of code can be posted. Code posted does not have to be limited to PHP. All members are invited to contribute constructive criticism with the goal of improving the code. Posted code should include some background information about it and what areas you specifically would like help with.

Popular code excerpts may be moved to "Code Snippets" by the moderators.

Moderator: General Moderators

Post Reply
jrgp
Forum Newbie
Posts: 4
Joined: Mon Nov 01, 2010 8:57 am

I'd like suggestions for my PHP script, Linfo

Post by jrgp »

I'm currently working on Linfo. It is a GPL licensed php script that gives information about the host server, such as kernel, operating system (currently runs on Linux, most of the BSDs, Solaris, and Minix), temperatures, voltages, drives, partitions, disk space, uptime, devices, and other stuff. The settings are extensive and everything is optional. A lot of other things are turned off by default. It's goals are to be extremely fast, be minimal looking but still pretty, and not call external programs in the linux version to get information, and instead just parse /proc and /sys.

The main sourceforge project is here: http://linfo.sf.net/

Currently the developers are myself (joe@u13.net) and elephanthunter (elephanthunter@gmail.com)

The project seems to work well and is gaining popularity, but I'd really appreciate any suggestions or feedback anyone might have.

A few current installations:
http://jrgp.u13.net/linfo
http://jrgp.org/linfo
http://jrgp.us/linfo
http://jrgp.us:89/linfo
boyter
Forum Newbie
Posts: 3
Joined: Sun Dec 05, 2010 6:44 pm
Location: Sydney

Re: I'd like suggestions for my PHP script, Linfo

Post by boyter »

Very very cool! Im going to install it now.

As for suggestions,

Might be useful to flag filesystems mounts which are over a certain threshold of usage and either make them another colour or something similar. I have a look through the source and couldn't see it in there but its possible you already have it there.

Something else that would be cool is some sort of heartbeat showing the webserver usage over the last day or so.

Finally some sort of load graph would be pretty useful to see usage over a time period.

Even without the above its pretty useful. Good for installing on client machines I administer but dont actually own.
jarofgreen
Forum Commoner
Posts: 71
Joined: Sun Jul 11, 2010 12:40 pm

Re: I'd like suggestions for my PHP script, Linfo

Post by jarofgreen »

That is pretty cool :-) ... is there any way the user can set threshholds and receive alarms if problems occur? you could hook it into a server monitoring system, something like nagios, to achieve that. That might also give you stuff like the history and pretty graphs.
Last edited by jarofgreen on Sun Dec 26, 2010 1:49 pm, edited 2 times in total.
jarofgreen
Forum Commoner
Posts: 71
Joined: Sun Jul 11, 2010 12:40 pm

Re: I'd like suggestions for my PHP script, Linfo

Post by jarofgreen »

Why are only 2 processes shown BTW? can you have more shown, like smtp servers?
Post Reply