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?
Discovery 1.3 errors with 0.8.7i and PIA 3.1
Moderators: Developers, Moderators
- 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
Please add a default line for device_threads.
findhost.php beforeand afterwards
R.
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);
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);
- 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
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?
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?
Who is online
Users browsing this forum: No registered users and 0 guests