query_host_cpu query_host_partitions problem again SOLVED

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
User avatar
cpt_ahab
Cacti User
Posts: 61
Joined: Tue Feb 01, 2005 11:34 am

query_host_cpu query_host_partitions problem again SOLVED

Post by cpt_ahab »

Hello

Once again i have the same Problem. Cacti ran totally smooth until last Saturday, when cactid hang up for no reason.
I had several cactid and php.exe running. Had to restart the machine.
And after that cactid isnt able to query_host_cpu and host_partitions
This is the log.

Code: Select all

CACTID: Host[0] DS[294] WARNING: Result from SCRIPT not valid. Partial Result: ...
CACTID: Host[0] DS[294] SCRIPT: E:\PHP\php.exe -q E:\inetpub\mrtgroot\cacti\scripts\query_host_cpu.php    get usage 0, output: U
Here is the output of the log in debug mode

Code: Select all

CACTID: Host[0] DEBUG: The POPEN returned the following File Descriptor 6
CACTID: Host[0] DS[294] WARNING: Result from SCRIPT not valid. Partial Result: ...
CACTID: Host[0] DS[294] SCRIPT: E:\PHP\php.exe -q E:\inetpub\mrtgroot\cacti\scripts\query_host_cpu.php    get usage 0, output: U
CACTID: DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (294,'cpu','2005-07-13 14:30:35','U')
What does that "U" means. Where does is come from?

When i run it manually it returns valid values like this

Code: Select all

C:\cactid>E:\PHP\php.exe -q E:\inetpub\mrtgroot\cacti\scripts\query_host_cpu.php 192.168.xx.xx public 1 get usage 0
19
All other Scripts run normal and return normal values.

There is no permission problem. The user who runs the Task for poller.php
is the same user who runs the script manually.

I changed to cactid 0.8.6e didnt work.
I took the query_host_cpu and _partition scripts from cacti 0.8.6f didnt work

any suggestions..?

greez ahab
Last edited by cpt_ahab on Thu Jul 14, 2005 7:56 am, edited 1 time in total.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) Are you running the latest Cacti version? Did you make sure to copy over the updated script folder to your installation?

2) Output: U means it did not return any data to put into the rrd file.

3) You using php 4 or 5? If 5, you should be running php-win.exe. Also, the path to the php binary should be in your system path.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This one is likely cygwin1.dll related.

1) Do you have cygwin installed
2) If so, is the c:\cygwin\bin path in your system path
3) If not, did you build cygwin from source. Also, if not, do you have the sh.exe and cygwin1.dll in your Cactid directory.

If you are in the 3) question. The easiest way to solve this problem is by performing steps 1) & 2) and then deleting the cygwin1.dll from your Cactid directory.

Regards,

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: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Also, I would migrate to the script server as it is mucho faster than the old "depricated" script.

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
cpt_ahab
Cacti User
Posts: 61
Joined: Tue Feb 01, 2005 11:34 am

Post by cpt_ahab »

Updated cacti to f Version --> no changes...
Put cygwin to the system path variable--> no changes

do i still need the cygwin1.dll in the cactid directory when cygwinn ist installed..?

How do i put the scripts to the sserver..?
I know how to put custom scripts to the server.
i my scripts folder there is one ss_query_host_cpu
and the normal one query_host_cpu

just delete the one without ss ..?

Keep on searching
User avatar
cpt_ahab
Cacti User
Posts: 61
Joined: Tue Feb 01, 2005 11:34 am

Post by cpt_ahab »

Works fine now.

Deleted cygwin1.dll from cactid dir
and changed to script server.


Dont know why...
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests