rblock
Joined: 22 Oct 2009 Posts: 3
|
Posted: Fri Oct 30, 2009 8:21 am Post subject: Cisco ACE FT Template |
|
|
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.
| Description: |
|
| Filesize: |
22.49 KB |
| Viewed: |
2038 Time(s) |

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