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    


Fixed NBAR script

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
kingaru
Cacti User


Joined: 09 Mar 2005
Posts: 54

PostPosted: Tue May 31, 2005 10:05 am    Post subject: Fixed NBAR script Reply with quote

All,

Some times ago I discovered a bug that cisco ISO (at least 12.3.x) can report active NBAR on the interfaces which does not even physically installed in a router. This screws up the posted before NBAR pooling script. Unofrtunately autor of the script did not reply on the reported bug so I was forced to learn a bit of php in order to fix this issue . Now during building of the index list script double check if the
interface is actually exist in the router before it will be polled.


Regards
Igor



query_cisco_nbar_all.tar.gz
 Description:
Fixed NBAR polling script

Download
 Filename:  query_cisco_nbar_all.tar.gz
 Filesize:  1.88 KB
 Downloaded:  151 Time(s)

Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9719
Location: MI, USA

PostPosted: Fri Jun 03, 2005 8:41 pm    Post subject: Reply with quote

Hello,

Here is the modified script to work with the PHP Script Server. It should accelerate the NBAR script by approximately 6-20 times. Please following the PHP Script Server instructions in the manual to convert your existing scripts.

The function name is ss_nbar_all.

TheWitness



ss_nbar_all.zip
 Description:

Download
 Filename:  ss_nbar_all.zip
 Filesize:  1.94 KB
 Downloaded:  137 Time(s)

Back to top
roddie
Cacti User


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

PostPosted: Tue Jun 07, 2005 10:39 am    Post subject: Reply with quote

Does anyone have an example of data and graph templates to use for this?

Thanks,
Roddie
Back to top
kingaru
Cacti User


Joined: 09 Mar 2005
Posts: 54

PostPosted: Tue Jun 07, 2005 3:29 pm    Post subject: Reply with quote

roddie wrote:
Does anyone have an example of data and graph templates to use for this?

Thanks,
Roddie


Do search on this forum by keyword "NBAR" and you will find archive in one of the treads.

Igor
Back to top
roddie
Cacti User


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

PostPosted: Thu Jun 09, 2005 12:07 pm    Post subject: Reply with quote

Larry,

I'm probably missing something obvious in the process, but after installing the modified script and making the required changes to the script query, data query, and data templates, I'm not getting any data back from a query.

When I test the script manually using the script server, I get no output.

Code:
p3fmsa01:/usr/local/apache/htdocs/cacti/resource/script_server# php /usr/local/apache/htdocs/cacti/script_server.php
PHP Script Server has Started - Parent is cmd
/usr/local/apache/htdocs/cacti/scripts/ss_nbar_all.php ss_nbar_all hostname community 1 index
p3fmsa01:/usr/local/apache/htdocs/cacti/resource/script_server#


The original script seems to work fine (though slow).
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9719
Location: MI, USA

PostPosted: Thu Jun 09, 2005 4:20 pm    Post subject: Reply with quote

Roddie,

I can fix it, I just don't have an nbar to point it at. Maybe you can assist via e-mail.

Larry
Back to top
roddie
Cacti User


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

PostPosted: Mon Jun 13, 2005 11:48 am    Post subject: Reply with quote

See: http://forums.cacti.net/viewtopic.php?p=34578

For updated package...
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
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group