Realtime (graph), v0.33
Moderators: Developers, Moderators
hi now i have upgraded my cacti to the latest version 0.8.7b and also upgraded the plugin architecture and i was able to setup the cache directory path also
but i am still getting some error while running realtime pluging i think there is some path issue can any one suggest what needs to be changed
PHP Warning: main(./include/config.php): failed to open stream: No such file or directory in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 31
PHP Warning: main(): Failed opening './include/config.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 31
PHP Notice: Undefined variable: config in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 33
PHP Warning: main(/lib/poller.php): failed to open stream: No such file or directory in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 33
PHP Warning: main(): Failed opening '/lib/poller.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 33
PHP Notice: Undefined variable: config in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 34
PHP Warning: main(/lib/data_query.php): failed to open stream: No such file or directory in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 34
PHP Warning: main(): Failed opening '/lib/data_query.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 34
PHP Notice: Undefined variable: config in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 35
PHP Warning: main(/lib/graph_export.php): failed to open stream: No such file or directory in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 35
PHP Warning: main(): Failed opening '/lib/graph_export.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 35
PHP Notice: Undefined variable: config in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 36
PHP Warning: main(/lib/rrd.php): failed to open stream: No such file or directory in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 36
PHP Warning: main(): Failed opening '/lib/rrd.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 36
PHP Fatal error: Call to undefined function: read_config_option() in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 101
ERROR: opening '/var/www/html/cacti/cachedir/realtime_477_5.rrd': No such file or directory
vi
but i am still getting some error while running realtime pluging i think there is some path issue can any one suggest what needs to be changed
PHP Warning: main(./include/config.php): failed to open stream: No such file or directory in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 31
PHP Warning: main(): Failed opening './include/config.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 31
PHP Notice: Undefined variable: config in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 33
PHP Warning: main(/lib/poller.php): failed to open stream: No such file or directory in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 33
PHP Warning: main(): Failed opening '/lib/poller.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 33
PHP Notice: Undefined variable: config in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 34
PHP Warning: main(/lib/data_query.php): failed to open stream: No such file or directory in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 34
PHP Warning: main(): Failed opening '/lib/data_query.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 34
PHP Notice: Undefined variable: config in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 35
PHP Warning: main(/lib/graph_export.php): failed to open stream: No such file or directory in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 35
PHP Warning: main(): Failed opening '/lib/graph_export.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 35
PHP Notice: Undefined variable: config in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 36
PHP Warning: main(/lib/rrd.php): failed to open stream: No such file or directory in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 36
PHP Warning: main(): Failed opening '/lib/rrd.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 36
PHP Fatal error: Call to undefined function: read_config_option() in /var/www/html/cacti/plugins/realtime/poller_rt.php on line 101
ERROR: opening '/var/www/html/cacti/cachedir/realtime_477_5.rrd': No such file or directory
vi
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
Larry,TheWitness wrote:What browser version. Edit setup.php and change status=no to status=yes and look for error messages.mcutting wrote:This no longer works for me under Windows ? The RRD file gets created in the cache directory, but no graph is displayed ?
TheWtiness
Browser is IE7. Despite changing status=no to status=yes in setup.php, there are no error messages displayed. The RRD file is created in the Cache directory, but there is no image displayed. In fact, the only thing it does do is eventually crash Apache on my Cacti server.
Version 0.31 works with no issues whatsoever !!
Any ideas ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
I have upgrade to 0.8.7b and new plugin arch and updated all the plugins. All plugins work except realtime. The window displays with the no image icon and no files are created in the realtime folder. I can't find any logs in httpd or cacti.log to give any indication anything is wrong.
I wonder if there is a permissions issue in the way the realtime plugin is being executed. How does realtime query SNMP values? Does it use the lib snmp.php, ping.php, etc, does it use raw sockets to do the test? Is there a way to manual execute some of the realtime scripts to test for permissions? This feels very similar to the advanced ping issues I had with "pinging" as the owner of cacti, but was able to as root.
Thanks
Cacti Version - 0.8.7b
Plugin Architecture - 2.1
Poller Type - Cactid v
I wonder if there is a permissions issue in the way the realtime plugin is being executed. How does realtime query SNMP values? Does it use the lib snmp.php, ping.php, etc, does it use raw sockets to do the test? Is there a way to manual execute some of the realtime scripts to test for permissions? This feels very similar to the advanced ping issues I had with "pinging" as the owner of cacti, but was able to as root.
Thanks
Cacti Version - 0.8.7b
Plugin Architecture - 2.1
Poller Type - Cactid v
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
It's entirely possible that this could be related to the poller. Of course, Cactid is not supported under 0.8.7b.mandor101 wrote:I have upgrade to 0.8.7b and new plugin arch and updated all the plugins. All plugins work except realtime. The window displays with the no image icon and no files are created in the realtime folder. I can't find any logs in httpd or cacti.log to give any indication anything is wrong.
I wonder if there is a permissions issue in the way the realtime plugin is being executed. How does realtime query SNMP values? Does it use the lib snmp.php, ping.php, etc, does it use raw sockets to do the test? Is there a way to manual execute some of the realtime scripts to test for permissions? This feels very similar to the advanced ping issues I had with "pinging" as the owner of cacti, but was able to as root.
Thanks
Cacti Version - 0.8.7b
Plugin Architecture - 2.1
Poller Type - Cactid v
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: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I'll PM you the most upto date. Let me know it that works. Does it work in Firefox?mcutting wrote:Larry,TheWitness wrote:What browser version. Edit setup.php and change status=no to status=yes and look for error messages.mcutting wrote:This no longer works for me under Windows ? The RRD file gets created in the cache directory, but no graph is displayed ?
TheWtiness
Browser is IE7. Despite changing status=no to status=yes in setup.php, there are no error messages displayed. The RRD file is created in the Cache directory, but there is no image displayed. In fact, the only thing it does do is eventually crash Apache on my Cacti server.
Version 0.31 works with no issues whatsoever !!
Any ideas ?
Larry
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?
get php error on apache log
hi
i install the plugin and grant permission to cache folder and rra folder
my cache folder i empty and i get errors in apache log
"PHP Warning: socket_create(): Unable to create socket [1]: Operation not permitted in /usr/share/cacti/lib/ping.php on line 117
PHP Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/lib/ping.php on line 119
ERROR: opening '/usr/share/cacti/rra/cache/realtime_289_5.rrd': No such file or directory"
cacti 0.8.7b run on linux
what should i do?
thanks
i install the plugin and grant permission to cache folder and rra folder
my cache folder i empty and i get errors in apache log
"PHP Warning: socket_create(): Unable to create socket [1]: Operation not permitted in /usr/share/cacti/lib/ping.php on line 117
PHP Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/lib/ping.php on line 119
ERROR: opening '/usr/share/cacti/rra/cache/realtime_289_5.rrd': No such file or directory"
cacti 0.8.7b run on linux
what should i do?
thanks
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: get php error on apache log
This is likely caused by you attempting to create a raw socket using cmd.php for an ICMP ping, which of course is not permitted from a non-root account (apache). Can you confirm. I guess I also need to research that in this context. Should we be performing availability checks, or even using cmd.php.myakove2 wrote:hi
i install the plugin and grant permission to cache folder and rra folder
my cache folder i empty and i get errors in apache log
"PHP Warning: socket_create(): Unable to create socket [1]: Operation not permitted in /usr/share/cacti/lib/ping.php on line 117
PHP Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/lib/ping.php on line 119
ERROR: opening '/usr/share/cacti/rra/cache/realtime_289_5.rrd': No such file or directory"
cacti 0.8.7b run on linux
what should i do?
thanks
I will consider this as well as a fix/workaround for problems in IE.
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?
Re: get php error on apache log
i'm using spine and not cmd.phpTheWitness wrote:This is likely caused by you attempting to create a raw socket using cmd.php for an ICMP ping, which of course is not permitted from a non-root account (apache). Can you confirm. I guess I also need to research that in this context. Should we be performing availability checks, or even using cmd.php.myakove2 wrote:hi
i install the plugin and grant permission to cache folder and rra folder
my cache folder i empty and i get errors in apache log
"PHP Warning: socket_create(): Unable to create socket [1]: Operation not permitted in /usr/share/cacti/lib/ping.php on line 117
PHP Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/lib/ping.php on line 119
ERROR: opening '/usr/share/cacti/rra/cache/realtime_289_5.rrd': No such file or directory"
cacti 0.8.7b run on linux
what should i do?
thanks
I will consider this as well as a fix/workaround for problems in IE.
TheWitness
and i get this log when i open the "realtime" graph
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I'm getting ready to do another push 0.33 here shortly. It allows the system to use both full Ajax and a forced Ajax for IE (aka Page refresh). It also removes uptime checks from the poller.
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?
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I just pushed v0.33 on page1. It addresses a few issues seen here:
Regards,
TheWitness
Again, only compatible with 0.8.7b.-bug: Some browsers have problem with the Ajax method, make optional
-bug: Remove cacti availability checks as they cause problems with some systems.
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?
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?
thanksTheWitness wrote:I just pushed v0.33 on page1. It addresses a few issues seen here:
Again, only compatible with 0.8.7b.-bug: Some browsers have problem with the Ajax method, make optional
-bug: Remove cacti availability checks as they cause problems with some systems.
Regards,
TheWitness
solved my errors and i can see the realtime graphs
Who is online
Users browsing this forum: No registered users and 0 guests