CISCO SLB

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

Moderators: Developers, Moderators

DanielG
Posts: 12
Joined: Thu Jan 26, 2006 8:00 am
Location: Switzerland
Contact:

CISCO SLB

Post by DanielG »

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 |
Attachments
slb_stat.zip
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
(8.28 KiB) Downloaded 2859 times
DanielG
Posts: 12
Joined: Thu Jan 26, 2006 8:00 am
Location: Switzerland
Contact:

CISCO SLB Vservers

Post by DanielG »

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 |
Attachments
slb_virtualserver.zip
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
(8.47 KiB) Downloaded 2341 times
DanielG
Posts: 12
Joined: Thu Jan 26, 2006 8:00 am
Location: Switzerland
Contact:

CISCO SLB Rservers

Post by DanielG »

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 |
Attachments
slb_realserver.zip
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
(9.29 KiB) Downloaded 2263 times
DanielG
Posts: 12
Joined: Thu Jan 26, 2006 8:00 am
Location: Switzerland
Contact:

CISCO SLB aggregation graph

Post by DanielG »

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 |
Attachments
slb_aggregation.zip
cacti_graph_template_cisco_slb_aggregation.xml
(3.44 KiB) Downloaded 1929 times
evilzardoz
Cacti User
Posts: 55
Joined: Sun Dec 04, 2005 10:59 pm

Post by evilzardoz »

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!
jrichardson
Cacti User
Posts: 66
Joined: Tue Mar 22, 2005 10:11 am

Post by jrichardson »

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]
jrichardson
Cacti User
Posts: 66
Joined: Tue Mar 22, 2005 10:11 am

Post by jrichardson »

You also need cisco_slb_stats.xml in the snmp_queries directory
jrichardson
Cacti User
Posts: 66
Joined: Tue Mar 22, 2005 10:11 am

Re: CISCO SLB aggregation graph

Post by jrichardson »

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
Attachments
Aggregation.jpg
Aggregation.jpg (112.77 KiB) Viewed 53797 times
bidzer
Posts: 30
Joined: Tue Jun 20, 2006 12:49 pm

Can anyone help with this one?

Post by bidzer »

Can anyone help with this? Thanks...
gondo
Posts: 25
Joined: Tue Oct 19, 2004 12:05 pm
Location: Oxford, OH

Post by gondo »

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.
gondo
Posts: 25
Joined: Tue Oct 19, 2004 12:05 pm
Location: Oxford, OH

Post by gondo »

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

???
omeuter
Posts: 2
Joined: Thu Sep 20, 2007 4:09 am

Post by omeuter »

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
ogiljae
Posts: 19
Joined: Wed Apr 04, 2007 11:15 pm

Post by ogiljae »

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
omeuter wrote: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
omeuter
Posts: 2
Joined: Thu Sep 20, 2007 4:09 am

Post by omeuter »

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
maxamis
Posts: 2
Joined: Fri Oct 26, 2007 3:06 pm
Location: River Falls, Wisconsin

Post by maxamis »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests