Most recent edit on 2006-06-18 17:31:23 by NicO [Made the Nextgens's rtwf really usefull :)]
Additions:
It operates at UDP port (4000).
Deletions:
It operates at UDP port (freenetport + 4000).
Edited on 2006-02-07 09:35:02 by c-1b71e155.112-1-64736c10.cust.bredbandsbolaget.se [Corrected a 'misspelling' and added a link to my page]
Additions:
Now, below is MRTG-config reading the cyberdo-node at port 15717, syberdo_slave4 at port 15720, and one reading from the machine itself. My readings can be seen at: http://www.acc.umu.se/~cyberdo/snmp/mrtg/_index.htm∞
LegendI[calzone_mem2]: Used memory
Deletions:
Now, here's my MRTG-config reading the cyberdo-node at port 15717, syberdo_slave4 at port 15720, and one reading from the machine itself:
LegendI[calzone_mem2]: Available memory
Edited on 2006-02-07 09:13:24 by c-1b71e155.112-1-64736c10.cust.bredbandsbolaget.se [Changed the config to include mem-usage]
Additions:
.1.3.1.1.x.0 is for outgoing data (notice that the 0 looks like an O)
Deletions:
.1.3.1.1.x.0 is for outgoing data (notice that the 1 looks like an I)
Edited on 2006-02-07 09:12:46 by c-1b71e155.112-1-64736c10.cust.bredbandsbolaget.se
Additions:
.1.3.1.1.m.n Amount of incoming/outgoing data during the last (m*30)s-period before the current 30s-period
for instance: .1.3.1.1.9.1 is the amount of incoming data the prev. 5 min.
Now, here's my MRTG-config reading the cyberdo-node at port 15717, syberdo_slave4 at port 15720, and one reading from the machine itself:
To make it work, I use a little script placed at /etc/mrtg/tools/memused.sh (change the references below if you change the location):
#!/bin/sh
if [ "$1" == "" ] ; then
echo "$0 <hostname[:port]> <community>" ;exit 1
fi
totalmem=`snmpget -v 1 -O vq -c "$2" "$1" memTotalReal.0`
freemem=`snmpget -v 1 -O vq -c "$2" "$1" memAvailReal.0`
expr $totalmem - $freemem
echo $totalmem
And finally, the snmp-conf:
(conf)
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
#PathAdd: /etc/mrtg/tools/
kilo[_]: 1024
# Accumulated datacount the past 5 min
Target[fred07_c]: .1.3.1.1.9.0&.1.3.1.1.9.1:storm@localhost:15717::::1
# The proper counter
Target[fred07_clivebw]: .1.3.1.1.0.0&.1.3.1.1.0.1:storm@localhost:15717::::1
Options[fred07_clivebw]: growright
# Accumulated datacount the past 5 min
Target[fred07_s4]: .1.3.1.1.9.0&.1.3.1.1.9.1:storm@localhost:15720::::1
Options[fred07_s4]: growright,absolute,unknaszero
PageTop[fred07_s4]: <H1>Bandwidth usage for cyberdo_slave4 (5 min. chunks)</H1>
Title[fred07_s4]: Bandwidth usage for cyberdo_slave4 (5 min. chunks)
# The proper counter
Target[fred07_s4livebw2]: .1.3.1.1.0.0&.1.3.1.1.0.1:storm@localhost:15720::::1
Options[fred07_s4livebw2]: growright, unknaszero
PageTop[fred07_s4livebw2]: <H1>Bandwidth usage for cyberdo_slave4 (live)</H1>
Title[fred07_s4livebw2]: Bandwidth usage for cyberdo_slave4 (live)
YLegend[_]: B
ShortLegend[_]: B
# Free memory and Total memory
Target[fred07_c_mem]: memAvailReal.0&memTotalReal.0:storm@localhost:15717::::1
Options[fred07_c_mem]: growright,absolute,unknaszero
LegendI[fred07_c_mem]: Available memory
LegendO[fred07_c_mem]: Total memory
PageTop[fred07_c_mem]: <H1>Memory usage for cyberdo</H1>
Title[fred07_c_mem]: Memory usage for cyberdo
# Free memory and Total memory
Target[fred07_s4_mem]: memAvailReal.0&memTotalReal.0:storm@localhost:15720::::1
Options[fred07_s4_mem]: growright,gauge,unknaszero
LegendI[fred07_s4_mem]: Available memory
LegendO[fred07_s4_mem]: Total memory
PageTop[fred07_s4_mem]: <H1>Memory usage for cyberdo_slave4</H1>
Title[fred07_s4_mem]: Memory usage for cyberdo_slave4
# Used memory and Total memory for the local machine
Target[calzone_mem2]: `/etc/mrtg/tools/memused.sh localhost storm`
Options[calzone_mem2]: growright,gauge,unknaszero
LegendI[calzone_mem2]: Available memory
LegendO[calzone_mem2]: Total memory
PageTop[calzone_mem2]: <H1>Memory usage for calzone</H1>
Title[calzone_mem2]: Memory usage for calzone
# Amount of used memory vs. total.. instead of free vs. total
Target[fred07_s4_mem2use]: `/etc/mrtg/tools/memused.sh localhost:15720 storm`
Options[fred07_s4_mem2use]: growright,gauge,unknaszero
LegendI[fred07_s4_mem2use]: Used memory
LegendO[fred07_s4_mem2use]: Total memory
PageTop[fred07_s4_mem2use]: <H1>Memory used for cyberdo_slave4 2</H1>
Title[fred07_s4_mem2use]: Memory used for cyberdo_slave4_2
Deletions:
.1.3.1.1.1.n Amount of incoming/outgoing data during the last 30s-period before the current 30s-period
.1.3.1.1.2.n Amount of incoming/outgoing data during the last 60s-period before the current 30s-period
.1.3.1.1.3.n Amount of incoming/outgoing data during the last 90s-period before the current 30s-period
.1.3.1.1.4.n Amount of incoming/outgoing data during the last 120s-period before the current 30s-period
.1.3.1.1.5.n Amount of incoming/outgoing data during the last 180s-period before the current 30s-period
.1.3.1.1.6.n Amount of incoming/outgoing data during the last 210s-period before the current 30s-period
.1.3.1.1.7.n Amount of incoming/outgoing data during the last 240s-period before the current 30s-period
.1.3.1.1.8.n Amount of incoming/outgoing data during the last 270s-period before the current 30s-period
.1.3.1.1.9.n Amount of incoming/outgoing data during the last 300s-period before the current 30s-period
Now, here's my MRTG-config reading the cyberdo-node at port 15717:
%%(config)
Target[fred07_c]: `snmpwalk -v 1 -O q -c storm localhost:15717 .1.3.1.1.9 | cut -d\ -f2 || echo -e "0\n0"`
Target[fred07_clivebw]: `snmpwalk -v 1 -O q -c storm localhost:15717 .1.3.1.1.0 | cut -d\ -f2 || echo -e "0\n0"`
Options[fred07_clivebw]: growright,unknaszero
Oldest known version of this page was edited on 2006-02-01 09:35:43 by c-1b71e155.112-1-64736c10.cust.bredbandsbolaget.se [Added basic SNMP-info]
Page view:
["This is just a stub"]
From version 420 fred has a SNMP-Sgent (server) built in.
It operates at UDP port (freenetport + 4000).
The below OID:s are extremely temporary and might very well change.
.1.3.1.1.x.0 is for outgoing data (notice that the 1 looks like an I)
.1.3.1.1.x.1 is for incoming data (notice that the 1 looks like an I)
.1.3.1.1.0.n Total amount of incoming/outgoing data during the current run
.1.3.1.1.1.n Amount of incoming/outgoing data during the last 30s-period before the current 30s-period
.1.3.1.1.2.n Amount of incoming/outgoing data during the last 60s-period before the current 30s-period
.1.3.1.1.3.n Amount of incoming/outgoing data during the last 90s-period before the current 30s-period
.1.3.1.1.4.n Amount of incoming/outgoing data during the last 120s-period before the current 30s-period
.1.3.1.1.5.n Amount of incoming/outgoing data during the last 180s-period before the current 30s-period
.1.3.1.1.6.n Amount of incoming/outgoing data during the last 210s-period before the current 30s-period
.1.3.1.1.7.n Amount of incoming/outgoing data during the last 240s-period before the current 30s-period
.1.3.1.1.8.n Amount of incoming/outgoing data during the last 270s-period before the current 30s-period
.1.3.1.1.9.n Amount of incoming/outgoing data during the last 300s-period before the current 30s-period
Now, here's my MRTG-config reading the cyberdo-node at port 15717:
EnableIPv6: no
Workdir: /var/www/mrtg/data
Options[_]: growright,unknaszero
Weekformat[^]: V
WithPeak[_]:wmy
PageTop[_]: <H1>Unnamed Graph</H1>
MaxBytes[_]: 1000000000
YLegend[_]: Bps
ShortLegend[_]: bytes/s
LegendI[_]: output
LegendO[_]: input
Target[fred07_c]: `snmpwalk -v 1 -O q -c storm localhost:15717 .1.3.1.1.9 | cut -d\ -f2 || echo -e "0\n0"`
Options[fred07_c]: growright,absolute,unknaszero
PageTop[fred07_c]: <H1>Bandwidth usage for cyberdo (5 min. chunks)</H1>
Title[fred07_c]: Bandwidth usage for cyberdo (5 min. chunks)
Target[fred07_clivebw]: `snmpwalk -v 1 -O q -c storm localhost:15717 .1.3.1.1.0 | cut -d\ -f2 || echo -e "0\n0"`
Options[fred07_clivebw]: growright,unknaszero
PageTop[fred07_clivebw]: <H1>Bandwidth usage for cyberdo (live)</H1>
Title[fred07_clivebw]: Bandwidth usage for cyberdo (live)