[XML] Cisco NBAR Protocol Statistics Query 1.2a [UPDATED]

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

Moderators: Developers, Moderators

Post Reply
celtic6969
Posts: 17
Joined: Wed Jun 22, 2005 10:43 pm

NBAR template not working on 0.8.6e

Post by celtic6969 »

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
Attachments
HELP Please ...
HELP Please ...
nbar_broken.JPG (169.72 KiB) Viewed 20870 times
celtic6969
Posts: 17
Joined: Wed Jun 22, 2005 10:43 pm

NBAR stats

Post by celtic6969 »

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" :roll:

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
celtic6969
Posts: 17
Joined: Wed Jun 22, 2005 10:43 pm

No Luck ...

Post by celtic6969 »

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
userlerueda
Posts: 2
Joined: Fri Jul 15, 2005 3:15 pm

Post by userlerueda »

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
clrgomes
Posts: 27
Joined: Mon Jul 18, 2005 6:01 pm
Location: Brazil

NBAR

Post by clrgomes »

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 !!!!
CLRGomes
From Brazil
clrgomes
Posts: 27
Joined: Mon Jul 18, 2005 6:01 pm
Location: Brazil

NBAR

Post by clrgomes »

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 !!!!
CLRGomes
From Brazil
qpduong
Posts: 11
Joined: Tue Jul 26, 2005 7:59 pm
Contact:

Post by qpduong »

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
qpduong
Posts: 11
Joined: Tue Jul 26, 2005 7:59 pm
Contact:

Post by qpduong »

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
jenchingyang
Posts: 18
Joined: Wed Jul 20, 2005 8:44 am

Cisco NBAR issue: the Y-scale of NBAR Stacked Protocol displ

Post by jenchingyang »

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
Attachments
Cisco NBAR Graphic
Cisco NBAR Graphic
Cisco_NBAR.jpg (50.16 KiB) Viewed 20492 times
zoltar
Posts: 4
Joined: Tue Aug 30, 2005 5:17 am

Post by zoltar »

Im not using this template (QOS MIB fits me better), but I think you should check if turn bytes into bits is selected for CDEF function in template for each graph item bound to output field.
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

I keep getting this:

Code: Select all

10/06/2005 10:21:34 AM - CACTID: Poller[0] ERROR: PHP Script Server communications lost, attempting to close and restart
10/06/2005 10:21:34 AM - CACTID: Poller[0] Host[1106] DS[5079] WARNING: Result from SERVER not valid.  Partial Result: ...
10/06/2005 10:21:34 AM - CACTID: Poller[0] Host[1106] DS[5079] SERVER: /usr/share/cacti/scripts/ss_nbar_all.php ss_nbar_all 192.168.1x1.1x2 communitystring 2 get outbytes 258, output: U
To me, it looks like it is passing the script 7 variables, when it only wants 6. If I run it from a console, removing the ss_nbar_all variable, it returns a value (with the ss_nbar_all in there, it returns nothing):

Code: Select all

php /usr/share/cacti/scripts/ss_nbar_all.php 192.168.1x1.1x2 communitystring 2 get outbytes 312
5886262
Any idea what is going on here?
The previous NBAR script worked, but was slow....
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Hmm... maybe I should have more coffee, or less.

The script tests out from the console, as per the script server test, so it is passing the correct values, its just the script server dying for some reason....
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What about Cactid 0.8.6f? Could also be a timeout. Goto Settings->Poller and increase your Script Timeout value.

Larry
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Using cactid086f-rc12 and timeout is set to 300.

On full debug it gives me this:

Code: Select all

10/06/2005 11:06:23 AM - CACTID: Poller[0] ERROR: PHP Script Server communications lost, attempting to close and restart
10/06/2005 11:06:23 AM - CACTID: Poller[0] DEBUG: PHP Script Server Shutdown Started
10/06/2005 11:06:23 AM - CACTID: Poller[0] DEBUG: PHP Script Server Routine Starting                                                   
10/06/2005 11:06:23 AM - CACTID: Poller[0] DEBUG: PHP Script Server About to FORK Child Process
10/06/2005 11:06:23 AM - CACTID: Poller[0] DEBUG: PHP Script Server Child FORK Success                                                 
10/06/2005 11:06:23 AM - CACTID: Poller[0] Host[1106] DS[5021] WARNING: Result from SERVER not valid.  Partial Result: ...
10/06/2005 11:06:23 AM - CACTID: Poller[0] Host[1106] DS[5021] SERVER: /usr/share/cacti/scripts/ss_nbar_all.php  192.168.1x1.1x2 commstring 2 get inbytes 315, output: U
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

My bad. It was a path issue :(

It is quick though. 128secs on old style, 94secs with script_server.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests