RESOLVED! "cactid 0.8.6i not working ... ?"

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

Moderators: Developers, Moderators

2stupid4this
Posts: 19
Joined: Mon Nov 13, 2006 8:40 am

RESOLVED! "cactid 0.8.6i not working ... ?"

Post by 2stupid4this »

Hi there,

I've tried to find a solution 4 my problem for almost 2 weeks now, but nothing i read here will work.

Just like a few other people here i've the problem that Cacti doesn't graph anything if i do the switch from "cmd.php" to "cactid".

Im running Cacti on a SLES9 SP1 with NET-SNMP 5.1.80, RRDTOOL 1.2 etc.

Here are the Host-Infos:

Cacti Version 0.8.6i
Plugin Architecture 1.0
Poller Type CMD.php
Server Info Linux 2.6.5
Web Server Apache/2.2.3 (Unix) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d PHP/5.1.6 mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 Perl/v5.8.7
PHP Version 5.1.6
PHP Extensions libxml, xsl, xmlwriter, dom, xmlreader, xml, wddx, tokenizer, sysvshm, sysvsem, sybase, standard, SimpleXML, sockets, soap, SPL, shmop, session, Reflection, posix, PDO, pdo_sqlite, pdo_pgsql, pdo_mysql, mysqli, mysql, mssql, mime_magic, mhash, mcrypt, mbstring, ldap, imap, iconv, hash, gettext, gd, ftp, filepro, exif, dbase, dba, date, curl, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, apache2handler, zip, SQLite, radius, pgsql, dbx, ming
MySQL Version 5.0.24a
RRDTool Version 1.2.15
SNMP Version 5.1

---------------------------------------------

everything works fine when using cmd.php , but sadly cmd.php takes around 250 Seconds to complete :) & i still have a lot of devices to graph left.. so i urgently need cactid ..

---------------------------------------------

Here's a DEBUG Output from cacitd :

11/13/2006 01:30:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 0 2]
11/13/2006 01:30:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 3 4]
11/13/2006 01:30:02 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 5 6]
11/13/2006 01:30:03 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 7 8]
11/13/2006 01:30:04 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 9 10]
11/13/2006 01:30:06 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 11 12]
11/13/2006 01:30:07 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 13 14]
11/13/2006 01:30:08 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 15 16]
11/13/2006 01:30:09 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 17 18]
11/13/2006 01:30:10 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 19 20]
Waiting on 10/10 pollers.
Waiting on 10/10 pollers.
Waiting on 10/10 pollers.
Waiting on 10/10 pollers.
Waiting on 10/10 pollers.
Waiting on 10/10 pollers.
.
.
.
.
.
.
.
Waiting on 10/10 pollers.
Waiting on 10/10 pollers.
Waiting on 10/10 pollers.
Waiting on 10/10 pollers.
Waiting on 10/10 pollers.
Waiting on 10/10 pollers.
11/13/2006 01:34:53 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
11/13/2006 01:34:53 PM - SYSTEM STATS: Time:292.6252 Method:cactid Processes:10 Threads:5 Hosts:20 HostsPerProcess:2 DataSources:1892 RRDsProcessed:0

Warning: pclose(): 80 is not a valid stream resource in /usr/opt/lampp/htdocs/cacti/lib/rrd.php on line 47

------------------------------------------

Interestingly there's a difference in behavior.

When i first start cmd.php from a shell & afterwards the poller.php ... cactid is retrieving data, but only for the id's that were parsed by the cmd.php before ! ?

------------------------------------------

I'm done here ... :(

Help is very much appreciated

Thx...
Last edited by 2stupid4this on Thu Nov 30, 2006 5:23 am, edited 1 time in total.
2stupid4this
Posts: 19
Joined: Mon Nov 13, 2006 8:40 am

Post by 2stupid4this »

Nobody an idea here ?

:(

:-?
2stupid4this
Posts: 19
Joined: Mon Nov 13, 2006 8:40 am

Post by 2stupid4this »

Ok, this is the wrong forum ? eh..

Nobody here knows anything about Cactid ? Why didn't ya tell me before... 8)
Last edited by 2stupid4this on Wed Nov 15, 2006 4:49 am, edited 1 time in total.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

can you run the poller once at DEBUG level ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
2stupid4this
Posts: 19
Joined: Mon Nov 13, 2006 8:40 am

Post by 2stupid4this »

Hello, i thought i already posted one above, but nevertheless.. here's an fresh one :

11/15/2006 12:33:33 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 0 2]
11/15/2006 12:33:34 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 3 4]
11/15/2006 12:33:35 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 5 6]
11/15/2006 12:33:36 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 7 8]
11/15/2006 12:33:38 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 9 10]
11/15/2006 12:33:39 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 11 12]
11/15/2006 12:33:40 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 13 14]
11/15/2006 12:33:41 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 15 16]
11/15/2006 12:33:42 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 17 18]
11/15/2006 12:33:43 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 19 20]
11/15/2006 12:33:44 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 21 22]
11/15/2006 12:33:46 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 23 23]
Waiting on 12/12 pollers.
Waiting on 12/12 pollers.
Waiting on 12/12 pollers.
Waiting on 12/12 pollers.
Waiting on 12/12 pollers.
Waiting on 12/12 pollers.
Waiting on 12/12 pollers.
.
.
.
.
.
Waiting on 12/12 pollers.
Waiting on 12/12 pollers.
Waiting on 12/12 pollers.

11/15/2006 12:34:53 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
11/15/2006 12:34:53 PM - SYSTEM STATS: Time:292.2758 Method:cactid Processes:12 Threads:5 Hosts:23 HostsPerProcess:2 DataSources:1959 RRDsProcessed:0

Warning: pclose(): 64 is not a valid stream resource in /usr/opt/lampp/htdocs/cacti/lib/rrd.php on line 47

=========

Even if you can't believe it, this is at DEBUG level

I don't get any more Infos...

Btw. I tried to install Cactid by rpm AND by tar.gz .. but in the end there seems to be no difference

:(
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

12 process seems a bit high. Can you try with 1 process and 4 threads ?

Also, can you check the informations in cactid.conf ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
2stupid4this
Posts: 19
Joined: Mon Nov 13, 2006 8:40 am

Post by 2stupid4this »

Ok, i've changed to 1 process & 4 Threads..

Sth. happened :)

My PHP Poller is 3 times faster now ... thats not bad

and

the CACTID Poller used to work ONCE after a succesful polling with the PHP Poller.

But only once !? ... The second run gets no data and i get the same messages as above.

Any ideas ?
2stupid4this
Posts: 19
Joined: Mon Nov 13, 2006 8:40 am

Post by 2stupid4this »

push ^^
2stupid4this
Posts: 19
Joined: Mon Nov 13, 2006 8:40 am

Post by 2stupid4this »

Is there stil someone with me :D ?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please have a read: "NaN Debugging"; see my signature
Reinhard
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Try and run the poller under the root's cron and see if that helps. It's quite odd. Another easy fix is to simply run "./cactid 0 15" or something along those lines from a shell.

TheWitness
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?
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Also, just in case there is a bug, can you goto the Settings->Poller table and hit the save button just in case...

TheWitness
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?
2stupid4this
Posts: 19
Joined: Mon Nov 13, 2006 8:40 am

Post by 2stupid4this »

Hi there..

@gandalf - i read your guide, but i dont have problems with nan graphs ;-)

@TheWitness

Tried running "cactid 0 15" under the cactiuser & root ..both times i got :

CACTID: Using cactid config file [/etc/cactid.conf]
CACTID:

Nothing more, nothing less ... :(

Oh & to prevent the question ... i've triple checked my configuration in /etc/cactid.conf ... it's the same than in include/config.php ;-)

Perhaps some of my libraries are not 100% compatible to the cactid ? I was able to compile it, but perhaps sth. has still gone wrong there !?

Ok, just for the case i'm really 2 stupid - i've hitted the save butten a hundred times :)

But no change happenend.

Anything else i can try ?
2stupid4this
Posts: 19
Joined: Mon Nov 13, 2006 8:40 am

Post by 2stupid4this »

Ok, just tried to run the job as root... but nothing changed...

.
.
.
.
OK u:0.08 s:0.39 r:5.09
OK u:0.08 s:0.39 r:5.09
OK u:0.08 s:0.39 r:5.10
OK u:0.08 s:0.39 r:5.10
OK u:0.08 s:0.39 r:5.09
OK u:0.08 s:0.39 r:5.09
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.

Looks like cactid can't stop the job..just in the moment it should be done..it hangs and is waitung till time is up :(


Next run with cactid showed this ..

11/23/2006 08:47:19 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid/bin/cactid, ARGS: 0 23]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
.
.
.

and so on...

These days I'll try to setup a fresh install on an ubuntu server.. will see if that help..

Check you back in here ;-)
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

How did you install cactid? If you run "ldd cactid" what do you get? Did you have debug turned on? What version of MySQL are you running? It's always better, when you have problems like this to first build from source.

TheWitness
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest