Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: trenskow 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.
-
:hammer:
anyone :idea: :idea:
i use this in my create-mrtg.cfg
#!/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
"SNMP Trap Configuration"
where i can set there:
Trap Manager IP Address
Community Name
SNMP AuthTrap : disabled
and
"SNMP IP Management Address"
where i can set this:
IP Address 1
IP Address 2
can anyone help here :pint:
-
Hello,
I think that DVG 1102S don't have snmp capability.
So it will be hard to bring back information from it.
Regards.
-
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?
-
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?
-
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.
-
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.