CACTID: Poller[0] Host[1] ERROR: Empty result
Moderators: Developers, Moderators
CACTID: Poller[0] Host[1] ERROR: Empty result
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!
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 (29.24 KiB) Viewed 16426 times
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
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
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Oops, I forgot to mention, that Clear Poller Cache is required (which in fact rebuilds the poller cache)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.
This is a known error with the version string. But you're running "g", so it's ok.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.
Please see ALL script_sefrver and script_query XMLs. If you find perl within them, change it to read /full/path/to/perl as wellAnd 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.
Reinhard
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
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
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
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 to run cactid against that host only. This will produce a lot of output which may help. If not, please post that output.
Reinhard
Code: Select all
cactid --verbosity=5 <ID> <ID>
Reinhard
cactid poller cache clearing clarification
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.
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.
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!
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
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
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
poller fix
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.
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.
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
. Sorry for the trouble...
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
. Sorry for the trouble...
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.
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.
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
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
Who is online
Users browsing this forum: No registered users and 2 guests