FC1 - NetMRG 0.13 graphing issue.

Synful

02-01-2004 05:30:57

Hi,

Having an issue with the graphing of the data going through my ETH01 device.
I can get everything to come togehter with no issues & can click on the link to display a graph which works.

My problem comes in where I try to get it to plot data.
My crontab file is as shown below

===================================
SHELL=/bin/bash
PATH=/sbin/bin/usr/sbin/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
*/5 * * * * netmrg /usr/bin/netmrg_cron.sh
=========================================

Up until today, I wasn't able to get any graphs up but I can now do this & Iḿ sure that the problem is a minor one that Ie overlooked. I've a feeling that I should perhaps be using one of the other cron files listed above to run the NetMRG perl script to collect data but am unsure (hey I'm still learning).

I read another post here regarding a similar problem with not being able to plot data, & I tried the solution to that with no success.

Would appreciate if anyone could point me in the right direction.

Regards,



Andrew.

silfreed

02-01-2004 09:51:55

Can you run
[code14be6b072ad]/usr/bin/netmrg-gatherer -sm[/code14be6b072ad]
and post the output here for us?

Don't worry about where you placed the gatherer script. That's a perfect place for it. The reason it doesn't fit in any of those directories is because there isn't an directory to run the script every five minutes like we need to; so we just put our own in.

-Doug

Synful

02-01-2004 16:43:44

[quote33f498ac10="silfreed"]Can you run
[code133f498ac10]/usr/bin/netmrg-gatherer -sm[/code133f498ac10]
and post the output here for us?

Don't worry about where you placed the gatherer script. That's a perfect place for it. The reason it doesn't fit in any of those directories is because there isn't an directory to run the script every five minutes like we need to; so we just put our own in.

-Doug[/quote33f498ac10]

=====================
HI Doug,

Here's the output you requested
==========
NetMRG starting.
Start time is 1073079078
Creating Lockfile.
Initializing SNMP library.
Initializing RRDTOOL pipe.
[Dev 0002] Starting device thread.
[Dev 0002] MySQL connection established.
[Dev 0002] Intel 10/100 NIC - Andrew / <Field Omitted>
[PASSIVE] Last 0, Now 1
[Dev 0002] [Sub 0004] Starting Subdevice.
[Dev 0002] [Sub 0004] Interface subdevice has no interface parameters.
[Dev 0002] [Sub 0004] Subdevice aborted due to previous errors.

[Dev 0002] Ending device thread.
Thread Ended.
[PASSIVE] Last 1, Now 0
Closed MySQL connection.
Runtime 1
Closed RRDTOOL pipe.
Cleaned up SNMP.
======================
I checked the device & sub device parameters but they appear to be there (i've got eth0 as the parameter for the sub devices), but given my experience that's probably half the cause -)

If you like, I can send you some screen dumps if that would help ?

Regards



Andrew.

silfreed

02-01-2004 17:53:33

How did you create the interface graph? By clicking on the 'Monitor/Graph' link under 'view interface cache' of your device, or by applying the template to the sub device?

I'm not sure if it's obvious or not, but parameters are different than sub device names. If you click on 'parameters' next to the sub device for your interface, you should probably have
name ifDescr
value eth0

-Doug

Synful

02-01-2004 20:15:52

[quoteae1d1d3dd8="silfreed"]How did you create the interface graph? By clicking on the 'Monitor/Graph' link under 'view interface cache' of your device, or by applying the template to the sub device?

I'm not sure if it's obvious or not, but parameters are different than sub device names. If you click on 'parameters' next to the sub device for your interface, you should probably have
name ifDescr
value eth0

-Doug[/quoteae1d1d3dd8]

Hi Doug, I created the interface graph by following the tutorial (README) in the distribution archive.

I went back & recreated the group, sub device etc. from scratch (by the book in the tutorial) in case I screwed anything up. The only thing that I could find which may be an issue is that I told NetMRG that the interface was not an SNMP device (I just want to monitor traffic going through my ETH0 NIC & log it in the DB for month-by-month comparisons), is this an issue as I was led to believe that NetMRG does not specifically require an SNMP device to function ?

I ran the command that you asked for previously on the new setup which generated a better output with no problems this time
======================
[root@Andrew bin]# netmrg-gatherer -sm
NetMRG starting.
Start time is 1073092357
Creating Lockfile.
Initializing SNMP library.
Initializing RRDTOOL pipe.
[Dev 0003] Starting device thread.
[Dev 0003] MySQL connection established.
[Dev 0003] My Server / <Field Omitted>
[Dev 0003] [Sub 0005] Starting Subdevice.
[Dev 0003] Ending device thread.
Thread Ended.
Closed MySQL connection.
Runtime 5
Closed RRDTOOL pipe.
Cleaned up SNMP.
======================
It would appear that there are no problems this time round, with the exception of the <Field Omitted> listing; this would appear not to be critical ?

So in theory, everything should work when the gatherer runs ?



-Andrew.

balleman

03-01-2004 13:54:40

Andrew,

The [bb74ac818d2]<Field Omitted>[/bb74ac818d2] is normal and intentional. The [bb74ac818d2]-s[/bb74ac818d2] does this to try to keep potentially sensitive information from being included in the output.

Yes, NetMRG can be used without SNMP, by using scripts, SQL tests, and internal tests. We do try to use SNMP whenever possible, however, and network interface statistics are readily accessible from SNMP. It would be possible to get this without using SNMP; one could parse /proc/net/snmp using a script, for instance. I would strongly suggest using SNMP for this. Do you have any particular reason for not using it?

-Brady

Synful

03-01-2004 16:41:09

[quotef9a741e990="balleman"]Andrew,

The [bf9a741e990]<Field Omitted>[/bf9a741e990] is normal and intentional. The [bf9a741e990]-s[/bf9a741e990] does this to try to keep potentially sensitive information from being included in the output.

Yes, NetMRG can be used without SNMP, by using scripts, SQL tests, and internal tests. We do try to use SNMP whenever possible, however, and network interface statistics are readily accessible from SNMP. It would be possible to get this without using SNMP; one could parse /proc/net/snmp using a script, for instance. I would strongly suggest using SNMP for this. Do you have any particular reason for not using it?

-Brady[/quotef9a741e990]
HI,

Here's the config for the device re SNMP (I re-enabled it earlier yesterday)
==============
SNMP Support
SNMP v1

SNMP Read Community
PUBLIC

SNMP Caching
Do not cache interface mappings - NOT TICKED
Clear interface cache when interface count changes - NOT TICKED

Advanaced SNMP Options
SNMP UDP Port
161

SNMP Timeout (microseconds)
1000000

SNMP Retries
3
===========================
Any further ideas ?
I've also now lost my empty graph for some reason now as well, I thought this may have propagated overnight ?

My SNMPD & SNMPTRAPD daemons are running as well.


-Andrew

silfreed

03-01-2004 16:51:33

Try lowercase 'public' - the community strings are case-sensitive. What are you using for your IP; if you're monitoring the same box as NetMRG is running on, [i9b187f1d4c]127.0.0.1[/i9b187f1d4c] or [i9b187f1d4c]localhost[/i9b187f1d4c] should work. If the 'public' snmp community string doesn't work, maybe try a more relaxed SNMP config file like in this thread

Synful

04-01-2004 16:03:17

[quote0033575744="silfreed"]Try lowercase 'public' - the community strings are case-sensitive. What are you using for your IP; if you're monitoring the same box as NetMRG is running on, [i0033575744]127.0.0.1[/i0033575744] or [i0033575744]localhost[/i0033575744] should work. If the 'public' snmp community string doesn't work, maybe try a more relaxed SNMP config file like in this thread[/quote0033575744]

OK, well my graphs are now back, but they still aren't plotting any data for whatever reason.

I've got public in for the SNMP community in lower case, localhost in for my IP.
The link you gave me points more toward CRON issues which I'll need some time to sort through, will let everyone know if it works or not.


-Andrew