Koozali.org: home of the SME Server

MRTG Questions

Morten U. Hansen

MRTG Questions
« on: May 07, 2003, 01:20:22 PM »
Now I think I got MRTG to work on my SME box. But according to the "How-To" on System Monitoring using MRTG. I should point the browser at
http://[domain]/mrtg/server/   where I get a login-prompt!

Who should I log-in? I have tried with root and admin, they are not allowed..

Hmm!

Morten

Morten U. Hansen

Re: MRTG Questions
« Reply #1 on: May 07, 2003, 01:34:36 PM »
When I execute above command/script 'create-mrtg server localhost' I get this feedback with numerous errors. What does this tell you guys?

**************************
[root@indsigt1 root]# ./create-mrtg server localhost
--base: Get Device Info on public@localhost:
SNMP Error:
no response received
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "public"
                 request ID: 1042322729
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for sysDescr sysContact sysName sysLocation sysObjectID on publi
c@localhost:
 at /usr/bin/cfgmaker line 657
--base: Vendor Id:
--base: Populating confcache
--snpo: Skipping ifName scanning because public@localhost: does not seem to supp
ort it
--snpo: Skipping ifDescr scanning because public@localhost: does not seem to sup
port it
--snpo: Skipping ipAdEntIfIndex scanning because public@localhost: does not seem
 to support it
--snpo: Skipping ifType scanning because public@localhost: does not seem to supp
ort it
--snpo: Skipping ifPhysAddress scanning because public@localhost: does not seem
to support it
--base: Get Interface Info
--base: Walking ifIndex
SNMP Error:
no response received
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "public"
                 request ID: 1042322735
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.1 on public@localhost:
 at /usr/bin/cfgmaker line 107
--base: Walking ifType
SNMP Error:
no response received
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "public"
                 request ID: 1042322736
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.3 on public@localhost:
 at /usr/bin/cfgmaker line 107
--base: Walking ifSpeed
SNMP Error:
no response received
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "public"
                 request ID: 1042322737
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.5 on public@localhost:
 at /usr/bin/cfgmaker line 107
--base: Walking ifAdminStatus
SNMP Error:
no response received
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "public"
                 request ID: 1042322738
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.7 on public@localhost:
 at /usr/bin/cfgmaker line 107
--base: Walking ifOperStatus
SNMP Error:
no response received
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "public"
                 request ID: 1042322739
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.8 on public@localhost:
 at /usr/bin/cfgmaker line 107
--base: Writing /etc/mrtg/server.cfg

*********************************

So guys - any suggestions?

Thanks

Morten

Jáder Marasca

Re: MRTG Questions
« Reply #2 on: May 08, 2003, 05:25:07 PM »
just install CACTI and forget MRTG (it will be there, but you will manage it by using a web interface ... SO MORE EASY!)

I think the link is: http://gd.tuwien.ac.at/opsys/linux/e-smith/contrib/SassouEfoeBoris/cacti.html

Let me know if you have any problems... AND DO NOT forget to read last lines...
to login use user admin and pwd admin.

Jáder

Mats Karlsson

Re: MRTG Questions
« Reply #3 on: May 12, 2003, 01:23:37 AM »
I had the same problem and it was the host.allow that was the problem.

After a search on google, I found this:
http://library.n0i.net/linux-unix/faq/ucd-snmp/#Why_am_I_getting__Connection_refused__

--- SNIP ---

Why am I getting "Connection refused"?
-------------------------------------
    This is actually nothing to do with the access control mechanism
  (though that's an understandable mistake).  This is the result of
  the TCP wrapper mechanism using the files 'hosts.allow' and 'hosts.deny'
  to control access to the service.  Some distributions (such as RedHat
  Linux) come with this enabled automatically - otherwise you need to
  select it explicitly by configuring using '--with-libwrap'.

    The simplest way to avoid this problem is to add the line

      snmpd: ALL

  in the file /etc/hosts.allow (or wherever this file is on your system).



--- /SNIP ---


/Mats