The MySQL Graph Collection

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

enigma
Posts: 12
Joined: Wed Nov 24, 2004 7:08 am
Location: UK
Contact:

Post by enigma »

Hi again.

I have now applied the pre-patched 0.8.6b fixes and removed / re-imported the templates and still have the problem outlined in my last post. I have also increased the timeout value from 500 to 1000ms.

Has anyone managed to fix this or find the exact problem.
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Post by Instigater »

Yuhuu, I solved the problem. Problem is, that php executable must be system-wide available. If executing "php -v" in you home directory gives a version number of php than everything must work. If not, make symlink in /usr/bin directory to php executable (mine was in /usr/local/apache/bin)
:P
I'm very happy now, it's late here, going to sleep! Good luck!
arjanv
Posts: 13
Joined: Thu Dec 09, 2004 1:48 pm

Post by arjanv »

This solution don't works for me.
Anyone other suggestions?
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Post by Instigater »

I also removed those #!/usr/bin/hpp -q at the first line of scripts and empty lines at the end. I also executed cmd.php manualy until it give me no errors.
enigma
Posts: 12
Joined: Wed Nov 24, 2004 7:08 am
Location: UK
Contact:

Post by enigma »

I am running on Windows 2K3 withg PHP v5.02 (cli).

This means /usr/bin etc does not apply thus your fix will not work for me. php is available to the whole system though.

Really need to get this problem solved or at least identify where the problem lies.
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Post by Instigater »

Edit data input methods in cacti to reflect full path to php
enigma
Posts: 12
Joined: Wed Nov 24, 2004 7:08 am
Location: UK
Contact:

Post by enigma »

I have edited the data paths on the Data Input Methods as below and it still does not work.

c:/php/php.exe <path_cacti>/scripts/mysql_com.php <hostname> <username> <password>

I have also tried

c:/php/php-win.exe <path_cacti>/scripts/mysql_com.php <hostname> <username> <password>

I have also tried reversing the slashes.

I have this problem also on a Win2k box but I do not have the problem on a Solaris box. The solaris box runs an earlier version of cacti and php compared to the windows boxes.
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Post by Instigater »

I also can say that on my linux box only host that works is "localhost". IP address 127.0.0.1 nor real hostname does not work.
enigma
Posts: 12
Joined: Wed Nov 24, 2004 7:08 am
Location: UK
Contact:

Post by enigma »

Okay from some post I made in another area it indeed seems there is a problem with using cactid for perl and php scripts.

cactid will work okay for perl scripts if you actually install cygwin (default install). Well it did for me anyway. My data input just has perl ......... not the full path etc.

The reply I got was to switch to cmd.php for the poller. I did this and both my perl and php scripts now work okay.
leo246
Posts: 4
Joined: Sat Dec 18, 2004 8:46 am

Post by leo246 »

Does anyone else have trouble with the download of this zip file ?
I can only get the php file.

Am I doing something wrong ?
Guest

Post by Guest »

Try firefox.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests