Discovery Plugin Error

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
anakemak
Posts: 10
Joined: Thu Jul 13, 2006 2:33 pm
Location: Malaysia
Contact:

Discovery Plugin Error

Post by anakemak »

Hi,

Could anyone explain how to solve this error as it happens when i view the discover tab and try to add one host.
Notice: Undefined index: max_oids in /var/www/html/cacti/host.php on line 160

Warning: Cannot add header information - headers already sent by (output started at /var/www/html/cacti/host.php:160) in /var/www/html/cacti/host.php on line 164
Try to google but didn't appear any solution

should i chown any files to allow it to add new host or does anyone have ideas...?

i also receive this error when i click console tab
Error: Save Failed: Field Input Error (Check Red Fields).
.:: Anak Emak ::.
paa02002
Posts: 1
Joined: Mon Nov 26, 2007 12:24 pm

Post by paa02002 »

This should fix most problems you're having. You'll need to add the following code around the line number mentioned for discover.php - you should see similar code already in those lines.

Code: Select all

discover.php: line 263
$max_oids       = read_config_option("max_get_size");
$ping_method    = read_config_option("ping_method");
$availability_method    = read_config_option("availability_method");


discover.php: line 315
<input type=hidden name=_host_template_id value=0>
<input type=hidden name=max_oids value='$max_oids'>
<input type=hidden name=ping_method value='$ping_method'>
<input type=hidden name=availability_method value='$availability_method'>
You can also edit the 'description' hidden input (down in line 315) and change it from an empty value to use the value of the 'sysName' result so that the "Add" button completes in one step. This is left as an exercise for the reader :)
NivenHuH
Posts: 4
Joined: Wed Nov 28, 2007 2:07 pm
Location: SF, CA

Post by NivenHuH »

This solution worked for me too... Thanks!
guigzmorez
Posts: 14
Joined: Mon Dec 03, 2007 12:50 pm

Discovery Plugin Cre

Post by guigzmorez »

I have cacti release 0.8.7a and installed the discovery plugin.
This is a very interesting feature.
I have tried it but noticed that it didn't create graphs.
Discover :
-Associates devices to templates
-Creates devices
-Creates tree leaf
-Don't create the graph

The devices are associated with a template.
Devices are Solaris servers.
To create graph, I have to go inside the device menu and "create graph for this host"

Does anybody know why ?
Does discovery graph creation work only with network elements?

Guillaume :wink:
looc
Cacti User
Posts: 110
Joined: Mon Aug 13, 2007 3:40 am

Post by looc »

paa02002 wrote:This should fix most problems you're having. You'll need to add the following code around the line number mentioned for discover.php - you should see similar code already in those lines.

Code: Select all

discover.php: line 263
$max_oids       = read_config_option("max_get_size");
$ping_method    = read_config_option("ping_method");
$availability_method    = read_config_option("availability_method");


discover.php: line 315
<input type=hidden name=_host_template_id value=0>
<input type=hidden name=max_oids value='$max_oids'>
<input type=hidden name=ping_method value='$ping_method'>
<input type=hidden name=availability_method value='$availability_method'>
You can also edit the 'description' hidden input (down in line 315) and change it from an empty value to use the value of the 'sysName' result so that the "Add" button completes in one step. This is left as an exercise for the reader :)
i am add sysName to discover.php
Notice: Undefined index: _host_template_id in /www/cacti/host.php on line 163

Warning: Cannot modify header information - headers already sent by (output started at /www/cacti/host.php:163) in /www/cacti/host.php on line 164
Cacti Version - 0.8.7 & spine
Plugin Architecture - 1.3
Server Info - Windows 2003 EP
Web Server -IIS6.0
PHP - 5.2.3
MySQL - 4.1.10
RRDTool - 1.2.15
SNMP - 5.4.1
--------------------------
plugins:
reportit 0.5.1|monitor 0.8.1|thold 0.3.8
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests