Koozali.org: home of the SME Server

sysmon - how to add other graphs

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
sysmon - how to add other graphs
« 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
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: sysmon - how to add other graphs
« Reply #1 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: sysmon - how to add other graphs
« Reply #2 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)
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
sysmon - how to add other graphs
« Reply #3 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 ?
...

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: sysmon - how to add other graphs
« Reply #4 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
...

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Re: sysmon - how to add other graphs
« Reply #5 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.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: sysmon - how to add other graphs
« Reply #6 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)
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Re: sysmon - how to add other graphs
« Reply #7 on: February 04, 2008, 09:50:15 AM »
Hello all,

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

Regards,
MasterSleepy.