Forum » Izdelava spletišč » Perl.. + MFTG... config >> SNMP = ?
Perl.. + MFTG... config >> SNMP = ?
mrTwelveTrees ::
kot sem ze pisal, rabil sem en program za statistiko domene ki lavfa na IIS
pa sem uporabu tega...
MRTG
Tero; thx
ok, inštaliram še Perl...
pol pa se začne štimat MRTG config...
>>
Now it is time to create a configuration for mrtg. But before we begin you need to know a few things. Take an opportunity to gather the following information:
The IP address or hostname and the snmp port number, (if non standard), of the device you want to monitor.
If you want to monitor something other than bytes in and out, you must also know the SNMPOID of what you want to monitor.
Finally you need to know the read-only SNMP community string for your device. If you don't know it, try public, that is the default.
For the rest of this document we will be using device 10.10.10.1 ( a CISCO Catalyst 5000) with Community string public. We are interested in monitoring traffic, and the CPU load. Let's begin.
The first thing we do in setting up mrtg is making a default config file. Get to a cmd prompt and change to the c:\mrtg-2.9.29\bin directory. Type the following command:
perl cfgmaker public@10.10.10.1 --global "WorkDir: c:\www\mrtg" --output mrtg.cfg
SNMP -> rabim ID ??
pa sem uporabu tega...
MRTG
Tero; thx
ok, inštaliram še Perl...
pol pa se začne štimat MRTG config...
>>
Now it is time to create a configuration for mrtg. But before we begin you need to know a few things. Take an opportunity to gather the following information:
The IP address or hostname and the snmp port number, (if non standard), of the device you want to monitor.
If you want to monitor something other than bytes in and out, you must also know the SNMPOID of what you want to monitor.
Finally you need to know the read-only SNMP community string for your device. If you don't know it, try public, that is the default.
For the rest of this document we will be using device 10.10.10.1 ( a CISCO Catalyst 5000) with Community string public. We are interested in monitoring traffic, and the CPU load. Let's begin.
The first thing we do in setting up mrtg is making a default config file. Get to a cmd prompt and change to the c:\mrtg-2.9.29\bin directory. Type the following command:
perl cfgmaker public@10.10.10.1 --global "WorkDir: c:\www\mrtg" --output mrtg.cfg
SNMP -> rabim ID ??
- premaknil iz Pomoč in nasveti: ToniT ()
miki133 ::
Rabiš OID . Poišči program getif z njim ugotoviš OID , ki ga želiš nadzorovati . Tole spodaj shrani kot mrtg.cfg v /bin direktorij MRTG . Potem lahko dodaš več grafov samo z drugimi OID-i. Ko skapiraš je čist enostavno
# zaženi z perl mrtg mrtg.cfg
WorkDir: c:\InetPub\wwwroot\xxx\data
RunAsDaemon: yes
# Kr neki
Target[x]:OID&OID:public@10.10.10.10
Options[x]: nopercent,gauge,noinfo
Title[x]: naslov
PageTop[x]: naslov strani
MaxBytes[x]: 1000
YLegend[x]: y
ShortLegend[x]: y
LegendI[x]: yyy:
LegendO[x]:
Legend1[x]:
# zaženi z perl mrtg mrtg.cfg
WorkDir: c:\InetPub\wwwroot\xxx\data
RunAsDaemon: yes
# Kr neki
Target[x]:OID&OID:public@10.10.10.10
Options[x]: nopercent,gauge,noinfo
Title[x]: naslov
PageTop[x]: naslov strani
MaxBytes[x]: 1000
YLegend[x]: y
ShortLegend[x]: y
LegendI[x]: yyy:
LegendO[x]:
Legend1[x]:
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | SNMP Manageable termometriOddelek: Programska oprema | 1685 (1258) | maticm |
» | Informacije o strežniku za DebianaOddelek: Operacijski sistemi | 922 (861) | Lincolin |
» | debian + program za štetje prometaOddelek: Programska oprema | 1314 (1265) | milimoj |
» | Linux snmpdOddelek: Operacijski sistemi | 1038 (907) | BigWhale |
» | Kako lahko merim promet na mojem strežniku - RH9Oddelek: Omrežja in internet | 1744 (1547) | Blisk |