Nbar graphs

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
ognjen
Posts: 10
Joined: Fri Oct 12, 2007 12:26 pm

Nbar graphs

Post by ognjen »

Hi everyone,

I amd desperate to get nbar grpahs working. I have already read every post on forums that has anything for nbar and it is not working.

I am running Cacti 0.8.6j. For polling i am runnign Cactid 0.8.6i. Other software PHP 5.1.6, net-snmp-5.3.1, mysql-5.0.27, httpd-2.2.3-5, rrdtool-.2.23

When i run snmpwalk manually i receive response as expected from the routers. i have enabled ip nbar protocol-discovery on two serial interfaces. When i run a script manually i receive the following but no data:

/usr/bin/php /var/www/html/cacti/scripts/ss_nbar_all.php 10.11.11.2 STRING 2 query http
PHP Warning: Missing argument 6 for ss_nbar_all() in /var/www/html/cacti/scripts/ss_nbar_all.php on line 17

When i run query in verbose mode this is the output:
+ Running data query [10].
+ Found type = '6 '[script query].
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/cisco_nbar_all.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/html/cacti/scripts/ss_nbar_all.php 172.31.254.114 en$ync 2 index'
+ Executing script query '/usr/bin/php -q /var/www/html/cacti/scripts/ss_nbar_all.php 172.31.254.114 en$ync 2 query index'
+ Executing script query '/usr/bin/php -q /var/www/html/cacti/scripts/ss_nbar_all.php 172.31.254.114 en$ync 2 query ifName'
+ Executing script query '/usr/bin/php -q /var/www/html/cacti/scripts/ss_nbar_all.php 172.31.254.114 en$ync 2 query ifType'
+ Executing script query '/usr/bin/php -q /var/www/html/cacti/scripts/ss_nbar_all.php 172.31.254.114 en$ync 2 query ifAdminStatus'
+ Executing script query '/usr/bin/php -q /var/www/html/cacti/scripts/ss_nbar_all.php 172.31.254.114 en$ync 2 query ifOperStatus'
+ Executing script query '/usr/bin/php -q /var/www/html/cacti/scripts/ss_nbar_all.php 172.31.254.114 en$ync 2 query protoname'
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/cisco_nbar_all.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/cisco_nbar_all.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/cisco_nbar_all.xml'

but still no data. Graph is created but empty. I have also added "." in front of all the OIDS in a ss_nbar_all.php script as suggested in the forums. Graph is created but its empty. Any ideas anyone?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Nbar graphs

Post by gandalf »

ognjen wrote: /usr/bin/php /var/www/html/cacti/scripts/ss_nbar_all.php 10.11.11.2 STRING 2 query http
PHP Warning: Missing argument 6 for ss_nbar_all() in /var/www/html/cacti/scripts/ss_nbar_all.php on line 17
Obviously, a required parameter is missing. Please read the docs of the original poster
Reinhard
ognjen
Posts: 10
Joined: Fri Oct 12, 2007 12:26 pm

Post by ognjen »

I appreciate the reply but i have looked into all posts and still have no idea what am i looking for. Do i have to create graphs for each separate protocol and then add them all into NBAR stacked protocol? can you point me in the right direction?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please pay attention to the nbar script.
ss_nbar_all.php 10.11.11.2 STRING 2 query http
show 5 parms. The error message says that 6 are required. So please analyze the script to find the 6th parameter required
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests