Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[XML] Cisco NBAR Protocol Statistics Query 1.2a [UPDATED]
Goto page Previous  1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
LeonT



Joined: 09 May 2005
Posts: 8

PostPosted: Mon Jun 20, 2005 7:55 am    Post subject: Reply with quote

Thanks for posting this script. After adding the "." before the OID's in the PHP file it works like a charm
Back to top
chloe



Joined: 13 Jun 2005
Posts: 17

PostPosted: Mon Jun 20, 2005 8:11 am    Post subject: Reply with quote

I try now
Back to top
chloe



Joined: 13 Jun 2005
Posts: 17

PostPosted: Mon Jun 20, 2005 8:15 am    Post subject: Reply with quote

It's very cool it's work
thanks Leon T
Back to top
roddie
Cacti User


Joined: 10 Feb 2004
Posts: 90
Location: Frisco, TX

PostPosted: Mon Jun 20, 2005 9:59 am    Post subject: Reply with quote

Interesting - I wonder if there's a difference between SNMP versions and the leading period.

Glad y'all got it working!
Back to top
celtic6969



Joined: 22 Jun 2005
Posts: 17

PostPosted: Tue Jul 05, 2005 10:22 pm    Post subject: NBAR template not working on 0.8.6e Reply with quote

Can someone please help me with this ? I cannot get this template working on 0.8.6e. No rows are returned in the query ...
I imported the templates and copied the relevant files, as per the readme.

Please see the attachment for my setup.

Much appreciated
TIA
Celtic



nbar_broken.JPG
 Description:
HELP Please ...
 Filesize:  169.72 KB
 Viewed:  9426 Time(s)

nbar_broken.JPG


Back to top
roddie
Cacti User


Joined: 10 Feb 2004
Posts: 90
Location: Frisco, TX

PostPosted: Wed Jul 06, 2005 2:19 pm    Post subject: Reply with quote

Celtic,

Try walking .1.3.6.1.4.1.9.9.244.1.2.1.1.2 and see if you get anything back.

The warnings when you run the script manually are ok, but it should still return some data.

Roddie
Back to top
celtic6969



Joined: 22 Jun 2005
Posts: 17

PostPosted: Wed Jul 06, 2005 6:06 pm    Post subject: NBAR stats Reply with quote

Hi Roddie,

Thanks for your prompt reply. I tried walking ".1.3.6.1.4.1.9.9.244.1.2.1.1.2" but didn't receive a response. I was only able to walk up until ".1.3.6.1.4.1.9.9.244.1"

What OID is this ? Does this mean that some of the NBAR stats are not available through SNMP on my IOS version (12.2.15T15 ip plus) ?

Thx
Back to top
celtic6969



Joined: 22 Jun 2005
Posts: 17

PostPosted: Thu Jul 07, 2005 5:53 pm    Post subject: No Luck ... Reply with quote

Hi,

I don't believe it is IOS version, as I have now upgraded to 12.3(14)T2 with the same result (no rows returned).
Is this script designed for the cactid poller ? as I am still using the standard cmd.php poller ...

Any ideas ?

Thx
Celtic
Back to top
roddie
Cacti User


Joined: 10 Feb 2004
Posts: 90
Location: Frisco, TX

PostPosted: Fri Jul 08, 2005 10:18 am    Post subject: Reply with quote

Celtic,

I don't think it's the version, but it does sound like nbar isn't configured on any of your interfaces.

Do you have "ip nbar protocol-discovery" in your config?

Roddie
Back to top
userlerueda



Joined: 15 Jul 2005
Posts: 2

PostPosted: Sun Jul 17, 2005 1:35 pm    Post subject: Reply with quote

Do you think it's possible to have the graph put positive values for input and negative values for output, so that you could have stacked in one graph every protocol (in/out) ?

thanks
Back to top
clrgomes



Joined: 18 Jul 2005
Posts: 23
Location: Brazil

PostPosted: Tue Jul 19, 2005 4:46 pm    Post subject: NBAR Reply with quote

Guys,

The OIS is wrong

You need put . befone OID in teh file "ss_nbar_all.php" (On windows)

Actual:

$oids = array("enable" => "1.3.6.1.4.1.9.9.244.1.1.1.1.1",
"uptime" => "1.3.6.1.4.1.9.9.244.1.1.1.1.2",
"protos" => "1.3.6.1.4.1.9.9.244.1.8.1.1.2"

CORRECT (put . before first 1 in OID)

$oids = array("enable" => ".1.3.6.1.4.1.9.9.244.1.1.1.1.1",
"uptime" => ".1.3.6.1.4.1.9.9.244.1.1.1.1.2",
"protos" => ".1.3.6.1.4.1.9.9.244.1.8.1.1.2"

You need to correct in all OID in this file. Later you need run

Cisco Router - NBAR (All Stats) (Verbose Query) Uptime Goes Backwards Success [492 Items, 82 Rows]


It works fine !!!!
Back to top
clrgomes



Joined: 18 Jul 2005
Posts: 23
Location: Brazil

PostPosted: Tue Jul 19, 2005 4:48 pm    Post subject: NBAR Reply with quote

Guys,

The OIS is wrong

You need put . befone OID in teh file "ss_nbar_all.php" (On windows)

Actual:

$oids = array("enable" => "1.3.6.1.4.1.9.9.244.1.1.1.1.1",
"uptime" => "1.3.6.1.4.1.9.9.244.1.1.1.1.2",
"protos" => "1.3.6.1.4.1.9.9.244.1.8.1.1.2"

CORRECT (put . before first 1 in OID)

$oids = array("enable" => ".1.3.6.1.4.1.9.9.244.1.1.1.1.1",
"uptime" => ".1.3.6.1.4.1.9.9.244.1.1.1.1.2",
"protos" => ".1.3.6.1.4.1.9.9.244.1.8.1.1.2"

You need to correct in all OID in this file. Later you need run

Cisco Router - NBAR (All Stats) (Verbose Query) Uptime Goes Backwards Success [492 Items, 82 Rows]


It works fine !!!!
Back to top
qpduong



Joined: 26 Jul 2005
Posts: 11

PostPosted: Thu Jul 28, 2005 10:09 pm    Post subject: Reply with quote

I have successfully imported nbar template, all scripts are in right place and routers are already configured with nbar but when I run data query (debugging/verbose query mode) I receive blank page with:

Fatal error: Maximum execution time of 30 seconds exceeded in c:\wamp\www\cacti\lib\functions.php on line 1163

Pls help me, thanks.

My system: Win2K/Apache/PHP504/Cacti 0.8.6f
Back to top
qpduong



Joined: 26 Jul 2005
Posts: 11

PostPosted: Fri Jul 29, 2005 8:37 am    Post subject: Reply with quote

Oh, God. Problem solved after I change max_execution_time in php.ini from 30 to 300. Why this server_script runs so slow how to make it faster?
Thanks
Back to top
jenchingyang



Joined: 20 Jul 2005
Posts: 5

PostPosted: Mon Aug 01, 2005 10:28 am    Post subject: Cisco NBAR issue: the Y-scale of NBAR Stacked Protocol displ Reply with quote

the Y-scale of NBAR Stacked Protocol display incorrect value. only show below 10k. but single protocol show normally. Anyone know how to solve it


Cisco_NBAR.jpg
 Description:
Cisco NBAR Graphic
 Filesize:  50.16 KB
 Viewed:  9049 Time(s)

Cisco_NBAR.jpg


Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5  Next
Page 2 of 5

 



Powered by phpBB © 2001, 2005 phpBB Group