So I have installed new cacti (1.2.19, centos 7, php v7.1.33 and php v5.6 with fpm, rrdtool 1.7.1, poller spine). Copied old rrd files to new server with plugins. Cacti shows old data on graphs, but not recording new (nan) and data source troubleshooting not working too (endless loading). Also I observe this error in log:
2022-02-23 08:54:52 - CMDPHP PHP ERROR NOTICE Backtrace: (/graph_json.php[32]:include(), /include/auth.php[28]:require_once(), /include/global.php[553]:cacti_time_zone_set(), /lib/functions.php[6588]:timezone_name_from_abbr(), CactiErrorHandler())
2022-02-23 08:54:52 - ERROR PHP NOTICE: A non well formed numeric value encountered in file: /usr/share/cacti/lib/functions.php on line: 6588
Debug of graphs:
RRDtool Command:
/usr/bin/rrdtool graph -
--imgformat=PNG
--start='-86400'
--end='-300'
--pango-markup
--title='jet-colossus-1001864 - Traffic - Fa0/1'
--vertical-label='bits per second'
--slope-mode
--base=1000
--height=150
--width=600
--tabwidth '30'
--rigid
--alt-autoscale-max
--lower-limit='0'
COMMENT:"From 2022-02-22 10:31:25 To 2022-02-23 10:26:25\c"
COMMENT:" \n"
--color BACK#F3F3F3
--color CANVAS#FDFDFD
--color SHADEA#CBCBCB
--color SHADEB#999999
--color FONT#000000
--color AXIS#2C4D43
--color ARROW#2C4D43
--color FRAME#2C4D43
--border 1 --font TITLE:11:'Arial'
--font AXIS:8:'Arial'
--font LEGEND:8:'Courier'
--font UNIT:8:'Arial'
--font WATERMARK:6:'Arial'
--slope-mode
--watermark 'Generated by Cacti®'
DEF:a='/usr/share/cacti/rra/jet-colossus-1001864_traffic_in_23338.rrd':'traffic_in':AVERAGE
DEF:b='/usr/share/cacti/rra/jet-colossus-1001864_traffic_in_23338.rrd':'traffic_out':AVERAGE
CDEF:cdefa='a,8,'
CDEF:cdefe='b,8,'
AREA:cdefa#00CF00FF:'Inbound '
GPRINT:cdefa:LAST:'Current:%8.2lf %s'
GPRINT:cdefa:AVERAGE:'Average:%8.2lf %s'
GPRINT:cdefa:MAX:'Maximum:%8.2lf %s\n'
LINE1:cdefe#002A97FF:'Outbound'
GPRINT:cdefe:LAST:'Current:%8.2lf %s'
GPRINT:cdefe:AVERAGE:'Average:%8.2lf %s'
GPRINT:cdefe:MAX:'Maximum:%8.2lf %s'
RRDtool Command lengths = 1286 charaters.
RRDtool Says:
OK
Data Source Debug:
/usr/bin/rrdtool create
/usr/share/cacti/rra/jet-colossus-1001864_traffic_in_23338.rrd
--start 0 --step 300
DS:traffic_in:COUNTER:600:0:100000000
DS:traffic_out:COUNTER:600:0:100000000
RRA:AVERAGE:0.5:1:600
RRA:AVERAGE:0.5:6:700
RRA:AVERAGE:0.5:24:775
RRA:AVERAGE:0.5:288:797
RRA:MAX:0.5:1:600
RRA:MAX:0.5:6:700
RRA:MAX:0.5:24:775
RRA:MAX:0.5:288:797 \
Migration cacti from one server to another with CMDPHP PHP ERROR NOTICE Backtrace and not graphing
Moderators: Developers, Moderators
Re: Migration cacti from one server to another with CMDPHP PHP ERROR NOTICE Backtrace and not graphing
Timezone error fixed. But now I observe this error when trying to troubleshooting datasource:
2022-02-24 03:11:46 - CMDPHP PHP ERROR NOTICE Backtrace: (/data_debug.php[25]:include_once(), /include/auth.php[177]:require_once(), /auth_login.php[915]:include_once(), /include/global_session.php[111]:CactiErrorHandler())
2022-02-24 03:11:46 - ERROR PHP NOTICE: Undefined index: REQUEST_URI in file: /usr/share/cacti/include/global_session.php on line: 111
And graphs still Nan. I will be glad for any help.
2022-02-24 03:11:46 - CMDPHP PHP ERROR NOTICE Backtrace: (/data_debug.php[25]:include_once(), /include/auth.php[177]:require_once(), /auth_login.php[915]:include_once(), /include/global_session.php[111]:CactiErrorHandler())
2022-02-24 03:11:46 - ERROR PHP NOTICE: Undefined index: REQUEST_URI in file: /usr/share/cacti/include/global_session.php on line: 111
And graphs still Nan. I will be glad for any help.
Re: Migration cacti from one server to another with CMDPHP PHP ERROR NOTICE Backtrace and not graphing
Well, after two days of investigation i solved the problem, i don't know how but it works.
Re: Migration cacti from one server to another with CMDPHP WARNING and not graphing
I have installed and configured Cacti 1.2.23 on Centos 8 Stream. Everything was ok and working. But after migration cacti from 0.8.8b to 1.2.23 graph Cacti shows old data on graphs, but not recording new data and graph. I have followed the following procedure https://www.xmodulo.com/migrate-cacti-server.html
Graphs is still Nan. The log has given below. Your cooperation is highly appreciated in this regard.
Best Regards!
Aloy Kumar Das
February 09, 2023
Log Message:
2023-02-09 14:35:02 - CMDPHP WARNING: cmd.php poller has run over its polling interval and therefore is ending
2023-02-09 14:35:02 - POLLER: Poller[Main Poller] PID[15891] WARNING: There are 1 processes detected as overrunning a polling cycle, please investigate
2023-02-09 14:35:01 - SNMPAGENT WARNING: No notification receivers configured for event: cactiNotifyDeviceDown (CACTI-MIB), severity: high
2023-02-09 14:35:01 - SNMPAGENT WARNING: No notification receivers configured for event: cactiNotifyDeviceDown (CACTI-MIB), severity: high
Graphs is still Nan. The log has given below. Your cooperation is highly appreciated in this regard.
Best Regards!
Aloy Kumar Das
February 09, 2023
Log Message:
2023-02-09 14:35:02 - CMDPHP WARNING: cmd.php poller has run over its polling interval and therefore is ending
2023-02-09 14:35:02 - POLLER: Poller[Main Poller] PID[15891] WARNING: There are 1 processes detected as overrunning a polling cycle, please investigate
2023-02-09 14:35:01 - SNMPAGENT WARNING: No notification receivers configured for event: cactiNotifyDeviceDown (CACTI-MIB), severity: high
2023-02-09 14:35:01 - SNMPAGENT WARNING: No notification receivers configured for event: cactiNotifyDeviceDown (CACTI-MIB), severity: high
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Migration cacti from one server to another with CMDPHP PHP ERROR NOTICE Backtrace and not graphing
Use spine instead of cmd.php. it's much more scalable.
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?
Who is online
Users browsing this forum: No registered users and 3 guests