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
-
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
-
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.
-
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:
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)
-
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 ?
-
The statement you suggested does not work for me. This however seems to work:
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
-
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.
-
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:
smbstatus -b | grep '^[ 0-9]' | wc -l
(note the space charachter before the zero in the regexp set)
-
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.