I'm working for a company which has around 150 vpn tunnels, on the cacti server runs a script (from the contrab) which gathers some information about these tunnels such as In/Out Bits, Latency and status.
For each tunnel a status file is written with this information
The only things cacti needs to do is "cat" the status file and make a graph of it for each tunnel. I added a device for each tunnel in cacti with ip-adres 127.0.0.1 because the script is run locally. I know that i also could add the graphs to the default localhost device but then it's hard to organize the three with all graphs attached to one host (3x 150 graphs).
I now reached some kind of limit i think because all 127.0.0.1 devices are down. And cacti doesn't execute the cat the status file anymore. How can i resolve this problem? Is there a way to disable the host availiblity check for these hosts?
Host availibility check fails on 127.0.0.1?!
Moderators: Developers, Moderators
Host availibility check fails on 127.0.0.1?!
Last edited by molshoop on Wed Sep 06, 2006 7:19 am, edited 1 time in total.
GGB Internetworking
http://www.ggb.nl
Safe Computing our mission
http://www.ggb.nl
Safe Computing our mission
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
I'd suggest another approach. Is it possible, to e.g. provide the status files with names related to the tunnel endpoints? Then, a wrapper script would be needed, that takes the endpoint name as a parameter (Data Input Method, Input Parameter selected as "hostname", Output Parameters depend on the output of the "cat" command) and fetches the correct status file.
E.g. the tunnel endpoint would be vpn1endpoint (this does not have to be a valid DNS name). The status file may be named like something_vpn1endpoint.status. The wrapper script would be called likeand cat the file something_$ARGV[0].status. Hope this is clear enough
Create a Data Template and a Graph Template. A Host Template, only containing the Graph Template would be good.
Now, you should be able to create a host for each tunnel endpoint. Set the <snmp community string> to <nothing>; this disables Downed Host Detection. And set the Host Template to your newly created one, so it will automatically associate the needed Graph Template fou you.
Reinhard
E.g. the tunnel endpoint would be vpn1endpoint (this does not have to be a valid DNS name). The status file may be named like something_vpn1endpoint.status. The wrapper script would be called like
Code: Select all
wrapper.sh vpn1endpoint
Create a Data Template and a Graph Template. A Host Template, only containing the Graph Template would be good.
Now, you should be able to create a host for each tunnel endpoint. Set the <snmp community string> to <nothing>; this disables Downed Host Detection. And set the Host Template to your newly created one, so it will automatically associate the needed Graph Template fou you.
Reinhard
Who is online
Users browsing this forum: No registered users and 0 guests