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 ACE FT Template

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
rblock



Joined: 22 Oct 2009
Posts: 3

PostPosted: Fri Oct 30, 2009 8:21 am    Post subject: Cisco ACE FT Template Reply with quote

I have created a perl script and templates for linux for graphing the FT (fault-tolerant) status of the Cisco ACE. The query is done via the ACE XML API via https as the ACE does not populate the FT OIDs. The script file can easily be modified to use http instead of https by changing in the script file ace_ft.pl

line 17 from my $node = $ARGV[0] . ":443";
to
my $node = $ARGV[0] . ":80";
and
line 21 from my $url = "https://" . $node . "/bin/xml_agent";
to
my $url = "http://" . $node . "/bin/xml_agent";

You also need to set your username and password in lines 22 and 23. Make sure you have the following perl cpan modules installed on your system:
Crypt::SSLeay or IO::Socket::SSL *if using https
LWP::UserAgent;
HTTP::Request::Common
XML::Simple
XML::XPath
Data::Dumper

The ACE setup in my network is multiple context mode, so the graph template was created for this. If you are not running multiple contexts, you can modify the graph template and remove "Context" from the graph title if needed. The script should still work the same. The ace_ft.xml needs to go in |path_cacti|/resource/script_queries/ dir and ace_ft.pl in |path_cacti|/scripts/ dir. Make sure you set permissions for world to read so that the cacti user can execute the script. I also set the status values to reflect the same values of what would have been returned by snmp per oid .1.3.6.1.4.1.9.9.254.1.10.1.1.7. I will be creating templates to monitor serverfarms, rservers, etc and will post them when completed. Combine these graphs with tholds and you get an effective alerting system system.



ace_ft_graph_image.png
 Description:
 Filesize:  22.49 KB
 Viewed:  2038 Time(s)

ace_ft_graph_image.png



cacti_template_cisco_ace_ft_status.zip
 Description:

Download
 Filename:  cacti_template_cisco_ace_ft_status.zip
 Filesize:  9.15 KB
 Downloaded:  26 Time(s)

Back to top
Linegod
Developer


Joined: 20 Feb 2003
Posts: 948
Location: Canada

PostPosted: Fri Oct 30, 2009 6:27 pm    Post subject: Reply with quote

If you get a chance, please post these to the Template Site:

http://docs.cacti.net/templates

http://docs.cacti.net/templates.guidelines
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
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group