Revision [1095]

Last edited 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).


Revision [341]

Edited on 2006-02-07 09:35:02 by c-1b71e155.112-1-64736c10.cust.bredbandsbolaget.se (unregistered user) [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


Revision [340]

Edited on 2006-02-07 09:13:24 by c-1b71e155.112-1-64736c10.cust.bredbandsbolaget.se (unregistered user) [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)


Revision [339]

Edited on 2006-02-07 09:12:46 by c-1b71e155.112-1-64736c10.cust.bredbandsbolaget.se (unregistered user)
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):
%%(sh)
#!/bin/sh
if [ "$1" == "" ] ; then
echo "$0 " ;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]:

Bandwidth usage for cyberdo_slave4 (5 min. chunks)


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]:

Bandwidth usage for cyberdo_slave4 (live)


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]:

Memory usage for cyberdo


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]:

Memory usage for cyberdo_slave4


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]:

Memory usage for calzone


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]:

Memory used for cyberdo_slave4 2


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


Revision [307]

The oldest known version of this page was created on 2006-02-01 09:35:43 by c-1b71e155.112-1-64736c10.cust.bredbandsbolaget.se (unregistered user) [Added basic SNMP-info]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki