Nick Price | 1 Feb 12:05 2016
Picon

mrtg new version

 With the last version of MRTG being released 4 years ago, are there going to be any more updates written that take into account newer versions of dependencies and also 32 or 64 bit OS systems
 
Many thanks
 
Nick Price
_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Виктор Белоус | 13 Jan 14:38 2016
Picon

How configure mrtg for negative data?

Hi !

I try use mrtg for get temperature data in Celsius degree positive and 
negative. In positive all good, but negative is null. Ноw configure mrtg 
for negative degree?

My debug output

Belka/bvictor16:22:38/opt/mrtg$env LANG=C mrtg lpowernode.conf --debug 
"cfg,dir,base,tarp,snpo,fork,time,log"
--time: prog start Wed Jan 13 16:25:01 2016
--base: Creating Lockfiles lpowernode.conf_l,lpowernode.conf_l_21491
--base: Reading Config File: lpowernode.conf
--cfg: lpowernode.conf[1]: EnableIPv6:  no
--cfg: lpowernode.conf[2]: options[_]:  bits
--cfg: lpowernode.conf[3]: workdir:     /var/www/mrtg
--cfg: lpowernode.conf[4]: Language:    russian
--cfg: lpowernode.conf[5]: IconDir:     /var/www/mrtg/icons
--cfg: lpowernode.conf[6]: SingleRequest:       Yes
--cfg: lpowernode.conf[7]: ################################
--cfg: lpowernode.conf[8]: # temperature 1
--cfg: lpowernode.conf[9]: ################################
--cfg: lpowernode.conf[10]: Target[lpowernode1]: 
1.3.6.1.4.1.47096.1.1.1.1.1.1.4.0&1.3.6.1.4.1.47096.1.1.1.1.1.1.4.1:belous <at> lpowernode1
--cfg: lpowernode.conf[11]: SetEnv[lpowernode1]: MRTG_INT_IP="" 
MRTG_INT_DESCR="Temperature 1"
--cfg: lpowernode.conf[12]: Directory[lpowernode1]: lpowernode1
--cfg: lpowernode.conf[13]: MaxBytes[lpowernode1]: 1000
--cfg: lpowernode.conf[14]: ShortLegend[lpowernode1]:   grad
--cfg: lpowernode.conf[15]: Title[lpowernode1]: Temperature 1
--cfg: lpowernode.conf[16]: WithPeak[lpowernode1]:              ym
--cfg: lpowernode.conf[17]: #XSize[Temp1]: 600
--cfg: lpowernode.conf[18]: #YSize[Temp1]: 300
--cfg: lpowernode.conf[19]: PageTop[lpowernode1]: <H1>Temperature 1</H1>
--cfg: lpowernode.conf[20]: Options[lpowernode1]: gauge, nopercent, 
absolute, expscale
--cfg: lpowernode.conf[21]: YLegend[lpowernode1]: Temp
--cfg: lpowernode.conf[22]: #YScale[lpowernode1]: 0.1
--cfg: lpowernode.conf[23]: Factor[lpowernode1]: 0.1
--cfg: lpowernode.conf[24]: Legend1[lpowernode1]: Temp 1
--cfg: lpowernode.conf[25]: Legend2[lpowernode1]: Temp 2
--cfg: lpowernode.conf[26]: Legend3[lpowernode1]: Max value per interval 
on graph
--cfg: lpowernode.conf[27]: Legend4[lpowernode1]:               .
--cfg: lpowernode.conf[28]: LegendI[lpowernode1]: Temperature 1
--cfg: lpowernode.conf[29]: LegendO[lpowernode1]: Temperature 2
--cfg: lpowernode.conf[30]:
--cfg: lpowernode.conf[31]: ################################
--cfg: lpowernode.conf[32]: # temperature 2
--cfg: lpowernode.conf[33]: ################################
--cfg: lpowernode.conf[34]: Target[lpowernode2]: 
1.3.6.1.4.1.47096.1.1.1.1.1.1.4.2&1.3.6.1.4.1.47096.1.1.1.1.1.1.4.3:belous <at> lpowernode1
--cfg: lpowernode.conf[35]: SetEnv[lpowernode2]: MRTG_INT_IP="" 
MRTG_INT_DESCR="Temperature 2"
--cfg: lpowernode.conf[36]: Directory[lpowernode2]: lpowernode1
--cfg: lpowernode.conf[37]: MaxBytes[lpowernode2]: 1000
--cfg: lpowernode.conf[38]: ShortLegend[lpowernode2]:   grad
--cfg: lpowernode.conf[39]: Title[lpowernode2]: Temperature 2
--cfg: lpowernode.conf[40]: WithPeak[lpowernode2]:              ym
--cfg: lpowernode.conf[41]: #XSize[Temp2]: 600
--cfg: lpowernode.conf[42]: #YSize[Temp2]: 300
--cfg: lpowernode.conf[43]: PageTop[lpowernode2]: <H1>Temperature 2</H1>
--cfg: lpowernode.conf[44]: Options[lpowernode2]: gauge, nopercent, 
absolute, expscale
--cfg: lpowernode.conf[45]: YLegend[lpowernode2]: Temp
--cfg: lpowernode.conf[46]: #YScale[lpowernode2]: 0.1
--cfg: lpowernode.conf[47]: Factor[lpowernode2]: 0.1
--cfg: lpowernode.conf[48]: Legend1[lpowernode2]: Temp 3
--cfg: lpowernode.conf[49]: Legend2[lpowernode2]: Temp 4
--cfg: lpowernode.conf[50]: Legend3[lpowernode2]: Max value per interval 
on graph
--cfg: lpowernode.conf[51]: Legend4[lpowernode2]:               .
--cfg: lpowernode.conf[52]: LegendI[lpowernode2]: Temperature 3
--cfg: lpowernode.conf[53]: LegendO[lpowernode2]: Temperature 4
--cfg: lpowernode.conf[54]:
--base: Reading Interface Config cache
--base: Checking Config File
--dir: ensure path IN:  '/var/www/mrtg'
--dir: ensure path OUT: '/var/www/mrtg/'
--dir: imagehtml =
--dir: ensure path IN:  'lpowernode1'
--dir: ensure path OUT: 'lpowernode1/'
--dir: directory for lpowernode1 'lpowernode1/'
--tarp: Starting lpowernode1 -> 
1.3.6.1.4.1.47096.1.1.1.1.1.1.4.0&1.3.6.1.4.1.47096.1.1.1.1.1.1.4.1:belous <at> lpowernode1
--tarp: &targparser external done: 
'1.3.6.1.4.1.47096.1.1.1.1.1.1.4.0&1.3.6.1.4.1.47096.1.1.1.1.1.1.4.1:belous <at> lpowernode1'
--tarp: New complex target [0] 
'1.3.6.1.4.1.47096.1.1.1.1.1.1.4.0&1.3.6.1.4.1.47096.1.1.1.1.1.1.4.1:belous <at> lpowernode1':
   Comu:  belous, Host: lpowernode1
   Opt:   , IPv4: 1
   Conv:
   OID:   1.3.6.1.4.1.47096.1.1.1.1.1.1.4, 1.3.6.1.4.1.47096.1.1.1.1.1.1.4
   IfSel: If, If
   Key:   0, 1
--tarp: &targparser complex done: ' $target->[0]{$mode} '
--tarp: &targparser simple done: ' $target->[0]{$mode} '
--tarp: &targparser returning: unique = 0
--dir: ensure path IN:  'lpowernode1'
--dir: ensure path OUT: 'lpowernode1/'
--dir: directory for lpowernode2 'lpowernode1/'
--tarp: Starting lpowernode2 -> 
1.3.6.1.4.1.47096.1.1.1.1.1.1.4.2&1.3.6.1.4.1.47096.1.1.1.1.1.1.4.3:belous <at> lpowernode1
--tarp: &targparser external done: 
'1.3.6.1.4.1.47096.1.1.1.1.1.1.4.2&1.3.6.1.4.1.47096.1.1.1.1.1.1.4.3:belous <at> lpowernode1'
--tarp: New complex target [1] 
'1.3.6.1.4.1.47096.1.1.1.1.1.1.4.2&1.3.6.1.4.1.47096.1.1.1.1.1.1.4.3:belous <at> lpowernode1':
   Comu:  belous, Host: lpowernode1
   Opt:   , IPv4: 1
   Conv:
   OID:   1.3.6.1.4.1.47096.1.1.1.1.1.1.4, 1.3.6.1.4.1.47096.1.1.1.1.1.1.4
   IfSel: If, If
   Key:   2, 3
--tarp: &targparser complex done: ' $target->[1]{$mode} '
--tarp: &targparser simple done: ' $target->[1]{$mode} '
--tarp: &targparser returning: unique = 1
--base: Loading Locale for russian
--base: Starting main Loop
--time: loop start Wed Jan 13 16:25:01 2016
--base: Populate Target object by polling SNMP and external Datasources
--time: snmp read start Wed Jan 13 16:25:01 2016
--snpo: run snmpget from 
1.3.6.1.4.1.47096.1.1.1.1.1.1.4&1.3.6.1.4.1.47096.1.1.1.1.1.1.4:belous <at> lpowernode1
--snpo: simple If: .0
--snpo: simple If: .1
--snpo: SNMPGet from belous <at> lpowernode1 -- 
1.3.6.1.4.1.47096.1.1.1.1.1.1.4.0,1.3.6.1.4.1.47096.1.1.1.1.1.1.4.1,sysUptime,sysName
--snpo: SNMPfound -- '518', '120', '6:36:41', 'INTELLECT-MODULE LPOWERNODE'
--snpo: run snmpget from 
1.3.6.1.4.1.47096.1.1.1.1.1.1.4&1.3.6.1.4.1.47096.1.1.1.1.1.1.4:belous <at> lpowernode1
--snpo: simple If: .2
--snpo: simple If: .3
--snpo: SNMPGet from belous <at> lpowernode1 -- 
1.3.6.1.4.1.47096.1.1.1.1.1.1.4.2,1.3.6.1.4.1.47096.1.1.1.1.1.1.4.3,sysUptime,sysName
--snpo: SNMPfound -- '-600', '-600', '6:36:41', 'INTELLECT-MODULE 
LPOWERNODE'
--time: target loop start Wed Jan 13 16:25:02 2016
--base: Act on Router/Target lpowernode1
--base: Get Current values: in:518, out:120, up:6:36:41, 
name:INTELLECT-MODULE LPOWERNODE, time:1452691501
--base: Create Graphics
--log: /opt/csw/bin/rateup /var/www/mrtg/lpowernode1/ lpowernode1 
1452691501 -Z g 518 120 1000 c #00cc00 #0000ff #006600 #ff00ff -x l 
[Temp] k 1000 i /var/www/mrtg/lpowernode1/lpowernode1-day.png -1000 
-1000 400 100 1 1 0 300 0 4 1 %Y-%m-%d %H:%M 0
--base: Check for Thresholds
--base: Check for Write HTML Pages
--base: Act on Router/Target lpowernode2
--base: Get Current values: in:-600, out:-600, up:6:36:41, 
name:INTELLECT-MODULE LPOWERNODE, time:1452691502
--base: Create Graphics
--log: /opt/csw/bin/rateup /var/www/mrtg/lpowernode1/ lpowernode2 
1452691502 -Z g 2147483048 2147483048 1000 c #00cc00 #0000ff #006600 
#ff00ff -x l [Temp] k 1000 i 
/var/www/mrtg/lpowernode1/lpowernode2-day.png -1000 -1000 400 100 1 1 0 
300 0 4 1 %Y-%m-%d %H:%M 0
--base: Check for Thresholds
--base: Check for Write HTML Pages
--base: End of main Loop
--base: Exit main Loop
--base: Remove Lock Files
--base: Store Interface Config Cache

Also snmp-walk output

Belka/bvictor16:25:02/opt/mrtg$snmpwalk -v 2c -c belous lpowernode1 
1.3.6.1.4.1.47096.1.1.1.1.1.1.4
SNMPv2-SMI::enterprises.47096.1.1.1.1.1.1.4.0 = INTEGER: 517
SNMPv2-SMI::enterprises.47096.1.1.1.1.1.1.4.1 = INTEGER: 118
SNMPv2-SMI::enterprises.47096.1.1.1.1.1.1.4.2 = INTEGER: -600
SNMPv2-SMI::enterprises.47096.1.1.1.1.1.1.4.3 = INTEGER: -600

--

-- 
С уважением,
Виктор Антонович Белоус
Корневой сертификат http://mail.belous.su/ca/belous.CA.der

Attachment (smime.p7s): application/pkcs7-signature, 4294 bytes
_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
bunkertor | 11 Dec 14:35 2015
Picon

Fw: new important message

Hello!

 

New message, please read http://demo2.martsaurus.com/conduct.php

 

bunkertor <at> tiscali.it

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Scott Vander Dussen | 25 Nov 01:45 2015
Picon

Config file script

We have an MRTG instance configured to poll SNMP data from a /16 block of IPs.  We would like to change that IP space to include additional /16s.  We’re hoping there is a script or tool that can work with the existing MRTG config files or generate new ones based upon an IP range.  Any experience with this?  Thanks in advance.

 

Scott

 

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Roger Smith | 24 Nov 17:44 2015
Picon

Re: [FORGED] MRTG and IT Watchdog sensor

I also tried the OID themselves:


I got:
2015-11-24 08:44:18 -- SNMP Error:
receiving response PDU: An existing connection was forcibly closed by the remote host.
SNMPv1_Session (remote host: "10.45.0.131" [10.45.0.131].161)
                  community: "tcoe-snmp"
                 request ID: 1669607121
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at c:/mrtg/bin\..\lib\mrtg2/SNMP_util.pm line 497
2015-11-24 08:44:18 -- SNMPGET Problem for 1.3.6.1.4.1.21239.5.1.2.1.5 1.3.6.1.4.1.21239.5.1.4.1.5 sysUptime sysName on tcoe-snmp <at> 10.45.0.131::::::v4only
 at c:\mrtg\bin\mrtg line 2330
2015-11-24 08:44:18 -- 2015-11-24 08:44:18: ERROR: Target[10.45.0.131_temps][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
2015-11-24 08:44:18 -- 2015-11-24 08:44:18: ERROR: Target[10.45.0.131_temps][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data


-------------------------------------------------------------------
Date: Fri, 20 Nov 2015 21:36:46 +0000
From: Steve Shipway <s.shipway <at> auckland.ac.nz>
To: Roger Smith <rogertcoe <at> gmail.com>, "mrtg <at> lists.oetiker.ch"
        <mrtg <at> lists.oetiker.ch>
Subject: Re: [mrtg] [FORGED]  MRTG and IT Watchdog sensor
Message-ID:
        <5820DC553954E44FA1A36C78323AD148A3F955F5 <at> uxcn10-6.UoA.auckland.ac.nz>
Content-Type: text/plain; charset="iso-8859-1"

Target[10.45.0.135_internalTemp]: tempSensorTemp:tcoe-snmp <at> 10.45.0.135<mailto:tempSensorTemp%3Atcoe-snmp <at> 10.45.0.135>

You must always give exactly two metrics to MRTG per Target (this is historical, because originally this was inbound and outbound data for network traffic).  If it is a single value, either duplicate it, or use pseudoZero.

Target[10.45.0.135_internalTemp]: tempSensorTemp&pseudoZero:tcoe-snmp <at> 10.45.0.135<mailto:tempSensorTemp%3Atcoe-snmp <at> 10.45.0.135>

This is also assuming, of course, that the symbolic name tempSensorTemp can be expanded to an OID; for this to work, you need to have the MIB properly installed or referred to in the MRTG config file.  Otherwise, you can always use the numerical OID instead.

Now, your OID actually returns the value in deci-degrees, so you need to divide by 10 before storing to make the value an SI unit (Best Practice is to store values as SI units).

Target[10.45.0.135_internalTemp]: tempSensorTemp&pseudoZero:tcoe-snmp <at> 10.45.0.135  /  10
<mailto:tempSensorTemp%3Atcoe-snmp <at> 10.45.0.135>

The spaces around the '/' are required.  This will mean the value is stored in degrees, and will display the correct numbers.  However, if you are not using RRDTool and are just using native MRTG, decimals are not supported in the backend storage, and so you might instead need to do

Factor[10.45.0.135_internalTemp]: 0.1

... which will divide by 10 at graphing time instead.

Since you do not want to graph the second item, just use the 'noo' ('No outgoing') option to suppress it.

Options[10.45.0.135_internalTemp]: gauge growright noo

HTH

Steve

Steve Shipway
University of Auckland ITS
UNIX Systems Design Lead
s.shipway <at> auckland.ac.nz<mailto:s.shipway <at> auckland.ac.nz>
Ph: +64 9 373 7599 ext 86487

--
Roger Smith
Director, Information Systems
Tulare County Office of Education
559-739-0324
_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Roger Smith | 20 Nov 19:29 2015
Picon

MRTG and IT Watchdog sensor

Trying to get MRTG to read my IT Watchdog sensor.  Same company that made Weathergoose.

I have tried everything I know to get this going.  Tried loading their MIBs.  Different OID numbers/names.  Here is the error I am getting:

2015-11-20 10:16:17 -- 2015-11-20 10:16:17: ERROR: Target[10.45.0.135_internaltemp][_IN_] 'tempSensorTemp:tcoe-snmp <at> 10.45.0.135' (warn): Array found where operator expected at (eval 20) line 1, at end of line
2015-11-20 10:16:17 -- 2015-11-20 10:16:17: ERROR: Target[10.45.0.135_internaltemp][_OUT_] 'tempSensorTemp:tcoe-snmp <at> 10.45.0.135' (warn): Array found where operator expected at (eval 21) line 1, at end of line

Here is the snippet from my cfg:

Target[10.45.0.135_internalTemp]: tempSensorTemp:tcoe-snmp <at> 10.45.0.135
SetEnv[10.45.0.135_internalTemp]: MRTG_INT_IP="No Ip" MRTG_INT_DESCR="internalTemp"
MaxBytes[10.45.0.135_internalTemp]: 20000
Title[10.45.0.135_internalTemp]: internalTemp -- Doe Ave Comp Sensor

MIB file snippet:
internalTemp OBJECT-TYPE
SYNTAX Integer32(-40..200)
UNITS "0.1 Degrees"
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Current reading for Temperature in tenths of degrees. Units are given by temperatureUnits field in deviceInfo"
::= { internalEntry 5 }

CSV snippet:
internalTemp,1.3.6.1.4.1.21239.5.1.2.1.5,read-only,Integer32(-40..200),0.1 Degrees


Where should I start?

Thanks!

--
Roger Smith
Director, Information Systems
Tulare County Office of Education
559-739-0324
_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Nick price | 20 Oct 15:57 2015
Picon

maths in mrtg

For my incoming mains power supply I have a monitor box that gives me kVA and kVAR values via SNMP  I need to get kW into a graph.

 

I need to do the following maths  kW=(kVA^2-kVAR^2)^0.5 how do I get mrtg to do this

 

Many thanks in advance

 

Nick

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Wm. Josiah Erikson | 23 Sep 16:35 2015

Re: MRTG and SNMPv3

Rodger,
    Either enable the CentOS Base Repo ( edit /etc/yum.repos.d/CentOS-Base.repo and enable it), where that package lives, or download and install it manually from here (or any number of other rpmfind-like services):

http://rpm.pbone.net/index.php3/stat/4/idpl/29075690/dir/centos_7/com/perl-Crypt-DES-2.05-20.el7.x86_64.rpm.html

    -Josiah


On 9/23/15 10:08 AM, Rau, Rodger wrote:
<!-- /* Font Definitions */ <at> font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} <at> font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} <at> font-face {font-family:Consolas; panose-1:2 11 6 9 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri",sans-serif; color:black;} a:link, span.MsoHyperlink {mso-style-priority:99; color:#0563C1; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:#954F72; text-decoration:underline;} pre {mso-style-priority:99; mso-style-link:"HTML Preformatted Char"; margin:0in; margin-bottom:.0001pt; font-size:10.0pt; font-family:"Courier New"; color:black;} span.EmailStyle17 {mso-style-type:personal; font-family:"Calibri",sans-serif; color:windowtext;} span.HTMLPreformattedChar {mso-style-name:"HTML Preformatted Char"; mso-style-priority:99; mso-style-link:"HTML Preformatted"; font-family:Consolas; color:black;} span.EmailStyle20 {mso-style-type:personal-reply; font-family:"Calibri",sans-serif; color:#1F497D;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;} <at> page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} -->

I did do that..however, I get the following error:

 

Error: Package: perl-Net-SNMP-6.0.1-7.e17.noarch (epel)

                                Requires: perl (Crypt::DES)

You could try using –skip-broken to work around the problem

You could try running: rpm –Va –nofiles –nodigest

 

Then I try: #yum install perl-Crypt-DES

No package available

 

 

Rodger Rau
Senior Network Engineer, Information Management
T: 631 812-6181 | F: 631 812-6330
Leviton Manufacturing Co., Inc.
www.leviton.com | rrau <at> leviton.com

From: mrtg [mailto:mrtg-bounces+rrau=leviton.com <at> lists.oetiker.ch] On Behalf Of Wm. Josiah Erikson
Sent: Wednesday, September 23, 2015 9:52 AM
To: mrtg <at> lists.oetiker.ch
Subject: Re: [mrtg] MRTG and SNMPv3

 

Well, you have to install the SNMP v3 libraries. I don't know about Windows, but on RHEL 7 it should be as simple as "yum install net-snmp-perl", I think.
    -Josiah

On 9/23/15 9:38 AM, Rau, Rodger wrote:

Need some help.  Configuring MRTG for the first time.  Have MRTG (v2.17.4) installed on a Windows 2012 Server with ActivePerl (v5.20.2) and Net-SNMP (v5.5.0).  I used cfgmaker for a base config file and added all my routers.  I am able to capture data from all but the ones that require SNMPv3.

 

I am running the following command:

E:\mrtg-2.17.4\bin>perl cfgmaker --global "WorkDir: e:\mrtg" --output mrtg.cfg --enablesnmpv3 --username=AdminUser --authpassword=authpassword --authproto=sha --privpassword=privpassword --privprotocol=aes --snmp-options=:::::3 --contextengineid=0 AdminUser <at> xxx.xxx.xxx.xxx

 

I get the following error:

WARNING: SNMP V3 libraries not found, SNMP V3 disabled. Falling back to V2c. reverting to snmpV2c for router AdminUser <at> xxx.xxx.xxx.xxx:::::3

 

I tested this on a Linux server (RHEL7) as well and get the same error.

 

 

Rodger Rau
Senior Network Engineer, Information Management
T: 631 812-6181 | F: 631 812-6330

Leviton Manufacturing Co., Inc.
201 North Service Road., Melville, NY 11747
www.leviton.com | rrau <at> leviton.com

Stay Connected with FREE Leviton Mobile Apps: www.leviton.com/apps




_______________________________________________

mrtg mailing list

mrtg <at> lists.oetiker.ch

https://lists.oetiker.ch/cgi-bin/listinfo/mrtg



--

Wm. Josiah Erikson

Assistant Director of IT, Infrastructure Group

System Administrator, School of CS

Hampshire College

Amherst, MA 01002

(413) 559-6091


-- Wm. Josiah Erikson Assistant Director of IT, Infrastructure Group System Administrator, School of CS Hampshire College Amherst, MA 01002 (413) 559-6091
_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Rau, Rodger | 23 Sep 15:38 2015

MRTG and SNMPv3

Need some help.  Configuring MRTG for the first time.  Have MRTG (v2.17.4) installed on a Windows 2012 Server with ActivePerl (v5.20.2) and Net-SNMP (v5.5.0).  I used cfgmaker for a base config file and added all my routers.  I am able to capture data from all but the ones that require SNMPv3.

 

I am running the following command:

E:\mrtg-2.17.4\bin>perl cfgmaker --global "WorkDir: e:\mrtg" --output mrtg.cfg --enablesnmpv3 --username=AdminUser --authpassword=authpassword --authproto=sha --privpassword=privpassword --privprotocol=aes --snmp-options=:::::3 --contextengineid=0 AdminUser <at> xxx.xxx.xxx.xxx

 

I get the following error:

WARNING: SNMP V3 libraries not found, SNMP V3 disabled. Falling back to V2c. reverting to snmpV2c for router AdminUser <at> xxx.xxx.xxx.xxx:::::3

 

I tested this on a Linux server (RHEL7) as well and get the same error.

 

 

Rodger Rau
Senior Network Engineer, Information Management
T: 631 812-6181 | F: 631 812-6330

Leviton Manufacturing Co., Inc.
201 North Service Road., Melville, NY 11747
www.leviton.com | rrau <at> leviton.com

Stay Connected with FREE Leviton Mobile Apps: www.leviton.com/apps

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Volk,Gregory B | 17 Aug 17:31 2015

MRTG config for plotting FCIP connection stats

I am attempting to build a cfgmaker work-alike script that will dynamically build targets to monitor
thruput and packet loss for FCIP (fibre-channel-over-ip) TCP connections. My FCIP infrastructure
consists of several Cisco m9200 switches running NX-OS.

So far I have discovered that:
1) Querying the standard TCP-MIB objects on this platform is not useful because FCIP related TCP
connections, retransmissions, and thruput stats are not included.
2) The Cisco FCIP mibs (cisco-fcip-mgmt-ext-mib.my and cisco-fcip-mgmt-mib.my) are no help as they
appear to only reference configuration objects and not stats objects.
3) There are some very promising looking OIDs that appear to be an undocumented offshoot of the
CISCO-TCP-MIB (cisco-tcp-mib.my) objects.

Regarding item 3 above, I am able to get some interesting data when I snmpwalk the top level of the
CISCO-TCP-MIB tree. However, despite properly loading the CISCO-TCP-MIB and dependent MIB files into
two different MIB browsers, I am unable to resolve the OIDs to names. Even when I manually open up the
cisco-tcp-mib.my file I am unable to map these OIDs to names. So from looking at the output below I'm 95%
confident that the data I want (directional bytes per connection, directional packets per connection,
and retransmissions per connection) is there, I just don't know what OID is what.

My questions to the list is:
Is anyone else using SNMP to monitor individual FCIP TCP sockets? How?
Is anyone else able to map the OIDs below to names? If so, can you send me the mapping? I have been all over the
Cisco (and other) on-line mib browsers navigating the CISCO-TCP-MIB tree but the OIDs that are listed
through these tools do not come back with any data when I query my devices.



This is the top level of CISCO-TCP-MIB, but nothing resolves to a name...

snmpwalk -v2c -c public myswitch .1.3.6.1.4.1.9.9.6
SNMPv2-SMI::enterprises.9.9.6.1.2.0 = OID: IF-MIB::ifIndex
SNMPv2-SMI::enterprises.9.9.6.1.3.1.2.33554432 = Counter32: 422
SNMPv2-SMI::enterprises.9.9.6.1.3.1.2.33558528 = Counter32: 133
SNMPv2-SMI::enterprises.9.9.6.1.3.1.2.33562624 = Counter32: 158
SNMPv2-SMI::enterprises.9.9.6.1.3.1.2.33566720 = Counter32: 150
SNMPv2-SMI::enterprises.9.9.6.1.3.1.3.33554432 = Counter32: 428
SNMPv2-SMI::enterprises.9.9.6.1.3.1.3.33558528 = Counter32: 63
SNMPv2-SMI::enterprises.9.9.6.1.3.1.3.33562624 = Counter32: 79
SNMPv2-SMI::enterprises.9.9.6.1.3.1.3.33566720 = Counter32: 66
SNMPv2-SMI::enterprises.9.9.6.1.3.1.4.33554432 = Counter32: 0
SNMPv2-SMI::enterprises.9.9.6.1.3.1.4.33558528 = Counter32: 55
SNMPv2-SMI::enterprises.9.9.6.1.3.1.4.33562624 = Counter32: 86
SNMPv2-SMI::enterprises.9.9.6.1.3.1.4.33566720 = Counter32: 83
SNMPv2-SMI::enterprises.9.9.6.1.3.1.5.33554432 = Counter32: 10
SNMPv2-SMI::enterprises.9.9.6.1.3.1.5.33558528 = Counter32: 3
SNMPv2-SMI::enterprises.9.9.6.1.3.1.5.33562624 = Counter32: 4
SNMPv2-SMI::enterprises.9.9.6.1.3.1.5.33566720 = Counter32: 6
SNMPv2-SMI::enterprises.9.9.6.1.3.1.6.33554432 = Gauge32: 820
SNMPv2-SMI::enterprises.9.9.6.1.3.1.6.33558528 = Gauge32: 130
SNMPv2-SMI::enterprises.9.9.6.1.3.1.6.33562624 = Gauge32: 144
SNMPv2-SMI::enterprises.9.9.6.1.3.1.6.33566720 = Gauge32: 121
SNMPv2-SMI::enterprises.9.9.6.1.3.1.7.33554432 = Counter32: 441366459
SNMPv2-SMI::enterprises.9.9.6.1.3.1.7.33558528 = Counter32: 1440151801
SNMPv2-SMI::enterprises.9.9.6.1.3.1.7.33562624 = Counter32: 34262483
SNMPv2-SMI::enterprises.9.9.6.1.3.1.7.33566720 = Counter32: 908416349
SNMPv2-SMI::enterprises.9.9.6.1.3.1.8.33554432 = Counter32: 2724807798
SNMPv2-SMI::enterprises.9.9.6.1.3.1.8.33558528 = Counter32: 2721165430
SNMPv2-SMI::enterprises.9.9.6.1.3.1.8.33562624 = Counter32: 2885625042
SNMPv2-SMI::enterprises.9.9.6.1.3.1.8.33566720 = Counter32: 2922964465
SNMPv2-SMI::enterprises.9.9.6.1.3.1.9.33554432 = Counter32: 4646402
SNMPv2-SMI::enterprises.9.9.6.1.3.1.9.33558528 = Counter32: 44733855
SNMPv2-SMI::enterprises.9.9.6.1.3.1.9.33562624 = Counter32: 64318625
SNMPv2-SMI::enterprises.9.9.6.1.3.1.9.33566720 = Counter32: 44579369
SNMPv2-SMI::enterprises.9.9.6.1.3.1.10.33554432 = Counter32: 0
SNMPv2-SMI::enterprises.9.9.6.1.3.1.10.33558528 = Counter32: 0
SNMPv2-SMI::enterprises.9.9.6.1.3.1.10.33562624 = Counter32: 0
SNMPv2-SMI::enterprises.9.9.6.1.3.1.10.33566720 = Counter32: 0
SNMPv2-SMI::enterprises.9.9.6.1.3.1.11.33554432 = Counter32: 184026
SNMPv2-SMI::enterprises.9.9.6.1.3.1.11.33558528 = Counter32: 183877
SNMPv2-SMI::enterprises.9.9.6.1.3.1.11.33562624 = Counter32: 183886
SNMPv2-SMI::enterprises.9.9.6.1.3.1.11.33566720 = Counter32: 183886
SNMPv2-SMI::enterprises.9.9.6.1.3.1.12.33554432 = Counter32: 1309142684
SNMPv2-SMI::enterprises.9.9.6.1.3.1.12.33558528 = Counter32: 2269747048
SNMPv2-SMI::enterprises.9.9.6.1.3.1.12.33562624 = Counter32: 3520708976
SNMPv2-SMI::enterprises.9.9.6.1.3.1.12.33566720 = Counter32: 1462174020
SNMPv2-SMI::enterprises.9.9.6.1.3.1.13.33554432 = Counter32: 37574520
SNMPv2-SMI::enterprises.9.9.6.1.3.1.13.33558528 = Counter32: 3735649448
SNMPv2-SMI::enterprises.9.9.6.1.3.1.13.33562624 = Counter32: 945873304
SNMPv2-SMI::enterprises.9.9.6.1.3.1.13.33566720 = Counter32: 1959466480
SNMPv2-SMI::enterprises.9.9.6.1.3.1.14.33554432 = Counter32: 1072835
SNMPv2-SMI::enterprises.9.9.6.1.3.1.14.33558528 = Counter32: 3910706
SNMPv2-SMI::enterprises.9.9.6.1.3.1.14.33562624 = Counter32: 6454461
SNMPv2-SMI::enterprises.9.9.6.1.3.1.14.33566720 = Counter32: 3873502
SNMPv2-SMI::enterprises.9.9.6.1.3.1.15.33554432 = Counter32: 2757782
SNMPv2-SMI::enterprises.9.9.6.1.3.1.15.33558528 = Counter32: 3623353
SNMPv2-SMI::enterprises.9.9.6.1.3.1.15.33562624 = Counter32: 3206037
SNMPv2-SMI::enterprises.9.9.6.1.3.1.15.33566720 = Counter32: 3606838
SNMPv2-SMI::enterprises.9.9.6.1.3.1.16.33554432 = Counter64: 30506137541
SNMPv2-SMI::enterprises.9.9.6.1.3.1.16.33558528 = Counter64: 31504922901
SNMPv2-SMI::enterprises.9.9.6.1.3.1.16.33562624 = Counter64: 30099033572
SNMPv2-SMI::enterprises.9.9.6.1.3.1.16.33566720 = Counter64: 30973187443
SNMPv2-SMI::enterprises.9.9.6.1.3.1.17.33554432 = Counter64: 54264415371
SNMPv2-SMI::enterprises.9.9.6.1.3.1.17.33558528 = Counter64: 54260772997
SNMPv2-SMI::enterprises.9.9.6.1.3.1.17.33562624 = Counter64: 54425232616
SNMPv2-SMI::enterprises.9.9.6.1.3.1.17.33566720 = Counter64: 54462572043
SNMPv2-SMI::enterprises.9.9.6.1.3.1.18.33554432 = Counter64: 12357930054928
SNMPv2-SMI::enterprises.9.9.6.1.3.1.18.33558528 = Counter64: 12406135298624
SNMPv2-SMI::enterprises.9.9.6.1.3.1.18.33562624 = Counter64: 12381616456776
SNMPv2-SMI::enterprises.9.9.6.1.3.1.18.33566720 = Counter64: 12405327727016
SNMPv2-SMI::enterprises.9.9.6.1.3.1.19.33554432 = Counter64: 63870496235048
SNMPv2-SMI::enterprises.9.9.6.1.3.1.19.33558528 = Counter64: 63887079211768
SNMPv2-SMI::enterprises.9.9.6.1.3.1.19.33562624 = Counter64: 63794095121692
SNMPv2-SMI::enterprises.9.9.6.1.3.1.19.33566720 = Counter64: 63941137604964




An example of one of the OIDs from cisco-tcp-mib.my that doesn’t work is:
ciscoTcpConnRetransPkts = .1.3.6.1.4.1.9.9.6.1.1.1.7
snmpwalk -v2c -c public myswitch .1.3.6.1.4.1.9.9.6.1.1.1.7
SNMPv2-SMI::enterprises.9.9.6.1.1.1.7 = No Such Instance currently exists at this OID
>



Backing up a few steps on the MIB, it appears that the entire ciscoTcpConnTable (.1.3.6.1.4.1.9.9.6.1.1)
branch does not work...

snmpwalk -v2c -c public myswitch .1.3.6.1.4.1.9.9.6.1.1
SNMPv2-SMI::enterprises.9.9.6.1.1 = No Such Object available on this agent at this OID
>

...nonetheless, when I back up one more step I get the output from my first snmpwalk command above which
really looks like it has what I want.






If you are not the intended recipient of this message (including attachments), or if you have received this
message in error,  immediately notify us and delete it and any attachments.

If you do not wish to receive any email messages from us, excluding administrative communications, please
email this request to messages <at> edwardjones.com along with the email address you wish to unsubscribe.

For important additional information related to this email, visit
www.edwardjones.com/US_email_disclosure. Edward
D. Jones & Co., L.P. d/b/a Edward Jones, 12555 Manchester Road, St. Louis, MO 63131 © Edward Jones. All
rights reserved.


_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Syed Hameeduddin Aqil | 21 Jun 09:01 2015
Picon

SNMPV3 Configuration For Windows 2008 R2...

I am in process of configuring SNMPV3 for my Cisco Routers on
Windows 2008 R2 Server using MRTG-2.17.4 version, in this regard,
I have downloaded Net.SNMP MS Visual 2008 Studio Express and
Active Perl Software but not sure what will be the parameters to
be configured, however, currently we are using SNMP-V2 and its
working fine. I would appreciate if you could advise the
configuration steps for SNMPV3 for Windows 2008 R2 Server
_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Gmane