Errors in Discovery

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

Moderators: Developers, Moderators

Post Reply
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Errors in Discovery

Post by apperrault »

Hi all,
I am trying to troubleshoot the problems i am having with the discovery plugin not adding items to Cacti. When I run

Code: Select all

php findhosts.php -f
it discovers the hosts, but it doesn't add them to Cacti nor does it setup the graphs. I am seeing the following messages when it runs from the command line:

Code: Select all

PHP Warning:  Missing argument 3 for ss_host_disk() in /var/www/cacti/scripts/ss_host_disk.php on line 23
PHP Warning:  Missing argument 4 for ss_host_disk() in /var/www/cacti/scripts/ss_host_disk.php on line 23
PHP Notice:  Undefined offset:  1 in /var/www/cacti/scripts/ss_host_disk.php on line 26
PHP Notice:  Undefined offset:  2 in /var/www/cacti/scripts/ss_host_disk.php on line 27
PHP Notice:  Undefined offset:  3 in /var/www/cacti/scripts/ss_host_disk.php on line 45
PHP Warning:  Missing argument 4 for ss_host_disk() in /var/www/cacti/scripts/ss_host_disk.php on line 23
PHP Notice:  Undefined offset:  1 in /var/www/cacti/scripts/ss_host_disk.php on line 26
PHP Notice:  Undefined offset:  2 in /var/www/cacti/scripts/ss_host_disk.php on line 27
PHP Notice:  Undefined offset:  3 in /var/www/cacti/scripts/ss_host_disk.php on line 45
PHP Warning:  Missing argument 4 for ss_host_disk() in /var/www/cacti/scripts/ss_host_disk.php on line 23
PHP Notice:  Undefined offset:  1 in /var/www/cacti/scripts/ss_host_disk.php on line 26
PHP Notice:  Undefined offset:  2 in /var/www/cacti/scripts/ss_host_disk.php on line 27
PHP Notice:  Undefined offset:  3 in /var/www/cacti/scripts/ss_host_disk.php on line 45
PHP Warning:  Missing argument 4 for ss_host_disk() in /var/www/cacti/scripts/ss_host_disk.php on line 23
PHP Notice:  Undefined offset:  1 in /var/www/cacti/scripts/ss_host_disk.php on line 26
PHP Notice:  Undefined offset:  2 in /var/www/cacti/scripts/ss_host_disk.php on line 27
PHP Notice:  Undefined offset:  3 in /var/www/cacti/scripts/ss_host_disk.php on line 45
PHP Warning:  Missing argument 3 for ss_host_cpu() in /var/www/cacti/scripts/ss_host_cpu.php on line 23
PHP Warning:  Missing argument 4 for ss_host_cpu() in /var/www/cacti/scripts/ss_host_cpu.php on line 23
PHP Notice:  Undefined offset:  1 in /var/www/cacti/scripts/ss_host_cpu.php on line 26
PHP Notice:  Undefined offset:  2 in /var/www/cacti/scripts/ss_host_cpu.php on line 27
PHP Notice:  Undefined offset:  3 in /var/www/cacti/scripts/ss_host_cpu.php on line 45
PHP Warning:  Missing argument 4 for ss_host_cpu() in /var/www/cacti/scripts/ss_host_cpu.php on line 23
PHP Notice:  Undefined offset:  1 in /var/www/cacti/scripts/ss_host_cpu.php on line 26
PHP Notice:  Undefined offset:  2 in /var/www/cacti/scripts/ss_host_cpu.php on line 27
PHP Notice:  Undefined offset:  3 in /var/www/cacti/scripts/ss_host_cpu.php on line 45
Does anyone have any ideas? I am going to post this over on the cactiusers.org forums as well.

Thanks

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I'm quite sure that this is done by an outdated script. Please fetch the current one from SVN branches/0.8.7
Reinhard
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

OK, so i downloaded the ss_host_disk.php and the ss_host_cpu.php and copied them to my system, and when i did that, none of my CPU or host graphs would function. I kept getting errors and none of them would update. I have now rolled back to the original version i had installed on my system and i will wait for the next release of Discovery, and work on it then.

thanks

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
generic_user
Posts: 28
Joined: Fri Jun 15, 2007 12:46 pm

For the Love of Pete....

Post by generic_user »

Guys-
I see several posts but no resolution on the discovery auto adding windows hosts without adding disk. Can I please get some assistance here?

Cacti Version 0.8.7e
Plugin Architecture 2.5
Poller Type Cactid v
Server Info Windows NT 5.2
Web Server Microsoft-IIS/6.0
PHP Version 5.2.11
PHP Extensions bcmath, calendar, com_dotnet, ctype, date, filter, ftp, hash, iconv, json, odbc, pcre, Reflection, session, libxml, standard, tokenizer, zlib, SimpleXML, dom, SPL, wddx, xml, xmlreader, xmlwriter, cgi-fcgi, ldap, mysql, snmp, sockets
MySQL Version 5.0.88-community-nt
RRDTool Version 1.2.30
Discovery tool .9 ??
(used the compiled windows installer)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Personally, I'd not use the automatic graph creation of discovery. As the author of AUTOM8, I advise to use that instead
R.
generic_user
Posts: 28
Joined: Fri Jun 15, 2007 12:46 pm

Graph Additions

Post by generic_user »

Yes, I came upon that in my research. I didn't see a zip of the plugin only a tgz. Do you host both or do I need to download a winextractor for that? Also, any particulars i need to know before adding the plugin?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

There's a 30page PDF which you might want to read.
R.
generic_user
Posts: 28
Joined: Fri Jun 15, 2007 12:46 pm

Good Deal

Post by generic_user »

Yes, I downloaded. Guess I have some light reading for the weekend. Thanks for the assistance.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest