Disappeared Device.... and it won't come back!
Moderators: Developers, Moderators
Disappeared Device.... and it won't come back!
I have an odd one here....
Logged in as "admin" I have a missing device in the "Devices" management screen.
If I try to add another device (fictitious) it too does not show up in the list, which means I (obviously) cannot add anything else! However, if I go to one of the ACTIVE graphs for the "disappeared" device and click "edit device" it's there -- and I can edit it. But when I save it, the top level list still doesn't show it.
I've run the repair script from the CLI, and it says everything is fine.
Obviously not.
Any ideas?
Logged in as "admin" I have a missing device in the "Devices" management screen.
If I try to add another device (fictitious) it too does not show up in the list, which means I (obviously) cannot add anything else! However, if I go to one of the ACTIVE graphs for the "disappeared" device and click "edit device" it's there -- and I can edit it. But when I save it, the top level list still doesn't show it.
I've run the repair script from the CLI, and it says everything is fine.
Obviously not.
Any ideas?
Re: Disappeared Device.... and it won't come back!
What version of Cacti? There were a few bugs around the location field not showing devices in recent versions.
Re: Disappeared Device.... and it won't come back!
1.2.13
I do not know exactly when it started to occur; I haven't had cause to go into the admin account for a while and I've upgraded the package a significant number of times from its original install, so it's entirely possible whatever broke it did it quite some time ago, but I'm unable to find what needs to be done to fix it.
It's not just the missing device -- it's also that I can't add any new ones! It appears to add and says "ok" when I save it, but never shows up in the list.
I do not know exactly when it started to occur; I haven't had cause to go into the admin account for a while and I've upgraded the package a significant number of times from its original install, so it's entirely possible whatever broke it did it quite some time ago, but I'm unable to find what needs to be done to fix it.
It's not just the missing device -- it's also that I can't add any new ones! It appears to add and says "ok" when I save it, but never shows up in the list.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Disappeared Device.... and it won't come back!
Download and install 1.2.14. This was a major little issue that accelerated it's release.
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: Disappeared Device.... and it won't come back!
I see..... ok, that'll take a bit of work since I loaded this as a FreeBSD package -- so I'll have to match up where both the bare download and the package stuff things so I don't shoot myself in the mouth.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Disappeared Device.... and it won't come back!
Normally what I do is:
cd /var/www/html
git clone -b 1.2.x https://github.com/cacti/cacti.git cacti_1.2.x
cp -rp cacti_1.2.x/* cacti
chown -R apache:apache cacti
Done.
cd /var/www/html
git clone -b 1.2.x https://github.com/cacti/cacti.git cacti_1.2.x
cp -rp cacti_1.2.x/* cacti
chown -R apache:apache cacti
Done.
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: Disappeared Device.... and it won't come back!
Yeah just wanted to make sure FreeBSD''s packages folks hadn't screwed with anything.
Hmmmm... loaded ok, I can get rid of the bad entries, but all my graphs, while they're present, have no data. And did.
Hmmmm... loaded ok, I can get rid of the bad entries, but all my graphs, while they're present, have no data. And did.
Re: Disappeared Device.... and it won't come back!
Ok I got some sort of a problem here.. looks like some part of the upgrade script didn't run...... The hosts show as "up" but when I go into the graphs and set debugging on I get this in the output...
RRDtool Command:
Warning: sizeof(): Parameter must be an array or an object that implements Countable in /usr/local/share/cacti/lib/graph_variables.php on line 452
Notice: Undefined index: traffic_in in /usr/local/share/cacti/lib/graph_variables.php on line 653
Notice: Undefined index: traffic_out in /usr/local/share/cacti/lib/graph_variables.php on line 653
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--pango-markup \
--title='IpGW - Traffic - igb0' \
--vertical-label='bits per second' \
--slope-mode \
--base=1000 \
--height=120 \
--width=500 \
--tabwidth '30' \
--rigid \
--alt-autoscale-max \
--lower-limit='0' \
COMMENT:"From 2020/08/05 20\:29\:12 To 2020/08/06 20\:24\:12\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/local/share/cacti/rra/ipgw_traffic_in_84.rrd':'traffic_in':AVERAGE \
DEF:b='/usr/local/share/cacti/rra/ipgw_traffic_in_84.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' \
LINE2:cdefe#002A97FF:'Outbound' \
GPRINT:cdefe:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefe:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefe:MAX:'Maximum\:%8.2lf %s' \
COMMENT:' \n' \
HRULE:0#FF0000FF:'95th Percentile' \
COMMENT:'(0 mbit in+out)\n' \
COMMENT:'Totals In\: 0.00 B' \
COMMENT:'Out\: 0.00 B' \
COMMENT:'In+Out\: 0.00 B\n'
RRDtool Command lengths = 1429 charaters.
RRDtool Says:
Warning: sizeof(): Parameter must be an array or an object that implements Countable in /usr/local/share/cacti/lib/graph_variables.php on line 452
Warning: sizeof(): Parameter must be an array or an object that implements Countable in /usr/local/share/cacti/lib/graph_variables.php on line 452
Notice: Undefined index: traffic_in in /usr/local/share/cacti/lib/graph_variables.php on line 653
Notice: Undefined index: traffic_out in /usr/local/share/cacti/lib/graph_variables.php on line 653
OK
RRDtool Command:
Warning: sizeof(): Parameter must be an array or an object that implements Countable in /usr/local/share/cacti/lib/graph_variables.php on line 452
Notice: Undefined index: traffic_in in /usr/local/share/cacti/lib/graph_variables.php on line 653
Notice: Undefined index: traffic_out in /usr/local/share/cacti/lib/graph_variables.php on line 653
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--pango-markup \
--title='IpGW - Traffic - igb0' \
--vertical-label='bits per second' \
--slope-mode \
--base=1000 \
--height=120 \
--width=500 \
--tabwidth '30' \
--rigid \
--alt-autoscale-max \
--lower-limit='0' \
COMMENT:"From 2020/08/05 20\:29\:12 To 2020/08/06 20\:24\:12\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/local/share/cacti/rra/ipgw_traffic_in_84.rrd':'traffic_in':AVERAGE \
DEF:b='/usr/local/share/cacti/rra/ipgw_traffic_in_84.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' \
LINE2:cdefe#002A97FF:'Outbound' \
GPRINT:cdefe:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefe:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefe:MAX:'Maximum\:%8.2lf %s' \
COMMENT:' \n' \
HRULE:0#FF0000FF:'95th Percentile' \
COMMENT:'(0 mbit in+out)\n' \
COMMENT:'Totals In\: 0.00 B' \
COMMENT:'Out\: 0.00 B' \
COMMENT:'In+Out\: 0.00 B\n'
RRDtool Command lengths = 1429 charaters.
RRDtool Says:
Warning: sizeof(): Parameter must be an array or an object that implements Countable in /usr/local/share/cacti/lib/graph_variables.php on line 452
Warning: sizeof(): Parameter must be an array or an object that implements Countable in /usr/local/share/cacti/lib/graph_variables.php on line 452
Notice: Undefined index: traffic_in in /usr/local/share/cacti/lib/graph_variables.php on line 653
Notice: Undefined index: traffic_out in /usr/local/share/cacti/lib/graph_variables.php on line 653
OK
Re: Disappeared Device.... and it won't come back!
Ok, looks like the old data was lost, but it also appears to be populating after I rebuilt the poller and device caches. I'll live; it's not ideal, but what I did during that pissed it off on the stuff behind the current time.
I can get into the devices now.
I can get into the devices now.
Re: Disappeared Device.... and it won't come back!
Can you post the countable error as a bug on github. It should be using cacti_sizeof not just sizeof to prevent such warnings.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Disappeared Device.... and it won't come back!
It disappeared once the a polling update ran, but the previous data remains gone (now having run overnight.)
Who is online
Users browsing this forum: No registered users and 6 guests