Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: Jáder on March 24, 2007, 02:59:11 PM

Title: sysmon - how to add other graphs
Post by: Jáder on March 24, 2007, 02:59:11 PM
Hi

I love sysmon (quick to install and easy to watch your server).
But I´d like to add another monitoring (one or several).
For example:" smbstatus -b|grep ^[0-9]|wc -l " will show how many samba users are conected at any moment.
That would be good to have a graph and I could use it to compare CPU/HDD/Network usage against number of users connected.

Can that be graphed on sysmon ? How ?

Thanks

Jáder
Title: Re: sysmon - how to add other graphs
Post by: cactus on March 24, 2007, 07:37:26 PM
Quote from: "jader"
Hi

I love sysmon (quick to install and easy to watch your server).
But I´d like to add another monitoring (one or several).
For example:" smbstatus -b|grep ^[0-9]|wc -l " will show how many samba users are conected at any moment.
That would be good to have a graph and I could use it to compare CPU/HDD/Network usage against number of users connected.

Can that be graphed on sysmon ? How ?

Thanks

Jáder
It can be done, but it is not easy if you are not used to programming. It might be easier to use cacti as this has a user-interface for creating graphs more easily.
Title: Re: sysmon - how to add other graphs
Post by: cactus on March 24, 2007, 07:56:14 PM
Quote from: "jader"
For example:" smbstatus -b|grep ^[0-9]|wc -l " will show how many samba users are conected at any moment.
The statement you suggested does not work for me. This however seems to work:
Code: [Select]
smbstatus -b | grep '^ [0-9]' | wc -l
(I added a space in the regular expression before the select list and therefore had to quote the regular expression)
Title: sysmon - how to add other graphs
Post by: Jáder on March 26, 2007, 04:36:09 PM
I used to have cacti installed (on SME 5.6 ... not sure if on SME6).
But now on SME7 never tryed.
It´s still working?

I really do not like to have to install all cacty just to add a few monitoring values. Can someone help me to add my values on Sysmon?

Thanks


Jáder

BTW: I copy that parameter direct from command line and just verify it again... it works for me! What version of SME are you running ?
Title: Re: sysmon - how to add other graphs
Post by: Jáder on February 01, 2008, 03:11:11 PM
The statement you suggested does not work for me. This however seems to work:
Code: [Select]
smbstatus -b | grep '^ [0-9]' | wc -l(I added a space in the regular expression before the select list and therefore had to quote the regular expression)

Hi Cactus

Any chances of you have a new version with this new graph (Samba connected users)?
I really have no programming skills... so is not an option to me! :(

Thanks

Jáder
Title: Re: sysmon - how to add other graphs
Post by: MasterSleepy on February 01, 2008, 04:15:56 PM
Hello,

I didn't see this message, sorry.

I'll try to add this new graph this week-end and maybe come back with a new version.

Regards,
MasterSleepy.
Title: Re: sysmon - how to add other graphs
Post by: cactus on February 02, 2008, 03:19:46 PM
Hello,

I didn't see this message, sorry.

I'll try to add this new graph this week-end and maybe come back with a new version.

Regards,
MasterSleepy.
If you do so that would be nice, if you would do so please change the regular expression to match the smbstatus output, since for process numbers under 10000 output might start with a space charachter:
Code: [Select]
smbstatus -b | grep '^[ 0-9]' | wc -l(note the space charachter before the zero in the regexp set)
Title: Re: sysmon - how to add other graphs
Post by: MasterSleepy on February 04, 2008, 09:50:15 AM
Hello all,

Here is the annonce :
http://forums.contribs.org/index.php?topic=39948.0 (http://forums.contribs.org/index.php?topic=39948.0)

Regards,
MasterSleepy.