Koozali.org: home of the SME Server

Graphical Server Monitor

cydonia

Graphical Server Monitor
« on: November 12, 2004, 04:45:06 AM »
Is it possible to display stats regarding your server, ie:

-system usage (hdd, ram etc)
-users currently logged on
-directories/files currently being accessed
-services currently running
-etc. etc.

and other usefull stuff on a remote computer, in a graphical way?

I'm thinking superkaramba/gdesklets sort of thing.

mbachmann

Graphical Server Monitor
« Reply #1 on: November 12, 2004, 10:39:21 AM »
There are some contribs for that: mrtg, sysmon, phpsysinfo, geeklog, isoqlog, sarg, disk usage ibays/users, awstats and whatnot. If you want to see logged on users type "users" at prompt, no gui for that neither for running services afaik.

If you want to built a "gui" for services you could, for instance, issue
Code: [Select]
ps -AHf > processes.txt every 5 minutes via cronjob or MasterSleepy crontab-manager server panel, move processes.txt to wherever you like and/or build some html around it for viewing pleasure and open it with a browser. Similar goes for the
Code: [Select]
top command.

Hornox

Graphical Server Monitor
« Reply #2 on: November 12, 2004, 10:45:20 AM »
I´m using phpsysinfo. Works fine for me. Easy installation and gives a lot of information...

Phpsysinfo on my server: http://www.jungerius.org/phpsysinfo/
Install guide: http://sme.swerts-knudsen.dk/index.html?frame=http%3A//sme.swerts-knudsen.dk/howtos/howto_11.htm
Get the latest version from: http://sourceforge.net/projects/phpsysinfo/

Cya,
Hornox

the_mad_prof

PHP-sysinfo
« Reply #3 on: November 12, 2004, 01:58:59 PM »
Slightly o/t but how do I get the OS field to show correctly?  If I can manually configure I would state Contribs-SME, otherwise Redhat will be fine.

Just a small thing.

Offline HomePlayer

  • ***
  • 55
  • +0/-0
phpsysinfo
« Reply #4 on: November 13, 2004, 10:07:37 AM »
phpsysinfo is not showing the mount file system,
swerts-knudsen.dk phpSysInfo

I didn't use his script to install, but i got the same result, no mounts showing,

 
Quote
Slightly o/t but how do I get the OS field to show correctly? If I can manually configure I would state Contribs-SME, otherwise Redhat will be fine.

good question, i did manually change this and i replaced the XP logo for the logo of Contribs.org

BOD

Graphical Server Monitor
« Reply #5 on: November 15, 2004, 12:16:57 AM »
i just downloaded phpsysinfo and all i get is empty stats....

http://bod.no-ip.org/phpsysinfo/

Mumm-Ra

phpsysinfo
« Reply #6 on: November 15, 2004, 09:27:24 PM »
I lost nearly all stats when I upgraded to a Raid configuration. On my test machine it works perfectly well.
Not too sure what the problem is. Anybody know why?

the_mad_prof, you need to modify the class.Linux.inc.php file in the includes\os folder.
Scroll right down to the bottom and in the
Code: [Select]
function distro edit the 'N.A.' at the end of the function
i.e.
Code: [Select]
  } else {
      $result = 'N.A.';
to
Code: [Select]
  } else {
      $result = 'Lycoris SME';
 then change the xp.gif to a Lycoris SME gif.
I used the following before I upgraded and I'll happily share it out if the Lycoris guys don't mind.
Grab it at http://www.hspencer.co.uk/sme-image/

the_mad_prof

Graphical Server Monitor
« Reply #7 on: November 15, 2004, 11:08:00 PM »
Howard,

Sweet!

http://loachfamily.dyndns.org/stats (may be down - I'm rebuilding into my new toy).

John.

BOD

Graphical Server Monitor
« Reply #8 on: November 19, 2004, 12:22:17 AM »
how did u get it to show the mounted filsystems to show up? cos i cant get it to do that

Mumm-Ra

Graphical Server Monitor
« Reply #9 on: November 19, 2004, 12:42:05 AM »
BOD,
you've got to make the following code in you config.php looks like this
Code: [Select]
// show mount point
// true = display  false = do not display
$show_mount_point = true;

You should find this is this last part of the config.php file in your phpsysinfo directory

BOD

Graphical Server Monitor
« Reply #10 on: November 19, 2004, 12:43:57 AM »
it is like that it just doesnt show up......

http://phpsysinfo.bod.alturl.com

Mumm-Ra

Graphical Server Monitor
« Reply #11 on: November 19, 2004, 12:53:47 AM »
did you run the following commands after installing phpsysinfo
Code: [Select]
/sbin/e-smith/db accounts setprop <I-Bay Name> PHPBaseDir /home/e-smith/files/ibays/<I-Bay Name>/:/proc
/sbin/e-smith/signal-event ibay-modify <I-Bay Name>

If that doesn't work, are you running in RAID1 configuration, as it doesn't work for me using that so I've got phpsystem http://www.hspencer.co.uk/phpsystem/ instead
You'll find it here http://www.warpedsystems.sk.ca/staticpages/index.php/phpSystem
Same commands on the iaby that you install it into

BOD

Graphical Server Monitor
« Reply #12 on: November 19, 2004, 01:04:26 AM »
it still doesnt show the mounts........

and im not running in RAID....

BOD


cydonia

Graphical Server Monitor
« Reply #14 on: November 22, 2004, 03:10:25 AM »
Well, i found something close to what i'm looking for, at least part of it.

http://www.kde-look.org/content/show.php?content=5698


It only monitors the system its running on, but i'm sure this could easily be changed with the power of python.

jerryyap

Couldn't get it to work
« Reply #15 on: November 28, 2004, 06:22:01 PM »
Hi,

I followed swerts-knudsen's contrib page to the letter, careful to change the version from 2.1 to 2.3.

However, I still can't get it to work?
I get a page not found error.

Has anybody any luck with 2.3 on a SME6.0?

Regards,
Jerry

BOD

Graphical Server Monitor
« Reply #16 on: November 28, 2004, 07:39:47 PM »
http://bod.no-ip.org/phpsysinfo

mine works, use the rpm listed earlier it works

Landry

Graphical Server Monitor
« Reply #17 on: November 29, 2004, 04:48:33 PM »
Hello all.

I've developped a contrib, e-smith-sme6admin, which monitors many aspects of smeServer, but it is only in french at this moment. It monitors cpu, memory, e-mails, network load, network connections (ssh, ftp, pptp....) ,services status, disk usage...... It sends e-mails alerts when a problem is detected. As soon as i have time, i'll turn it to multi-lingual.

It's at http://firewall-services.com
Mail me for more info in english :D

mbachmann

Graphical Server Monitor
« Reply #18 on: November 30, 2004, 02:35:37 PM »
Your system monitor is incedibly well done, Landry. I just added your work to the howto / New Contrib Announcements section: http://no.longer.valid/phpwiki/index.php?pagename=New%20Development%20Announcements%20November%202004, feel free to add or edit.

Your panel provides everything one could ask for: controlling services, memory usage of services/processes, email alerts, temp and fan sensor, network usage and throughput. Really  good, congratulation for your good work.

drywalldude

You could use cacti
« Reply #19 on: December 01, 2004, 12:47:20 AM »
Until the sme admin is translated to English (if that's your language ) you could allways "cacti"

http://ericscomputer.kicks-ass.net/cacti_export/

Somebody please do an English translation for sme admin that looks like an awsome! addition to SME

chrisparker

Re: PHP-sysinfo
« Reply #20 on: December 01, 2004, 01:12:49 PM »
Quote from: "the_mad_prof"
Slightly o/t but how do I get the OS field to show correctly?  If I can manually configure I would state Contribs-SME, otherwise Redhat will be fine.


If you create a file called /etc/redhat-release, phpsysinfo will automatically pick the install up as a redhat release. In the file you can put whatever you want the name of the distro to show as

eg: Contents of my /etc/redhat-release file:

SME Server 6.01-1 (http://www.bahuma.net/phpsysinfo)

Offline stefan24

  • *****
  • 483
  • +0/-0
    • www.sme-server.de
Graphical Server Monitor
« Reply #21 on: December 01, 2004, 03:05:24 PM »
Hi!

FYI:

I just installed e-smith-phpsysinfo-public-2.3-1.noarch.rpm  and got an error in the post install script. When looking in this script I saw this line:

mail install@nightspirit.nl -s "e-smith-phpsysinfo-public-2.3-1 was installed." > /dev/null

There was no information anywhere, that this will happen.

Landry

Re: You could use cacti
« Reply #22 on: December 01, 2004, 03:52:54 PM »
Quote from: "drywalldude"


Somebody please do an English translation for sme admin that looks like an awsome! addition to SME


Don't worry, i'm planning a new version of my contrib (us+fr) for the end of the year. ;-)

Offline arnoldob

  • *
  • 183
  • +0/-0
Re: You could use cacti
« Reply #23 on: January 02, 2005, 09:12:00 PM »
Quote from: "Landry"

Don't worry, i'm planning a new version of my contrib (us+fr) for the end of the year. ;-)


Wonderful, I was just going to ask the same question. Any idea of when this will be done?

Great work, Thank you :)
Tampa, FL USA

Offline arnoldob

  • *
  • 183
  • +0/-0
Graphical Server Monitor
« Reply #24 on: January 02, 2005, 10:30:37 PM »
While we're waiting for the English version (now I know how the non-english users must feel) is there a way to get the newer rrdtool and sysstat rpm's to work with the sysmon add-on? I don't see any log file entries that point to a problem, but the graphs never update. Anyone out have any ideas?
Tampa, FL USA

Landry

Graphical Server Monitor
« Reply #25 on: January 03, 2005, 09:36:40 AM »
Hi.

I've already had this problem on my sme. If you want sme6admin and sysmon to work both, you have to keep sysstat4, because sysstat5 doesn't work with sysmon.
For rrdtools, try the rdtool-1.0.47 version, this works fine for  me.
If you have another problem with sme6admin, the log file is at /var/log/sme6admind.log
HTH

Ps : i'm doing the english version of sme6admin based on gettext(), so if translaters want to do the work for other languages (spanish, italian......), i'm completely okay with that.

djhomeless

Graphical Server Monitor
« Reply #26 on: January 18, 2005, 08:42:29 AM »
Hi Landry,
I really can't wait for the English translation, any idea how much longer it will take?

Geoffrey

Landry

Graphical Server Monitor
« Reply #27 on: January 18, 2005, 12:18:13 PM »
I'm working on it, but as i'm still student, i have LOTS of work  to do. But it's one of my priorities..

Offline elorenz

  • ***
  • 41
  • +0/-0
Graphical Server Monitor
« Reply #28 on: January 23, 2005, 01:38:28 AM »
Quote from: "Landry"
I'm working on it, but as i'm still student, i have LOTS of work  to do. But it's one of my priorities..


Hi Landry,
I'm working on an english translation.
The following code segment seems to be working wrong: no output!
=====================================================
        if (-e "/usr/sbin/clamd")
        {       my $sigs=0;

                foreach (/usr/bin/tail -n 4 /var/log/clamav/freshclam.log)
                {
        #               ClamAV update process started at Thu Jul 29 18:36:00 2004
                        if (/^ClamAV update process started at (\w{3} \w{3}\s{1,2}\d{1,3} [0-9:]{8} \d{4})/)
                        {
                            print $q->p("Derniere mise a jour de l'antivirus ClamAV : $1.\n");
                        }

        #               main.cvd is up to date (version: 24, sigs: 21793, f-level: 2, builder: tomek)
        #               daily.cvd is up to date (version: 428, sigs: 1177, f-level: 2, builder: acab)
        #               Database updated (23150 signatures) from database
                        if (/sigs: (\d+)/)
                        {
                            $sigs+=$1;
                        }
                        print $q->p("The database contains $sigs virus signatures.\n");
                }
        }
====================================================
Can you check this for me, I will gladly correct the code and send it to you as soon as it's translated.

Regards,
Ernesto Lorenz
............

Landry

Graphical Server Monitor
« Reply #29 on: January 23, 2005, 03:06:44 PM »
Do you have clamd installed ??
And don't worry, il working on the translation, there will be a big difference because i'm basing all the texts on gettext(), so people would be able to make translations for other languages.

Offline elorenz

  • ***
  • 41
  • +0/-0
Graphical Server Monitor
« Reply #30 on: January 24, 2005, 02:55:38 AM »
Quote from: "Landry"
Do you have clamd installed ??


Sorry Landry, I feel like a fool. I forgot that MC's editor resets the "set user ID on execution" bit every time I save the edited file. That kept the code segment from working.

Quote from: "Landry"
And don't worry, il working on the translation, there will be a big difference because i'm basing all the texts on gettext(), so people would be able to make translations for other languages.


That is great news. I will hold my work and wait for you to finish.
............