Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Wed Apr 16, 2014 6:01 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 39 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: My updated ACE scripts
PostPosted: Fri Sep 11, 2009 7:19 am 
Offline

Joined: Fri Sep 11, 2009 7:08 am
Posts: 13
Hi,

I made some updates to the ace templates here to support Real Server monitoring, and to convert them to work as a script server (this was a massive performance boost for me).

It's the first time I've exported a template and scripts, but I hope it's of some use.


Attachments:
File comment: Cisco ACE Templates
cacti_ace_template.zip [24.24 KiB]
Downloaded 1612 times
Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 16, 2009 6:59 am 
Offline

Joined: Thu Jan 22, 2009 4:45 pm
Posts: 4
@tcolgate: thanks, great work! the templates seem to work fine. i'll take a closer look at them in some days, when the graphs contain some data.



i have an issue with the connection graphs (see screenshot). how do i get rid of the m,k etc. units? i already changed all values in the graph template to "exact numbers" which works only for the numeric values in the legend. same problem before updating to tcolgate's templates.


Attachments:
cacti.JPG
cacti.JPG [ 70.81 KiB | Viewed 8756 times ]
Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 21, 2009 4:53 am 
Offline

Joined: Fri Sep 11, 2009 7:08 am
Posts: 13
Crazyachmed wrote:
i have an issue with the connection graphs (see screenshot). how do i get rid of the m,k etc. units? i already changed all values in the graph template to "exact numbers" which works only for the numeric values in the legend. same problem before updating to tcolgate's templates.


Setting "Unit Exponent Value" to zero on the graph template should do what you want.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 22, 2009 2:29 am 
Offline

Joined: Thu Jan 22, 2009 4:45 pm
Posts: 4
ah, thanks again :D


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 23, 2009 2:38 am 
Offline

Joined: Thu Jan 22, 2009 4:45 pm
Posts: 4
we have this application running over a bazillion ports on four ace clusters. i needed a better way to monitor the load than the ~400 vserver graphs per cluster, so i created a new graph: concurrent connections per system (context)

the value is actually a bit more than concurrent client connections, i think the ace also counts the probe connections onto this value. you can get the same value on the cli with "sh stats conn" or "sh conn count". in my case i have about 80k connections that include ~3k other connections

at the moment i do not remember the command my colleague used to display the counter for the different connections types. i'll ask him later.

this template only includes the new graph


Attachments:
cacti_graph_template_cisco_ace_-_system_concurrent_connections.xml [15.49 KiB]
Downloaded 772 times
graph_image.jpg
graph_image.jpg [ 21.67 KiB | Viewed 8670 times ]
Top
 Profile  
 
 Post subject: Interface graphs but no connection graphs
PostPosted: Fri Oct 02, 2009 11:45 am 
Offline

Joined: Thu Oct 01, 2009 4:47 pm
Posts: 2
Has anyone seen this issue with this template? I am able to get the graphs for the interfaces and vlans for the ACE but not the vserver connections. when I debug the graph I get the following

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="*************************" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Connections" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/phx-ace_hctotal_228.rrd":NumberOfC:AVERAGE \
DEF:b="/var/lib/cacti/rra/phx-ace_hctotal_228.rrd":NumberOfC:MAX \
CDEF:cdefe=a,UN,INF,UNKN,IF \
AREA:a#157419FF:"Current Connections" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" \
AREA:cdefe#8F9286FF:""
RRDTool Says:

OK


Attachments:
untitled.jpg
untitled.jpg [ 24.25 KiB | Viewed 8543 times ]
Top
 Profile  
 
 Post subject: anyone graphing ACE VIP traffic?
PostPosted: Fri Oct 02, 2009 2:00 pm 
Offline

Joined: Fri Oct 02, 2009 1:59 pm
Posts: 1
if so, via oid? template?


Top
 Profile  
 
 Post subject: Blank Graph cont.
PostPosted: Fri Oct 02, 2009 2:23 pm 
Offline

Joined: Thu Oct 01, 2009 4:47 pm
Posts: 2
when I run the following command from the command line I do get an output
/usr/bin/php -q /usr/share/cacti/site/scripts/ss_ace_vserver.php xx.xxx.xxx.1 33 2:161:500:snmpstring:::MD5::[None] NumberOfC 1.44


this command returns a value for 1109 which somewhat compairs to the value of the total number of the rserver connections, is there a way to see what the graph data really is or has been put into the history?

Thanks for your help

Update---
the log file shows the following
2009 12:50:08 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_name, time, output) values (227, 'NumberOfC', '2009-10-02 12:50:07', 'U')"
10/02/2009 12:50:08 PM - CMDPHP: Poller[0] Host[33] DS[227] CMD: /usr/share/cacti/site/scripts/ss_ace_vserver.php xx.xx.xx.xxx 2:161:500:snmpstring:::MD5::[None] get NumberOfC 1.43, output: U
10/02/2009 12:50:08 PM - CMDPHP: Poller[0] Host[33] DS[227] WARNING: Result from CMD not valid. Partial Result:




Update: Well looks like I got the data graphing now... however, can anyone explain why I have values such as 491.87 as a current connection value? how do I have a fraction of a connection?

Thanks again


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 16, 2009 8:13 am 
Offline

Joined: Fri Sep 11, 2009 7:08 am
Posts: 13
I had a problem with the original template due to the way the indexes work out. A VServer name (or rserver) name alone can't make up the index as it might not be unique, so I added the actual full (oid style) index, so that gets picked as it will always be unique. It looks ugly in the list, but it works.

I'm not sure about your floating point values for the server connections. The stuff you get out of rrd is averaged, so that woud make sense, but you should get a float value returned from the snmp query (that wouldn't make any sense at all).


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 29, 2009 8:58 am 
Offline
Cacti User
User avatar

Joined: Wed Aug 03, 2005 4:14 am
Posts: 61
Location: Cologne Germany
First of all thanks for the host template. Unfortunately i have a slight problem with the two php scripts being executed. We are using SNMP v3 and the password passed on to the script contains special characters. Executing the script therefore fails from within cacti.

The debug query output looks like this.

Code:
Executing script query '/usr/bin/php5 -q /srv/www/htdocs/cacti/scripts/ss_ace_rserver.php 1.2.3.4 65 3:161:500::User:PassB%fhG8&tword:MD5::[None] query RealName'


As you might see the sample password contains % and & characters. If i change the password to something like "passw0rd" the script runs fine.

Does anyone have a clue how to adjust the underlying ss_ace_rserver.php and ss_ace_vserver.php scripts to escape the special characters or print the password quoted?

Thanks for reading

ScOp3

_________________
fear leads to anger, anger leads to hate and dancing leads to sex!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 15, 2010 4:50 am 
Offline

Joined: Fri Sep 11, 2009 7:08 am
Posts: 13
That looks like it could possibly be a slightly wider issue in cacti. You coudl try quoting |host_snmp_password| in the XML templates, perhaps that might help? It's not a problem with the scripts (the issue occurs before the script runs), it's how cacti goes about launching it.
The XMl tell cacti how to launch it, but I'm not sure how much control you really have.

Good lcuk


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 02, 2010 5:14 am 
Offline
Cacti User
User avatar

Joined: Wed Aug 03, 2005 4:14 am
Posts: 61
Location: Cologne Germany
tcolgate wrote:
That looks like it could possibly be a slightly wider issue in cacti. You coudl try quoting |host_snmp_password| in the XML templates, perhaps that might help? It's not a problem with the scripts (the issue occurs before the script runs), it's how cacti goes about launching it.
The XMl tell cacti how to launch it, but I'm not sure how much control you really have.

Good lcuk


Hey,

thanks for a reply. I created a workaround using a simple password but i agree that this is possibly related to the way cacti hands over the arguments/variables.

Anyhow i just noticed, that the latest ACE update broke the templates (A2(2.3)). You had any luck in fixing this issue so far?

Regards

ScOp3

_________________
fear leads to anger, anger leads to hate and dancing leads to sex!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 02, 2010 6:03 am 
Offline

Joined: Fri Sep 11, 2009 7:08 am
Posts: 13
I am running 2.3 here and it's still working for me (A2_2_3)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 15, 2010 4:51 am 
Offline

Joined: Tue Apr 29, 2008 11:11 am
Posts: 25
I've successfully imported the 'cacti_host_template_cisco_ace_load_balancer.xml' but when trying to import either the 'ace_rserver.xml' or 'ace_rserver.xml' templates I don't get the confirmation screen after the import.

I can see the data templates under 'Data Templates' but they don't appear in the 'Associated Graph Templates' when I try to attach them to a host. I do see the 'Cisco ACE CPU' but nothing else, I'm guessing this is because the templates aren't importing correctly.

Any ideas how I can see what's going wrong?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 25, 2010 1:26 pm 
Offline

Joined: Wed Mar 03, 2010 9:21 am
Posts: 1
Hi Folks-

I'm afraid I'm not having any luck with this template. Does anyone have this running against an ACE 4710, Version A3(2.4)?

When I run the data query for vservers, I only get one of my server farms. And the rserver query doesn't return anything. Did Cisco change their OIDs? I'm running Cacti 0.8.7e

Best regards,
Rich


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: Majestic-12 [Bot] and 5 guests


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