Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Discovery Plugin Error

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin General
Author Message
anakemak



Joined: 13 Jul 2006
Posts: 10
Location: Malaysia

PostPosted: Thu Nov 22, 2007 4:11 am    Post subject: Discovery Plugin Error Reply with quote

Hi,

Could anyone explain how to solve this error as it happens when i view the discover tab and try to add one host.

Quote:
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

Quote:
Error: Save Failed: Field Input Error (Check Red Fields).
Back to top
paa02002



Joined: 26 Nov 2007
Posts: 1

PostPosted: Mon Nov 26, 2007 12:27 pm    Post subject: Reply with quote

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:

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
Back to top
NivenHuH



Joined: 28 Nov 2007
Posts: 4
Location: SF, CA

PostPosted: Wed Nov 28, 2007 2:07 pm    Post subject: Reply with quote

This solution worked for me too... Thanks!
Back to top
guigzmorez



Joined: 03 Dec 2007
Posts: 7

PostPosted: Mon Dec 03, 2007 1:24 pm    Post subject: Discovery Plugin Cre Reply with quote

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
Back to top
looc
Cacti User


Joined: 13 Aug 2007
Posts: 110

PostPosted: Tue Mar 11, 2008 2:39 am    Post subject: Reply with quote

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:

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
Quote:
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin General All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group