[XML] Cisco NBAR Protocol Statistics Query 1.2a [UPDATED]
Moderators: Developers, Moderators
Operational Issue - Read and R/W Community strings with NBAR
Hi all -
I have a small problem - for operational reasons within out network - we only use SNMP read community strings. I understand that NBAR queries requires the use of a READ/WRITE.
So - we have established an additional SNMP community string (with Write access) for only access to the NBAR specific OIDS.
Unfortunately - because the scripts here cannot differentiate - the NBAR graphs do not work.
I have looked through both the scipts (resources and script-server scripts) to see if I can somehow hard code a RW string for the NBAR specific OID strings (i think his would be the easiest approach). The standard SNMP string for the initial query of the interfaces etc at the start of the scripts would presumably use the global SNMP community string(which in our case is read only)
Although an odd issue, I suspect that someone may have already encountered this - has this happened to anyone ? What was the solution.
I dont understand the structure of the scripts well enough to go in and modify myeslf ? Any pointers ?
thanks in advance..
I have a small problem - for operational reasons within out network - we only use SNMP read community strings. I understand that NBAR queries requires the use of a READ/WRITE.
So - we have established an additional SNMP community string (with Write access) for only access to the NBAR specific OIDS.
Unfortunately - because the scripts here cannot differentiate - the NBAR graphs do not work.
I have looked through both the scipts (resources and script-server scripts) to see if I can somehow hard code a RW string for the NBAR specific OID strings (i think his would be the easiest approach). The standard SNMP string for the initial query of the interfaces etc at the start of the scripts would presumably use the global SNMP community string(which in our case is read only)
Although an odd issue, I suspect that someone may have already encountered this - has this happened to anyone ? What was the solution.
I dont understand the structure of the scripts well enough to go in and modify myeslf ? Any pointers ?
thanks in advance..
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
IMO the NBAR queries only require read only SNMP access (I use it on Cisco 2700 routers this way).
IMO the NBAR queries only require read only SNMP access (I use it on Cisco 2700 routers this way).
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Problems with NBAR
Hi at all,
I have installed cacti0.8.6g, Apache 2.0.54, PHP 5.0.3, RRDTool 1.0.49, en Suse Linux 9.1
I have installed the NBAR and when i execute it get this errors.
OK u:0.08 s:0.12 r:7.11
OK u:0.08 s:0.12 r:7.11
PHP Warning: main(/srv/www/htdocs/cacti_g/scripts/ss_nbar_all.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /srv/www/htdocs/cacti_G/script_server.php on line 130
PHP Warning: main() [<a href='function.include'>function.include</a>]: Failed opening '/srv/www/htdocs/cacti_g/scripts/ss_nbar_all.php' for inclusion (include_path='.:/usr/share/php5/PEAR') in /srv/www/htdocs/cacti_G/script_server.php on line 130
CACTID: Host[82] DS[2325] SS[0] WARNING: Result from SERVER not valid. Partial Result: ...
PHP Warning: main(/srv/www/htdocs/cacti_g/scripts/ss_nbar_all.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /srv/www/htdocs/cacti_D/script_server.php on line 130
PHP Warning: main() [<a href='function.include'>function.include</a>]: Failed opening '/srv/www/htdocs/cacti_g/scripts/ss_nbar_all.php' for inclusion (include_path='.:/usr/share/php5/PEAR') in /srv/www/htdocs/cacti_G/script_server.php on line 130
CACTID: Host[82] DS[2325] SS[1] WARNING: Result from SERVER not valid. Partial Result: ...
OK u:0.08 s:0.12 r:8.12
Any ideas?
Thks
I have installed cacti0.8.6g, Apache 2.0.54, PHP 5.0.3, RRDTool 1.0.49, en Suse Linux 9.1
I have installed the NBAR and when i execute it get this errors.
OK u:0.08 s:0.12 r:7.11
OK u:0.08 s:0.12 r:7.11
PHP Warning: main(/srv/www/htdocs/cacti_g/scripts/ss_nbar_all.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /srv/www/htdocs/cacti_G/script_server.php on line 130
PHP Warning: main() [<a href='function.include'>function.include</a>]: Failed opening '/srv/www/htdocs/cacti_g/scripts/ss_nbar_all.php' for inclusion (include_path='.:/usr/share/php5/PEAR') in /srv/www/htdocs/cacti_G/script_server.php on line 130
CACTID: Host[82] DS[2325] SS[0] WARNING: Result from SERVER not valid. Partial Result: ...
PHP Warning: main(/srv/www/htdocs/cacti_g/scripts/ss_nbar_all.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /srv/www/htdocs/cacti_D/script_server.php on line 130
PHP Warning: main() [<a href='function.include'>function.include</a>]: Failed opening '/srv/www/htdocs/cacti_g/scripts/ss_nbar_all.php' for inclusion (include_path='.:/usr/share/php5/PEAR') in /srv/www/htdocs/cacti_G/script_server.php on line 130
CACTID: Host[82] DS[2325] SS[1] WARNING: Result from SERVER not valid. Partial Result: ...
OK u:0.08 s:0.12 r:8.12
Any ideas?
Thks
Stacked Graph
Maybe I'm missing something here. The only Graph that I want is the stacked graph, so that is the only one I'm having Cacti create. I was just thinking that maybe that all the other graphs might be required to get the data polled and stored in an rra before the stacked graph can get it's data. Does this make any sense or am I way off base here.
Erik Tijburg
Chief Network Analyst
RedMoon Inc.
Chief Network Analyst
RedMoon Inc.
Question??? How can I tell if I have the Correct IOS on my 6509 router for SNMP NBAR to work? I'm assuming i do not because when I walk the OID i get nothing in return.. Here is my IOS we are running >>
IOS (tm) s72033_rp Software (s72033_rp-IPSERVICESK9-M), Version 12.2(18)SXE1, RELEASE SOFTWARE (fc2)
Any ideas?? I've configured one Vlan interface with the ip nbar protocol-discovery command
And running the sh ip nbar protocol-discovery top-n command returns valdid data.
Thanks
IOS (tm) s72033_rp Software (s72033_rp-IPSERVICESK9-M), Version 12.2(18)SXE1, RELEASE SOFTWARE (fc2)
Any ideas?? I've configured one Vlan interface with the ip nbar protocol-discovery command
And running the sh ip nbar protocol-discovery top-n command returns valdid data.
Thanks
BiteRate vs Bits/second
Hi.. I would like to know whats the difference between the 2 types of graphs... the case is: Comparing the data from NetFlow Analyzer, the Volume of HTTP data of the last day is much more when "total bandwidth" value... calculated from this formula:
Item # 5 COMMENT: Total In: |sum:auto:current:2:auto|<HR> COMMENT AVERAGE
in the graph editor.
Thanks...
Item # 5 COMMENT: Total In: |sum:auto:current:2:auto|<HR> COMMENT AVERAGE
in the graph editor.
Thanks...
I am attempting to run this in CLI mode just to see if I get some output, but I get a missing argument 6 with this command:
php ./ss_nbar_all.php 10.17.1.2 STRING 1 query http
I can walk OID to get a list of the protocols, but no graphs, no data. The query is showing a bunch of results, so I know the data is there.
Any help before I scrap this template?
php ./ss_nbar_all.php 10.17.1.2 STRING 1 query http
I can walk OID to get a list of the protocols, but no graphs, no data. The query is showing a bunch of results, so I know the data is there.
Any help before I scrap this template?
Just wondering whether you guys have the same issue. Unfortunately, I do. All the individual graphs are fine, but the stacked one.eddievenus wrote:I am looking for a little bit of help on what those 3 feilds are for as well. i can get graphs from the nbar_all script server stuff, but I do not know how to set up the stacked_nbar graph.
What i need to know is what to use in these 3 feilds, and what they mean, so that I can figure this out on future graphs.
Custom Data [Template: Cisco Router - NBAR Bytes In/Out]
Index Type
Index Value
Output Type ID
If someone could just tell me what these mean, and how to fill this out, I would very happy with the way this works.
Please advice.
Thanks,
Aleu
I get the same issue complaining about the rrd not being created.rsaeks wrote:When I setup the graph, I get the error message in GraphDebug Mode:
ERROR: opening '/PATH/cacti/rra/maple_2621xm_nbar_bytesout_780.rrd': No such file or directory
Any thoughts as to what to look at for the bytesout setup?
-
- Posts: 21
- Joined: Wed Aug 04, 2004 4:28 pm
- Location: Thornton, CO
Getting this to work on 0.8.7a
All,
I had trouble getting this to work on 0.8.7a. I was using the plugin arch. It located all of the files (xml, php, etc) and never gave me an error via cacti but would return 0 rows. When I would run the script via CLI with a
I would get
I added the following line into ss_nbar_all.php:
It now runs like a charm.
I just wanted to let anyone else having the same issues know the fix.
I had trouble getting this to work on 0.8.7a. I was using the plugin arch. It located all of the files (xml, php, etc) and never gave me an error via cacti but would return 0 rows. When I would run the script via CLI with a
Code: Select all
php -q ss_nbar_all.php x.x.x.x commstring 2 query index
Code: Select all
Fatal error: Call to undefined function read_config_option() in /var/www/xxxx/cacti/lib/snmp.php on line 233
Code: Select all
include_once(dirname(__FILE__) . "/../include/global.php");
I just wanted to let anyone else having the same issues know the fix.
Thanks,
Bryan
Bryan
-
- Posts: 13
- Joined: Wed Dec 15, 2004 3:29 am
Re: Getting this to work on 0.8.7a
Thanks. Looks like that was the key for me.the_sphynx wrote:All,
I had trouble getting this to work on 0.8.7a. I was using the plugin arch. It located all of the files (xml, php, etc) and never gave me an error via cacti but would return 0 rows. When I would run the script via CLI with aI would getCode: Select all
php -q ss_nbar_all.php x.x.x.x commstring 2 query index
I added the following line into ss_nbar_all.php:Code: Select all
Fatal error: Call to undefined function read_config_option() in /var/www/xxxx/cacti/lib/snmp.php on line 233
It now runs like a charm.Code: Select all
include_once(dirname(__FILE__) . "/../include/global.php");
I just wanted to let anyone else having the same issues know the fix.
Who is online
Users browsing this forum: No registered users and 3 guests