cactid error - WARNING: Result from SCRIPT not valid.

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

Moderators: Developers, Moderators

Post Reply
jcoulam
Posts: 18
Joined: Wed Mar 16, 2005 10:29 am
Location: Round Rock, TX

cactid error - WARNING: Result from SCRIPT not valid.

Post by jcoulam »

New install of 0.8.6h cacti on RHEL 4.
Compiled the 0.8.6g cactid wihout errors, currently in /usr/local/bin/cactid and cactid.conf.
Changed the "Settings" "Poller" to cactid. I don't get any graphs. In the cacti.log I get the following errors:

10/16/2006 12:34:45 PM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl /var/www/html/cacti/scripts/linux_memory.pl MemFree:'
10/16/2006 12:34:45 PM - CACTID: Poller[0] Host[1] DS[3] WARNING: Result from SCRIPT not valid. Partial Result: ...
10/16/2006 12:34:45 PM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl /var/www/html/cacti/scripts/linux_memory.pl SwapFree:'
10/16/2006 12:34:45 PM - CACTID: Poller[0] Host[1] DS[4] WARNING: Result from SCRIPT not valid. Partial Result: ...
10/16/2006 12:34:45 PM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl /var/www/html/cacti/scripts/loadavg_multi.pl'
10/16/2006 12:34:45 PM - CACTID: Poller[0] Host[1] DS[5] WARNING: Result from SCRIPT not valid. Partial Result: ...
10/16/2006 12:34:45 PM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl /var/www/html/cacti/scripts/unix_processes.pl'
10/16/2006 12:34:45 PM - CACTID: Poller[0] Host[1] DS[7] WARNING: Result from SCRIPT not valid. Partial Result: ...
10/16/2006 12:34:45 PM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl /var/www/html/cacti/scripts/unix_users.pl '
10/16/2006 12:34:45 PM - CACTID: Poller[0] Host[1] DS[6] WARNING: Result from SCRIPT not valid. Partial Result: ...

I get basiclly the same errors if I try and run the cactid from a command line.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Upgrade information for cactid includes instruction to extend all calls to perl by /full/path/to/perl. So you will have to scan all your data input methods.

Plus: please check all resources/script_queries/*.xml and resources/script_server/*.xml for the same issue

Reinhard
Hiney
Cacti User
Posts: 56
Joined: Mon Oct 16, 2006 11:50 pm

same same,

Post by Hiney »

I am getting the following errors.
when i copy the line from the log file and paste it directly into a shell, it runs and returns a number.
I'm running the latest versions of cacti/cactid on suse sles 9.
all other scripts run fine. I'm wondering if it's something to do with the amount of '\' to drive perfmon ?

Is there a way to see the whole result returned. I think the U is from the check_nt plugin executable displaying the Usage info.

I have different amount of '\' in each one to see if i can get it to work.

Ahh eureka !! It works under cmd.php. mmm so it's cactid.
any ideas ?


H
20061020 11:40:05 - CACTID: Poller[0] Host[16] DS[224] SCRIPT: /usr/bin/perl /opt/nagios/cacti/scripts/nt_perfmon.pl 10.1.0.71 "\\\\Terminal Services\\Active Sessions", output: U
20061020 11:40:05 - CACTID: Poller[0] Host[16] DS[224] WARNING: Result from SCRIPT not valid. Partial Result: ...
20061020 11:40:05 - CACTID: Poller[0] Host[16] DS[223] SCRIPT: /usr/bin/perl /opt/nagios/cacti/scripts/nt_perfmon.pl 10.1.0.71 "\\\\PhysicalDisk(_Total)\\\\Current Disk Queue Length", output: U
20061020 11:40:05 - CACTID: Poller[0] Host[16] DS[223] WARNING: Result from SCRIPT not valid. Partial Result: ...
20061020 11:40:05 - CACTID: Poller[0] Host[16] DS[221] SCRIPT: /usr/bin/perl /opt/nagios/cacti/scripts/nt_perfmon.pl 10.1.0.71 "\\Memory\Page Faults/sec", output: U
20061020 11:40:05 - CACTID: Poller[0] Host[16] DS[221] WARNING: Result from SCRIPT not valid. Partial Result: ...
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Those extra back slashes should not be required.

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?
Hiney
Cacti User
Posts: 56
Joined: Mon Oct 16, 2006 11:50 pm

slashes

Post by Hiney »

yes, as it works in cmd.php.

cactid, is still massaging something tho. Is there are reason why many string copies are done using a printf style command ? just concerned that these might alter the string.

H
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yea, here is the issue, I modify back slashes to forward slashes in the first 2 locations, but your agrument is in the 4'th option, so, unless I can get access to your box, I will not be able to trouble shoot this. It is likely something else.

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?
jlucas
Posts: 7
Joined: Sat Oct 14, 2006 10:11 pm

Post by jlucas »

I have the same the same issue (i believe).... just upgraded to cacti & cactid to Version 0.8.6i.... seems to involve the nt_perfmon.pl script

From the logs -

11/20/2006 08:20:03 PM - CACTID: Poller[0] Host[35] DS[1399] SCRIPT: /usr/bin/perl /var/www/html/cacti-0.8.6i/scripts/nt_perfmon.pl 10.50.200.100 "\\Memory\Page Faults/sec", output: U


From the command line:
[cactiuser@shark log]$ /usr/bin/perl /var/www/html/cacti-0.8.6i/scripts/nt_perfmon.pl 10.50.200.100 "\\Memory\Page Faults/sec"

Result ------

93


I can easily give you access if need be.

Thanks,

Jason
Hiney
Cacti User
Posts: 56
Joined: Mon Oct 16, 2006 11:50 pm

Post by Hiney »

TheWitness wrote:Yea, here is the issue, I modify back slashes to forward slashes in the first 2 locations, but your agrument is in the 4'th option, so, unless I can get access to your box, I will not be able to trouble shoot this. It is likely something else.

TheWitness
Access is not available. perhaps if you guide me to the subroutine that does the massaging, i can update cactid.c myself (i've already played with it to do the date format).

sorry for late response. i seem to have missed the email with your response.


also if you are modifying the back slashes to forward slashes should we just change the input to be forward slashes ?

H
"The difference between theory and practice, is that in theory, there is no difference between theory and practice."

"The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time" - Murphy's Law
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest