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    


Need Help 0.8.6 : Impossible to display any graph

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions
Author Message
Didier
Guest





PostPosted: Tue Aug 24, 2004 8:56 am    Post subject: Need Help 0.8.6 : Impossible to display any graph Reply with quote

Hello,

I've installed for the first time cacti on a Linux Suse machine in my company (the previous versions were working beacuse one of my colleague has already installed it)

I have tried the same tests than I have done at home on a Windows XP box (it was working some releases ago)

- create an data input methods : script/command
- create a device (not attached to any template)
- create a data source with this device and data input method
- create from Graph Management menu a graph -(not associated to any template, but the data source just created)

As you can see below "test_didier.php" (last line), it seems that the data source works well but there i no graph displayed. In fact RRD are not created, I don't understand why.

Can anybody give some points to check to help me in solving this problem ?
More precisely in the code where is the creation of the RRD ?
Where can I put trace to understand exactly what's happening ?


Thanks for any help

Didier




08/24/2004 03:45:28 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
08/24/2004 03:45:28 PM - CMDPHP: Poller[0] Host[1] SNMP: Device does not require SNMP
08/24/2004 03:45:28 PM - CMDPHP: Poller[0] Host[1] No host availability check possible for '127.0.0.1'.
08/24/2004 03:45:28 PM - CMDPHP: Poller[0] Host[1] CMD: perl /srv/www/htdocs/cacti/scripts/linux_memory.pl MemFree:, output: 45416
08/24/2004 03:45:28 PM - CMDPHP: Poller[0] Host[1] CMD: perl /srv/www/htdocs/cacti/scripts/linux_memory.pl SwapFree:, output: 514040
08/24/2004 03:45:28 PM - CMDPHP: Poller[0] Host[1] CMD: perl /srv/www/htdocs/cacti/scripts/loadavg_multi.pl, output: 1min:0.05 5min:0.06 10min:0.02
08/24/2004 03:45:28 PM - CMDPHP: Poller[0] Host[1] CMD: perl /srv/www/htdocs/cacti/scripts/unix_users.pl, output: 4
08/24/2004 03:45:28 PM - CMDPHP: Poller[0] Host[1] CMD: perl /srv/www/htdocs/cacti/scripts/unix_processes.pl, output: 91
08/24/2004 03:45:28 PM - CMDPHP: Poller[0] Host[2] SNMP: Host responded to SNMP
08/24/2004 03:45:28 PM - CMDPHP: Poller[0] Host[2] CMD: /usr/bin/php -q /srv/www/htdocs/cacti/scripts/test_didier.php, output: 104
08/24/2004 03:45:29 PM - CMDPHP: Poller[0] Time: 1.4396 s, Theads: N/A, Hosts: 2
Back to top
Didier
Guest





PostPosted: Tue Aug 24, 2004 9:03 am    Post subject: Here are the logs Reply with quote

I have forgetten sorry : my test was done with the new release cacti-0.8.6-pre20040824.tar.gz

I have tested the release 22 august on this suse box just before with and without template it was the same.

I think in the debug trace it will be interesting to have more trace about how and when the RRD file should created and not created

Thanks

Didier



rrd.log.txt
 Description:

Download
 Filename:  rrd.log.txt
 Filesize:  112 Bytes
 Downloaded:  143 Time(s)


cacti.log.txt
 Description:

Download
 Filename:  cacti.log.txt
 Filesize:  10.4 KB
 Downloaded:  154 Time(s)

Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9736
Location: MI, USA

PostPosted: Tue Aug 24, 2004 12:10 pm    Post subject: Reply with quote

Didier,

It would be beneficial for you to post here all the web page graphics as you did privately. That way one of the experts here on this forum can help you.

Larry
Back to top
Didier
Guest





PostPosted: Wed Aug 25, 2004 3:41 am    Post subject: Where is this cacti/poller.php called ? Reply with quote

I have discovered that
cmd.php put in the MySQL database the result in the "poller_output" table. It works on my Linux machine

I have also discovered that the function process_poller_output in lib/poller.php should be called. But it is never called, this must explain my problem.

I have difficulties to understand how this function is called.
It is called in cacti/poller.php, but this file seems to never be called.
I don't know why (may be a path problem somewhere)

====> Where is this cacti/poller.php called ?

Thanks for any help

Didier
Back to top
Didier
Guest





PostPosted: Wed Aug 25, 2004 5:42 am    Post subject: May be the reason of my problem Reply with quote

ello again,

I may have found my problem
Nevertheless please can someone explain me
- why cacti/poller.php is not called from any other file ?
is it normal or is it a bug

- If we use cacti/poller.php will the cactid / PHP script server will work ?

- Can we use in parrallel in the crontab cacti/cmd.php and cacti/poller.php


- Regarding to the explanation given it seems that it is a "Socket calls" problem
Would it be possible to put trace in cacti.log or rrd.log when the users meet this problem ?


I have fixed my problem by calling in the /etc/crontab

*/5 * * * * cacti /usr/bin/php /srv/www/htdocs/cacti/poller.php > /dev/null 2>&1




I have discovered that my PHP release on my SUSE 9.0 Linux box was not at least 4.3.6
It is really bad that new for me beacuse I'm not familiar with Linux but I have been asked
to install on it. Does anybody know
- where I can fetch easy installable package for PHP 4.3.6 or more on Linux SUSE 9.0 ?
- And how to install them ?
(I have found on the web a site telling I will need also to chnage apache, mysql, ...
if I change the PHP release from 4.3.3 to 4.3.6. I hate Linux )))))



lanperf:/srv/www/htdocs/cacti/rra # php -v
PHP 4.3.3 (cgi) (built: Sep 24 2003 00:41:05)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies




Didier
Back to top
Didier
Guest





PostPosted: Wed Aug 25, 2004 7:41 am    Post subject: Other question Reply with quote

In additon to the 4 questions in the above message

If cacti/poller.php is the function to call would it be call it in cmd.php (after a detection when it must be called or not be called)

Thanks

Didier
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9736
Location: MI, USA

PostPosted: Wed Aug 25, 2004 3:55 pm    Post subject: Reply with quote

Hi Didier,

Here are your answers:

Quote:

- why cacti/poller.php is not called from any other file ?
is it normal or is it a bug


Poller.php is the base tool for polling. It calls either cmd.php or cactid. It also processes all of the rrd files. It takes the poller_output table and loads it's results (all of them) into their respective RRD files. It is scheduled in the CRON. Nobody else calls poller.php.

Quote:

- If we use cacti/poller.php will the cactid / PHP script server will work ?


Yes, Yes.

Quote:

- Can we use in parrallel in the crontab cacti/cmd.php and cacti/poller.php


Unless they are different versions of Cacti running on the same machine, NO.

Quote:

- Regarding to the explanation given it seems that it is a "Socket calls" problem Would it be possible to put trace in cacti.log or rrd.log when the users meet this problem ?


Are you having a Sockets problem? If you are, and you are using cmd.php, then you need to rebuild/upgrade PHP to include the sockets calls. I think the command lines would be something like the following:

from the PHP source directory:

make uninstall
./configure --with-sockets
make
make install

Check the PHP documentation to verify. If you are running CACTID, then Socket calls are already included.

Quote:

- where I can fetch easy installable package for PHP 4.3.6 or more on Linux SUSE 9.0 ?


www.php.net

Quote:

- And how to install them ?


Can't help you here Didier. Sorry.

TheWitness
Back to top
Didier
Guest





PostPosted: Wed Aug 25, 2004 4:01 pm    Post subject: Thanks Reply with quote

Thanks a lot Larry for your answers, they really answer me
I recognize your efficiency and big knowledge.

Yesterday and today I have completlly lost my head I don't know why ?
And sorry again to have ask you those stupid questions.

Thanks
Didier
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group