Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sat Jul 21, 2018 2:22 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 41 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: CISCO SLB
PostPosted: Mon Mar 13, 2006 9:05 am 
Offline

Joined: Thu Jan 26, 2006 8:00 am
Posts: 12
Location: Switzerland
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:
File comment: 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

slb_stat.zip [8.28 KiB]
Downloaded 2395 times
Top
 Profile  
 
 Post subject: CISCO SLB Vservers
PostPosted: Mon Mar 13, 2006 9:11 am 
Offline

Joined: Thu Jan 26, 2006 8:00 am
Posts: 12
Location: Switzerland
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:
File comment: 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

slb_virtualserver.zip [8.47 KiB]
Downloaded 1805 times
Top
 Profile  
 
 Post subject: CISCO SLB Rservers
PostPosted: Mon Mar 13, 2006 9:15 am 
Offline

Joined: Thu Jan 26, 2006 8:00 am
Posts: 12
Location: Switzerland
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:
File comment: 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

slb_realserver.zip [9.29 KiB]
Downloaded 1714 times
Top
 Profile  
 
 Post subject: CISCO SLB aggregation graph
PostPosted: Mon Mar 13, 2006 9:30 am 
Offline

Joined: Thu Jan 26, 2006 8:00 am
Posts: 12
Location: Switzerland
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:
File comment: cacti_graph_template_cisco_slb_aggregation.xml
slb_aggregation.zip [3.44 KiB]
Downloaded 1369 times
Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 29, 2006 12:39 am 
Offline
Cacti User

Joined: Sun Dec 04, 2005 10:59 pm
Posts: 55
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!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 20, 2006 4:03 pm 
Offline
Cacti User

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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 20, 2006 4:05 pm 
Offline
Cacti User

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


Top
 Profile  
 
 Post subject: Re: CISCO SLB aggregation graph
PostPosted: Wed Dec 20, 2006 5:00 pm 
Offline
Cacti User

Joined: Tue Mar 22, 2005 10:11 am
Posts: 66
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 44704 times ]
Top
 Profile  
 
 Post subject: Can anyone help with this one?
PostPosted: Tue Apr 03, 2007 9:25 am 
Offline

Joined: Tue Jun 20, 2006 12:49 pm
Posts: 30
Can anyone help with this? Thanks...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 10, 2007 2:01 pm 
Offline

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 11, 2007 12:33 pm 
Offline

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

???


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 20, 2007 4:25 am 
Offline

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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 03, 2007 12:57 am 
Offline

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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 04, 2007 4:22 am 
Offline

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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 26, 2007 3:10 pm 
Offline

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 41 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group