From massimo.cucchi at dimensiondata.com Wed Sep 10 15:01:53 2014 From: massimo.cucchi at dimensiondata.com (Massimo Cucchi (Europe)) Date: Wed, 10 Sep 2014 13:01:53 +0000 Subject: [mrtg] BRI on cisco voicegateway Message-ID: Hi Group, I wish to polling by snmp a cisco router with 2 bri and is enough for me receive an information about the call active on the bri. The mrtg poll BRI using IsdnBearerOperStatus and the answer from Voicegateway is active(4) if no call the answer is idle (1). How I can represent this value on the graph because if I leave as default the graph represent always one and change as soon as change the value but arrive to 4, in any case the value are so confused. Any suggestion ? Eventually what MIb I can configure to obtain a integer value for BRI ? Massimo Massimo Cucchi Architect Dimension Data Italia SpA Tel: +39 02 553907265 Mob: +39 335 7186226 Fax: +39 02 55303587 massimo.cucchi at dimensiondata.com Via G. Di Vittorio 24, Peschiera Borromeo, Milan, 20068, Italy. Dimension Data is an NTT Group company. For further information about Dimension Data, please go to www.dimensiondata.com Follow us on Social Media Blog Facebook LinkedIn Twitter P please consider the environment before printing this email -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dan.McDonald at austinenergy.com Thu Sep 11 14:45:24 2014 From: Dan.McDonald at austinenergy.com (McDonald, Dan) Date: Thu, 11 Sep 2014 12:45:24 +0000 Subject: [mrtg] BRI on cisco voicegateway In-Reply-To: References: Message-ID: From: "Massimo Cucchi (Europe)" > Date: Wednesday, September 10, 2014 at 8:01 AM To: "mrtg at lists.oetiker.ch" > Subject: [mrtg] BRI on cisco voicegateway Hi Group, I wish to polling by snmp a cisco router with 2 bri and is enough for me receive an information about the call active on the bri. The mrtg poll BRI using IsdnBearerOperStatus and the answer from Voicegateway is active(4) if no call the answer is idle (1). Here?s a snippet from my template that I use to count currently active VOIP calls. You should be able to adapt this to your needs: if ($iftype{81} +$iftype{102} > 0) { my $maxcalls = $iftype{81}+$iftype{102}; my $target_name = $router_name.".call"; $head_lines .= <$sysname Concurrent Calls
System:$sysname
Location:$syslocation
CALLS ; } How I can represent this value on the graph because if I leave as default the graph represent always one and change as soon as change the value but arrive to 4, in any case the value are so confused. -------------- next part -------------- An HTML attachment was scrubbed... URL: From s.shipway at auckland.ac.nz Fri Sep 12 01:16:52 2014 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Thu, 11 Sep 2014 23:16:52 +0000 Subject: [mrtg] BRI on cisco voicegateway In-Reply-To: References: Message-ID: <5820DC553954E44FA1A36C78323AD1484A88D410@uxcn10-tdc06.UoA.auckland.ac.nz> A long time ago, I wrote a Perl plugin for MRTG and Nagios that would retrieve this data in a convenient format. We no longer use it, but you?re welcome to have a copy: https://www.monitoringexchange.org/inventory/Check-Plugins/Network/Cisco/mrtg-isdn Steve Steve Shipway s.shipway at auckland.ac.nz From: mrtg [mailto:mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] On Behalf Of Massimo Cucchi (Europe) Sent: Thursday, 11 September 2014 1:02 a.m. To: MRTG Subject: [mrtg] BRI on cisco voicegateway Hi Group, I wish to polling by snmp a cisco router with 2 bri and is enough for me receive an information about the call active on the bri. The mrtg poll BRI using IsdnBearerOperStatus and the answer from Voicegateway is active(4) if no call the answer is idle (1). How I can represent this value on the graph because if I leave as default the graph represent always one and change as soon as change the value but arrive to 4, in any case the value are so confused. Any suggestion ? Eventually what MIb I can configure to obtain a integer value for BRI ? Massimo Massimo Cucchi Architect Dimension Data Italia SpA Tel: +39 02 553907265 Mob: +39 335 7186226 Fax: +39 02 55303587 massimo.cucchi at dimensiondata.com Via G. Di Vittorio 24, Peschiera Borromeo, Milan, 20068, Italy. Dimension Data is an NTT Group company. For further information about Dimension Data, please go to www.dimensiondata.com Follow us on Social Media Blog Facebook LinkedIn Twitter P please consider the environment before printing this email -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5909 bytes Desc: not available URL: From alehman at gbateam.com Fri Sep 19 22:44:21 2014 From: alehman at gbateam.com (Alan Lehman) Date: Fri, 19 Sep 2014 20:44:21 +0000 Subject: [mrtg] DSCP/COS stats on Cisco router Message-ID: Hello, I?m new to this list, but have been using mrtg for ages. Recently we implemented COS on our MPLS network. I would like to be able to see traffic on our Cisco 2901 broken down by COS/DSCP classification. Has anyone been able to accomplish this? Thanks, Alan CONFIDENTIALITY NOTICE: This e-mail message including attachments, if any, is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Thank you. From greg.volk at edwardjones.com Mon Sep 22 14:43:41 2014 From: greg.volk at edwardjones.com (Volk,Gregory B) Date: Mon, 22 Sep 2014 12:43:41 +0000 Subject: [mrtg] DSCP/COS stats on Cisco router In-Reply-To: References: Message-ID: <59BAB46E43BCE04EBDC6B05646C3E714336274D0@TWPEXMBX05.edj.ad.edwardjones.com> I've attached cbqos-cfgmaker.txt. This is a perl script that I wrote using mib variables defined in CISCO-CLASS-BASED-QOS-MIB and CISCO-CLASS-BASED-QOS-CAPABILITY. I've had reasonably good luck with it running against several Cisco models including 2900, 6509, 7304, ASR1003, and even all the way back to 7206XVR. One downside to it is that the cbQosIfIndex instance numbers are not necessarily static through some config changes and reboots, but those are rare enough in my environment that it hasn't been a major issue for me. 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. -----Original Message----- From: mrtg [mailto:mrtg-bounces+greg.volk=edwardjones.com at lists.oetiker.ch] On Behalf Of Alan Lehman Sent: Friday, September 19, 2014 3:44 PM To: mrtg at lists.oetiker.ch Subject: [mrtg] DSCP/COS stats on Cisco router Hello, I?m new to this list, but have been using mrtg for ages. Recently we implemented COS on our MPLS network. I would like to be able to see traffic on our Cisco 2901 broken down by COS/DSCP classification. Has anyone been able to accomplish this? Thanks, Alan CONFIDENTIALITY NOTICE: This e-mail message including attachments, if any, is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Thank you. _______________________________________________ mrtg mailing list mrtg at lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/mrtg -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: cbqos-cfgmaker.txt URL: From s.shipway at auckland.ac.nz Mon Sep 22 23:30:13 2014 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Mon, 22 Sep 2014 21:30:13 +0000 Subject: [mrtg] DSCP/COS stats on Cisco router In-Reply-To: <59BAB46E43BCE04EBDC6B05646C3E714336274D0@TWPEXMBX05.edj.ad.edwardjones.com> References: <59BAB46E43BCE04EBDC6B05646C3E714336274D0@TWPEXMBX05.edj.ad.edwardjones.com> Message-ID: <5820DC553954E44FA1A36C78323AD1484A89744C@uxcn10-tdc06.UoA.auckland.ac.nz> This looks useful (even though I'm not 100% certain what these MIB items are :) ) ; however, it might be a good idea to change it into a cfgmaker host template and/or interface template? That way, one could hook it in on a generic cfgmaker run -- and if it can be made to probe for the objects existence and have a null operation on an incompatible device it would be able to be merged with a generic host template... Steve Steve Shipway s.shipway at auckland.ac.nz -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5909 bytes Desc: not available URL: From greg.volk at edwardjones.com Tue Sep 23 14:10:53 2014 From: greg.volk at edwardjones.com (Volk,Gregory B) Date: Tue, 23 Sep 2014 12:10:53 +0000 Subject: [mrtg] DSCP/COS stats on Cisco router In-Reply-To: <5820DC553954E44FA1A36C78323AD1484A89744C@uxcn10-tdc06.UoA.auckland.ac.nz> References: <59BAB46E43BCE04EBDC6B05646C3E714336274D0@TWPEXMBX05.edj.ad.edwardjones.com> <5820DC553954E44FA1A36C78323AD1484A89744C@uxcn10-tdc06.UoA.auckland.ac.nz> Message-ID: <59BAB46E43BCE04EBDC6B05646C3E714336281EA@TWPEXMBX05.edj.ad.edwardjones.com> Initially I attempt to make this a cfgmaker interface template but I ran into problems because I needed to base the indexes off of cbQosIfIndex (.1.3.6.1.4.1.9.9.166.1.1.1.1.4) and not the regular mib2 interfaces index. However I also had to get the port descriptions from mib2 IfDescr, and port speeds from mib2 ifSpeed, and combine those tables with the cbQosIfIndex table to make a useful MRTG target. Then there were issues with classes that had undefined speeds and classnames so those had to be sanity checked and potentially skipped. That is what those warnings on lines 247 and 255 are. Bottom line is that while I prefer to use something more standardized and portable like cfgmaker templates, this cbqos mib just had too many oddball exceptions. 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. -----Original Message----- From: Steve Shipway [mailto:s.shipway at auckland.ac.nz] Sent: Monday, September 22, 2014 4:30 PM To: Volk,Gregory B; mrtg at lists.oetiker.ch Subject: RE: DSCP/COS stats on Cisco router This looks useful (even though I'm not 100% certain what these MIB items are :) ) ; however, it might be a good idea to change it into a cfgmaker host template and/or interface template? That way, one could hook it in on a generic cfgmaker run -- and if it can be made to probe for the objects existence and have a null operation on an incompatible device it would be able to be merged with a generic host template... Steve Steve Shipway s.shipway at auckland.ac.nz From Dan.McDonald at austinenergy.com Tue Sep 23 18:52:19 2014 From: Dan.McDonald at austinenergy.com (McDonald, Dan) Date: Tue, 23 Sep 2014 16:52:19 +0000 Subject: [mrtg] DSCP/COS stats on Cisco router Message-ID: On 9/23/14, 7:11 AM, "Volk,Gregory B" wrote: >Initially I attempt to make this a cfgmaker interface template but I ran >into problems because I needed to base the indexes off of cbQosIfIndex >(.1.3.6.1.4.1.9.9.166.1.1.1.1.4) and not the regular mib2 interfaces >index. However I also had to get the port descriptions from mib2 IfDescr, >and port speeds from mib2 ifSpeed, and combine those tables with the >cbQosIfIndex table to make a useful MRTG target. >Then there were issues with classes that had undefined speeds and >classnames so those had to be sanity checked and potentially skipped. >That is what those warnings on lines 247 and 255 are. Sounds like a better job for a host-template than an interface template. I recall working with that mib and agree that the data layout is pretty egregious. > >Bottom line is that while I prefer to use something more standardized and >portable like cfgmaker templates, this cbqos mib just had too many >oddball exceptions. > Configmaker host templates do a lot of the work for you - selecting ifSpeed or ifHCSpeed depending on what?s available, for example. If I had a few hours I would take a crack at it? > > > > > >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. > > >-----Original Message----- >From: Steve Shipway [mailto:s.shipway at auckland.ac.nz] >Sent: Monday, September 22, 2014 4:30 PM >To: Volk,Gregory B; mrtg at lists.oetiker.ch >Subject: RE: DSCP/COS stats on Cisco router > >This looks useful (even though I'm not 100% certain what these MIB items >are >:) ) ; however, it might be a good idea to change it into a cfgmaker host >template and/or interface template? That way, one could hook it in on a >generic cfgmaker run -- and if it can be made to probe for the objects >existence and have a null operation on an incompatible device it would be >able >to be merged with a generic host template... > >Steve > >Steve Shipway >s.shipway at auckland.ac.nz > > >_______________________________________________ >mrtg mailing list >mrtg at lists.oetiker.ch >https://lists.oetiker.ch/cgi-bin/listinfo/mrtg From ghira at mistral.co.uk Tue Sep 23 19:16:06 2014 From: ghira at mistral.co.uk (Adam Atkinson) Date: Tue, 23 Sep 2014 18:16:06 +0100 Subject: [mrtg] DSCP/COS stats on Cisco router In-Reply-To: <59BAB46E43BCE04EBDC6B05646C3E714336274D0@TWPEXMBX05.edj.ad.edwardjones.com> References: <59BAB46E43BCE04EBDC6B05646C3E714336274D0@TWPEXMBX05.edj.ad.edwardjones.com> Message-ID: <5421AAD6.3020005@mistral.co.uk> Volk,Gregory B wrote: > I've attached cbqos-cfgmaker.txt. This is a perl script that I wrote using mib variables defined in CISCO-CLASS-BASED-QOS-MIB and CISCO-CLASS-BASED-QOS-CAPABILITY. I've had reasonably good luck with it running against several Cisco models including 2900, 6509, 7304, ASR1003, and even all the way back to 7206XVR. > > One downside to it is that the cbQosIfIndex instance numbers are not necessarily static through some config changes and reboots, but those are rare enough in my environment that it hasn't been a major issue for me. > > > Does the IOS command "snmp mib persist cbqos" help at all? The answer may well be "no" of course. From Wrolf.Courtney at nyct.com Wed Sep 24 15:33:59 2014 From: Wrolf.Courtney at nyct.com (Courtney, Wrolf) Date: Wed, 24 Sep 2014 13:33:59 +0000 Subject: [mrtg] Permission denied at /usr/bin/../lib64/mrtg2/MRTG_lib.pm line 1580 Message-ID: I get the following error on one of my MRTG config files when I run it from a cron job. I do not get the error when I run it from the command line. I have plenty of other config files run from the same cron job that run just fine. ERROR: writing /etc/mrtg/00255520WLC1.ok.ok: Permission denied at /usr/bin/../lib64/mrtg2/MRTG_lib.pm line 1580. Anyone seen this before? Wrolf Courtney Contents of /etc/cron.d/mrtg LANG=C 0-59/5 * * * * root bash -c "ls /etc/mrtg/*.cfg | xargs -l /usr/bin/mrtg" Contents of /etc/mrtg/00255520WLC1.cfg (showing first interface only) # Created by # /usr/bin/cfgmaker --ifref=name --ifdesc=descr --output=/etc/mrtg/00255520WLC1. cfg --global "WorkDir: /var/www/mrtg/00255520WLC1" --global "Options[_]: growrig ht,bits" --snmp-options=:::::2 public at 10.3.3.1 ### Global Config Options # for UNIX # WorkDir: /home/http/mrtg # or for NT # WorkDir: c:\mrtgdata ### Global Defaults # to get bits instead of bytes and graphs growing to the right # Options[_]: growright, bits EnableIPv6: no WorkDir: /var/www/mrtg/00255520WLC1 Options[_]: growright,bits ###################################################################### # System: 00255520WLC1-1 # Description: Ethernet Routing Switch 5520-48T-PWR HW:35 FW:6.0.0.6 SW :v6.0.3.008 BN:08 (c) Nortel Networks # Contact: NCSO - 646 252-5700 # Location: 331 Bay Street SIRR ###################################################################### ### Interface 1 >> Descr: 'Nortel-Ethernet-Routing-Switch-5520-48T-PWR-Module--- Port-1' | Name: 'ifc1 (Slot: 1 Port: 1)' | Ip: '' | Eth: '' ### Target[10.3.3.1_ifc1_(Slot_1_Port_1)]: #ifc1\ (Slot\:\ 1\ Port\:\ 1):public@ 10.3.3.1:::::2 SetEnv[10.3.3.1_ifc1_(Slot_1_Port_1)]: MRTG_INT_IP="" MRTG_INT_DESCR="Nortel- Ethernet-Routing-Switch-5520-48T-PWR-Module---Port-1" MaxBytes[10.3.3.1_ifc1_(Slot_1_Port_1)]: 1250000 Title[10.3.3.1_ifc1_(Slot_1_Port_1)]: Nortel Ethernet Routing Switch 5520-48T -PWR Module - Port 1 -- 00255520WLC1-1 PageTop[10.3.3.1_ifc1_(Slot_1_Port_1)]:

Nortel Ethernet Routing Switch 55 20-48T-PWR Module - Port 1 -- 00255520WLC1-1

System: 00255520WLC1-1 in 331 Bay Street SIR R
Maintainer: NCSO - 646 252-5700
Description: Nortel-Ethernet-Routing-Switch-5520- 48T-PWR-Module---Port-1
ifType: ethernetCsmacd (6)
ifName: ifc1 (Slot: 1 Port: 1)
Max Speed: 10.0 Mbits/s
-------------- next part -------------- An HTML attachment was scrubbed... URL: From alehman at gbateam.com Wed Sep 24 15:50:10 2014 From: alehman at gbateam.com (Alan Lehman) Date: Wed, 24 Sep 2014 13:50:10 +0000 Subject: [mrtg] DSCP/COS stats on Cisco router Message-ID: Greg, Thank you again for sharing your script. It seems to work well with my 2901. I do have a question regarding something I'm seeing in the output. I get four graphs for class-default: class-default.4419217 drops class-default.4419217 Pre/Post Policy bit rate class-default.14664689 drops class-default.14664689 Pre/Post Policy bit rate There are no drops showing up, but the two Pre/Post graphs appears to be the same. Can you help me understand what these represent? -----Original Message----- From: Volk,Gregory B [mailto:greg.volk at edwardjones.com] Sent: Monday, September 22, 2014 7:44 AM To: Alan Lehman; mrtg at lists.oetiker.ch Subject: RE: DSCP/COS stats on Cisco router I've attached cbqos-cfgmaker.txt. This is a perl script that I wrote using mib variables defined in CISCO-CLASS-BASED-QOS-MIB and CISCO-CLASS-BASED-QOS-CAPABILITY. I've had reasonably good luck with it running against several Cisco models including 2900, 6509, 7304, ASR1003, and even all the way back to 7206XVR. One downside to it is that the cbQosIfIndex instance numbers are not necessarily static through some config changes and reboots, but those are rare enough in my environment that it hasn't been a major issue for me. 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. -----Original Message----- From: mrtg [mailto:mrtg-bounces+greg.volk=edwardjones.com at lists.oetiker.ch] On Behalf Of Alan Lehman Sent: Friday, September 19, 2014 3:44 PM To: mrtg at lists.oetiker.ch Subject: [mrtg] DSCP/COS stats on Cisco router Hello, I?m new to this list, but have been using mrtg for ages. Recently we implemented COS on our MPLS network. I would like to be able to see traffic on our Cisco 2901 broken down by COS/DSCP classification. Has anyone been able to accomplish this? Thanks, Alan CONFIDENTIALITY NOTICE: This e-mail message including attachments, if any, is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Thank you. _______________________________________________ mrtg mailing list mrtg at lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/mrtg From greg.volk at edwardjones.com Wed Sep 24 16:48:15 2014 From: greg.volk at edwardjones.com (Volk,Gregory B) Date: Wed, 24 Sep 2014 14:48:15 +0000 Subject: [mrtg] DSCP/COS stats on Cisco router In-Reply-To: References: Message-ID: <59BAB46E43BCE04EBDC6B05646C3E714336287C4@TWPEXMBX05.edj.ad.edwardjones.com> The existence of multiple class-default graphs has to do with the cbQosParentObjectsIndex table. This table allows the script to derive the class map name to index number relationship for obtaining the actual qos stat OIDs but it also has functionality concerning match statement and policy map relationships. Because of this the name "class-default" effectively gets overloaded. The choice from the MRTG target generation perspective was either ignore everything named "class-default" or create multiple targets as "class default.". I chose the latter path because my network engineers tell me that the class-default stats are very useful to them even with the ambiguity of multiple class name, index number pairs. The obvious down side is which class-default means what and that is something I leave up to the qos experts who actually configure the routers in my network. My area of focus is stats collection, export, graphing, and alarming, not qos. Sorry I can't provide a more useful answer. Since you probably have more qos background than I do, it may be useful for you to execute some snmpwalk commands and observe the output. Notice in this command that class-default belongs to index number 1593 mrtg at myserver> snmpwalk -v2c -c public myrouter .1.3.6.1.4.1.9.9.166 SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1593 = STRING: "class-default" SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.2.1593 = "" SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.3.1593 = INTEGER: 3 mrtg at myserver> However, in the next command, index number 1508241 gets associated with index number 1593 which we established above as class-default. mrtg at myserver> snmpwalk -v2c -c public myrouter .1.3.6.1.4.1.9.9.166 SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.2.66.15082481 = Gauge32: 1593 <- class-default association to 1593 and 15082481 SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.3.66.15082481 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.4.66.1907667 = Gauge32: 15082481 <- additional unique index to index associations SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.4.66.9319458 = Gauge32: 15082481 <- additional unique index to index associations SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.4.66.9918016 = Gauge32: 15082481 <- additional unique index to index associations SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.4.66.15082481 = Gauge32: 66 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.1.66.15082481 = Counter32: 13 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.2.66.15082481 = Counter32: 3097686382 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.3.66.15082481 = Counter64: 58932261230 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.4.66.15082481 = Counter32: 12885 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.5.66.15082481 = Counter32: 783527026 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.6.66.15082481 = Counter64: 55341437135986 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.7.66.15082481 = Gauge32: 23843000 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.8.66.15082481 = Counter32: 12884 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.9.66.15082481 = Counter32: 865096188 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.10.66.15082481 = Counter64: 55337223737852 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.11.66.15082481 = Gauge32: 23823000 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.12.66.15082481 = Counter32: 0 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.13.66.15082481 = Counter32: 2883500 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.14.66.15082481 = Counter64: 2883500 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.15.66.15082481 = Counter32: 0 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.16.66.15082481 = Counter32: 4213398134 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.17.66.15082481 = Counter64: 4213398134 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.18.66.15082481 = Gauge32: 20000 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.19.66.15082481 = Counter32: 0 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.20.66.15082481 = Counter32: 0 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.21.66.15082481 = Counter64: 0 mrtg at myserver> >There are no drops showing up, but the two Pre/Post graphs >appears to be the same. >Can you help me understand what these represent? Just fyi, my multiple class-default graphs on the same router are indeed significantly different. It is also interesting to note that the only class map name that I have seen that leads to multiple name-index pairs is "class-default". This leads me to believe that there is something special about the "class-default" name since it never happens with other class-map/policy-map names. -----Original Message----- From: Alan Lehman [mailto:alehman at gbateam.com] Sent: Wednesday, September 24, 2014 8:50 AM To: Volk,Gregory B; mrtg at lists.oetiker.ch Subject: RE: DSCP/COS stats on Cisco router Greg, Thank you again for sharing your script. It seems to work well with my 2901. I do have a question regarding something I'm seeing in the output. I get four graphs for class-default: class-default.4419217 drops class-default.4419217 Pre/Post Policy bit rate class-default.14664689 drops class-default.14664689 Pre/Post Policy bit rate There are no drops showing up, but the two Pre/Post graphs appears to be the same. Can you help me understand what these represent? -----Original Message----- From: Volk,Gregory B [mailto:greg.volk at edwardjones.com] Sent: Monday, September 22, 2014 7:44 AM To: Alan Lehman; mrtg at lists.oetiker.ch Subject: RE: DSCP/COS stats on Cisco router I've attached cbqos-cfgmaker.txt. This is a perl script that I wrote using mib variables defined in CISCO-CLASS-BASED-QOS-MIB and CISCO-CLASS-BASED-QOS-CAPABILITY. I've had reasonably good luck with it running against several Cisco models including 2900, 6509, 7304, ASR1003, and even all the way back to 7206XVR. One downside to it is that the cbQosIfIndex instance numbers are not necessarily static through some config changes and reboots, but those are rare enough in my environment that it hasn't been a major issue for me. 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. -----Original Message----- From: mrtg [mailto:mrtg-bounces+greg.volk=edwardjones.com at lists.oetiker.ch] On Behalf Of Alan Lehman Sent: Friday, September 19, 2014 3:44 PM To: mrtg at lists.oetiker.ch Subject: [mrtg] DSCP/COS stats on Cisco router Hello, I?m new to this list, but have been using mrtg for ages. Recently we implemented COS on our MPLS network. I would like to be able to see traffic on our Cisco 2901 broken down by COS/DSCP classification. Has anyone been able to accomplish this? Thanks, Alan CONFIDENTIALITY NOTICE: This e-mail message including attachments, if any, is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Thank you. _______________________________________________ mrtg mailing list mrtg at lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/mrtg From Wrolf.Courtney at nyct.com Wed Sep 24 19:46:16 2014 From: Wrolf.Courtney at nyct.com (Courtney, Wrolf) Date: Wed, 24 Sep 2014 17:46:16 +0000 Subject: [mrtg] Permission denied at /usr/bin/../lib64/mrtg2/MRTG_lib.pm line 1580 In-Reply-To: References: Message-ID: Solved it myself. Think it was an SELINUX problem. When I created the .cfg file under my id, having su'ed to root, I got the problem. When I deleted and recreated the .cfg file having logged in as root directly, the problem went away. Wrolf From: mrtg [mailto:mrtg-bounces+wrolf.courtney=nyct.com at lists.oetiker.ch] On Behalf Of Courtney, Wrolf Sent: Wednesday, September 24, 2014 9:34 AM To: mrtg at lists.oetiker.ch Subject: [mrtg] Permission denied at /usr/bin/../lib64/mrtg2/MRTG_lib.pm line 1580 I get the following error on one of my MRTG config files when I run it from a cron job. I do not get the error when I run it from the command line. I have plenty of other config files run from the same cron job that run just fine. ERROR: writing /etc/mrtg/00255520WLC1.ok.ok: Permission denied at /usr/bin/../lib64/mrtg2/MRTG_lib.pm line 1580. Anyone seen this before? Wrolf Courtney Contents of /etc/cron.d/mrtg LANG=C 0-59/5 * * * * root bash -c "ls /etc/mrtg/*.cfg | xargs -l /usr/bin/mrtg" Contents of /etc/mrtg/00255520WLC1.cfg (showing first interface only) # Created by # /usr/bin/cfgmaker --ifref=name --ifdesc=descr --output=/etc/mrtg/00255520WLC1. cfg --global "WorkDir: /var/www/mrtg/00255520WLC1" --global "Options[_]: growrig ht,bits" --snmp-options=:::::2 public at 10.3.3.1 ### Global Config Options # for UNIX # WorkDir: /home/http/mrtg # or for NT # WorkDir: c:\mrtgdata ### Global Defaults # to get bits instead of bytes and graphs growing to the right # Options[_]: growright, bits EnableIPv6: no WorkDir: /var/www/mrtg/00255520WLC1 Options[_]: growright,bits ###################################################################### # System: 00255520WLC1-1 # Description: Ethernet Routing Switch 5520-48T-PWR HW:35 FW:6.0.0.6 SW :v6.0.3.008 BN:08 (c) Nortel Networks # Contact: NCSO - 646 252-5700 # Location: 331 Bay Street SIRR ###################################################################### ### Interface 1 >> Descr: 'Nortel-Ethernet-Routing-Switch-5520-48T-PWR-Module--- Port-1' | Name: 'ifc1 (Slot: 1 Port: 1)' | Ip: '' | Eth: '' ### Target[10.3.3.1_ifc1_(Slot_1_Port_1)]: #ifc1\ (Slot\:\ 1\ Port\:\ 1):public@ 10.3.3.1:::::2 SetEnv[10.3.3.1_ifc1_(Slot_1_Port_1)]: MRTG_INT_IP="" MRTG_INT_DESCR="Nortel- Ethernet-Routing-Switch-5520-48T-PWR-Module---Port-1" MaxBytes[10.3.3.1_ifc1_(Slot_1_Port_1)]: 1250000 Title[10.3.3.1_ifc1_(Slot_1_Port_1)]: Nortel Ethernet Routing Switch 5520-48T -PWR Module - Port 1 -- 00255520WLC1-1 PageTop[10.3.3.1_ifc1_(Slot_1_Port_1)]:

Nortel Ethernet Routing Switch 55 20-48T-PWR Module - Port 1 -- 00255520WLC1-1

System: 00255520WLC1-1 in 331 Bay Street SIR R
Maintainer: NCSO - 646 252-5700
Description: Nortel-Ethernet-Routing-Switch-5520- 48T-PWR-Module---Port-1
ifType: ethernetCsmacd (6)
ifName: ifc1 (Slot: 1 Port: 1)
Max Speed: 10.0 Mbits/s
-------------- next part -------------- An HTML attachment was scrubbed... URL: From s.shipway at auckland.ac.nz Wed Sep 24 23:48:59 2014 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Wed, 24 Sep 2014 21:48:59 +0000 Subject: [mrtg] Permission denied at /usr/bin/../lib64/mrtg2/MRTG_lib.pm line 1580 In-Reply-To: References: Message-ID: <5820DC553954E44FA1A36C78323AD1484A8993BE@uxcn10-tdc06.UoA.auckland.ac.nz> Well, for a start, your cron job appears to have a bug, as it is calling MRTG passing the .ok file as a parameter instead of just using the .cfg files. The .ok file is a cache generated by a successful MRTG pass in the same directory as the cfg file. Secondly, you need to grant your MRTG process write permission to the /etc/mrtg directory so that it can create these .ok files for the real .cfg files. When you run from the command line, you're likely running as your own user or as root, and so have permission; but the user you run the MRTG cron job as does not have permission (possibly you wrap it in a su wrapper or something). It is also possible that, though the directory is writeable, the file /etc/mrtg/00255520WLC1.ok.ok already exists in there but is not writeable, resulting in the error. Check that this file doesn't exist and view its permissions if it does; however, I think its very existence is due to the first error I mentioned above. Steve Steve Shipway s.shipway at auckland.ac.nz From: mrtg [mailto:mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] On Behalf Of Courtney, Wrolf Sent: Thursday, 25 September 2014 1:34 a.m. To: mrtg at lists.oetiker.ch Subject: [mrtg] Permission denied at /usr/bin/../lib64/mrtg2/MRTG_lib.pm line 1580 I get the following error on one of my MRTG config files when I run it from a cron job. I do not get the error when I run it from the command line. I have plenty of other config files run from the same cron job that run just fine. ERROR: writing /etc/mrtg/00255520WLC1.ok.ok: Permission denied at /usr/bin/../lib64/mrtg2/MRTG_lib.pm line 1580. Anyone seen this before? Wrolf Courtney Contents of /etc/cron.d/mrtg LANG=C 0-59/5 * * * * root bash -c "ls /etc/mrtg/*.cfg | xargs -l /usr/bin/mrtg" Contents of /etc/mrtg/00255520WLC1.cfg (showing first interface only) # Created by # /usr/bin/cfgmaker --ifref=name --ifdesc=descr --output=/etc/mrtg/00255520WLC1. cfg --global "WorkDir: /var/www/mrtg/00255520WLC1" --global "Options[_]: growrig ht,bits" --snmp-options=:::::2 public at 10.3.3.1 ### Global Config Options # for UNIX # WorkDir: /home/http/mrtg # or for NT # WorkDir: c:\mrtgdata ### Global Defaults # to get bits instead of bytes and graphs growing to the right # Options[_]: growright, bits EnableIPv6: no WorkDir: /var/www/mrtg/00255520WLC1 Options[_]: growright,bits ###################################################################### # System: 00255520WLC1-1 # Description: Ethernet Routing Switch 5520-48T-PWR HW:35 FW:6.0.0.6 SW :v6.0.3.008 BN:08 (c) Nortel Networks # Contact: NCSO - 646 252-5700 # Location: 331 Bay Street SIRR ###################################################################### ### Interface 1 >> Descr: 'Nortel-Ethernet-Routing-Switch-5520-48T-PWR-Module--- Port-1' | Name: 'ifc1 (Slot: 1 Port: 1)' | Ip: '' | Eth: '' ### Target[10.3.3.1_ifc1_(Slot_1_Port_1)]: #ifc1\ (Slot\:\ 1\ Port\:\ 1):public@ 10.3.3.1:::::2 SetEnv[10.3.3.1_ifc1_(Slot_1_Port_1)]: MRTG_INT_IP="" MRTG_INT_DESCR="Nortel- Ethernet-Routing-Switch-5520-48T-PWR-Module---Port-1" MaxBytes[10.3.3.1_ifc1_(Slot_1_Port_1)]: 1250000 Title[10.3.3.1_ifc1_(Slot_1_Port_1)]: Nortel Ethernet Routing Switch 5520-48T -PWR Module - Port 1 -- 00255520WLC1-1 PageTop[10.3.3.1_ifc1_(Slot_1_Port_1)]:

Nortel Ethernet Routing Switch 55 20-48T-PWR Module - Port 1 -- 00255520WLC1-1

System: 00255520WLC1-1 in 331 Bay Street SIR R
Maintainer: NCSO - 646 252-5700
Description: Nortel-Ethernet-Routing-Switch-5520- 48T-PWR-Module---Port-1
ifType: ethernetCsmacd (6)
ifName: ifc1 (Slot: 1 Port: 1)
Max Speed: 10.0 Mbits/s
-------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5909 bytes Desc: not available URL: From alehman at gbateam.com Fri Sep 26 16:26:17 2014 From: alehman at gbateam.com (Alan Lehman) Date: Fri, 26 Sep 2014 14:26:17 +0000 Subject: [mrtg] DSCP/COS stats on Cisco router Message-ID: Thanks Greg. I'm seeing similar behavior on my router. Apparently I need to do some reading the Cisco docs to understand what these represent. SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.2.34.4419217 = Gauge32: 1593 SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.2.34.14664689 = Gauge32: 1593 SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1593 = STRING: "class-default" SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.2.1593 = "" SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.3.1593 = INTEGER: 3 -----Original Message----- From: Volk,Gregory B [mailto:greg.volk at edwardjones.com] Sent: Wednesday, September 24, 2014 9:48 AM To: Alan Lehman; mrtg at lists.oetiker.ch Subject: RE: DSCP/COS stats on Cisco router The existence of multiple class-default graphs has to do with the cbQosParentObjectsIndex table. This table allows the script to derive the class map name to index number relationship for obtaining the actual qos stat OIDs but it also has functionality concerning match statement and policy map relationships. Because of this the name "class-default" effectively gets overloaded. The choice from the MRTG target generation perspective was either ignore everything named "class-default" or create multiple targets as "class default.". I chose the latter path because my network engineers tell me that the class-default stats are very useful to them even with the ambiguity of multiple class name, index number pairs. The obvious down side is which class-default means what and that is something I leave up to the qos experts who actually configure the routers in my network. My area of focus is stats collection, export, graphing, and alarming, not qos. Sorry I can't provide a more useful answer. Since you probably have more qos background than I do, it may be useful for you to execute some snmpwalk commands and observe the output. Notice in this command that class-default belongs to index number 1593 mrtg at myserver> snmpwalk -v2c -c public myrouter .1.3.6.1.4.1.9.9.166 SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1593 = STRING: "class-default" SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.2.1593 = "" SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.3.1593 = INTEGER: 3 mrtg at myserver> However, in the next command, index number 1508241 gets associated with index number 1593 which we established above as class-default. mrtg at myserver> snmpwalk -v2c -c public myrouter .1.3.6.1.4.1.9.9.166 SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.2.66.15082481 = Gauge32: 1593 <- class-default association to 1593 and 15082481 SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.3.66.15082481 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.4.66.1907667 = Gauge32: 15082481 <- additional unique index to index associations SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.4.66.9319458 = Gauge32: 15082481 <- additional unique index to index associations SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.4.66.9918016 = Gauge32: 15082481 <- additional unique index to index associations SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.4.66.15082481 = Gauge32: 66 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.1.66.15082481 = Counter32: 13 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.2.66.15082481 = Counter32: 3097686382 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.3.66.15082481 = Counter64: 58932261230 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.4.66.15082481 = Counter32: 12885 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.5.66.15082481 = Counter32: 783527026 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.6.66.15082481 = Counter64: 55341437135986 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.7.66.15082481 = Gauge32: 23843000 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.8.66.15082481 = Counter32: 12884 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.9.66.15082481 = Counter32: 865096188 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.10.66.15082481 = Counter64: 55337223737852 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.11.66.15082481 = Gauge32: 23823000 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.12.66.15082481 = Counter32: 0 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.13.66.15082481 = Counter32: 2883500 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.14.66.15082481 = Counter64: 2883500 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.15.66.15082481 = Counter32: 0 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.16.66.15082481 = Counter32: 4213398134 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.17.66.15082481 = Counter64: 4213398134 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.18.66.15082481 = Gauge32: 20000 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.19.66.15082481 = Counter32: 0 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.20.66.15082481 = Counter32: 0 SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.21.66.15082481 = Counter64: 0 mrtg at myserver> >There are no drops showing up, but the two Pre/Post graphs appears to >be the same. >Can you help me understand what these represent? Just fyi, my multiple class-default graphs on the same router are indeed significantly different. It is also interesting to note that the only class map name that I have seen that leads to multiple name-index pairs is "class-default". This leads me to believe that there is something special about the "class-default" name since it never happens with other class-map/policy-map names. -----Original Message----- From: Alan Lehman [mailto:alehman at gbateam.com] Sent: Wednesday, September 24, 2014 8:50 AM To: Volk,Gregory B; mrtg at lists.oetiker.ch Subject: RE: DSCP/COS stats on Cisco router Greg, Thank you again for sharing your script. It seems to work well with my 2901. I do have a question regarding something I'm seeing in the output. I get four graphs for class-default: class-default.4419217 drops class-default.4419217 Pre/Post Policy bit rate class-default.14664689 drops class-default.14664689 Pre/Post Policy bit rate There are no drops showing up, but the two Pre/Post graphs appears to be the same. Can you help me understand what these represent? -----Original Message----- From: Volk,Gregory B [mailto:greg.volk at edwardjones.com] Sent: Monday, September 22, 2014 7:44 AM To: Alan Lehman; mrtg at lists.oetiker.ch Subject: RE: DSCP/COS stats on Cisco router I've attached cbqos-cfgmaker.txt. This is a perl script that I wrote using mib variables defined in CISCO-CLASS-BASED-QOS-MIB and CISCO-CLASS-BASED-QOS-CAPABILITY. I've had reasonably good luck with it running against several Cisco models including 2900, 6509, 7304, ASR1003, and even all the way back to 7206XVR. One downside to it is that the cbQosIfIndex instance numbers are not necessarily static through some config changes and reboots, but those are rare enough in my environment that it hasn't been a major issue for me. 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. -----Original Message----- From: mrtg [mailto:mrtg-bounces+greg.volk=edwardjones.com at lists.oetiker.ch] On Behalf Of Alan Lehman Sent: Friday, September 19, 2014 3:44 PM To: mrtg at lists.oetiker.ch Subject: [mrtg] DSCP/COS stats on Cisco router Hello, I?m new to this list, but have been using mrtg for ages. Recently we implemented COS on our MPLS network. I would like to be able to see traffic on our Cisco 2901 broken down by COS/DSCP classification. Has anyone been able to accomplish this? Thanks, Alan CONFIDENTIALITY NOTICE: This e-mail message including attachments, if any, is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Thank you. _______________________________________________ mrtg mailing list mrtg at lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/mrtg From Wrolf.Courtney at nyct.com Sun Sep 28 22:47:37 2014 From: Wrolf.Courtney at nyct.com (Courtney, Wrolf) Date: Sun, 28 Sep 2014 20:47:37 +0000 Subject: [mrtg] Permission denied at /usr/bin/../lib64/mrtg2/MRTG_lib.pm line 1580 In-Reply-To: <5820DC553954E44FA1A36C78323AD1484A8993BE@uxcn10-tdc06.UoA.auckland.ac.nz> References: , <5820DC553954E44FA1A36C78323AD1484A8993BE@uxcn10-tdc06.UoA.auckland.ac.nz> Message-ID: Thanks, but it seems that it was a SELinux issue. I posted the resolution earlier. The .ok.ok message is due to a bug in the error message at line 1580, it appends an erroneous extra .ok to the name of the cache file in the error message. The code around there is kind of grungy, looks like the cfg fle and cache file variable names are swapped, but it runs just fine. The cron job is just fine, it was already working for all the other .cfg files, it works unchanged now that I resolved the SELinux issue. Not a DAC issue, since I run the cron job as root. Thanks again for your help. Wrolf ________________________________________ From: Steve Shipway [s.shipway at auckland.ac.nz] Sent: Wednesday, September 24, 2014 5:48 PM To: Courtney, Wrolf; mrtg at lists.oetiker.ch Subject: RE: [mrtg] Permission denied at /usr/bin/../lib64/mrtg2/MRTG_lib.pm line 1580 Well, for a start, your cron job appears to have a bug, as it is calling MRTG passing the .ok file as a parameter instead of just using the .cfg files. The .ok file is a cache generated by a successful MRTG pass in the same directory as the cfg file. Secondly, you need to grant your MRTG process write permission to the /etc/mrtg directory so that it can create these .ok files for the real .cfg files. When you run from the command line, you?re likely running as your own user or as root, and so have permission; but the user you run the MRTG cron job as does not have permission (possibly you wrap it in a su wrapper or something). It is also possible that, though the directory is writeable, the file /etc/mrtg/00255520WLC1.ok.ok already exists in there but is not writeable, resulting in the error. Check that this file doesn?t exist and view its permissions if it does; however, I think its very existence is due to the first error I mentioned above. Steve Steve Shipway s.shipway at auckland.ac.nz From: mrtg [mailto:mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] On Behalf Of Courtney, Wrolf Sent: Thursday, 25 September 2014 1:34 a.m. To: mrtg at lists.oetiker.ch Subject: [mrtg] Permission denied at /usr/bin/../lib64/mrtg2/MRTG_lib.pm line 1580 I get the following error on one of my MRTG config files when I run it from a cron job. I do not get the error when I run it from the command line. I have plenty of other config files run from the same cron job that run just fine. ERROR: writing /etc/mrtg/00255520WLC1.ok.ok: Permission denied at /usr/bin/../lib64/mrtg2/MRTG_lib.pm line 1580. Anyone seen this before? Wrolf Courtney Contents of /etc/cron.d/mrtg LANG=C 0-59/5 * * * * root bash -c "ls /etc/mrtg/*.cfg | xargs -l /usr/bin/mrtg" Contents of /etc/mrtg/00255520WLC1.cfg (showing first interface only) # Created by # /usr/bin/cfgmaker --ifref=name --ifdesc=descr --output=/etc/mrtg/00255520WLC1. cfg --global "WorkDir: /var/www/mrtg/00255520WLC1" --global "Options[_]: growrig ht,bits" --snmp-options=:::::2 public at 10.3.3.1 ### Global Config Options # for UNIX # WorkDir: /home/http/mrtg # or for NT # WorkDir: c:\mrtgdata ### Global Defaults # to get bits instead of bytes and graphs growing to the right # Options[_]: growright, bits EnableIPv6: no WorkDir: /var/www/mrtg/00255520WLC1 Options[_]: growright,bits ###################################################################### # System: 00255520WLC1-1 # Description: Ethernet Routing Switch 5520-48T-PWR HW:35 FW:6.0.0.6 SW :v6.0.3.008 BN:08 (c) Nortel Networks # Contact: NCSO - 646 252-5700 # Location: 331 Bay Street SIRR ###################################################################### ### Interface 1 >> Descr: 'Nortel-Ethernet-Routing-Switch-5520-48T-PWR-Module--- Port-1' | Name: 'ifc1 (Slot: 1 Port: 1)' | Ip: '' | Eth: '' ### Target[10.3.3.1_ifc1_(Slot_1_Port_1)]: #ifc1\ (Slot\:\ 1\ Port\:\ 1):public@ 10.3.3.1:::::2 SetEnv[10.3.3.1_ifc1_(Slot_1_Port_1)]: MRTG_INT_IP="" MRTG_INT_DESCR="Nortel- Ethernet-Routing-Switch-5520-48T-PWR-Module---Port-1" MaxBytes[10.3.3.1_ifc1_(Slot_1_Port_1)]: 1250000 Title[10.3.3.1_ifc1_(Slot_1_Port_1)]: Nortel Ethernet Routing Switch 5520-48T -PWR Module - Port 1 -- 00255520WLC1-1 PageTop[10.3.3.1_ifc1_(Slot_1_Port_1)]:

Nortel Ethernet Routing Switch 55 20-48T-PWR Module - Port 1 -- 00255520WLC1-1

System: 00255520WLC1-1 in 331 Bay Street SIR R
Maintainer: NCSO - 646 252-5700
Description: Nortel-Ethernet-Routing-Switch-5520- 48T-PWR-Module---Port-1
ifType: ethernetCsmacd (6)
ifName: ifc1 (Slot: 1 Port: 1)
Max Speed: 10.0 Mbits/s
From massimo.cucchi at dimensiondata.com Mon Sep 29 09:35:10 2014 From: massimo.cucchi at dimensiondata.com (Massimo Cucchi (Europe)) Date: Mon, 29 Sep 2014 07:35:10 +0000 Subject: [mrtg] data whel poll is not available Message-ID: Hi Guys, A quick question, When I poll a Memory into a cisco router I receive a correct value , but if there are issues on polling the graph show me always the last value obtained (Iand I can?t understand if there are some problem) , how can I show on the graph a ?zero? value based on an error of polling device ? Thank you Massimo Massimo Cucchi Architect Dimension Data Italia SpA Tel: +39 02 553907265 Mob: +39 335 7186226 Fax: +39 02 55303587 massimo.cucchi at dimensiondata.com Via G. Di Vittorio 24, Peschiera Borromeo, Milan, 20068, Italy. Dimension Data is an NTT Group company. For further information about Dimension Data, please go to www.dimensiondata.com Follow us on Social Media Blog Facebook LinkedIn Twitter P please consider the environment before printing this email -------------- next part -------------- An HTML attachment was scrubbed... URL: From massimo.cucchi at dimensiondata.com Mon Sep 29 11:38:19 2014 From: massimo.cucchi at dimensiondata.com (Massimo Cucchi (Europe)) Date: Mon, 29 Sep 2014 09:38:19 +0000 Subject: [mrtg] data whel poll is not available In-Reply-To: References: Message-ID: The unknaszero value show me the last value and if is equal as example a number of phones registered into the callmanager that remain equal ? I think is necessary to have a refresh every example 5 minutes for update the last value. How I can solve it ? Thank you Massimo From: mrtg [mailto:mrtg-bounces+massimo.cucchi=eu.didata.com at lists.oetiker.ch] On Behalf Of Massimo Cucchi (Europe) Sent: luned? 29 settembre 2014 09:35 To: mrtg at lists.oetiker.ch Subject: Re: [mrtg] data whel poll is not available Hi Guys, A quick question, When I poll a Memory into a cisco router I receive a correct value , but if there are issues on polling the graph show me always the last value obtained (Iand I can?t understand if there are some problem) , how can I show on the graph a ?zero? value based on an error of polling device ? Thank you Massimo Massimo Cucchi Architect Dimension Data Italia SpA Tel: +39 02 553907265 Mob: +39 335 7186226 Fax: +39 02 55303587 massimo.cucchi at dimensiondata.com Via G. Di Vittorio 24, Peschiera Borromeo, Milan, 20068, Italy. Dimension Data is an NTT Group company. For further information about Dimension Data, please go to www.dimensiondata.com Follow us on Social Media Blog Facebook LinkedIn Twitter P please consider the environment before printing this email itevomcid -------------- next part -------------- An HTML attachment was scrubbed... URL: From s.shipway at auckland.ac.nz Mon Sep 29 23:18:31 2014 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Mon, 29 Sep 2014 21:18:31 +0000 Subject: [mrtg] data whel poll is not available In-Reply-To: References: Message-ID: <5820DC553954E44FA1A36C78323AD1484A89CEFD@uxcn10-tdc06.UoA.auckland.ac.nz> If the polling fails, then MRTG will get a Unknown value. In MRTG, Unknown is displayed as the previous value. If you have ?unknaszero? option, then it is displayed as zero. If you are using Routers2/RRDTool/MRTG, then Unknown is displayed as a grey bar. Use ?unknaszero? to display unknowns as zero, and ?unknasprev? to display unknowns as the previous value (as in native MRTG). You will normally be polling every 5 minutes, and so you would need to refresh your graph every 5 minutes to see the changes. Steve Steve Shipway s.shipway at auckland.ac.nz From: mrtg [mailto:mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] On Behalf Of Massimo Cucchi (Europe) Sent: Monday, 29 September 2014 10:38 p.m. To: mrtg at lists.oetiker.ch Subject: Re: [mrtg] data whel poll is not available The unknaszero value show me the last value and if is equal as example a number of phones registered into the callmanager that remain equal ? I think is necessary to have a refresh every example 5 minutes for update the last value. How I can solve it ? Thank you Massimo From: mrtg [mailto:mrtg-bounces+massimo.cucchi=eu.didata.com at lists.oetiker.ch] On Behalf Of Massimo Cucchi (Europe) Sent: luned? 29 settembre 2014 09:35 To: mrtg at lists.oetiker.ch Subject: Re: [mrtg] data whel poll is not available Hi Guys, A quick question, When I poll a Memory into a cisco router I receive a correct value , but if there are issues on polling the graph show me always the last value obtained (Iand I can?t understand if there are some problem) , how can I show on the graph a ?zero? value based on an error of polling device ? Thank you Massimo Massimo Cucchi Architect Dimension Data Italia SpA Tel: +39 02 553907265 Mob: +39 335 7186226 Fax: +39 02 55303587 massimo.cucchi at dimensiondata.com Via G. Di Vittorio 24, Peschiera Borromeo, Milan, 20068, Italy. Dimension Data is an NTT Group company. For further information about Dimension Data, please go to www.dimensiondata.com Follow us on Social Media Blog Facebook LinkedIn Twitter P please consider the environment before printing this email itevomcid -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5909 bytes Desc: not available URL: