|
|
| Author |
Message |
Era2004 Beginner
Joined: 24 Mar 2004 Posts: 8 Location: Russia
|
Posted: Wed Mar 24, 2004 11:49 pm Post subject: access to SNMPD for netMRG system |
|
|
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. |
|
| Back to top |
|
 |
silfreed Site Admin
Joined: 19 Jan 2003 Posts: 394 Location: Shippensburg, PA, USA
|
Posted: Thu Mar 25, 2004 12:53 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Era2004 Beginner
Joined: 24 Mar 2004 Posts: 8 Location: Russia
|
Posted: Thu Mar 25, 2004 4:48 pm Post subject: Question |
|
|
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? |
|
| Back to top |
|
 |
balleman Site Admin
Joined: 20 Jan 2003 Posts: 282
|
Posted: Thu Mar 25, 2004 5:15 pm Post subject: |
|
|
SNMP is either not working or misconfigured:
| Quote: |
| [Dev: 0005] Device is SNMP-dead. Avoiding SNMP tests. |
To try SNMP, do:
snmpwalk -v2c -c <your community here> localhost sysdescr
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. |
|
| Back to top |
|
 |
Era2004 Beginner
Joined: 24 Mar 2004 Posts: 8 Location: Russia
|
Posted: Thu Mar 25, 2004 5:45 pm Post subject: |
|
|
Hello Balleman,
Here is the out : SNMPv2-MIB::sysDescr.0 = STRING: Linux server 2.4.22-1.2174.nptl #1 Wed Feb 18 16:38:32 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. |
|
| Back to top |
|
 |
balleman Site Admin
Joined: 20 Jan 2003 Posts: 282
|
Posted: Thu Mar 25, 2004 6:58 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
Era2004 Beginner
Joined: 24 Mar 2004 Posts: 8 Location: Russia
|
Posted: Fri Mar 26, 2004 10:19 am Post subject: |
|
|
| 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. :((((((((( |
|
| Back to top |
|
 |
balleman Site Admin
Joined: 20 Jan 2003 Posts: 282
|
Posted: Fri Mar 26, 2004 1:19 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
Era2004 Beginner
Joined: 24 Mar 2004 Posts: 8 Location: Russia
|
Posted: Sun Mar 28, 2004 12:40 pm Post subject: |
|
|
Here is my output from ls -la /usr/lib/netmrg/rrd.
drwxr-xr-x 2 netmrg netmrg 4096 Мар 20 01:32 .
drwxr-xr-x 3 root root 4096 Мар 20 01:32 ..
-rw-r--r-- 1 netmrg netmrg 71580 Мар 11 06:28 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. |
|
| Back to top |
|
 |
Era2004 Beginner
Joined: 24 Mar 2004 Posts: 8 Location: Russia
|
Posted: Sun Mar 28, 2004 12:41 pm Post subject: |
|
|
[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. |
|
| Back to top |
|
 |
|