CACTID: Poller[0] Host[1] ERROR: Empty result

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

zprian
Posts: 7
Joined: Tue Jun 13, 2006 5:22 am

CACTID: Poller[0] Host[1] ERROR: Empty result

Post by zprian »

Hi,
First of all, I want excuse me for my english level..
I have a problem with my cactid.
I search in the forum and find a similar problem, but the solution of this don't solve my problem.
In my server runs with a Red hat Enterprise 4, and I have update all of packages that cacti needs. (http, php, php-snmp...)
If the poller is the "cmd.php", runs perfect, and paint a graph's.. but when I try to use cactid, don't continue paint in the graph.
The Cacti Log provides this error:

06/13/2006 11:57:08 AM - CACTID: Poller[0] Host[1] DS[9] WARNING: Result from SCRIPT not valid. Partial Result: ...
06/13/2006 11:57:08 AM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl /apps/versions/cacti-0.8.6h/scripts/ping.pl 127.0.0.1'
06/13/2006 11:56:19 AM - CACTID: Poller[0] Host[1] DS[11] WARNING: Result from SCRIPT not valid. Partial Result: ...
06/13/2006 11:56:19 AM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl /apps/versions/cacti-0.8.6h/scripts/unix_users.pl'
06/13/2006 11:56:19 AM - CACTID: Poller[0] Host[1] DS[10] WARNING: Result from SCRIPT not valid. Partial Result: ...

But if I try to execute manually "perl /apps/versions/cacti-0.8.6h/scripts/unix_users.pl" then I obtain a result.

I find in the forum that it's a possible bug, but the bug is resolve in the version 0.8.6g and this is the version with I work.
Who know's what is the possible problem?
cactid haver permision to execute this..
Thanks for all!
Attachments
pinglatency.jpg
pinglatency.jpg (29.24 KiB) Viewed 16421 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Moved to "General"
Latest cactid requires /full/path/to/perl for your Data Input Methods. Please try this
Reinhard
zprian
Posts: 7
Joined: Tue Jun 13, 2006 5:22 am

Post by zprian »

Hi, I try to append the full path of the perl in my Data Inputs Methods, but the result is the same. I look the Cacti log file in the debug mode and the path of the perl already is perl not /usr/bn/perl.
other strange thing is the version of the cactid. I download cactid-0.8.6g, but when I execute cactid/bin/cactid in the result apears
"CACTID: Version 0.8.6f starting" why?? I don't understand this.
And the third question is, why my third template ( Disk space) don't use perl. Is the template that provides with cacti, and they don't paint too.

Already, sorry for my bad english.
Thanks a lot..

The cacti log file say's:
06/14/2006 10:28:11 AM - CACTID: Poller[0] Time: 2.3969 s, Threads: 1, Hosts: 3
06/14/2006 10:28:11 AM - CACTID: Poller[0] Host[2] SNMP Result: Host did not respond to SNMP
06/14/2006 10:28:09 AM - CACTID: Poller[0] Host[1] DS[11] SCRIPT: perl /apps/versions/cacti-0.8.6h/scripts/unix_users.pl, output: U
06/14/2006 10:28:09 AM - CACTID: Poller[0] Host[1] DS[11] WARNING: Result from SCRIPT not valid. Partial Result: ...
06/14/2006 10:28:09 AM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl /apps/versions/cacti-0.8.6h/scripts/unix_users.pl'
06/14/2006 10:28:09 AM - CACTID: Poller[0] Host[1] DS[10] SCRIPT: perl /apps/versions/cacti-0.8.6h/scripts/query_unix_partitions.pl get used /dev/mapper/RAID1-var, output: U
06/14/2006 10:28:09 AM - CACTID: Poller[0] Host[1] DS[10] WARNING: Result from SCRIPT not valid. Partial Result: ...
06/14/2006 10:28:09 AM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl /apps/versions/cacti-0.8.6h/scripts/query_unix_partitions.pl get used /dev/mapper/RAID1-var'
06/14/2006 10:28:09 AM - CACTID: Poller[0] Host[1] DS[10] SCRIPT: perl /apps/versions/cacti-0.8.6h/scripts/query_unix_partitions.pl get available /dev/mapper/RAID1-var, output: U
06/14/2006 10:28:09 AM - CACTID: Poller[0] Host[1] DS[10] WARNING: Result from SCRIPT not valid. Partial Result: ...
06/14/2006 10:28:09 AM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl /apps/versions/cacti-0.8.6h/scripts/query_unix_partitions.pl get available /dev/mapper/RAID1-var'
06/14/2006 10:28:09 AM - CACTID: Poller[0] Host[1] DS[9] SCRIPT: perl /apps/versions/cacti-0.8.6h/scripts/ping.pl 127.0.0.1, output: U
06/14/2006 10:28:09 AM - CACTID: Poller[0] Host[1] DS[9] WARNING: Result from SCRIPT not valid. Partial Result: ...
06/14/2006 10:28:09 AM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl /apps/versions/cacti-0.8.6h/scripts/ping.pl 127.0.0.1'
06/14/2006 10:28:09 AM - CACTID: Poller[0] Host[1] No host availability check possible for '127.0.0.1'
06/14/2006 10:28:09 AM - CACTID: Poller[0] Host[1] SNMP Result: Device does not require SNMP
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

zprian wrote:Hi, I try to append the full path of the perl in my Data Inputs Methods, but the result is the same. I look the Cacti log file in the debug mode and the path of the perl already is perl not /usr/bn/perl.
Oops, I forgot to mention, that Clear Poller Cache is required (which in fact rebuilds the poller cache)
other strange thing is the version of the cactid. I download cactid-0.8.6g, but when I execute cactid/bin/cactid in the result apears
"CACTID: Version 0.8.6f starting" why?? I don't understand this.
This is a known error with the version string. But you're running "g", so it's ok.
And the third question is, why my third template ( Disk space) don't use perl. Is the template that provides with cacti, and they don't paint too.
Please see ALL script_sefrver and script_query XMLs. If you find perl within them, change it to read /full/path/to/perl as well
Reinhard
zprian
Posts: 7
Joined: Tue Jun 13, 2006 5:22 am

Post by zprian »

Thank you very much!

The poller cache is clean. I've had to modify the database directly becouse I don't find the file wich contains the error path of the perl.
Now I find in the xml's the error! thanks ;)

Now my cacti log file is clean, but my graphs don't paint nothing.
The problem is the cactid, don't modify the rrd's but I will search in the forum to find the solution.

Thanks a lot!!

o_O
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

To help with that, pick a single host's ID (that is the number shown in the URL when editing this host). Now, please perform a

Code: Select all

cactid --verbosity=5 <ID> <ID>
to run cactid against that host only. This will produce a lot of output which may help. If not, please post that output.
Reinhard
bdbrumm
Cacti User
Posts: 51
Joined: Mon Aug 12, 2002 3:16 pm

cactid poller cache clearing clarification

Post by bdbrumm »

I think the cactid fully-qualified path and clear poller cache issues should be stickied. Perhaps the clear poller cache command could also be noted on the cactid download page http://www.cacti.net/cactid_download.php

It took me a while to resolve this so making this more clear may prevent others the same pain.

FYI cactid version g also shows version "f" after applying the "h" patch.
zprian
Posts: 7
Joined: Tue Jun 13, 2006 5:22 am

Post by zprian »

Hi lvm and bdbrumm,
my problem continue..
The poller cache is already ok.
The data output is correct, and the cactid insert this data in the DB correctly, but the file witch contains the data rrd don't changed, and then, the graph don't paint anything.
The rrd run's correct, because I use to paint the nagios graph's and if I use the cmd.php to poller of cacti, paints the graph too.
I attach the file wich contains the output of the call " cactid --verbosity=5 1 1". The id=1 is the localhost, because now, the locaclhost is the only machine that I monitorized.

Thanks!
Attachments
cactid.txt
(8.27 KiB) Downloaded 721 times
zprian
Posts: 7
Joined: Tue Jun 13, 2006 5:22 am

Post by zprian »

I'm bored!
I don't understand this. Now, I will explain my sitation.
I have a cactid. My poller in "Settings-Poller-Poller type" is a cactid and NOT the cmd.php.
In my database settings, already contains the cactid from the poller.
In my crontab contains only one sentence to refer the cactid and don't containt any sentence referencing the cmd.php. This sentence is that:
"*/5 * * * * cactiuser /apps/cactid/bin/cactid --conf=/apps/cactid/bin/cactid.conf > /tmp/cronoutl 2>&1 "
And the cronout file contains the ouput from the cactid. In this file says

CACTID: DEBUG...
CACTID : MYSQL...

but in my cactilog file show this?!?!?!

06/19/2006 11:23:26 AM - CMDPHP: Poller[0] DEBUG: SQL Row: "select value from settings_graphs where name='title_font' and user_id=1"
06/19/2006 11:23:26 AM - CMDPHP: Poller[0] DEBUG: SQL Row: "select value from settings_graphs where name='default_datechar' and user_id=1"
06/19/2006 11:23:26 AM - CMDPHP: Poller[0] DEBUG: SQL Row: "select value from settings_graphs where name='default_date_format' and user_id=1"
06/19/2006 11:23:26 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select graph_templates_item.id as graph_templates_item_id, graph_templates_item.cdef_id, graph_templates_item.text_format, graph_templates_item.value, ...

And for any locations appears cactid. I run this in DEBUG mode.It's possible that the poller's run is the cmd.php?? it's rare because every 5 minuts the cron execute the CACTID sentence.
If I run this in other mode then the cactilog is empty, unless the CACTID continue run.
The graph don't paint with the CACTID but if I use once the cmd.php, then the rrd's actualized and then the graph paint all the data.

I'm don't understand this, because i'm check every options to poller and all refers to cactid..


And again.. Sorry for my poor englis and thank for all..
o_O
bdbrumm
Cacti User
Posts: 51
Joined: Mon Aug 12, 2002 3:16 pm

poller fix

Post by bdbrumm »

I think your crontab for your cacti user should be something like this instead: */5 * * * * /usr/bin/php /usr/local/cacti/poller.php > /dev/null 2>&1

That is the output from the crontab -l command for the cacti user I created.

Then inside cacti, check the path to cactid under Console --> settings --> paths --> cactid poller file path: /usr/local/cactid/bin/cactid

If the problem is beyond changing the items above, I don't think I will be of much more help.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

bdbrumm is absolutely correct. This is at least required. Please fix it as advised. If problems persist, please post a screenshot of the failing graph
Reinhard
zprian
Posts: 7
Joined: Tue Jun 13, 2006 5:22 am

Post by zprian »

Thanks bdbrumm,
I read in other post that sentence of cactid in the crontab.
The paths are different but it's correct. But.. I don't understand one thing, why the cactilog write:
06/20/2006 09:17:59 AM - CMDPHP: Poller[0] ...
if the poller is the cactid??
if I execute manually, then write's this:
06/19/2006 04:58:47 PM - CACTID: Poller[0] ...

Than you very much!
My cactid, now is running correctly
:wink: . Sorry for the trouble...
deu439356
Cacti User
Posts: 73
Joined: Wed Aug 13, 2008 8:08 am

Post by deu439356 »

I have having the same issue on 8.7b.

11/10/2008 04:50:52 PM - SPINE: Poller[0] Host[2430] DS[94025] WARNING: Result from SCRIPT not valid. Partial Result: ...
11/10/2008 04:50:52 PM - SPINE: Poller[0] Host[2430] ERROR: Empty result [RSA]: '/usr/bin/perl /this/is/the/path/scripts/rsaAuths.pl'
11/10/2008 04:50:52 PM - SPINE: Poller[0] Host[2430] DS[94026] WARNING: Result from SCRIPT not valid. Partial Result: ...
11/10/2008 04:50:52 PM - SPINE: Poller[0] Host[2430] ERROR: Empty result [RSA]: '/usr/bin/perl /this/is/the/path/scripts/rsaVPN.pl'

Each of the two scripts return an integer value by using the print command. I am not passing anything into the script and the scripts are just reading reading from the same file and returning an integer value from the file. I have my Data Template set up for each of the data input methods above. Any ideas?

Thanks.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Permissions for cactiuser to call commands used by the script or the file itself?
Reinhard
deu439356
Cacti User
Posts: 73
Joined: Wed Aug 13, 2008 8:08 am

Post by deu439356 »

I have checked the permissions, and they are the same as the other scripts (like the unix_users.pl script [for the logged in users] that I can graph).

I have turned debugging up and here is the output:
11/11/2008 02:50:57 PM - SPINE: Poller[0] Host[2417] ERROR: Empty result [3270-Production]: '/path/to/cacti/www/scripts/test4'
11/11/2008 02:50:57 PM - SPINE: Poller[0] Host[2417] DS[94332] SCRIPT: /path/to/cacti/www/scripts/test4, output: U
11/11/2008 02:50:57 PM - SPINE: Poller[0] Host[2417] ERROR: Empty result [3270-Production]: '/path/to/cacti/www/scripts/test'
11/11/2008 02:50:57 PM - SPINE: Poller[0] Host[2417] DS[94331] SCRIPT: /path/to/cacti/www/scripts/test, output: U
11/11/2008 02:50:57 PM - SPINE: Poller[0] Host[2417] ERROR: Empty result [3270-Production]: '/path/to/cacti/www/scripts/test2'
11/11/2008 02:50:57 PM - SPINE: Poller[0] Host[2417] DS[94330] SCRIPT: /path/to/cacti/www/scripts/test2, output: U
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest