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    


CISCO SLB
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
DanielG



Joined: 26 Jan 2006
Posts: 12
Location: Switzerland

PostPosted: Mon Mar 13, 2006 9:05 am    Post subject: CISCO SLB Reply with quote

Hello,
Here his templates for monitoring Cisco Load Balancer Catalyst Module.
This is my first fresh template for cacti and comments are welcome.

Thi s one is to collect general stat on one or more SLB module in an Cisco Catalyst chassis.


Daniel.
__
| Cacti 0.8.6h | cactid 0.8.6f | plugin-arch 0.9 | RHEL 4.0 | kernel 2.6.9 | MySQL 4.1.12 | PHP 4.3.9 | Apache 2.0.52 | RRDtool 1.2.12 | gcc 3.4.4| net-snmp 5.1.2 |



slb_stat.zip
 Description:
cacti_graph_template_cisco_slb_stats.xml
cacti_data_template_cisco_slb_stats.xml
cacti_data_query_cisco_slb_stats.xml
cisco_slb_stats.xml

Download
 Filename:  slb_stat.zip
 Filesize:  8.28 KB
 Downloaded:  774 Time(s)

Back to top
DanielG



Joined: 26 Jan 2006
Posts: 12
Location: Switzerland

PostPosted: Mon Mar 13, 2006 9:11 am    Post subject: CISCO SLB Vservers Reply with quote

Hello,
Here his templates for monitoring Cisco Load Balancer Catalyst Module.
This is my first fresh template for cacti and comments are welcome.

Thi s one is to collect stats on Virtual server on SLB module in an Cisco Catalyst chassis.


Daniel.
__
| Cacti 0.8.6h | cactid 0.8.6f | plugin-arch 0.9 | RHEL 4.0 | kernel 2.6.9 | MySQL 4.1.12 | PHP 4.3.9 | Apache 2.0.52 | RRDtool 1.2.12 | gcc 3.4.4| net-snmp 5.1.2 |



slb_virtualserver.zip
 Description:
cacti_graph_template_cisco_slb_virtualserver.xml
cacti_data_template_cisco_slb_vitual_server.xml
cacti_data_query_cisco_slb_virtualserver.xml
ss_slb_vserver.php
slb_vserver.xml

Download
 Filename:  slb_virtualserver.zip
 Filesize:  8.47 KB
 Downloaded:  606 Time(s)

Back to top
DanielG



Joined: 26 Jan 2006
Posts: 12
Location: Switzerland

PostPosted: Mon Mar 13, 2006 9:15 am    Post subject: CISCO SLB Rservers Reply with quote

Hello,
Here his templates for monitoring Cisco Load Balancer Catalyst Module.
This is my first fresh template for cacti and comments are welcome.

Thi s one is to collect stats on Real server on SLB module in an Cisco Catalyst chassis.


Daniel.
__
| Cacti 0.8.6h | cactid 0.8.6f | plugin-arch 0.9 | RHEL 4.0 | kernel 2.6.9 | MySQL 4.1.12 | PHP 4.3.9 | Apache 2.0.52 | RRDtool 1.2.12 | gcc 3.4.4| net-snmp 5.1.2 |



slb_realserver.zip
 Description:
cacti_graph_template_cisco_slb_realserver.xml
cacti_data_template_cisco_slb_real_server.xml
cacti_data_query_cisco_slb_realserver.xml
ss_slb_rserver.php
slb_rserver.xml

Download
 Filename:  slb_realserver.zip
 Filesize:  9.29 KB
 Downloaded:  591 Time(s)

Back to top
DanielG



Joined: 26 Jan 2006
Posts: 12
Location: Switzerland

PostPosted: Mon Mar 13, 2006 9:30 am    Post subject: CISCO SLB aggregation graph Reply with quote

Hello,

This is a graph template exemple for aggregation of slb stats from many boards/servers.

BTW, a question to cacti gurus:
I'm wondering how to create graph template, not attached to a host (host = none),
limiting the choice of "Data Source" in the "Graph Item Fileds" selection.

When there is 1000's of data source the creation of new graph is painfull. The scrolling lists of "Graph Item Fileds" are slow to build and difficult to navigate.

As exemple the included template. When selecting Data Source for the graph
the scrolling list show -ALL- Data Source of cacti. It woul be nice to have only the revelant data sources. Is there a mechanism to do that?

Thanks.
Daniel.
__
| Cacti 0.8.6h | cactid 0.8.6f | plugin-arch 0.9 | RHEL 4.0 | kernel 2.6.9 | MySQL 4.1.12 | PHP 4.3.9 | Apache 2.0.52 | RRDtool 1.2.12 | gcc 3.4.4| net-snmp 5.1.2 |



slb_aggregation.zip
 Description:
cacti_graph_template_cisco_slb_aggregation.xml

Download
 Filename:  slb_aggregation.zip
 Filesize:  3.44 KB
 Downloaded:  457 Time(s)

Back to top
evilzardoz



Joined: 04 Dec 2005
Posts: 43

PostPosted: Thu Jun 29, 2006 12:39 am    Post subject: Reply with quote

Hi,

How do I use this template?

I've imported the XML files - do I need to place one (or more) of them in the data queries directory on the cacti server?

What is ss_slb_vserver.php used for?

We have some SLB (CSM) modules in our 6500s that we wish to monitor

thanks!
Back to top
jrichardson
Cacti User


Joined: 22 Mar 2005
Posts: 66

PostPosted: Wed Dec 20, 2006 4:03 pm    Post subject: Reply with quote

You need to copy ss_slb_rserver.php and ss_slb_vserver.php to /path/to/cacti/scripts/ and you need to copy slb_rserver.xml and slb_vserver.xml to /path/to/cacti/resource/scripts_server/


For me this was:

# ll /var/www/html/cacti/resource/script_server/slb_*
-rw-r--r-- 1 root root 2437 Dec 19 00:21 /var/www/html/cacti/resource/script_server/slb_rserver.xml
-rw-r--r-- 1 root root 1962 Dec 19 00:21 /var/www/html/cacti/resource/script_server/slb_vserver.xml


and


# ll /var/www/html/cacti/scripts/ss_slb_*
-rwxr-xr-x 1 root root 5075 Dec 19 00:22 /var/www/html/cacti/scripts/ss_slb_rserver.php
-rwxr-xr-x 1 root root 4577 Dec 19 00:22 /var/www/html/cacti/scripts/ss_slb_vserver.php
[/quote]
Back to top
jrichardson
Cacti User


Joined: 22 Mar 2005
Posts: 66

PostPosted: Wed Dec 20, 2006 4:05 pm    Post subject: Reply with quote

You also need cisco_slb_stats.xml in the snmp_queries directory
Back to top
jrichardson
Cacti User


Joined: 22 Mar 2005
Posts: 66

PostPosted: Wed Dec 20, 2006 5:00 pm    Post subject: Re: CISCO SLB aggregation graph Reply with quote

DanielG wrote:
Hello,

This is a graph template exemple for aggregation of slb stats from many boards/servers.



I'm confused as to what to enter into the fields when creating this graph



Aggregation.jpg
 Description:
 Filesize:  112.77 KB
 Viewed:  11275 Time(s)

Aggregation.jpg


Back to top
bidzer



Joined: 20 Jun 2006
Posts: 21

PostPosted: Tue Apr 03, 2007 9:25 am    Post subject: Can anyone help with this one? Reply with quote

Can anyone help with this? Thanks...
Back to top
gondo



Joined: 19 Oct 2004
Posts: 25
Location: Oxford, OH

PostPosted: Mon Sep 10, 2007 2:01 pm    Post subject: Reply with quote

Weird issue, this template and queries were working correctly after installation. I was able to create queries for real and virtual servers without problems.

When I last went to use the templates, the real server names and virtual name parsing broke. Each new real server name is showing up as "10", the beginning octet of the ip addresses of the real servers.

Running cacti 0.8.6h. I realize an upgrade is in order, I was hoping to get this fixed beforehand.

Thanks.
Back to top
gondo



Joined: 19 Oct 2004
Posts: 25
Location: Oxford, OH

PostPosted: Tue Sep 11, 2007 12:33 pm    Post subject: Reply with quote

Clarification;

Performing a cli query gives the following results;

$ /usr/bin/php -q /opt/www/html/cacti/scripts/ss_slb_rserver.php 134.53.2.248 117 2:161:1000:REMOVED:::MD5::[None] query RName
3.10.66.65.78.87.69.66.45.83.76.77.10.0.31.24.0!10
3.12.66.65.78.70.79.82.77.83.45.80.82.69.10.0.2.20.0!10
3.12.66.65.78.70.79.82.77.83.45.80.82.69.10.0.2.21.0!10
3.12.66.65.78.70.79.82.77.83.45.80.82.69.10.0.2.22.0!10
3.12.66.65.78.70.79.82.77.83.45.80.82.69.10.0.2.23.0!10
3.12.66.65.78.70.79.82.77.83.45.83.76.77.10.0.31.25.0!10
3.12.66.73.84.83.45.80.82.69.80.82.79.68.10.0.75.22.80!10
3.12.66.73.84.83.45.80.82.69.80.82.79.68.10.0.75.23.80!10
3.12.83.84.79.82.77.84.83.84.45.71.67.83.10.1.66.64.3269!10
3.12.83.84.79.82.77.84.83.84.45.71.67.83.10.1.66.65.3269!10
3.14.66.65.78.87.69.66.45.80.82.69.80.82.79.68.10.0.2.13.0!10
3.14.66.65.78.87.69.66.45.80.82.69.80.82.79.68.10.0.2.14.0!10
3.14.66.65.78.87.69.66.45.80.82.69.80.82.79.68.10.0.2.15.0!10
3.14.66.65.78.87.69.66.45.80.82.69.80.82.79.68.10.0.2.16.0!10
3.14.77.85.67.79.78.84.83.84.45.72.84.84.80.83.10.1.68.32.443!10
3.14.77.85.67.79.78.84.83.84.45.72.84.84.80.83.10.1.68.33.443!10
3.14.77.85.67.79.78.84.83.84.45.73.77.65.80.83.10.1.68.32.993!10
3.14.77.85.67.79.78.84.83.84.45.73.77.65.80.83.10.1.68.33.993!10
3.14.77.85.67.79.78.84.83.84.45.80.79.80.51.83.10.1.68.32.995!10
3.14.77.85.67.79.78.84.83.84.45.80.79.80.51.83.10.1.68.33.995!10
3.14.78.73.77.73.84.90.84.83.84.45.83.77.84.80.10.1.66.48.25!10
3.14.78.73.77.73.84.90.84.83.84.45.83.77.84.80.10.1.66.49.25!10
3.14.83.84.79.82.77.84.83.84.45.76.68.65.80.83.10.1.66.64.636!10
3.14.83.84.79.82.77.84.83.84.45.76.68.65.80.83.10.1.66.65.636!10

???
Back to top
omeuter



Joined: 20 Sep 2007
Posts: 2

PostPosted: Thu Sep 20, 2007 4:25 am    Post subject: Reply with quote

Hi gondo,

the problem on your query is, that the nameresolution for your real server names doesn't work. I've had also the same problem. My workaround is to change the script and print the ip instead of the name. Search for RName in the script (that's unique) and change it that it looks like below:

}elseif ($arg == "RName") {

for ($i=0;($i<sizeof($index_array));$i++) {
# $name = explode(".",gethostbyaddr($index_array[$i]["ip"]));
# print $index_array[$i]["index"] . "!" . $name[0] . "\n";
print $index_array[$i]["index"] . "!" . $index_array[$i]["ip"] . "\n";
}

regards
Oliver
Back to top
ogiljae



Joined: 04 Apr 2007
Posts: 19

PostPosted: Wed Oct 03, 2007 12:57 am    Post subject: Reply with quote

omeuter wrote:
Hi gondo,

the problem on your query is, that the nameresolution for your real server names doesn't work. I've had also the same problem. My workaround is to change the script and print the ip instead of the name. Search for RName in the script (that's unique) and change it that it looks like below:

}elseif ($arg == "RName") {

for ($i=0;($i<sizeof($index_array));$i++) {
# $name = explode(".",gethostbyaddr($index_array[$i]["ip"]));
# print $index_array[$i]["index"] . "!" . $name[0] . "\n";
print $index_array[$i]["index"] . "!" . $index_array[$i]["ip"] . "\n";
}

regards
Oliver

[quote="omeuter"]Hi gondo,

+ Running data query [11].
+ Found type = '4 '[script query].
+ Found data query XML file at 'C:/apache2.2/htdocs/cacti/resource/script_server/slb_vserver.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'c:\php\php.exe -q C:\apache2.2\htdocs\cacti\scripts\ss_slb_vserver.php 125.159.2.253 85 2:161:300:media2:::MD5::[None] index'
+ Executing script query 'c:\php\php.exe -q C:\apache2.2\htdocs\cacti\scripts\ss_slb_vserver.php x.x.x.x 85 2:161:300:media2:::MD5::[None] query VServer'
+ Executing script query 'c:\php\php.exe -q C:\apache2.2\htdocs\cacti\scripts\ss_slb_vserver.php x.x.x.x 85 2:161:300:media2:::MD5::[None] query Module'
+ Executing script query 'c:\php\php.exe -q C:\apache2.2\htdocs\cacti\scripts\ss_slb_vserver.php x.x.x.x 85 2:161:300:media2:::MD5::[None] query VName'
+ Executing script query 'c:\php\php.exe -q C:\apache2.2\htdocs\cacti\scripts\ss_slb_vserver.php x.x.x.x 85 2:161:300:media2:::MD5::[None] query Cata'
+ Executing script query 'c:\php\php.exe -q C:\apache2.2\htdocs\cacti\scripts\ss_slb_vserver.php x.x.x.x 85 2:161:300:media2:::MD5::[None] query FarmName'
+ Executing script query 'c:\php\php.exe -q C:\apache2.2\htdocs\cacti\scripts\ss_slb_vserver.php x.x.x.x 85 2:161:300:media2:::MD5::[None] query IpAddress'
+ Executing script query 'c:\php\php.exe -q C:\apache2.2\htdocs\cacti\scripts\ss_slb_vserver.php x.x.x.x 85 2:161:300:media2:::MD5::[None] query Port'
+ Found data query XML file at 'C:/apache2.2/htdocs/cacti/resource/script_server/slb_vserver.xml'
+ Found data query XML file at 'C:/apache2.2/htdocs/cacti/resource/script_server/slb_vserver.xml'
+ Found data query XML file at 'C:/apache2.2/htdocs/cacti/resource/script_server/slb_vserver.xml'

When I excuted rsever & vserver scripts I got the debug log above
I just made slb stats go. Can you let me know what i missed
Back to top
omeuter



Joined: 20 Sep 2007
Posts: 2

PostPosted: Thu Oct 04, 2007 4:22 am    Post subject: Reply with quote

Hi ogiljae,

might it be that you've an ACE module? With the ACE I see the same problem, with a CSM I don't see this problems. Since I want to have also the ACE running I'll try to figure out the problem.

best regards

Oliver
Back to top
maxamis



Joined: 26 Oct 2007
Posts: 1
Location: River Falls, Wisconsin

PostPosted: Fri Oct 26, 2007 3:10 pm    Post subject: Reply with quote

omeuter,

I am also trying to figure this out for ACE module in 6504 chassi. Have you got it working on the ACE ? I am looking to graph number of connections to the real servers of all my "serverfarms".

maxamis

omeuter wrote:
Hi ogiljae,

might it be that you've an ACE module? With the ACE I see the same problem, with a CSM I don't see this problems. Since I want to have also the ACE running I'll try to figure out the problem.

best regards

Oliver
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 1, 2  Next
Page 1 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group