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    


Redirector CGI for external applications

 
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti
Author Message
Setarcos
Cacti User


Joined: 13 Dec 2004
Posts: 53
Location: San Jose, CA

PostPosted: Mon Dec 27, 2004 8:25 pm    Post subject: Redirector CGI for external applications Reply with quote

Hi Folks,

I dug around for a way of direct-linking to a specific graph in Cacti from external applications (such as Nagios) given a hostname/IP and graph template name and was unable to find anything that met my needs. The attached Perl CGI provides this functionality and has been tested with Cacti 0.8.5, but should also work with 0.8.6b/c but this has not been verified.

The redirector CGI was intended to allow templating of host/service extended info in the Notes URL from Nagios, but may be usefull for other applications as well.

Using the redirector allows you to do this:
http://localhost/cgi-bin/cacti_redirector?IP=127.0.0.1&graph=Unix%20-%20Load%20Average
instead of this:
http://localhost/cacti/graph.php?local_graph_id=2&rra_id=all&type=tree



cacti_redirector.zip
 Description:
Cacti redirector CGI

Download
 Filename:  cacti_redirector.zip
 Filesize:  1.83 KB
 Downloaded:  147 Time(s)

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group