cisco QoS and CAR 64bit templates pack

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

jerkart
Posts: 14
Joined: Fri Nov 11, 2005 7:46 am
Contact:

Errors on windows

Post by jerkart »

I am trying to graph QoS from cacti 0.8.7b on Windows 2003 Server. I used a str_replace to replace the part of the OID that was being resolved as a previous poster had tried. At this point the query runs, but I do not get results for a 3 of the query parts (name, class, and direction):

Code: Select all

+ Running data query [22].
+ Found type = '4 '[script query].
+ Found data query XML file at 'E:/Apache/htdocs/resource/script_queries/cisco-qos-64.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'e:\PHP\php.exe E:\Apache\htdocs\scripts\cisco-qos-64.php <host> "2::<community>::::::MD5::::DES::::161::500" index'
+ Executing script query 'e:\PHP\php.exe E:\Apache\htdocs\scripts\cisco-qos-64.php <host> "2::<community>::::::MD5::::DES::::161::500" query index'
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.3341201'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.3341201
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.8054641'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.8054641
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.9756705'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.9756705
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.10267073'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.10267073
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.13816353'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.13816353
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.2405057'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.2405057
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.3539345'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.3539345
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.7893361'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.7893361
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.9961505'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.9961505
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.10290113'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.10290113
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.3566993'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.3566993
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.6423457'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.6423457
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.7886193'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.7886193
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.10295233'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.10295233
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.10371105'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.10371105
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.2214545'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.2214545
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.3560337'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.3560337
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.7884657'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.7884657
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.10248225'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.10248225
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.10305985'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.10305985
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.887185'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.887185
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.6066529'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.6066529
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.9550241'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.9550241
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.10858305'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.10858305
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.12176961'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.12176961
+ Found item [index='.1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.12814529'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.12814529
+ Executing script query 'e:\PHP\php.exe E:\Apache\htdocs\scripts\cisco-qos-64.php <host> "2::<community>::::::MD5::::DES::::161::500" query status'
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.3341201
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.8054641
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.9756705
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.10267073
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.13816353
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.2405057
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.3539345
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.7893361
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.9961505
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.10290113
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.3566993
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.6423457
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.7886193
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.10295233
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.10371105
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.2214545
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.3560337
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.7884657
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.10248225
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.10305985
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.887185
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.6066529
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.9550241
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.10858305
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.12176961
+ Found item [status='Down'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.12814529
+ Executing script query 'e:\PHP\php.exe E:\Apache\htdocs\scripts\cisco-qos-64.php <host> "2::<community>::::::MD5::::DES::::161::500" query name'
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.3341201
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.8054641
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.9756705
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.10267073
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.13816353
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.2405057
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.3539345
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.7893361
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.9961505
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.10290113
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.3566993
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.6423457
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.7886193
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.10295233
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.10371105
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.2214545
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.3560337
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.7884657
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.10248225
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.10305985
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.887185
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.6066529
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.9550241
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.10858305
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.12176961
+ Found item [name=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.12814529
+ Executing script query 'e:\PHP\php.exe E:\Apache\htdocs\scripts\cisco-qos-64.php <host> "2::<community>::::::MD5::::DES::::161::500" query descr'
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.3341201
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.8054641
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.9756705
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.10267073
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.13816353
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.2405057
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.3539345
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.7893361
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.9961505
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.10290113
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.3566993
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.6423457
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.7886193
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.10295233
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.10371105
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.2214545
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.3560337
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.7884657
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.10248225
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.10305985
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.887185
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.6066529
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.9550241
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.10858305
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.12176961
+ Found item [descr=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.12814529
+ Executing script query 'e:\PHP\php.exe E:\Apache\htdocs\scripts\cisco-qos-64.php <host> "2::<community>::::::MD5::::DES::::161::500" query class'
+ Executing script query 'e:\PHP\php.exe E:\Apache\htdocs\scripts\cisco-qos-64.php <host> "2::<community>::::::MD5::::DES::::161::500" query policy'
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.3341201
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.8054641
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.9756705
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.10267073
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.13816353
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.2405057
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.3539345
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.7893361
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.9961505
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.10290113
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.3566993
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.6423457
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.7886193
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.10295233
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.10371105
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.2214545
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.3560337
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.7884657
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.10248225
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.10305985
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.887185
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.6066529
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.9550241
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.10858305
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.12176961
+ Found item [policy=''] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.12814529
+ Executing script query 'e:\PHP\php.exe E:\Apache\htdocs\scripts\cisco-qos-64.php <host> "2::<community>::::::MD5::::DES::::161::500" query direction'
+ Executing script query 'e:\PHP\php.exe E:\Apache\htdocs\scripts\cisco-qos-64.php <host> "2::<community>::::::MD5::::DES::::161::500" query cfgrate'
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.3341201
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.8054641
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.9756705
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.10267073
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.13816353
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.2405057
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.3539345
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.7893361
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.9961505
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.10290113
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.3566993
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.6423457
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.7886193
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.10295233
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.10371105
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.2214545
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.3560337
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.7884657
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.10248225
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.10305985
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.887185
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.6066529
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.9550241
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.10858305
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.12176961
+ Found item [cfgRate='0'] index: .1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.12814529
+ Found data query XML file at 'E:/Apache/htdocs/resource/script_queries/cisco-qos-64.xml'
+ Found data query XML file at 'E:/Apache/htdocs/resource/script_queries/cisco-qos-64.xml'
+ Found data query XML file at 'E:/Apache/htdocs/resource/script_queries/cisco-qos-64.xml'
Class and direction return nothing if I run the script manually, but "query name" looks like this:

Code: Select all

e:\Apache\htdocs\scripts>e:\PHP\php.exe E:\Apache\htdocs\scripts\cisco-qos-64.php <host> "2::<community>::::::MD5::::DES::::161::500" query name
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.3341201::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.8054641::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.9756705::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.10267073::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.290.13816353::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.2405057::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.3539345::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.7893361::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.9961505::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.306.10290113::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.3566993::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.6423457::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.7886193::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.10295233::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.322.10371105::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.2214545::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.3560337::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.7884657::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.10248225::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.338.10305985::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.887185::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.6066529::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.9550241::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.10858305::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.12176961::
PHP Notice:  Undefined index:  .1.3.6.1.4.1.9.9.166.1.1.1.1.4. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
PHP Notice:  Undefined index:  .1.3.6.1.2.1.31.1.1.1.1. in E:\Apache\htdocs\scripts\cisco-qos-64.php on line 84
.1.3.6.1.4.1.9.9.166.1.15.1.1.10.8250198.12814529::
Lines 78-84 of my cisco-qos-64.php are below:

Code: Select all

    case "name":
	$ifmibifindexes=response("ifmibifind");
	$names=response("ifName");
	foreach ($ifIndexes as $ifIndexOid => $ifIndexVal) {
	    $Index = str_replace($oids["ifIndex"].".","",$ifIndexOid);
	    $Index=substr($Index,0,strpos($Index,"."));
	    echo $ifIndexVal."::".$names[ $oids["ifName"].".".$ifmibifindexes[$oids["ifmibifind"].".$Index"]]."\n";
Anything to point me in the right direction would be appreciated.
deu439356
Cacti User
Posts: 73
Joined: Wed Aug 13, 2008 8:08 am

Post by deu439356 »

johnrembo,

Thanks for this template! I have a quick question. While I was debugging, I ran the cisco-qos-64.php script manually on an interface for post policy bytes and it returned "46097581". When I did an snmpwalk on the same interface, it returned "4146097581". It appears to have truncated the first two digits. So I tried the same thing on another interface. A snmpwalk returned "10" and the script returned "0". Is the script truncating somewhere or do you know of a way to fix that?

Thanks,

DEU
mattgoli1
Posts: 1
Joined: Sat Feb 21, 2009 9:29 am

Exceededbyte & conformedByte output 0

Post by mattgoli1 »

Hello. Love these templates, however I'm only getting postPolicyByte output, and non in ExceededByte or ConformedByte.
02/22/2009 11:40:03 AM - SPINE: Poller[0] Host[5] DS[51] SCRIPT: /usr/bin/php /var/www/cacti/scripts/cisco-qos-64.php 10.99.8.12 "3::public::CACTI-USER::CACTI-PASS::MD5::::[None]::::161::500" get postPolicyByte 9611.13343, output: 7524985074
02/22/2009 11:40:02 AM - SPINE: Poller[0] Host[5] DS[51] SCRIPT: /usr/bin/php /var/www/cacti/scripts/cisco-qos-64.php 10.99.8.12 "3::public::CACTI-USER::CACTI-PASS::MD5::::[None]::::161::500" get exceededByte 9611.13343, output: 0
02/22/2009 11:40:02 AM - SPINE: Poller[0] Host[5] DS[51] SCRIPT: /usr/bin/php /var/www/cacti/scripts/cisco-qos-64.php 10.99.8.12 "3::public::CACTI-USER::CACTI-PASS::MD5::::[None]::::161::500" get conformedByte 9611.13343, output: 0
even though I know this class is shaping traffic and is currently should have exceeded bytes.

Here is my Tech Support Info:
Technical Support

General Information
Date Sun, 22 Feb 2009 11:46:50 -0600
Cacti Version 0.8.7d
Cacti OS unix
SNMP Version NET-SNMP version: 5.4.1
RRDTool Version RRDTool 1.2.x
Hosts 3
Graphs 26
Data Sources Script/Command: 5
SNMP: 1
SNMP Query: 20
Script Query: 1
Total: 27
Poller Information
Interval 300
Type spine
Items Action[0]: 53
Action[1]: 8
Total: 61
Concurrent Processes 1
Max Threads 1
PHP Servers 1
Script Timeout 25
Max OID 10
Last Run Statistics Time:2.1615 Method:spine Processes:1 Threads:1 Hosts:4 HostsPerProcess:4 DataSources:61 RRDsProcessed:27
PHP Information
PHP Version 5.2.6-2ubuntu4.1
PHP OS Linux
PHP uname Linux oma-netmon2 2.6.27-7-server #1 SMP Tue Nov 4 20:16:57 UTC 2008 x86_64
PHP SNMP Not Installed
max_execution_time 30
memory_limit 16M

Thanks in advance for any support
Attachments
untitled.jpg
untitled.jpg (38.43 KiB) Viewed 5629 times
zz
Posts: 1
Joined: Thu Jan 22, 2009 10:45 pm
Contact:

Post by zz »

Hello!

I have a trouble whith the temlates:

My RRA file have only NaN`s :(

In the cacti log I find this:

3/06/2009 11:00:01 AM - CMDPHP: Poller[0] Host[16] DS[246] WARNING: Result from CMD not valid. Partial Result:

03/06/2009 11:00:01 AM - CMDPHP: Poller[0] Host[16] DS[246] CMD: php /usr/local/share/cacti/scripts/cisco-qos-64.php IP.IP.IP.IP "2::community::admin::password::MD5::::DES::::161::500" get exceededByte 1473.1481, output: U
But when i try to run PHP script manually, it returns:

# php /usr/local/share/cacti/scripts/cisco-qos-64.php IP.IP.IP.IP "2::community::admin::password::MD5::::DES::::161::500" get exceededByte 1473.1481
65234
Why does it occurs?

Sorry for my english :)


My Cacti info:

Code: Select all

Technical Support
General Information
Date 	Fri, 06 Mar 2009 14:37:52 +0800
Cacti Version 	0.8.7b
Cacti OS 	unix
SNMP Version 	net-snmp
RRDTool Version 	
ERROR: Installed RRDTool version does not match configured version.
Please visit the Configuration Settings and select the correct RRDTool Utility Version.
Hosts 	25
Graphs 	140
Data Sources 	SNMP: 8
SNMP Query: 128
Script Query: 4
Total: 140
Poller Information
Interval 	300
Type 	cmd.php
Items 	Action[0]: 306
Action[1]: 12
Total: 318
Concurrent Processes 	1
Max Threads 	1
PHP Servers 	1
Script Timeout 	25
Max OID 	25
Last Run Statistics 	Time:2.5616 Method:cmd.php Processes:1 Threads:N/A Hosts:25 HostsPerProcess:25 DataSources:318 RRDsProcessed:134
PHP Information
PHP Version 	5.2.8
PHP OS 	FreeBSD
PHP uname 	FreeBSD server 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Fri Oct 3 09:59:59 2008 
PHP SNMP 	Installed
max_execution_time 	30
memory_limit 	256M
gsaray101
Cacti User
Posts: 233
Joined: Thu May 17, 2007 9:18 am

Re: cisco QoS and CAR 64bit templates pack

Post by gsaray101 »

when I walked the oids mentioned in "cisco-qos-64.php", I get results back. for example, look below:

Code: Select all

C:\>snmpwalk -v2c -c public  <ipaddress> .1.3.6.1.4.1.9.9.166.1.7.1.1.1
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.1.4552145 = STRING: "VVLAN-VOICE"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.10994961 = STRING: "NSS_CLASS"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.13626257 = STRING: "VVLAN-CALL-SIGNALING"

Code: Select all

C:\>snmpwalk -v2c -c public  172.26.191.116 .1.3.6.1.4.1.9.9.166.1.15.1.1.10
SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.10.18.919889 = Counter64: 0
SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.10.18.9047905 = Counter64: 0
SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.10.18.9704289 = Counter64: 0
SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.10.18.14844913 = Counter64: 1091825192


this is the vebose output of the data query:

Code: Select all

+ Running data query [60].
+ Found type = '4 '[script query].
+ Found data query XML file at 'D:/cacti/resource/script_queries/cisco-qos-64.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'php D:\cacti\scripts\cisco-qos-64.php 172.26.191.116 "2::public::::::MD5::::DES::::161::500" index'
+ Executing script query 'php D:\cacti\scripts\cisco-qos-64.php 172.26.191.116 "2::public::::::MD5::::DES::::161::500" query index'
+ Found item [index='.enterprises.9.9.166.1.15.1.1.10.18.919889'] index: .enterprises.9.9.166.1.15.1.1.10.18.919889
+ Found item [index='.enterprises.9.9.166.1.15.1.1.10.18.9047905'] index: .enterprises.9.9.166.1.15.1.1.10.18.9047905
+ Found item [index='.enterprises.9.9.166.1.15.1.1.10.18.9704289'] index: .enterprises.9.9.166.1.15.1.1.10.18.9704289
+ Found item [index='.enterprises.9.9.166.1.15.1.1.10.18.14844913'] index: .enterprises.9.9.166.1.15.1.1.10.18.14844913
+ Executing script query 'php D:\cacti\scripts\cisco-qos-64.php 172.26.191.116 "2::public::::::MD5::::DES::::161::500" query status'
+ Found item [status='Down'] index: .enterprises.9.9.166.1.15.1.1.10.18.919889
+ Found item [status='Down'] index: .enterprises.9.9.166.1.15.1.1.10.18.9047905
+ Found item [status='Down'] index: .enterprises.9.9.166.1.15.1.1.10.18.9704289
+ Found item [status='Down'] index: .enterprises.9.9.166.1.15.1.1.10.18.14844913
+ Executing script query 'php D:\cacti\scripts\cisco-qos-64.php 172.26.191.116 "2::public::::::MD5::::DES::::161::500" query name'
+ Found item [name=''] index: .enterprises.9.9.166.1.15.1.1.10.18.919889
+ Found item [name=''] index: .enterprises.9.9.166.1.15.1.1.10.18.9047905
+ Found item [name=''] index: .enterprises.9.9.166.1.15.1.1.10.18.9704289
+ Found item [name=''] index: .enterprises.9.9.166.1.15.1.1.10.18.14844913
+ Executing script query 'php D:\cacti\scripts\cisco-qos-64.php 172.26.191.116 "2::public::::::MD5::::DES::::161::500" query descr'
+ Found item [descr=''] index: .enterprises.9.9.166.1.15.1.1.10.18.919889
+ Found item [descr=''] index: .enterprises.9.9.166.1.15.1.1.10.18.9047905
+ Found item [descr=''] index: .enterprises.9.9.166.1.15.1.1.10.18.9704289
+ Found item [descr=''] index: .enterprises.9.9.166.1.15.1.1.10.18.14844913
+ Executing script query 'php D:\cacti\scripts\cisco-qos-64.php 172.26.191.116 "2::public::::::MD5::::DES::::161::500" query class'
+ Executing script query 'php D:\cacti\scripts\cisco-qos-64.php 172.26.191.116 "2::public::::::MD5::::DES::::161::500" query policy'
+ Found item [policy=''] index: .enterprises.9.9.166.1.15.1.1.10.18.919889
+ Found item [policy=''] index: .enterprises.9.9.166.1.15.1.1.10.18.9047905
+ Found item [policy=''] index: .enterprises.9.9.166.1.15.1.1.10.18.9704289
+ Found item [policy=''] index: .enterprises.9.9.166.1.15.1.1.10.18.14844913
+ Executing script query 'php D:\cacti\scripts\cisco-qos-64.php 172.26.191.116 "2::public::::::MD5::::DES::::161::500" query direction'
+ Executing script query 'php D:\cacti\scripts\cisco-qos-64.php 172.26.191.116 "2::public::::::MD5::::DES::::161::500" query cfgrate'
+ Found item [cfgRate='0'] index: .enterprises.9.9.166.1.15.1.1.10.18.919889
+ Found item [cfgRate='0'] index: .enterprises.9.9.166.1.15.1.1.10.18.9047905
+ Found item [cfgRate='0'] index: .enterprises.9.9.166.1.15.1.1.10.18.9704289
+ Found item [cfgRate='0'] index: .enterprises.9.9.166.1.15.1.1.10.18.14844913
+ Executing script query 'php D:\cacti\scripts\cisco-qos-64.php 172.26.191.116 "2::public::::::MD5::::DES::::161::500" query alias'
+ Found item [ifAlias=''] index: .enterprises.9.9.166.1.15.1.1.10.18.919889
+ Found item [ifAlias=''] index: .enterprises.9.9.166.1.15.1.1.10.18.9047905
+ Found item [ifAlias=''] index: .enterprises.9.9.166.1.15.1.1.10.18.9704289
+ Found item [ifAlias=''] index: .enterprises.9.9.166.1.15.1.1.10.18.14844913
+ Found data query XML file at 'D:/cacti/resource/script_queries/cisco-qos-64.xml'
+ Found data query XML file at 'D:/cacti/resource/script_queries/cisco-qos-64.xml'
+ Found data query XML file at 'D:/cacti/resource/script_queries/cisco-qos-64.xml'
+ Found data query XML file at 'D:/cacti/resource/script_queries/cisco-qos-64.xml'
+ Found data query XML file at 'D:/cacti/resource/script_queries/cisco-qos-64.xml'
+ Found data query XML file at 'D:/cacti/resource/script_queries/cisco-qos-64.xml'
+ Found data query XML file at 'D:/cacti/resource/script_queries/cisco-qos-64.xml'

please also see the attached image to see the dataquery, it is not being popluated. Any idea, what is happening here. Do I need to modify the php script?
Attachments
data_query.PNG
data_query.PNG (9.65 KiB) Viewed 4603 times
data_query.PNG
data_query.PNG (9.65 KiB) Viewed 4603 times
smiles
Cacti User
Posts: 79
Joined: Mon Sep 10, 2012 5:54 pm

Re: cisco QoS and CAR 64bit templates pack

Post by smiles »

I am getting same results as above post. Anyone ever resolve this issue?
User avatar
DreamHunter
Posts: 21
Joined: Tue Oct 08, 2013 4:04 am

Re: cisco QoS and CAR 64bit templates pack

Post by DreamHunter »

About the previous 2 posts: I've tried to discover the problem. And i found the direction. Sometime the system converts the OIDs from numeric to text format. Maybe i too lazy, but it was enough for ne to replace in /cacti/scripts/cisco-qos-64.php the lines:

Code: Select all

$oids = array (
                'ifIndex'       =>      '.1.3.6.1.4.1.9.9.166.1.15.1.1.10',     //cbQosCMPostPolicyByte64
                    'cfgIndex'          =>      '.1.3.6.1.4.1.9.9.166.1.5.1.1.2',       //cbQosConfigIndex
                    'parent'            =>      '.1.3.6.1.4.1.9.9.166.1.5.1.1.4',       //cbQosParentObjectsIndex
                    'ifmibifind'        =>      '.1.3.6.1.4.1.9.9.166.1.1.1.1.4',       //cbQosServicePolicy.cbQosIfIndex
                'ifAlias'       =>      '.1.3.6.1.2.1.31.1.1.1.18',             //IF-MIB::ifAlias
                'ifDescr'       =>      '.1.3.6.1.2.1.2.2.1.2',                 //IF-MIB::ifDescr
                'ifOperStatus'  =>      '.1.3.6.1.2.1.2.2.1.8',                 //IF-MIB::ifOperStatus
                'ifName'        =>      '.1.3.6.1.2.1.31.1.1.1.1',              //IF-MIB::ifName
                'class'         =>      '.1.3.6.1.4.1.9.9.166.1.7.1.1.1',       //cbQosCMName
                'policy'        =>      '.1.3.6.1.4.1.9.9.166.1.6.1.1.1',       //cbQosPolicyMapName
                'direction'     =>      '.1.3.6.1.4.1.9.9.166.1.1.1.1.3',       //cbQosPolicyDirection
                'cfgRate'       =>      '.1.3.6.1.4.1.9.9.166.1.12.1.1.1',      //cbQosPoliceCfgRate
                'conformedByte' =>      '.1.3.6.1.4.1.9.9.166.1.17.1.1.6',      //cbQosPoliceConformedByte64
                'exceededByte'  =>      '.1.3.6.1.4.1.9.9.166.1.17.1.1.13',     //cbQosPoliceExceededByte64
                'postPolicyByte'=>      '.1.3.6.1.4.1.9.9.166.1.15.1.1.10'      //cbQosCMPostPolicyByte64
                );

Code: Select all

$oids = array (
                'ifIndex'       =>      '.enterprises.9.9.166.1.15.1.1.10',     //cbQosCMPostPolicyByte64
                    'cfgIndex'          =>      '.enterprises.9.9.166.1.5.1.1.2',       //cbQosConfigIndex
                    'parent'            =>      '.enterprises.9.9.166.1.5.1.1.4',       //cbQosParentObjectsIndex
                    'ifmibifind'        =>      '.enterprises.9.9.166.1.1.1.1.4',       //cbQosServicePolicy.cbQosIfIndex
                'ifAlias'       =>      '.ifAlias',             //IF-MIB::ifAlias
                'ifDescr'       =>      '.ifDescr',                     //IF-MIB::ifDescr
                'ifOperStatus'  =>      '.ifOperStatus',                        //IF-MIB::ifOperStatus
                'ifName'        =>      '.ifName',              //IF-MIB::ifName
                'class'         =>      '.enterprises.9.9.166.1.7.1.1.1',       //cbQosCMName
                'policy'        =>      '.enterprises.9.9.166.1.6.1.1.1',       //cbQosPolicyMapName
                'direction'     =>      '.enterprises.9.9.166.1.1.1.1.3',       //cbQosPolicyDirection
                'cfgRate'       =>      '.enterprises.9.9.166.1.12.1.1.1',      //cbQosPoliceCfgRate
                'conformedByte' =>      '.enterprises.9.9.166.1.17.1.1.6',      //cbQosPoliceConformedByte64
                'exceededByte'  =>      '.enterprises.9.9.166.1.17.1.1.13',     //cbQosPoliceExceededByte64
                'postPolicyByte'=>      '.enterprises.9.9.166.1.15.1.1.10'      //cbQosCMPostPolicyByte64
                );
There should be a way to deny conversion. But i have no time to search it. I'm not a PhP programmer.

Also i found incorrect command line format in my logs because of template section:
log wrote:/usr/local/bin/php /usr/local/share/cacti/scripts/cisco-qos-64.php 10.78.130.193 \"2::opeR::::::::::::::161::500\" get postPolicyByte 34.13796273
/cacti/resource/script_queries/cisco-qos-64.xml wrote:<arg_prepend>|host_hostname| "|host_snmp_version|::|host_snmp_community|::|host_snmp_username|::|host_snmp_password|::|host_snmp_auth_protocol|::|host_snmp_priv_passphrase|::|host_snm
p_priv_protocol|::|host_snmp_context|::|host_snmp_port|::|host_snmp_timeout|"</arg_prepend>"
Remove the quotes and recreate the grapsh (datasource as well) helped me
fmounayar
Posts: 1
Joined: Fri Jun 26, 2015 12:47 pm

Re: cisco QoS and CAR 64bit templates pack

Post by fmounayar »

Hi Johnrembo, I am receiving the following message when I try to create graphs for the host:
2015-06-26 13-57-50.jpg
2015-06-26 13-57-50.jpg (36.27 KiB) Viewed 3406 times
Any ideas why it is loading 0 Items and 0 rows?

Also, when I run the query in debug mode, I get the following:

Data Query Debug Information
+ Running data query [14].
+ Found type = '4 '[script query].
+ Found data query XML file at '/var/www/html/resource/script_queries/cisco-qos-64.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php /var/www/html/scripts/cisco-qos-64.php 10.x.x.x
+ Found data query XML file at '/var/www/html/resource/script_queries/cisco-qos-64.xml'
+ Found data query XML file at '/var/www/html/resource/script_queries/cisco-qos-64.xml'
+ Found data query XML file at '/var/www/html/resource/script_queries/cisco-qos-64.xml'
smiles
Cacti User
Posts: 79
Joined: Mon Sep 10, 2012 5:54 pm

Re: cisco QoS and CAR 64bit templates pack

Post by smiles »

I imported these templates in Cacti 1.0.0 fine, however when I run a verbose query I get this in the apache error log:

PHP Notice: Undefined index: SERVER_PROTOCOL in /var/www/html/cacti/include/csrf/csrf-magic.php on line 298

Anyone been able to get this working with Cacti 1.0?
totor51320
Posts: 22
Joined: Mon Nov 24, 2014 6:12 am

Re: cisco QoS and CAR 64bit templates pack

Post by totor51320 »

I have the same problem
PHP Notice: Undefined index: SERVER_PROTOCOL in /var/www/cacti/include/csrf/csrf-magic.php on line 298
eoinkim
Posts: 1
Joined: Thu Jun 01, 2017 11:50 pm

Re: cisco QoS and CAR 64bit templates pack

Post by eoinkim »

Hello,

I am having the same problem as @gsaray101. If I run snmpwalk with given OIDs, it works fine. However, the PHP code doesn't work. It complains about undefined index.

Code: Select all

root@CACTI:/usr/share/cacti/site# php /usr/share/cacti/site/scripts/cisco-qos-64.php 10.10.10.11 "2::R@nd0msH1t::::::::::::::161::500" query status
PHP Notice:  Undefined index: cbQosIfIndex. in /usr/share/cacti/site/scripts/cisco-qos-64.php on line 80
PHP Notice:  Undefined index: ifOperStatus. in /usr/share/cacti/site/scripts/cisco-qos-64.php on line 80
PHP Notice:  Undefined index: cbQosIfIndex. in /usr/share/cacti/site/scripts/cisco-qos-64.php on line 80
PHP Notice:  Undefined index: ifOperStatus. in /usr/share/cacti/site/scripts/cisco-qos-64.php on line 80
PHP Notice:  Undefined index: cbQosIfIndex. in /usr/share/cacti/site/scripts/cisco-qos-64.php on line 80

[ ... ]

PHP Notice:  Undefined index: ifOperStatus. in /usr/share/cacti/site/scripts/cisco-qos-64.php on line 80
PHP Notice:  Undefined index: cbQosIfIndex. in /usr/share/cacti/site/scripts/cisco-qos-64.php on line 80
PHP Notice:  Undefined index: ifOperStatus. in /usr/share/cacti/site/scripts/cisco-qos-64.php on line 80
.194.585105::<font color=red>Down</font>
.194.1505009::<font color=red>Down</font>
.194.2392945::<font color=red>Down</font>
.194.4817297::<font color=red>Down</font>
.194.6255073::<font color=red>Down</font>
.194.7058945::<font color=red>Down</font>

[ ... ]

.288.2606561::<font color=red>Down</font>
.288.8724433::<font color=red>Down</font>
.288.9527329::<font color=red>Down</font>
.288.11579233::<font color=red>Down</font>
.304.9935825::<font color=red>Down</font>
.304.10002465::<font color=red>Down</font>
Anyone having the same issue? If you resolved the issue, could I get information please? I have been working on this for more than two days and simply cannot resolve it. Cacti version is shown below and I am using Debian Jessie. Thanks a lot.

Code: Select all

root@CACTI:/usr/share/cacti/site# dpkg --list | grep cacti
ii  cacti                          0.8.8b+dfsg-8+deb8u6        all          web interface for graphing of monitoring systems
ii  cacti-spine                    0.8.8b-1                    amd64        Multi-Threading poller for cacti
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests