Koozali.org: home of the SME Server

Monitor D-Link 1120S

trenskow

Monitor D-Link 1120S
« on: August 28, 2004, 03:01:39 AM »
Hi there.
I have a D-link DVG 1120S on my network

DVG >  SmeServer > clients

has anyone got MRTG to monitor it... i tried, but when i run ./create.mrtg dlink 192.168.0.1 i get all kinds of errors.

trenskow

Re: Monitor D-Link 1120S
« Reply #1 on: August 28, 2004, 11:13:35 PM »
:hammer:
anyone :idea:  :idea:

i use this in my create-mrtg.cfg

Quote
#!/bin/bash
#This script will create a folder inside the ibay "mrtg" which is named by
#the first variable. It will create a cfg file inside the /etc/mrtg
#folder.

#It will also add a line to the script "/etc/mrtg/all-ip" so that #crontab
#will run this script which in turn will run mrtg for each device.

#The second variable is the IP address of each device to be
#monitored..This script is best run when "all" the workstations connected
#to

#it are powered up because "cfgmaker" ignores inactive ports when it is
#run.
#       EX:
#                                                              Var1
#Var2
#                                                                 |
#|
#           [root@e-smith /root]# create-mrtg 10001 10.0.0.1
# Create a "workdir" for this device using the first variable
mkdir -p /home/e-smith/files/ibays/mrtg/html/$1

#create the cfg file for this Ip address using the first variable (assumes
#community string is "public")
perl /usr/bin/cfgmaker public@$2 --global "workdir: /home/e-smith/files/ibays/mrtg/html/$1" --output /etc/mrtg/$1.cfg

#Create an index.html file for this folder using the first variable
perl /usr/bin/indexmaker /etc/mrtg/$1.cfg > /home/e-smith/files/ibays/mrtg/html/$1/index.html

#create an entry in script "all-ip" to run mrtg for each device.
echo "/usr/bin/mrtg /etc/mrtg/$1.cfg;" >> /etc/mrtg/all-ip

#Uncommenting the line below will create a "master" index.htm inside the ibay/html directory for all devices.
#Note that this line will create a text file called index.html. This should be edited for correct html syntax.

echo "<br><a href=$1/index.html> Traffic on ports of Device $1 </a>" >> /home/e-smith/files/ibays/mrtg/html/index.html

------------------------------------------------------------------------------------------------------------
when i use a program called PRTG for windows, i can se on my laptop, that the D-Link DVG 1120S shows information.
But how do i set it up on my sme server, when i run ./create-mrtg.cfg dlink 192.168.0.1 i get a lot of errors.
i have these menues in the D-Link
Quote
"SNMP Trap Configuration"
where i can set there:
     Trap Manager IP Address
     Community Name
     SNMP AuthTrap : disabled

and
Quote
"SNMP IP Management Address"
where i can set this:
     IP Address 1
     IP Address 2

can anyone help here  :pint:
Quote
Quote

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Monitor D-Link 1120S
« Reply #2 on: August 28, 2004, 11:14:37 PM »
Hello,

I think that DVG 1102S don't have snmp capability.
So it will be hard to bring back information from it.

Regards.

trenskow

Monitor D-Link 1120S
« Reply #3 on: August 28, 2004, 11:17:46 PM »
hmm.. ok...

but why can i get information from it with a windows program called PRTG
And what are the SNMP menues for in the DVG 1120S setup page?

trenskow

Monitor D-Link 1120S
« Reply #4 on: August 28, 2004, 11:30:47 PM »
i got it to work.
I can see the wan and lan activities on it now.
For those who want to know how, you have to add the IP address of you smeserver in the DVG-1120S setup page, and under SNMP trap configuration add the IP address of your server, and enable it.

Now.. when i look at the monitor page on the DVG-1120S i found, that it is collecting a ton of data statistics. Can i get these, or is it only WAN & LAN activities?

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Monitor D-Link 1120S
« Reply #5 on: August 29, 2004, 11:36:44 AM »
Quote from: "trenskow"
hmm.. ok...

but why can i get information from it with a windows program called PRTG
And what are the SNMP menues for in the DVG 1120S setup page?

Hi,

Sorry for the mistake.
Good news that you have it to work.

Regards.

trenskow

Monitor D-Link 1120S
« Reply #6 on: August 29, 2004, 10:07:33 PM »
Hi again.
I had to change the subnet mask of the router to smeserver, now when i run ./create-mrtg d-link 192.168.0.1 i get nothing.