Xymon Mailing List Archive search

ncv graphing issue with custom script.

8 messages in this thread

list Jeff Vandervelden · Wed, 12 Mar 2008 15:03:15 -0400 ·
Hello all, wondering if anyone can help with a graphing issue I am having...
i have a requirement to monitor some unc shares from some windows boxes. i
created a script to map each share, get the % free and report this back to
hobbit. script works fine but the graphing is giving me problems. the script
will send this to hobbit:

green 3/30/2030 2:54:19 PM

Percent full status of shares that were checked:


\\<someserver1>\<some_share3> : 23
\\<someserver2>\<some_share4> : 0
etc : etc
etc : etc

i guess my question is this type of data suitable for ncv graphing
considering that the amount of shares to check can be 10 or 20. my problem
is that the "name" portion of the ncv is always changing... i did get
graphing to work but the service section in the hobbitgraph.cfg had to have
each share entered individually...
list Buchan Milne · Thu, 13 Mar 2008 09:59:00 +0200 ·
quoted from Jeff Vandervelden
On Wednesday 12 March 2008 21:03:15 Jeff Vandervelden wrote:
Hello all, wondering if anyone can help with a graphing issue I am
having... i have a requirement to monitor some unc shares
You mean SMB/CIFS ? (UNC supports many protocols, unfortunately ...).
quoted from Jeff Vandervelden
from some windows 
boxes. i created a script to map each share, get the % free and report this
back to hobbit.
By map, do you mean mount ? It might be easier to 
use 'smbclient //server/share/ -c du' ?

BTW, is there a reason you aren't using BBWin on the servers themselves? 
Specifically, I wonder about the impact of quotas etc.
quoted from Jeff Vandervelden
script works fine but the graphing is giving me problems. 
the script will send this to hobbit:

green 3/30/2030 2:54:19 PM

Percent full status of shares that were checked:


\\<someserver1>\<some_share3> : 23
\\<someserver2>\<some_share4> : 0
etc : etc
etc : etc

i guess my question is this type of data suitable for ncv graphing
considering that the amount of shares to check can be 10 or 20. my problem
is that the "name" portion of the ncv is always changing... i did get
graphing to work but the service section in the hobbitgraph.cfg had to have
each share entered individually...
Yes, NCV isn't really convenient for something like this. It may be better to 
have your script send reports for 'disk', formatted the way the Hobbit 
clients send it. Then you would also be able to use thresholds on the Hobbit 
side.
list Charles Goyard · Thu, 13 Mar 2008 09:04:38 +0100 ·
quoted from Jeff Vandervelden
Jeff Vandervelden wrote :
my problem is that the "name" portion of the ncv is always changing...
i did get graphing to work but the service section in the
hobbitgraph.cfg had to have each share entered individually...
This feature, known as "split ncv", is available in the snapshots (aka
beta versions). It is possible to update only the hobbitd_rrd binary and
the man page. (usual configure && make, then cp hobbitd_rrd) You then
use SPLIT_NCV="..." instead of NCV="..." and you're done.

Regards,

-- 
Charles Goyard - user-a6cdca7046e2@xymon.invalid - (+33) 1 45 38 01 31
Orange Business Services - online multimedia  // ingénierie
list Charles Goyard · Thu, 13 Mar 2008 09:12:37 +0100 ·
quoted from Charles Goyard
Charles Goyard wrote :
Jeff Vandervelden wrote :
my problem is that the "name" portion of the ncv is always changing...
i did get graphing to work but the service section in the
hobbitgraph.cfg had to have each share entered individually...
This feature, known as "split ncv", is available in the snapshots (aka
beta versions). It is possible to update only the hobbitd_rrd binary and
the man page. (usual configure && make, then cp hobbitd_rrd) You then
use SPLIT_NCV="..." instead of NCV="..." and you're done.
Well, and I just saw the documentation update I sent to Henrik hasn't
been included. So this feature is completely undocumented :'(.
quoted from Charles Goyard


-- 
Charles Goyard - user-a6cdca7046e2@xymon.invalid - (+33) 1 45 38 01 31
Orange Business Services - online multimedia  // ingénierie
list Jeff Vandervelden · Thu, 13 Mar 2008 10:01:51 -0400 ·
thanks guys... i wouldn't mind trying the split_ncv approach... any chance
of posting a quick how to Charles? im sure i can get the latest binary
compiled and working but am unsure what the DEF statements should look like
in hobbitgraph.cfg...

On Thu, Mar 13, 2008 at 4:12 AM, Charles Goyard <
quoted from Charles Goyard
user-a6cdca7046e2@xymon.invalid> wrote:
Charles Goyard wrote :
Jeff Vandervelden wrote :
my problem is that the "name" portion of the ncv is always changing...
i did get graphing to work but the service section in the
hobbitgraph.cfg had to have each share entered individually...
This feature, known as "split ncv", is available in the snapshots (aka
beta versions). It is possible to update only the hobbitd_rrd binary and
the man page. (usual configure && make, then cp hobbitd_rrd) You then
use SPLIT_NCV="..." instead of NCV="..." and you're done.
Well, and I just saw the documentation update I sent to Henrik hasn't
been included. So this feature is completely undocumented :'(.


--
Charles Goyard - user-a6cdca7046e2@xymon.invalid - (+33) 1 45 38 01 31
Orange Business Services - online multimedia  // ingénierie

list Charles Goyard · Thu, 13 Mar 2008 15:33:41 +0100 ·
Hi,
quoted from Jeff Vandervelden

Jeff Vandervelden wrote :
thanks guys... i wouldn't mind trying the split_ncv approach... any chance
of posting a quick how to Charles? im sure i can get the latest binary
compiled and working but am unsure what the DEF statements should look like
in hobbitgraph.cfg...
The hobbitgraph.cfg section will look like the disk or procs one :
FNPATTERN + @@TAGS@@.

You can take the patched manpage and (probably outdated) howtograph.html
here: http://charles.goyard.free.fr/hobbit/
quoted from Jeff Vandervelden

Regards,

-- 
Charles Goyard - user-a6cdca7046e2@xymon.invalid - (+33) 1 45 38 01 31
Orange Business Services - online multimedia  // ingénierie
list Jeff Vandervelden · Thu, 13 Mar 2008 21:03:20 -0400 ·
thanks again Charles, i think im really close... grabbed the latest
snapshot, configured and compliled ok... switched to using the snapshot
version of hobbitd_rrd and made the appropriate changes to hobbitserver.cfgand
hobbitgraph.cfg... problem now is no rrds are being created and this is in
the logs...

2008-03-13 20:54:40 RRD error creating
/usr/local/hobbit/data/rrd/vander-lt/shares,_server_share.rrd: Duplicate DS
name: lambda


On Thu, Mar 13, 2008 at 10:33 AM, Charles Goyard <
quoted from Charles Goyard
user-a6cdca7046e2@xymon.invalid> wrote:
Hi,

Jeff Vandervelden wrote :
thanks guys... i wouldn't mind trying the split_ncv approach... any
chance
of posting a quick how to Charles? im sure i can get the latest binary
compiled and working but am unsure what the DEF statements should look
like
in hobbitgraph.cfg...
The hobbitgraph.cfg section will look like the disk or procs one :
FNPATTERN + @@TAGS@@.

You can take the patched manpage and (probably outdated) howtograph.html
here: http://charles.goyard.free.fr/hobbit/

Regards,

--
Charles Goyard - user-a6cdca7046e2@xymon.invalid - (+33) 1 45 38 01 31
Orange Business Services - online multimedia  // ingénierie

list Jeff Vandervelden · Thu, 13 Mar 2008 21:37:23 -0400 ·
ok got it... i found another one of your posts regarding this issue and a
bug in do_ncv.c ... recompiled and working great!
thanks for your help Charles!

jv

On Thu, Mar 13, 2008 at 9:03 PM, Jeff Vandervelden <user-15cd23c3a5da@xymon.invalid>
quoted from Jeff Vandervelden
wrote:
thanks again Charles, i think im really close... grabbed the latest
snapshot, configured and compliled ok... switched to using the snapshot
version of hobbitd_rrd and made the appropriate changes to

hobbitserver.cfg and hobbitgraph.cfg... problem now is no rrds are being
signature
created and this is in the logs...

2008-03-13 20:54:40 RRD error creating
/usr/local/hobbit/data/rrd/vander-lt/shares,_server_share.rrd: Duplicate DS
name: lambda


On Thu, Mar 13, 2008 at 10:33 AM, Charles Goyard <

quoted from Jeff Vandervelden
user-a6cdca7046e2@xymon.invalid> wrote:
Hi,

Jeff Vandervelden wrote :
thanks guys... i wouldn't mind trying the split_ncv approach... any
chance
of posting a quick how to Charles? im sure i can get the latest binary
compiled and working but am unsure what the DEF statements should look
like
in hobbitgraph.cfg...
The hobbitgraph.cfg section will look like the disk or procs one :
FNPATTERN + @@TAGS@@.

You can take the patched manpage and (probably outdated) howtograph.html
here: http://charles.goyard.free.fr/hobbit/

Regards,

--
Charles Goyard - user-a6cdca7046e2@xymon.invalid - (+33) 1 45 38 01 31
Orange Business Services - online multimedia  // ingénierie