Host availibility check fails on 127.0.0.1?!

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
molshoop
Posts: 8
Joined: Mon Dec 12, 2005 8:41 am
Contact:

Host availibility check fails on 127.0.0.1?!

Post by molshoop »

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?
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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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 like

Code: Select all

wrapper.sh vpn1endpoint
and 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
molshoop
Posts: 8
Joined: Mon Dec 12, 2005 8:41 am
Contact:

Thanks

Post by molshoop »

Thanks! just what i needed!
GGB Internetworking
http://www.ggb.nl
Safe Computing our mission
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests