Upgrade 1.2.18 to 1.2.21 - Error: Maximum runtime of 298 seconds exceeded

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Upgrade 1.2.18 to 1.2.21 - Error: Maximum runtime of 298 seconds exceeded

Post by TheWitness »

Does the problem diminish if you change Max OIDs to say 10?
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?
warben61
Posts: 34
Joined: Mon Jan 22, 2018 9:52 pm

Re: Upgrade 1.2.18 to 1.2.21 - Error: Maximum runtime of 298 seconds exceeded

Post by warben61 »

Good question. Testing now. I ran a query in mysql to change a whole bunch of the max_oids from 50 to 10.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Upgrade 1.2.18 to 1.2.21 - Error: Maximum runtime of 298 seconds exceeded

Post by TheWitness »

Yea, I resort to doing things that way myself, and when I find one of those, I add it to the 'Change Settings' dropdown. But when you have > 10k devices, it's easier to just hit the database directly.
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?
warben61
Posts: 34
Joined: Mon Jan 22, 2018 9:52 pm

Re: Upgrade 1.2.18 to 1.2.21 - Error: Maximum runtime of 298 seconds exceeded

Post by warben61 »

Yep.
Ok, well changing max oids doesn't appear to have had any impact. I've had 2 of the double free or corruption errors in the last 30 minutes.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Upgrade 1.2.18 to 1.2.21 - Error: Maximum runtime of 298 seconds exceeded

Post by TheWitness »

Ugh. Okay. Working hours now. I'll dig into their API soon. Was this working before? What spine version?
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?
warben61
Posts: 34
Joined: Mon Jan 22, 2018 9:52 pm

Re: Upgrade 1.2.18 to 1.2.21 - Error: Maximum runtime of 298 seconds exceeded

Post by warben61 »

Sounds good, thanks. Yeah it was fine before the updates. I was on Cacti 1.2.18 and I'm almost certain Spine 1.2.18 as well.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Upgrade 1.2.18 to 1.2.21 - Error: Maximum runtime of 298 seconds exceeded

Post by TheWitness »

Oh crap, run the following Query:

Code: Select all

select distinct snmp_auth_protocol, snmp_priv_protocol from host;
Send the results back.
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?
warben61
Posts: 34
Joined: Mon Jan 22, 2018 9:52 pm

Re: Upgrade 1.2.18 to 1.2.21 - Error: Maximum runtime of 298 seconds exceeded

Post by warben61 »

Results below. The blank row made me curious... so I did the next queries as well. The blank rows are all from hosts not using snmpv3. Not sure if that has anything to do with anything, but I figured I'd include that too.

Code: Select all

mysql> select distinct snmp_auth_protocol, snmp_priv_protocol from host;
+--------------------+--------------------+
| snmp_auth_protocol | snmp_priv_protocol |
+--------------------+--------------------+
| SHA                | AES128             |
|                    |                    |
| SHA                | DES                |
| MD5                | DES                |
+--------------------+--------------------+
4 rows in set (0.01 sec)

mysql> select count(*) from host where snmp_auth_protocol = '';
+----------+
| count(*) |
+----------+
|     3256 |
+----------+
1 row in set (0.00 sec)

mysql> select count(*) from host where snmp_priv_protocol = '';
+----------+
| count(*) |
+----------+
|     3256 |
+----------+
1 row in set (0.00 sec)

select count(*) from host where snmp_version != '3';
+----------+
| count(*) |
+----------+
|     3256 |
+----------+
1 row in set (0.00 sec)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Upgrade 1.2.18 to 1.2.21 - Error: Maximum runtime of 298 seconds exceeded

Post by TheWitness »

How many hosts at AES128? What I thought might have happened was not the case though.
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?
warben61
Posts: 34
Joined: Mon Jan 22, 2018 9:52 pm

Re: Upgrade 1.2.18 to 1.2.21 - Error: Maximum runtime of 298 seconds exceeded

Post by warben61 »

2710 hosts at AES128. We did notice there are some new options in the dropdowns like AES128, 192, 256, whereas before we just chose AES. Same for SHA. I haven't seen any problems with the defaults though and I've just had our guys using AES128 since it seems to connect to our Mikrotiks no problem.

Code: Select all

mysql> mysql> select count(*) from host where snmp_priv_protocol = 'AES128';
+----------+
| count(*) |
+----------+
|     2710 |
+----------+
1 row in set (0.00 sec)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Upgrade 1.2.18 to 1.2.21 - Error: Maximum runtime of 298 seconds exceeded

Post by TheWitness »

What's your poller interval and how close to the line are you?
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?
warben61
Posts: 34
Joined: Mon Jan 22, 2018 9:52 pm

Re: Upgrade 1.2.18 to 1.2.21 - Error: Maximum runtime of 298 seconds exceeded

Post by warben61 »

Poller interval is 5 minutes. Typical runtime is 20-30 seconds.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Upgrade 1.2.18 to 1.2.21 - Error: Maximum runtime of 298 seconds exceeded

Post by TheWitness »

So, looking at the net-snmp API, they seem to maintain a user list, which is a linked list of unique users for a session, and the free corruption happens there. So, now I have to find out if this always happens, :or if there is some condition where it's happening twice for a single device. That would be unusual.

So, do this, run the following query:

Code: Select all

SELECT host_id, COUNT(DISTINCT CONCAT(snmp_username, snmp_password, snmp_auth_protocol, snmp_priv_passphrase, snmp_priv_protocol, snmp_context, snmp_engine_id)) AS `combos` 
FROM poller_item 
WHERE snmp_priv_protocol='AES128' 
GROUP BY host_id 
HAVING combos > 1;
Let's hope it comes back empty.
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?
warben61
Posts: 34
Joined: Mon Jan 22, 2018 9:52 pm

Re: Upgrade 1.2.18 to 1.2.21 - Error: Maximum runtime of 298 seconds exceeded

Post by warben61 »

That's gonna be interesting to track down. Yeah, no results on that query.

Code: Select all

mysql> SELECT host_id, COUNT(DISTINCT CONCAT(snmp_username, snmp_password, snmp_auth_protocol, snmp_priv_passphrase, snmp_priv_protocol, snmp_context, snmp_engine_id)) AS `combos` FROM poller_item WHERE snmp_priv_protocol='AES128' GROUP BY host_id HAVING combos > 1;
Empty set (0.07 sec)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Upgrade 1.2.18 to 1.2.21 - Error: Maximum runtime of 298 seconds exceeded

Post by TheWitness »

Okay, taking a different look. Open poller.c and look for the string snmp_host_cleanup. That function will be called three times there. Comment all three and test running that way. Hand running first without installing.
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests