Andrea Ruggeri | 21 May 11:48 2015
Picon

Monitoring remote RAM, CPU and Hard DIsk

Hi guys,

 

which of you can provide me the "file.cfg" to go to the monitor via MRTG OID remote ram, cpu and hard disk capacity for the following operating systems:

 

Linux / Ubuntu

FreeBSD (pfSense)

Server VMware (ESXi 5.x.x)

NAS LenovoEMC px12-400r (I would like to monitor the raid hard drives)

Sensor RoomAlert

 

Many thanks to the young who will be of help.

 

Regards,

 

Andrea.

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
lucap | 19 May 14:07 2015
Picon

Math operations

Hi guys

I'm trying to monitor the rate of retransmitted tcp segments and the rate of 
tcp errors.
Following my MRTG (2.16.2) configuration:

WorkDir: /myworkingdir
LoadMIBs: /usr/share/snmp/mibs/TCP-MIB.txt
Refresh: 300
Interval: 5
WriteExpires: Yes
LogFormat: rrdtool

Target[target]: tcpRetransSegs.0&tcpInErrs.0:community <at> target / 
tcpOutSegs.0&tcpInSegs.0:community <at> target * 100
Directory[target]: target
MaxBytes[target]: 100
kMG[target]: ,,
Unscaled[target]: dwmy
Options[target]: growright, nopercent
ShortLegend[target]: %
YLegend[target]: TCP segments (%)
Legend1[target]: Retransmitted segments
Legend2[target]: Received segments with errors
LegendI[target]: Out
LegendO[target]: In
Title[target]: TCP segments
PageTop[target]: <H1>TCP segments</H1>

I have no errors, but data in the RRDTool file are always 0 (zero):

rrdtool fetch test.rrd AVERAGE
                      ds0                          ds1
.....................................................................................
1432024500: 0.0000000000e+00 0.0000000000e+00
1432024800: 0.0000000000e+00 0.0000000000e+00
1432025100: 0.0000000000e+00 0.0000000000e+00
1432025400: -nan -nan

RRDTool version is 1.3.8.

Thank you in advance for any suggestions.

Best Regards
Luca
Nick price | 18 May 22:14 2015
Picon

power montor

The meter from our electric utility supplier gives out 3.5 volt pulses on 2 wires 1000 pulses=0.16kWHr.

 

I need to get these pulses into MRTG.

 

Does anyone know where I can get a box that will output the pulses in a form that MRTG can read them preferably over Ethernet.

 

I would also like it to interface to Nagios if possible.

 

Nick Price

 

 

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Rick Silacci | 11 May 19:10 2015
Picon

Graphs reading -nan

-nan at the left of the graph were numbers were usually displayed.  Nothing has changed in the cfg file.   Not sure aren’t appearing anymore.

 

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
smcg4191 | 10 May 00:43 2015

cfgmaker with smtpv3

Hello,

I am trying to get cfgmaker to talk to a smnp-v3 device (a
Cisco small business router that has only snmpv3 support,
no snmpv2c).  Using mrtg-2.17 on a Fedora-21 box.

I had mrtg working with this device in the past but the 
device was configured with "no auth, no privacy".  It has 
been mandated that the device must be set at least to "auth, 
no privacy" which was duly done.  But I can no longer talk 
to it.

This works:

  snmpwalk -v3 -u guest -A **** -l authNoPriv -a md5  device

This doesn't:

  cfgmaker --enablesnmpv3 --username=guest --authpassword=****  -ifref=ip 
device

and results in the messages:

  --base: SNMP V3 libraries found, SNMP V3 enabled.
  --base: snmpv3 available, but using v1/v2c for public <at> gw2:
  --base: Get Device Info on public <at> gw2:

Why is it refusing to use snmpv3?

My question was also asked back in 2013 on this list with 
no responses.

>From this thread, 

http://mrtg-mailinglists.795376.n2.nabble.com/Fwd-MRTG-SNMPv3-tp7579942.html
I wondered if the --contentengineid argument is required?
I followed the suggestion there, got the contextengineid 
from tcpdump but it made no difference.

How to I get mrtg to talk to a snmpv3 device that requires
authentication?  Thanks for any suggestions...
Andrea Ruggeri | 7 May 19:32 2015
Picon

Monitoring Ram remote host

Hi guys,

 

I have the following problem when I go to do the following:

 

-          I create the file ram.cfg:

 

LoadMIBs: /usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt

Target [ram_nagios61]: .1.3.6.1.4.1.2021.4.6.0 & .1.3.6.1.4.1.2021.4.6.0: public <at> nagios61

PAGETOP [ram_nagios61]: <H1> Free Memory </ H1>

WorkDir: / var / www / mrtg / test

Options [ram_nagios61]: nopercent, growright, gauge, noinfo

Title [ram_nagios61]: Free Memory

MaxBytes [ram_nagios61]: 1000000

KMG [ram_nagios61]: k, M, G, T, P, X

YLegend [ram_nagios61]: bytes

ShortLegend [ram_nagios61]: bytes

Legendi [ram_nagios61]: Free Memory:

Legendo [ram_nagios61]:

Legend1 [ram_nagios61]: Free memory, not including swap, in bytes

 

-          Launch the command:

 

IndexMaker ram.cfg> /var/www/mrtg/test/ram.html

 

-          Launch three face the command:

 

LANG = C; mrtg /etc/mrtg.cfg

 

-          And the system gives me the following error:

 

root <at> nagios51: /etc/mrtg.d# LANG = C; mrtg /etc/mrtg.cfg

SNMP Error:

no response received

SNMPv1_Session (remote host: "sens01" [10.101.4.1] .161)

                  community: "public"

                 request ID: 1902900760

                PDU bufsize: 8000 bytes

                    timeout: 2s

                    retries: 5

                    backoff: 1)

 /usr/share/perl5/SNMP_util.pm at line 492.

Snmpget Problem for ifInOctets.1 ifOutOctets.1 SysUpTime sysName on public <at> sens01 :::::: v4only

 at / usr / bin / mrtg line 2339.

07/05/2015 19:25:58: WARNING: skipping Because at least the query for ifInOctets.1 on sens01 did not succeed

07/05/2015 19:25:58: WARNING: no date for ifInOctets & ifOutOctets: public <at> sens01. Skipping further Top queries for Host sens01 in this round.

SNMP Error:

no response received

SNMPv1_Session (remote host: "nagios61" [10.101.13.2] .161)

                  community: "public"

                 request ID: 330083949

                PDU bufsize: 8000 bytes

                    timeout: 2s

                    retries: 5

                    backoff: 1)

 /usr/share/perl5/SNMP_util.pm at line 492.

Snmpget Problem for .1.3.6.1.4.1.2021.4.6.0 .1.3.6.1.4.1.2021.4.6.0 SysUpTime sysName on public <at> nagios61 :::::: v4only

 at / usr / bin / mrtg line 2339.

07/05/2015 19:25:58: WARNING: skipping Because at least the query for .1.3.6.1.4.1.2021.4.6.0 on nagios61 did not succeed

07/05/2015 19:25:58: WARNING: no date for .1.3.6.1.4.1.2021.4.6 & .1.3.6.1.4.1.2021.4.6: public <at> nagios61. Skipping further Top queries for Host nagios61 in this round.

07/05/2015 19:26:19: ERROR: Target [sens01_1] [_ IN_] '$ target -> [5] {} $ mode' did not eval into defined data

07/05/2015 19:26:19: ERROR: Target [sens01_1] [_ OUT_] '$ target -> [5] {} $ mode' did not eval into defined data

07/05/2015 19:26:19: ERROR: Target [ram_nagios61] [_ IN_] '$ target -> [6] {} $ mode' did not eval into defined data

07/05/2015 19:26:19: ERROR: Target [ram_nagios61] [_ OUT_] '$ target -> [6] {} $ mode' did not eval into defined data

root <at> nagios51: /etc/mrtg.d# LANG = C; mrtg /etc/mrtg.cfg

SNMP Error:

no response received

SNMPv1_Session (remote host: "sens01" [10.101.4.1] .161)

                  community: "public"

                 request ID: 428020869

                PDU bufsize: 8000 bytes

                    timeout: 2s

                    retries: 5

                    backoff: 1)

 /usr/share/perl5/SNMP_util.pm at line 492.

Snmpget Problem for ifInOctets.1 ifOutOctets.1 SysUpTime sysName on public <at> sens01 :::::: v4only

 at / usr / bin / mrtg line 2339.

07/05/2015 19:27:07: WARNING: skipping Because at least the query for ifInOctets.1 on sens01 did not succeed

07/05/2015 19:27:07: WARNING: no date for ifInOctets & ifOutOctets: public <at> sens01. Skipping further Top queries for Host sens01 in this round.

SNMP Error:

no response received

SNMPv1_Session (remote host: "nagios61" [10.101.13.2] .161)

                  community: "public"

                 request ID: 1175690500

                PDU bufsize: 8000 bytes

                    timeout: 2s

                    retries: 5

                    backoff: 1)

 /usr/share/perl5/SNMP_util.pm at line 492.

Snmpget Problem for .1.3.6.1.4.1.2021.4.6.0 .1.3.6.1.4.1.2021.4.6.0 SysUpTime sysName on public <at> nagios61 :::::: v4only

 at / usr / bin / mrtg line 2339.

07/05/2015 19:27:07: WARNING: skipping Because at least the query for .1.3.6.1.4.1.2021.4.6.0 on nagios61 did not succeed

07/05/2015 19:27:07: WARNING: no date for .1.3.6.1.4.1.2021.4.6 & .1.3.6.1.4.1.2021.4.6: public <at> nagios61. Skipping further Top queries for Host nagios61 in this round.

07/05/2015 19:27:27: ERROR: Target [sens01_1] [_ IN_] '$ target -> [5] {} $ mode' did not eval into defined data

07/05/2015 19:27:27: ERROR: Target [sens01_1] [_ OUT_] '$ target -> [5] {} $ mode' did not eval into defined data

07/05/2015 19:27:27: ERROR: Target [ram_nagios61] [_ IN_] '$ target -> [6] {} $ mode' did not eval into defined data

07/05/2015 19:27:27: ERROR: Target [ram_nagios61] [_ OUT_] '$ target -> [6] {} $ mode' did not eval into defined data

root <at> nagios51: /etc/mrtg.d# LANG = C; mrtg /etc/mrtg.cfg

SNMP Error:

no response received

SNMPv1_Session (remote host: "sens01" [10.101.4.1] .161)

                  community: "public"

                 request ID: 1339727586

                PDU bufsize: 8000 bytes

                    timeout: 2s

                    retries: 5

                    backoff: 1)

 /usr/share/perl5/SNMP_util.pm at line 492.

Snmpget Problem for ifInOctets.1 ifOutOctets.1 SysUpTime sysName on public <at> sens01 :::::: v4only

 at / usr / bin / mrtg line 2339.

07/05/2015 19:27:32: WARNING: skipping Because at least the query for ifInOctets.1 on sens01 did not succeed

07/05/2015 19:27:32: WARNING: no date for ifInOctets & ifOutOctets: public <at> sens01. Skipping further Top queries for Host sens01 in this round.

SNMP Error:

no response received

SNMPv1_Session (remote host: "nagios61" [10.101.13.2] .161)

                  community: "public"

                 request ID: 1167548425

                PDU bufsize: 8000 bytes

                    timeout: 2s

                    retries: 5

                    backoff: 1)

 /usr/share/perl5/SNMP_util.pm at line 492.

Snmpget Problem for .1.3.6.1.4.1.2021.4.6.0 .1.3.6.1.4.1.2021.4.6.0 SysUpTime sysName on public <at> nagios61 :::::: v4only

 at / usr / bin / mrtg line 2339.

07/05/2015 19:27:32: WARNING: skipping Because at least the query for .1.3.6.1.4.1.2021.4.6.0 on nagios61 did not succeed

07/05/2015 19:27:32: WARNING: no date for .1.3.6.1.4.1.2021.4.6 & .1.3.6.1.4.1.2021.4.6: public <at> nagios61. Skipping further Top queries for Host nagios61 in this round.

07/05/2015 19:27:52: ERROR: Target [sens01_1] [_ IN_] '$ target -> [5] {} $ mode' did not eval into defined data

07/05/2015 19:27:52: ERROR: Target [sens01_1] [_ OUT_] '$ target -> [5] {} $ mode' did not eval into defined data

07/05/2015 19:27:52: ERROR: Target [ram_nagios61] [_ IN_] '$ target -> [6] {} $ mode' did not eval into defined data

07/05/2015 19:27:52: ERROR: Target [ram_nagios61] [_ OUT_] '$ target -> [6] {} $ mode' did not eval into defined data

 

Waiting for an answer thank you in advance,

 

Andrea

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Steve Shipway | 7 May 00:08 2015
Picon
Picon

Re: Measuring RSSI

It looks like the OID is returning a string value.  MRTG expects a Counter, so this is not going to work without postprocessing using the ConversionCode directive and Target suffixes.

 

You need to define a Conversion function, like this.

 

First, create a file conversion.pl in the same directory as the mrtg script containing this:

 

sub string2int {

  my $value = shift;

  if ( $value =~ /(-?\d+\.?\d*)/ ) { return $1; } else { return undef; }

}

 

In your MRTG cfg file, have this to declare the functions:

 

ConversionCode: conversion.pl

 

Then, in your Target line, use something like this to use string2int to postprocess the output:

 

Target[ezwf]: rssi.0&rssi.0:community <at> devicename:::::2|string2int

 

This will extract the ‘-77’ from the string “-77 dBm”.

 

However, if you are using native MRTG, you ‘ll have problems with decimals and negative numbers as they are not supported.  To get around this, you could use a simple regexp in the string2int function, such as /(\d+)/ which will ignore and decimals and negatives.

 

You could use

 

Factor[ezwf]: -1

 

…to display the (positive) stored values as negative, though I’m not certain if native-mode MRTG supports negative Factor[] definitions either.  Have another recommendation to use the RRDTool backend J - maybe you can convince your management…

 

Steve

 

Steve Shipway

s.shipway <at> auckland.ac.nz

(GNU Terry Pratchett)

 

From: Rick Silacci [mailto:rick <at> velociter.net]
Sent: Thursday, 7 May 2015 5:09 a.m.
To: Steve Shipway
Subject: RE: Measuring RSSI

 

Actually I walked the correct OID 1.3.6.1.4.1.161.19.3.2.2.8.0 and it came back with “-77  dBm”  When I poll it through mrtg I get error message: Warning: Expected a number but got –‘77 dBm’

 

 

I need to suppress the ‘dbm’ part.  Is that possible?

 

 

Attachment (smime.p7s): application/pkcs7-signature, 13 KiB
_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Rick Silacci | 6 May 01:11 2015
Picon

Measuring RSSI

I’m using the parameters below to measure rssi.  I’m supposed to be getting a negative number expressed in decibels, but this is what I’m getting:

 

 

Variable Name: RSSI

Variable Description: Radio Signal Strength

IndexSNMP/MRTG Variable Name rssi.0

Example: Target[Var]:rssi.0&rssi.0:Canopy <at> MyDevice:::::2

 

 

 

 

Rick Silacci

Velociter Wireless

1525 Second Street

Escalon, CA 95320

Office: 209.838.1221

Phone: 209.838.1800

 

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Rick Silacci | 30 Apr 19:48 2015
Picon

5000 devices to monitor with 4 different metrics

I already have one configuration file graphing network traffic for 5000 devices.  I have 3 more metrics to add.  This is what one of the configuration files looks like for one of the 3 metrics:

 

 

#Color Code 209

Target[10.10.5.5colorcode]: 1.3.6.1.4.1.161.19.3.2.2.65.0&1.3.6.1.4.1.161.19.3.2.2.65.0:Canopy <at> 10.10.5.5:161::::2

Directory[10.10.5.5colorcode]: 10.10.5.5

MaxBytes[10.10.5.5colorcode]: 100000

Title[10.10.5.5colorcode]: Color Code

PageTop[10.10.5.5colorcode]:<H1>Color Code</H1>

Options[10.10.5.5colorcode]: gauge, growright, secondmean

YLegend[10.10.5.5colorcode]: Color Code

ShortLegend[10.10.5.5colorcode]: &nbsp;

LegendI[10.10.5.5colorcode]: &nbsp;In:

LegendO[10.10.5.5colorcode]: &nbsp;Out:

 

Obviously this is for one device.  I have to apply this to IP’s ranging from 10.10.1.1 through 10.10.20.254, roughly 5000 IP’s.  Is there a way to automate this so I don’t have to create a separate configuration file for each device?

 

 

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Rick Silacci | 28 Apr 21:19 2015
Picon

Trying to monitor Canopy Color Code

This is what I have in my config file: Target[10.10.5.5-color code]: 1.3.6.1.4.1.161.19.3.3.2.2.0:Canopy <at> 10.10.5.5:161::::2

 

Getting error message that 1.3.6.1.4.1.161.19.3.3.2.2.0 does not make sense.  Instead of an OID is there a variable for Color code?

 

 

TX

 

 

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Ján ONDREJ | 28 Apr 12:46 2015
Picon

Re: TrafGrapher - interactive multiple MRTG data in one graph

But this was not an idea of TrafGrapher. TrafGrapher do not require anything
on server side, if there is MRTG running. No need to convert data
periodically. It downloads plain MRTG files and process them client side (in
browser).

With multiple switches number of interfaces is growing and my stats server
is most write intensive server. I don't see any problems with MRTG log
files, specially with log files used by trafgrapher SNMP client.

But for someone, who has no limitations on server it is possible to use
rrdtool xport, as you write. Just need to add another data processor
for TrafGrapher.

							SAL

On Tue, Apr 28, 2015 at 12:41:34PM +0200, Matija Grabnar wrote:
> Just a suggestion: the latest versions of rrdtool have a command xport,
> which can
> export the contents of RRD (after all the processing you can request for rrd
> graph) as JSON.
> 
> And Json should be easy to process in javascript. So all you would need
> would be a CGI script on the master host that called rrd xport with the
> correct parameters and you could add RRD support to your graphing tool.
> 
> On 04/28/2015 12:34 PM, Ján ONDREJ wrote:
> >On Tue, Apr 28, 2015 at 11:29:34AM +0100, Niall O'Reilly wrote:
> >>On Tue, 28 Apr 2015 05:39:52 +0100,
> >>Ján ONDREJ (SAL) wrote:
> >>>Dear MRTG users,
> >>>
> >>>   I am pleased to announce a new open source project named TrafGrapher. This
> >>>is an pure html/javascript/css application, which can display multiple MRTG
> >>>data in one graph, compare them, filter, etc...
> >>   Cool, but
> >>
> >>>    - reuse MRTG log files
> >>   [...]
> >>>    - less intensive disk writes for .log files
> >>   What about RRD?
> >I like simple MRTG files. RRD files are too complex and hard to process
> >them in javascript.
> >
> >There is also an get.py script, which can collect SNMP v2c only (yet) data
> >and store it in MRTG like log files. They are a bit updated to mostly write
> >only new data and do not override whole file each time (will be overwritten
> >once per day). This get.py is still beta quality, other scripts are stable.
> >
> >TrafGrapher can be configured to use multiple sources, you can write your
> >own data source. :-)
> >
> >							SAL
> >
> >_______________________________________________
> >mrtg mailing list
> >mrtg <at> lists.oetiker.ch
> >https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Gmane