scripts not run when SNMP cannot contact the host?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
sejtam
Posts: 27
Joined: Wed Feb 23, 2005 10:11 pm

scripts not run when SNMP cannot contact the host?

Post by sejtam »

I have a host from which I obtain some statistics via a cron'ed scp.
I then read that using a local script. I have no SNMP access to that host.

cacti refuses to graph this host apparently because before it runs the scripts it ping/snmp don't give results.

is there any way to override this?
frosty
Posts: 14
Joined: Mon Feb 28, 2005 3:56 pm

Post by frosty »

I have the same problem, have you found a solution yet?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

In version 0.8.6c, simply make sure that the snmp community for that host is blank. This will resolve your problem.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
frosty
Posts: 14
Joined: Mon Feb 28, 2005 3:56 pm

Post by frosty »

No, it doesn't as far as I can tell, unless you want to create two different cacti-devices for the same host. This since I'm running both SNMP-queries and for example packet-loss(ping) measuring by an external script.

As it is now the packet-loss measuring script will not be executed if the host does not answer an SNMP-query. Therefor I will never see 100% loss in my graphs.
Jansa
Posts: 1
Joined: Mon Mar 07, 2005 10:50 am

Post by Jansa »

I use cmd.php as a poller and I removed the (!$host_down) checks. This way I force my system to run the external scripts (availability and packet loss checks). Now I can also control if I want to use unknown values in responce time but at the same time I can raise the packet loss to 100% and availability to 0%. Works for me but I don't yet know about the side effects.
molshoop
Posts: 8
Joined: Mon Dec 12, 2005 8:41 am
Contact:

host-down check

Post by molshoop »

Where did you disable the host-down check?
Last edited by molshoop on Wed Sep 06, 2006 7:20 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 »

molshoop, I'm afraid, but it is possible that this post is about a backlevel cacti version. I suppose you do have problems with the Downed Host Detection, do you? Please tell us more details about this. There have already been LOTS of posts on this subject; so searching the forums may yield good results.
As a starting point, set Downed Host Detection to SNMP - Reliable.
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest