Netscaler VSVR Table Graphing Template - Complete!

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

Moderators: Developers, Moderators

Post Reply
User avatar
rcaston
Cacti User
Posts: 204
Joined: Tue Jan 06, 2004 7:47 pm
Location: US-Dallas, TX
Contact:

Netscaler VSVR Table Graphing Template - Complete!

Post by rcaston »

# UPDATED XML ATTACHMENTS ON 2007-05-30 #

I managed to create a functional template and xml query for graphing the traffic statistics of any VSVR (Virtual Server) on a Netscaler device.


Feel free to make any improvements and post them; I'd love to see more input fields added to the query.


Anyways, I hope this helps some of you with netscalers.
Attachments
cacti_host_template_netscaler_load_balancer_595.xml
Import Normally (updated)
(176.42 KiB) Downloaded 1585 times
cacti_data_query_netscaler_service_table.xml
Import Normally
(16.58 KiB) Downloaded 1309 times
cacti_data_template_netscaler_vsvr_table.xml
Import Normally
(7.19 KiB) Downloaded 1332 times
cacti_graph_template_netscaler_vsvr_table.xml
Import Normally
(14.51 KiB) Downloaded 1263 times
ns-servicetable.xml
The XML Resource File:
(copy file to <path_cacti>/resource/snmp_queries/ns-servicetable.xml)
(1.33 KiB) Downloaded 1449 times
Last edited by rcaston on Wed May 30, 2007 12:22 pm, edited 9 times in total.
User avatar
rcaston
Cacti User
Posts: 204
Joined: Tue Jan 06, 2004 7:47 pm
Location: US-Dallas, TX
Contact:

Next Step

Post by rcaston »

# Removed
Last edited by rcaston on Thu Feb 08, 2007 7:55 am, edited 2 times in total.
renef
Posts: 5
Joined: Tue Jan 30, 2007 11:42 am

Netscaler templates

Post by renef »

okay. I'm forced to post a question. I can't get these Netscaler templates to work. Are there any docs somewhere that I may have missed? I have been at this for hours now and I even went to the Cacti docs (which are not too clear on templates)

I've imported the 4 templates into Cacti. I have successfully imported and used other XML templates. I don't think I'm crazy... well let me re-check that.

any help you can offer would be greatly appreciated.
User avatar
rcaston
Cacti User
Posts: 204
Joined: Tue Jan 06, 2004 7:47 pm
Location: US-Dallas, TX
Contact:

Re: Netscaler templates

Post by rcaston »

renef wrote:I've imported the 4 templates into Cacti. I have successfully imported and used other XML templates. I don't think I'm crazy... well let me re-check that.
Just in case there were problems with the original attachments, I have re-uploaded them. I have also added a fifth template (the data query template) to make things more simple.

Go ahead and delete what you have now and just download all 5 xml new files in my original post; then follow the install document below.

INSTALL DOCUMENT:

STEP 1: Import 4 Templates

To install these files all you need to do is use the cacti import on the four following files:
1. import cacti_data_query_netscaler_service_table.xml
2. import cacti_data_template_netscaler_vsvr_table.xml
3. import cacti_graph_template_netscaler_vsvr_table.xml
4. import cacti_host_template_netscaler_load_balancer

STEP 2: Install the resource xml on your cacti server.

5. Download the "ns-servicetable.xml" and copy the file to the following path on your cacti server:
<path_cacti>/resource/snmp_queries/ns-servicetable.xml


That should be it.
noxis
Posts: 3
Joined: Wed May 30, 2007 10:21 am

Re: Netscaler templates

Post by noxis »

rcaston wrote:
renef wrote:I've imported the 4 templates into Cacti. I have successfully imported and used other XML templates. I don't think I'm crazy... well let me re-check that.
Just in case there were problems with the original attachments, I have re-uploaded them. I have also added a fifth template (the data query template) to make things more simple.

Go ahead and delete what you have now and just download all 5 xml new files in my original post; then follow the install document below.

INSTALL DOCUMENT:

STEP 1: Import 4 Templates

To install these files all you need to do is use the cacti import on the four following files:
1. import cacti_data_query_netscaler_service_table.xml
2. import cacti_data_template_netscaler_vsvr_table.xml
3. import cacti_graph_template_netscaler_vsvr_table.xml
4. import cacti_host_template_netscaler_load_balancer

STEP 2: Install the resource xml on your cacti server.

5. Download the "ns-servicetable.xml" and copy the file to the following path on your cacti server:
<path_cacti>/resource/snmp_queries/ns-servicetable.xml


That should be it.
I've done all this but there is no graph template showing up and nothing is associated with the "Netscaler Load Balancer" template when I add a new device.
User avatar
rcaston
Cacti User
Posts: 204
Joined: Tue Jan 06, 2004 7:47 pm
Location: US-Dallas, TX
Contact:

Re: Netscaler templates

Post by rcaston »

noxis wrote: I've done all this but there is no graph template showing up and nothing is associated with the "Netscaler Load Balancer" template when I add a new device.
Hrm, my error; the host template was not associated with the graph template; tho you can manually fix this by associating/adding it yourself; or you can download my updated host template.

Either way.
maw
Posts: 34
Joined: Wed Mar 07, 2007 2:26 am
Location: Vancouver, Canada

Post by maw »

Hi rcaston,

Great templates and thank you for sharing. I have a posted a question that has come up with me trying to implement your templates. The post can be found here: http://forums.cacti.net/viewtopic.php?t=22015

any help would be appreciated - I dont think this is an issue with templates.
:: FreeBSD6.2 - Apache 1.3.37+mod_ssl - PHP 5.2.1 - MySQL 5.0 ::
bigear
Posts: 7
Joined: Tue Oct 31, 2006 2:07 pm

netscaler template

Post by bigear »

Great template rcaston!!! I am able to create graphs for most of my vservers. But on quit of few vservers, I can only see the vserver ip info. vserver name info is not displayed on the vserver template. I found out those vservers all have longer OID than the vservers that can display graphs. Not sure if you guys have this kind of issue before, any help would be appreciated.
Attachments
netscaler.JPG
netscaler.JPG (38.91 KiB) Viewed 17330 times
yardus9
Cacti User
Posts: 77
Joined: Tue Jan 27, 2004 5:32 pm

OID Prepending Problem

Post by yardus9 »

Hello,
I have been using these templates for a while, and am now in the process of replicating/upgrading my cacti instances. I came across this odd problem with these templates.

Here is what I am seeing in my 0.8.7 poller cache:

Host: nss1.xxxx , SNMP Query: Netscaler - VS Bandwidth
Index: 18.116.114.97.118.101.108.46.110.121.116.105.109.101.115.46.99.111.109 , Field Name: vsvrName , Field Value: XXXX.com
OID: .1.3.6.1.4.1.5951.4.1.3.1.1.1.18.116.114.97.118.101.108.46.110.121.116.105.109.101.115.46.99.111.109

When I migrate to 0.8.7i on another server, here is the poller cache:

Host: nss1.xxxx , SNMP Query: Netscaler - VS Bandwidth
Index: 1.3.6.1.4.1.5951.4.1.3.1.1.1.18.116.114.97.118.101.108.46.110.121.116.105.109.101.115.46.99.111.109 , Field Name: vsvrName , Field Value: XXXX.com
OID: .1.3.6.1.4.1.5951.4.1.3.1.1.1.1.3.6.1.4.1.5951.4.1.3.1.1.1.18.116.114.97.118.101.108.46.110.121.116.105.109.101.115.46.99.111.109

As you can see it seems to be prepending
.1.3.6.1.4.1.5951.4.1.3.1.1.1.
to the OIDS.

Anybody have an idea what is going on here?

Thanks
yardus9
Cacti User
Posts: 77
Joined: Tue Jan 27, 2004 5:32 pm

Post by yardus9 »

So,
I read the above link to this post:

http://forums.cacti.net/viewtopic.php?t=22015

And changed this line in the template:
<oid_index_parse>OID/REGEXP:^.{28}\.(.*)</oid_index_parse>

I am not sure why or how. But this has resolved my problem.
pflaherty
Posts: 5
Joined: Mon Mar 17, 2008 3:06 pm

Re: Netscaler VSVR Table Graphing Template - Complete!

Post by pflaherty »

I'm a pretty big fan of this template, but it doesn't appear to work on a new install of 0.8.8a. The data query seems to work, all my virtual servers show up in the query, but the graphs stay saying -nan.

Whats the best way to debug this sort of issue?

Patrick
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests