Discovery 1.3 errors with 0.8.7i and PIA 3.1

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
scline
Posts: 7
Joined: Mon Aug 15, 2011 4:41 pm

Discovery 1.3 errors with 0.8.7i and PIA 3.1

Post by scline »

When scanning and running Discovery it does not apply THOLD templates nor does it seam to see Autom8/ I get these errors when ran manually:

Host Template: Juniper SRXPHP Warning: Missing argument 23 for api_device_save(), called in /var/www/html/cacti/plugins/discovery/findhosts.php on line 513 and defined in /var/www/html/cacti/lib/api_device.php on line 97
PHP Notice: Undefined variable: device_threads in /var/www/html/cacti/lib/api_device.php on line 142
Creating Thresholds

Is there something I am doing incorrectly or something I can change to resolve?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Discovery 1.3 errors with 0.8.7i and PIA 3.1

Post by gandalf »

Please add a default line for device_threads.
findhost.php before

Code: Select all

	$snmp_context	      = $device['snmp_context'];
	$max_oids             = 10;

	$host_id = api_device_save(0, $template_id, $description, $ip,
		$community, $snmp_ver, $snmp_username, $snmp_password,
		$snmp_port, $snmp_timeout, $disable, $availability_method,
		$ping_method, $ping_port, $ping_timeout, $ping_retries,
		$notes, $snmp_auth_protocol, $snmp_priv_passphrase,
		$snmp_priv_protocol, $snmp_context, $max_oids);
and afterwards

Code: Select all

	$snmp_context	      = $device['snmp_context'];
	$max_oids             = 10;
	$device_threads		= 1;

	$host_id = api_device_save(0, $template_id, $description, $ip,
		$community, $snmp_ver, $snmp_username, $snmp_password,
		$snmp_port, $snmp_timeout, $disable, $availability_method,
		$ping_method, $ping_port, $ping_timeout, $ping_retries,
		$notes, $snmp_auth_protocol, $snmp_priv_passphrase,
		$snmp_priv_protocol, $snmp_context, $max_oids, $device_threads);
R.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Discovery 1.3 errors with 0.8.7i and PIA 3.1

Post by TheWitness »

I've updated discovery to 1.5 to address this issue.
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests