[mrtg] Using MRTG to monitor SUN machines
Stefano Gastaldi
Stefano.Gastaldi at CSI.IT
Fri Jul 21 12:59:38 MEST 2000
I have installed MRTG on Red Hat Linux 6.2.
By MRTG, i monitor the traffic on routers, without problems.
But I need to use MRTG to monitor SUN server.
For default MRTG trace the diagram of SUN's interface. But I need of having
other information:
space disc, occupation of cpu, errors on the connection. (on SUN server ).
I have modified the configuration file generated from MRTG (sunserver.cfg)
introducing specifics MIB,
to obtain the information, but SUN server answers always so:
[mrtg at md38109 run]$ ./mrtg /home/mrtg/config/duke.cfg
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.4.20.1.2.1.3.6.1.2.1.6.4)
SNMPv1_Session (remote host: "158.102.33.208" [158.102.33.208].161
community: "public"
request ID: 1171118230
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
SNMPGET Problem for ipAdEntIfIndex.1.3.6.1.2.1.6.4 on public at 158.102.33.208
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.2.2.1.10)
SNMPv1_Session (remote host: "158.102.33.208" [158.102.33.208].161
community: "public"
request ID: 1171118231
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
SNMPGET Problem for ifInOctets. ifOutOctets. sysUptime sysName on
public at 158.102.33.2
08
SNMPGET: Failed to reach target: "1.3.6.1.2.1.6.4:public at 158.102.33.208". I
tried mul
tiple times! public at 158.102.33.208
[mrtg at md38109 run]$
*************************************************************************************
duke.cfg (configuration correspondent to the previous result)
Target[duke.csi.it]: 2:public at 158.102.33.208
MaxBytes[duke.csi.it]: 1250000
Title[duke.csi.it]: duke (duke.csi.it): hme0
PageTop[duke.csi.it]: <H1>Traffic Analysis for hme0
</H1>
<TABLE>
<TR><TD>System:</TD><TD>duke in System administrators office</TD></TR>
<TR><TD>Maintainer:</TD><TD>System administrator</TD></TR>
<TR><TD>Interface:</TD><TD>hme0 (2)</TD></TR>
<TR><TD>IP:</TD><TD>duke.csi.it (158.102.33.208)</TD></TR>
<TR><TD>Max Speed:</TD>
<TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
</TABLE>
#---------------------------------------------------------------
Target[duke.csi.it.cpu]: 1.3.6.1.2.1.6.4:public at 158.102.33.208
MaxBytes[duke.csi.it.cpu]: 100
Title[duke.csi.it.cpu]: duke (duke.csi.it): tcpInErrs
PageTop[duke.csi.it.cpu]: <H1> tcpMaxConn
</H1>
<TABLE>
<TR><TD>System:</TD><TD>duke in System administrators office</TD></TR>
<TR><TD>Maintainer:</TD><TD>System administrator</TD></TR>
<TR><TD>Interface:</TD><TD>hme0 (2)</TD></TR>
<TR><TD>IP:</TD><TD>duke.csi.it (158.102.33.208)</TD></TR>
<TR><TD>Max Speed:</TD>
<TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
</TABLE>
********************************************************************************
********************************************************************************
Now, since I have access to SUN Server because the file snmpdx.acl is :
##################
# access control #
##################
# The list of community names needed for read/write access
# to the entire MIB.
# If the list is empty, the only valid community name is "public"
# and its access type is read-only
acl = {
{
communities = public, private
access = read-write
managers = *
}
}
#communities = {
#public read-write
# private read-write
#}
# The list of hosts that can send SNMP queries.
# If this list is empty, all the hosts are allowed to
# send SNMP queries.
#managers = {
#}
How can i use the MIB in the configuration file to obtain information (cpu,
space disc)?
If you can send me examples of configuration file, I'm very happy!
thanks
Stefano Gastaldi
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list