cactid 0.8.6d problems

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
_alex_
Posts: 17
Joined: Wed Feb 02, 2005 12:20 pm

cactid 0.8.6d problems

Post by _alex_ »

I have a big amount of host and would like using Cactid, but it doesn't like me :(

when i am runnig cactid from cli i have these few lines.

Code: Select all

[hostaname]#/var/www/cacti$/opt/php/bin/php poller.php 
02/02/2005 06:09:29 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /var/www/cacti/cactid, ARGS:  0 47]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
02/02/2005 06:14:26 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
in cacti.log i have this

Code: Select all

02/02/2005 06:09:29 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /var/www/cacti/cactid, ARGS:  0 47]
02/02/2005 06:14:26 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.

Does someone know what I might be done bad.
If I use cmd.php instead of Cactid all work nice but it's too slow.

php 4.3.3
cactid 0.8.6d
cacti 0.8.6c
net-snmp 5.0.1

thanks for any help and please excuse my english
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Ok, have you edited the cactid.conf file and make sure it's in the same directory as cactid?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
_alex_
Posts: 17
Joined: Wed Feb 02, 2005 12:20 pm

Post by _alex_ »

yes sir :D
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

What OS are you running?

And what happens when you execute cactid from the command line?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
_alex_
Posts: 17
Joined: Wed Feb 02, 2005 12:20 pm

Post by _alex_ »

os : linux

when running cactid from cli i'am this output

Code: Select all

[resprod]/var/www/cacti$./cactid 
CACTID: Using cactid config file [cactid.conf]
and after that nothing
ssams
Cacti User
Posts: 65
Joined: Tue Feb 01, 2005 5:54 pm
Location: Texas
Contact:

Post by ssams »

i had the exact same issue. did you ever find the problem?

mine was the datbase name in cactid.conf. i was off a letter and didnt realize it. change that and it works like a champ.

now on to inject/tackle the next problem..
User avatar
solefald
Posts: 38
Joined: Fri Jun 11, 2004 1:35 pm

Post by solefald »

I am having exactly the same issue.
cactid seems to run bu then exits with the 296 second time out message.


cmd.php still works fine.

RedHat 7.3
PHP 4.3.3
Cacti 0.8.6c
Cactid 0.8.6d

cactid and cactid.conf are in the same directory


i
ssams
Cacti User
Posts: 65
Joined: Tue Feb 01, 2005 5:54 pm
Location: Texas
Contact:

Post by ssams »

did you verify the settings in cactid.conf?

one other thing i failed to mention is that somehow i had completely skipped over my net-snmp install. device adds and queries were working fine - i guess another snmp was installed although i didnt do it. musta been on system install.

anyways, my point is that i completely removed my cactid dir and poller.php exhibited the same symptoms. once i fixed my cactid.conf it worked great.
User avatar
solefald
Posts: 38
Joined: Fri Jun 11, 2004 1:35 pm

Post by solefald »

yes, cactid.conf is correct
net-snmp-5.2.1 is installed

configure script for cactid correctly found everything
including net-snmp and libcrypto

Code: Select all

checking for mysql_init in -lmysqlclient... yes
checking for mysql_thread_init in -lmysqlclient... yes
checking if UCD-SNMP needs crypto support... no
checking if Net-SNMP needs crypto support... yes
checking for CRYPTO_free in -lcrypto... yes
checking for snmp_timeout in -lnetsnmp... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/config.h
config.status: executing depfiles commands
it runs fine and then exits with

Code: Select all

Maximum runtime of 296 seconds exceeded. Exiting.
and no data is being collected.
if i reenable cmd.php everything starts
to work just fine...
User avatar
solefald
Posts: 38
Joined: Fri Jun 11, 2004 1:35 pm

Post by solefald »

Upgrading to php-4.3.10 fixed thhe issue.

Poller time is down from 140 to 11 secongs.
sweeet!
_alex_
Posts: 17
Joined: Wed Feb 02, 2005 12:20 pm

Post by _alex_ »

I didn't solve this problem , but i didn't try to use a newer version of php.

So i have make a strace of poller.php, and in trace in can see that it make polling, getting some values but receive a lot of theses call:

Code: Select all

read(3, 0x836d4b0, 8192)                = -1 EAGAIN (Resource temporarily unavailable)
is it normal ?
mojo
Posts: 1
Joined: Thu Feb 24, 2005 7:56 am

Re: cactid 0.8.6d problems

Post by mojo »

try to compile cacitd source include the mysql path.
_alex_ wrote:I have a big amount of host and would like using Cactid, but it doesn't like me :(

when i am runnig cactid from cli i have these few lines.

Code: Select all

[hostaname]#/var/www/cacti$/opt/php/bin/php poller.php 
02/02/2005 06:09:29 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /var/www/cacti/cactid, ARGS:  0 47]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
02/02/2005 06:14:26 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
in cacti.log i have this

Code: Select all

02/02/2005 06:09:29 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /var/www/cacti/cactid, ARGS:  0 47]
02/02/2005 06:14:26 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.

Does someone know what I might be done bad.
If I use cmd.php instead of Cactid all work nice but it's too slow.

php 4.3.3
cactid 0.8.6d
cacti 0.8.6c
net-snmp 5.0.1

thanks for any help and please excuse my english
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests