access to SNMPD for netMRG system

Era2004

24-03-2004 18:49:22

Hello,
I am junior Linux user,could someone explain me how Ii can give read rights to my localhost read information from my local SNMP server. I have FDC1 installed with running SNMP server. As I understood this step is necessary when you want to use Netmrg. Thanks for you help.

silfreed

24-03-2004 19:53:27

Configuring SNMP isn't exactly obvious to the beginnger.

Read this thread
http//lists.netmrg.net/viewtopic.php?p=128#128

and see if that gets you any farther along. If you still have questions, feel free to post back.

-Doug

Era2004

25-03-2004 11:48:22

Hello,
I just want that NetMRG work as I see on the test page on Project Home Page. So many questions but no answers. I want so solve problem with my home NetMRG step by step. First major question Should I see some graphs if I first time successfully login in my web interface witout any problems? I do not see any graphs. I found the same question about my problem in forum, but i can not find the solutions.
Here is my report

[root@server mibs]# /usr/bin/netmrg-gatherer -sm
NetMRG starting.
Start time is 1080232622
Creating Lockfile.
Initializing SNMP library.
Initializing RRDTOOL pipe.
[Dev 0005] Starting device thread.
[Dev 0005] MySQL connection established.
[Dev 0005] Network / <Field Omitted>
[PASSIVE] Last 0, Now 1
[Dev 0005] SNMP Uptime is 0
[Dev 0005] Device is SNMP-dead. Avoiding SNMP tests.
[Dev 0005] [Sub 0004] Starting Subdevice.
[Dev 0005] [Sub 0004] Interface subdevice has no interface parameters.
[Dev 0005] [Sub 0004] Subdevice aborted due to previous errors.
[Dev 0005] [Sub 0005] Starting Subdevice.
[Dev 0005] [Sub 0005] Disk subdevice has no disk parameters.
[Dev 0005] [Sub 0005] Subdevice aborted due to previous errors.
[Dev 0005] Trimming device event log.
[Dev 0005] Ending device thread.
Thread Ended.
[PASSIVE] Last 1, Now 0
Closed MySQL connection.
Runtime 5
Closed RRDTOOL pipe.
Cleaned up SNMP.
It seems that the problem is in SNMP configuration or maybe in RRDtools.How could I make sure that rrdtool work fine?

balleman

25-03-2004 12:15:32

SNMP is either not working or misconfigured
[quote9cd904a366][Dev 0005] Device is SNMP-dead. Avoiding SNMP tests. [/quote9cd904a366]

To try SNMP, do
[b9cd904a366]snmpwalk -v2c -c <your community here> localhost sysdescr[/b9cd904a366]

If this times out, please verify your SNMP configuration and check to see that it is running. You could post your snmpd.conf if you want, and we would try to help you with that.

If this command works, the problem is probably an incorrect SNMP community string in your NetMRG configuration.

Era2004

25-03-2004 12:45:53

Hello Balleman,
Here is the out SNMPv2-MIBsysDescr.0 = STRING Linux server 2.4.22-1.2174.nptl #1 Wed Feb 18 163832 EST 2004 i686

I have the default config of the FedoraCore Linux. I did not change something.
####
# First, map the community name "public" into a "security name"

# sec.name source community
com2sec notConfigUser default public

####
# Second, map the security name into a group name

# groupName securityModel securityName
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser

####
# Third, create a view for us to let the group have rights to

# Make at least snmpwalk -v 1 localhost -c public system fast again.
# name incl/excl subtree mask(optional)
view systemview included .1
#view systemview included .1.3.6.1.2.1.1
#view systemview included .1.3.6.1.2.1.25.1.1
####
# Finally, grant the group read-only access to the systemview view.

# group context sec.model sec.level prefix read write notif
access notConfigGroup "" any noauth exact systemview none none

# -----------------------------------------------------------------------------
And what could be the reason with my graphs. I got the error when I try to view the image “http//localhost/netmrg/get_graph.php?type=mon&id=15” cannot be displayed, because it contains errors.

balleman

25-03-2004 13:58:25

Ok, your snmp looks to work.

Please rerun the gatherer to check for the SNMP-Dead error
/usr/bin/netmrg-gatherer -sm

Is the community string correct in your NetMRG configuration for your device?

To debug your broken graph, append "&debug=1" to the image (ie, get_graph) URL.

Era2004

26-03-2004 05:19:08

Hello, regarding the problem with charts. I have not .rdd files in my system.So my problem is that netmrg can not get information from my SNMP server therefore I have not rrd files. (((((((((

balleman

26-03-2004 08:19:13

Even if the SNMP tests fail, NetMRG should still be creating the RRD files. Does your NetMRG user have permissions to the /var/lib/netmrg/rrd/ directory? I did notice you ran the gatherer by hand as root, which could have created RRD files owned by root.

Era2004

28-03-2004 07:40:04

Here is my output from ls -la /usr/lib/netmrg/rrd.
drwxr-xr-x 2 netmrg netmrg 4096 Мар 20 0132 .
drwxr-xr-x 3 root root 4096 Мар 20 0132 ..
-rw-r--r-- 1 netmrg netmrg 71580 Мар 11 0628 zero.rrd

This zero.rrd is the one file. I do not understand why I have not any rrd files except this file. Who and when sould create these files, how should I track this action.

Era2004

28-03-2004 07:41:46

[netmrg@server /]$ netmrg-gatherer
NetMRG starting.
[Dev 0005] Starting device thread.
[Dev 0005] Device is SNMP-dead. Avoiding SNMP tests.
[Dev 0005] [Sub 0004] Interface subdevice has no interface parameters.
[Dev 0005] [Sub 0004] Subdevice aborted due to previous errors.
[Dev 0005] Ending device thread.
Thread Ended.