LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   MRTG, SNMP and Figuring out my 'Community' (https://www.linuxquestions.org/questions/linux-networking-3/mrtg-snmp-and-figuring-out-my-community-167083/)

bpk 04-06-2004 08:22 PM

MRTG, SNMP and Figuring out my 'Community'
 
Im trying to monitor my machines network interface and once that is successful, I'd like to monitor all the servers on my network, but for this thread, I will only discuss trying to monitor my one machine (which is the same machine that is running MRTG). I beleive my problem is with SNMP and trying to figure out my 'Community'. Is there a tool to figure this out? Or is this something I have to create? Im very confused and the MRTG documentation does not say.

Here is my configuration file that seems to push through (the html and graphic charts are created in my Work_Dir (all zero values tho):

Code:

WorkDir: /usr/local/www/data-dist/mrtg
Target[infinity_sis0]: \sis0:MalayS@XXX.XX.XX.XXX:
SetEnv[infinity_sis0]: MRTG_INT_IP="XXX.XX.XX.XXX" MRTG_INT_DESCR="sis0"
Unscaled[infinity_sis0]: dwmy
MaxBytes[infinity_sis0]: 98304
Title[infinity_sis0]: Traffic Analysis for xl0 -- my.domain.com
PageTop[infinity_sis0]: <H1>Traffic Analysis for sis0 -- my.domain.com</H1>

'XXX.XX.XX.XXX' = IP Address
'sis0' is the device name of my network card reports ifconfig
MaylayS = community name that was taken from an example

I get the error:

Code:

infinity:mrtg> mrtg /usr/local/etc/mrtg/mrtg.cfg
WARNING: Could not match host:'MalayS@XXX.XX.XX.XXX:' ref:'Descr' key:'sis0'
ERROR: Target[infinity_sis0][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
ERROR: Target[infinity_sis0][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data

It's pretty clear I need to figure out my community name. Additionally, I have installed the net-snmp package which mrtg uses but im lost as to how to use it. Any light on this topic would be most wonderful.


All times are GMT -5. The time now is 10:13 PM.