|
|
| Author |
Message |
Haakon
Joined: 19 Jul 2005 Posts: 6
|
Posted: Thu Mar 30, 2006 9:22 am Post subject: |
|
|
I have the same issue Carl, no rra files. If I define the rra file from cmd shell the file is created, but it never updates. There is tree fields under 'Custom Data' when you create a nbar stacked graph;
Index Type
Index Value
Output Type ID
What are they for? Can you help us out Roddie? |
|
| Back to top |
|
 |
eddievenus Cacti User
Joined: 18 Jul 2005 Posts: 56
|
Posted: Fri Mar 31, 2006 1:32 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
qwertz Cacti User
Joined: 16 Feb 2006 Posts: 98
|
Posted: Wed Apr 12, 2006 10:47 am Post subject: |
|
|
Hello,
Thanks for the scripts.
When i try to graph an isolated nbar value., it working perfectly.
When i try to use the stacked template, it tells me that after a debug in Graph management:
RRDTool Says:
ERROR: opening '...../cacti/rra/test_nbar_bytesin_29.rrd': No such file or directory.
I had a look in the rra folder and saw no "..._29.rrd" file.
Do you see what is really the problem?
Where should i search to investigate?
Thanks
Qwertz |
|
| Back to top |
|
 |
manaf
Joined: 16 Apr 2006 Posts: 43 Location: Amman, Jordan
|
Posted: Fri Apr 28, 2006 3:43 pm Post subject: |
|
|
i can graph all nbar protocols but without protocol names
Executing script query 'c:\php\php.exe -q C:\Apache2\htdocs\cacti\scripts\query_cisco_nbar_all.php x.x.x.x public 2 query protoname'
Found item [cnpdAllStatsProtocolName='No Such Instance currently exists'] index: 257
Can anybody help me? |
|
| Back to top |
|
 |
lex8009
Joined: 18 May 2006 Posts: 35
|
Posted: Wed May 24, 2006 10:58 am Post subject: nbar no graph |
|
|
Please help. I'm having similar issue, where it doesn't generate the graph.
CRL-2610#sh ip nbar protocol-discovery top-n
Serial0/0.777
Input Output
Protocol Packet Count Packet Count
Byte Count Byte Count
2 minute bit rate (bps) 2 minute bit rate (bps)
------------------------ ------------------------ ------------------------
notes 6136536 6530990
1139070687 3416661738
22000 88000
http 1335800 1294334
967799842 225072298
60000 40000
Ran the php command using snmp v 1 and got this err msg:
[b]C:\Inetpub\wwwroot\cacti\scripts>php ss_nbar_all.php 10.x.x.1 lcsnmp 1 query http[/b]Content-type: text/html
X-Powered-By: PHP/4.3.6
<br />
<b>Warning</b>: Missing argument 6 for ss_nbar_all() in <b>C:\Inetpub\wwwroot\cacti\scripts\ss_nbar_all.php</b> on line
<b>17</b><br />
[b]Ran the php command using snmp v 2 and got this error msg:
C:\Inetpub\wwwroot\cacti\scripts>php ss_nbar_all.php 10.23.17.1 lcsnmp 2 query http[/b]Content-type: text/html
X-Powered-By: PHP/4.3.6
Last edited by lex8009 on Wed Jun 14, 2006 11:39 pm; edited 1 time in total |
|
| Back to top |
|
 |
rahadiyan
Joined: 31 May 2006 Posts: 1
|
Posted: Thu Jun 01, 2006 3:58 am Post subject: |
|
|
hai, Linegod...
i have same problem.... can u tell me how to solve that problem?
thanks,
sorry my english very bad |
|
| Back to top |
|
 |
boots
Joined: 07 Jan 2004 Posts: 49 Location: Melbourne Australia
|
Posted: Thu Jun 29, 2006 2:00 am Post subject: |
|
|
Hi guys,
I'm still persisting with this, however with no luck.
This takes ages to execute and eventually times out where I need to kill the browser and log in again. When I look in the device list, the device is available, but there are no items or rows available in the status.
snmpwalk -v1 -c XXXX X.X.X.X .1 1.3.6.1.4.1.9.9.244.1.8.1.1.2
iso.3.6.1.4.1.9.9.244.1.8.1.1.2.1 = STRING: "ftp"
iso.3.6.1.4.1.9.9.244.1.8.1.1.2.2 = STRING: "http"
iso.3.6.1.4.1.9.9.244.1.8.1.1.2.3 = STRING: "egp"
iso.3.6.1.4.1.9.9.244.1.8.1.1.2.4 = STRING: "gre"
etc etc works fine
php -q ss_nbar_all.php X.X.X.X XXXX 1 index
2049
2050
2051
2052
etc etc works fine
C:\>snmpwalk -v1 -c XXXX X.X.X.X. .1.3.6.1.4.1.9.9.244.1.2.1.1.2
iso.3.6.1.4.1.9.9.244.1.2.1.1.2.8.1 = STRING: "ftp"
iso.3.6.1.4.1.9.9.244.1.2.1.1.2.8.2 = STRING: "http"
iso.3.6.1.4.1.9.9.244.1.2.1.1.2.8.3 = STRING: "egp"
iso.3.6.1.4.1.9.9.244.1.2.1.1.2.8.4 = STRING: "gre"
iso.3.6.1.4.1.9.9.244.1.2.1.1.2.8.5 = STRING: "icmp"
etc etc works fine.
I have increased the IIS connection timeout value to a huge value, I have increased the maximum allocation time in PHP to the same large value and also increased the script and server timeout value to a very high vaule.
As mentioned in an earlier post, I have added the . in front of the OIDS through the script and I am running Win2K3, IIS5, PHP 4.3.9, Cacti 8.6g and Cactid 8.6f
When I run a verbose query, it timeouts eventually and locks the browser, getting no information in the log file when I increase the debug levels.
Any help, as I'd love to get this going...
Cheers
Boots |
|
| Back to top |
|
 |
scottsta
Joined: 17 Jun 2006 Posts: 8
|
Posted: Sat Jul 01, 2006 8:03 am Post subject: 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.. |
|
| Back to top |
|
 |
fmangeant Cacti Guru User
Joined: 19 Sep 2003 Posts: 2325 Location: Sophia-Antipolis, France
|
Posted: Mon Jul 03, 2006 5:16 am Post subject: |
|
|
Hi
IMO the NBAR queries only require read only SNMP access (I use it on Cisco 2700 routers this way). |
|
| Back to top |
|
 |
KARLOS
Joined: 20 Jan 2005 Posts: 10
|
Posted: Wed Jul 19, 2006 5:17 am Post subject: 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 |
|
| Back to top |
|
 |
etijburg
Joined: 20 Jul 2006 Posts: 5 Location: Plano, TX
|
Posted: Thu Jul 20, 2006 3:56 pm Post subject: 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. |
|
| Back to top |
|
 |
mek1 Cacti User
Joined: 21 Mar 2006 Posts: 55
|
Posted: Sat Jul 29, 2006 1:28 pm Post subject: |
|
|
I am having problems with graphing nbar similar to others. It shows green and that it is being graphed but retrusn 0 items, 0 rows. I ran snmpwalk .1.3.6.1.4.1.9.9.244.1.2.1.1.2 against both routers with NBAR enabled and both return all strings fine.
what else might i need to do here?
thanks |
|
| Back to top |
|
 |
heckler40
Joined: 02 Oct 2006 Posts: 21 Location: bash
|
Posted: Tue Oct 24, 2006 3:48 pm Post subject: |
|
|
| BTW, if you want the bit rate to be correct (which is the default value on the Y-axis), you have to change the CDEF to *1024. It is set to * 8 which will gives you incorrect bit rates. |
|
| Back to top |
|
 |
spoonman Cacti User
Joined: 03 May 2005 Posts: 243
|
Posted: Tue Feb 20, 2007 10:19 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
ABX Cacti User
Joined: 01 Mar 2007 Posts: 61
|
Posted: Mon Apr 23, 2007 8:46 am Post subject: |
|
|
I solved the graph issue by changing the allow_call_time_pass_reference to ON in php.ini
OS: Windows 2003 server |
|
| Back to top |
|
 |
|