Poller produces no output
Moderators: Developers, Moderators
Poller produces no output
Poller.php isnt producing any output, run from cron, or from the command line.
php poller.php will just return a newline back to the shell, no output of any kind, in logs, or anywhere.
Im running 0.8.6d, on FreeBSD 5.3, with Plesk installed.
I have another FreeBSD 5.4 box running Cacti just fine, had zero problems, but this box simply doesnt execute poller.php or cmd.php
I can add devices, make graphs from those devices, but nothing ever shows up in /rra or /log (well, cacti.log does show some web-access stuff).
Permissions are set correctly, poller.php is run by the webserver user, which has access to /rra and /log (it does write to cacti.log about access to missing rra files)
Im simply at a loss of what to do, the forum doesnt have anyone else with my specific issue.
Thank you!
php poller.php will just return a newline back to the shell, no output of any kind, in logs, or anywhere.
Im running 0.8.6d, on FreeBSD 5.3, with Plesk installed.
I have another FreeBSD 5.4 box running Cacti just fine, had zero problems, but this box simply doesnt execute poller.php or cmd.php
I can add devices, make graphs from those devices, but nothing ever shows up in /rra or /log (well, cacti.log does show some web-access stuff).
Permissions are set correctly, poller.php is run by the webserver user, which has access to /rra and /log (it does write to cacti.log about access to missing rra files)
Im simply at a loss of what to do, the forum doesnt have anyone else with my specific issue.
Thank you!
- TheWitness
- Developer
- Posts: 17048
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Start by running "php <path_cacti>/cmd.php" in DEBUG mode. If this provides output, I suspect other issues. Also, check to see that PHP is NOT running in Safe mode.
Also please provide your versions of PHP, MySQL, Apache and provide the output to "php -m".
Thanks,
TheWitness
Also please provide your versions of PHP, MySQL, Apache and provide the output to "php -m".
Thanks,
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?
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?
I dont know how to implicitly turn on debug mode for the script, but heres the output from php -m
root@scn# php -m
[PHP Modules]
ctype
curl
domxml
iconv
imap
ixed
mbstring
mcrypt
mysql
openssl
overload
pcre
pgsql
posix
psacustom
psakey
psakeyupdate
psamisc
psasem
session
sockets
SourceGuardian
standard
sysvsem
tokenizer
zip
zlib
*edit*
Versions of software:
PHP 4.3.10 (cli) (built: Feb 2 2005 12:56:24)
/usr/local/psa/mysql/bin/mysql Ver 14.7 Distrib 4.1.7, for unknown-freebsd5.3 (i386)
Server version: Apache/2.0.52
I can execute other PHP scripts from the command line, and they produce various output. But cmd.php and poller.php produce literaly no output, as if they arent even being executed.
The other box, which is similar to this one, doesn't have any problems whatsoever. Im out of ideas
root@scn# php -m
[PHP Modules]
ctype
curl
domxml
iconv
imap
ixed
mbstring
mcrypt
mysql
openssl
overload
pcre
pgsql
posix
psacustom
psakey
psakeyupdate
psamisc
psasem
session
sockets
SourceGuardian
standard
sysvsem
tokenizer
zip
zlib
*edit*
Versions of software:
PHP 4.3.10 (cli) (built: Feb 2 2005 12:56:24)
/usr/local/psa/mysql/bin/mysql Ver 14.7 Distrib 4.1.7, for unknown-freebsd5.3 (i386)
Server version: Apache/2.0.52
I can execute other PHP scripts from the command line, and they produce various output. But cmd.php and poller.php produce literaly no output, as if they arent even being executed.
The other box, which is similar to this one, doesn't have any problems whatsoever. Im out of ideas
Last edited by skullone on Sat May 21, 2005 10:02 pm, edited 1 time in total.
- TheWitness
- Developer
- Posts: 17048
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Please verify that your snmpget and snmpwalk paths are accurate and that the Settings->General for Version of SNMP is accurate. It appears that you don't have snmp support built into PHP.
TheWitness
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?
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?
Yah, the paths are correct, as well as the SNMP settings.
Its odd though, I can uncomment the browser checks in the cmd.php and poller.php, and run the script through a browser, and it will run fine, and produce output *sometimes*
The other box which works fine doesn't have SNMP support compiled into PHP either, though.
Its odd though, I can uncomment the browser checks in the cmd.php and poller.php, and run the script through a browser, and it will run fine, and produce output *sometimes*
The other box which works fine doesn't have SNMP support compiled into PHP either, though.
- TheWitness
- Developer
- Posts: 17048
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Edit the database using the following command:
mysql -u root -p cacti
> select count(*) from poller_output;
If you have bocoup lines in that table, then you should:
> truncate table poller_output;
> quit
TheWitness
mysql -u root -p cacti
> select count(*) from poller_output;
If you have bocoup lines in that table, then you should:
> truncate table poller_output;
> quit
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?
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?
- TheWitness
- Developer
- Posts: 17048
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
ru online? AIM or MSNM?
TheWitness
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?
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?
I have the same problem. Already tried truncating the poller_output table, implementing the patches and I still get no output from poller.php
Here is my info:
Debian 3.1
233 rra files
pc:/usr/share/cacti/site# dpkg -l | grep -ephp4 -eapache2 -emysql -ecacti
ii apache2 2.0.54-4 next generation, scalable, extendable web se
ii cacti 0.8.6c-7 Frontend to rrdtool for monitoring systems a
ii mysql-server 4.0.24-10 mysql database server binaries
ii php4 4.3.10-15 server-side, HTML-embedded scripting languag
pc:/usr/share/cacti/site# php -m
[PHP Modules]
bcmath
bz2
calendar
ctype
curl
dba
dbx
exif
filepro
ftp
gd
gettext
iconv
imap
mbstring
mime_magic
mysql
ncurses
odbc
openssl
overload
pcntl
pcre
pgsql
posix
RRDTool
session
shmop
snmp
sockets
standard
sybase_ct
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlrpc
yp
zip
zlib
[Zend Modules]
Here is my info:
Debian 3.1
233 rra files
pc:/usr/share/cacti/site# dpkg -l | grep -ephp4 -eapache2 -emysql -ecacti
ii apache2 2.0.54-4 next generation, scalable, extendable web se
ii cacti 0.8.6c-7 Frontend to rrdtool for monitoring systems a
ii mysql-server 4.0.24-10 mysql database server binaries
ii php4 4.3.10-15 server-side, HTML-embedded scripting languag
pc:/usr/share/cacti/site# php -m
[PHP Modules]
bcmath
bz2
calendar
ctype
curl
dba
dbx
exif
filepro
ftp
gd
gettext
iconv
imap
mbstring
mime_magic
mysql
ncurses
odbc
openssl
overload
pcntl
pcre
pgsql
posix
RRDTool
session
shmop
snmp
sockets
standard
sybase_ct
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlrpc
yp
zip
zlib
[Zend Modules]
- TheWitness
- Developer
- Posts: 17048
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I think I found this one today as well. A user update apt-get which installed a new RPM for Cacti and in that RPM the following file was overwritten:
poller.php with lib/poller.php
To fix, download the Cacti 0.8.6d source and take the poller.php file from the root of the gz file and overwrite your existing poller.php and you will be back in business.
TheWitness
poller.php with lib/poller.php
To fix, download the Cacti 0.8.6d source and take the poller.php file from the root of the gz file and overwrite your existing poller.php and you will be back in business.
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?
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?
TWO DIFFERENT VERSIONS OF PHP
My problem was that in configuration of cacti another version of php had been used! The problem was solved by taking the correct version!
- TheWitness
- Developer
- Posts: 17048
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Really old post don't you think?
TheWitness
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?
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?
-
- Posts: 2
- Joined: Mon Aug 10, 2009 3:00 pm
host# php cmd.php
08/25/2009 05:58:38 PM - CMDPHP: Poller[0] Host[3] DS[14] WARNING: Result from SNMP not valid. Partial Result: U
08/25/2009 05:58:38 PM - CMDPHP: Poller[0] Host[3] DS[15] WARNING: Result from SNMP not valid. Partial Result: U
08/25/2009 05:58:39 PM - CMDPHP: Poller[0] Time: 2.7467 s, Theads: N/A, Hosts: 10
I am not getting any graph output. Here is output of cmd.php. How do I debug or remedy the Warning?
Thank you!
08/25/2009 05:58:38 PM - CMDPHP: Poller[0] Host[3] DS[14] WARNING: Result from SNMP not valid. Partial Result: U
08/25/2009 05:58:38 PM - CMDPHP: Poller[0] Host[3] DS[15] WARNING: Result from SNMP not valid. Partial Result: U
08/25/2009 05:58:39 PM - CMDPHP: Poller[0] Time: 2.7467 s, Theads: N/A, Hosts: 10
I am not getting any graph output. Here is output of cmd.php. How do I debug or remedy the Warning?
Thank you!
Who is online
Users browsing this forum: No registered users and 0 guests