Gaps in SNMP graph

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

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

Re: Gaps in SNMP graph

Post by TheWitness »

One other observation, you only have one script server configured, I'd do like 5-10 of them. Would speed up that Nokia device query. Console > Configuration > Settings > Poller.
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?
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Gaps in SNMP graph

Post by TheWitness »

Upload that Nokia script. I want to take a look at it.
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?
kribbas
Posts: 27
Joined: Wed Oct 20, 2021 3:58 am

Re: Gaps in SNMP graph

Post by kribbas »

Ok updated the script servers to 5.

When I run the debug on another node I don't get those php errors and it starts giving outputs like the output you showed. So I'm wondering why that specific node is giving that php error, they are both using the same spine.conf.

For this other similar node it seems to be using another script, perhaps that is the cause?

SPINE: Version 0.8.8h starting
NOTE: Spine will support multithread device polling.
Host[0] TH[1] Total Time: 0.0017 Seconds
Host[815] TH[1] Recache DataQuery[1] OID: .1.3.6.1.2.1.1.3.0, output: 210970268 2
Host[815] TH[1] Recache DataQuery[38] OID: .1.3.6.1.2.1.1.3.0, output: 21097026 82
Host[815] TH[1] Recache DataQuery[40] OID: .1.3.6.1.2.1.1.3.0, output: 21097026 82
Host[815] TH[1] NOTE: There are '253' Polling Items for this Host
Host[815] TH[1] DS[52767] SS[0] SERVER: /usr/share/cacti-0.8.8h/scripts/ss_nokia_cmg.php ss_nokia_cmg_usage ::::::161:500 get tmnxCar dCpuResMonBusyCoreUtil_1sec 3, output: 1.24
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Gaps in SNMP graph

Post by TheWitness »

The old Cacti would open a PHP session for the script server. It was not smart enough to determine that it was a CLI script and not create a session. By default, root and apache are the only ones that have access to the PHP session directory. So, that's the reason.
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?
kribbas
Posts: 27
Joined: Wed Oct 20, 2021 3:58 am

Re: Gaps in SNMP graph

Post by kribbas »

Now the poller seems to have become off, getting a lot of snmp get timeout for several nodes

and
07/06/2022 04:55:33 PM - SPINE: Poller[0] ERROR: SS[0] PHP Script Server communications lost. Restarting PHP Script Server
07/06/2022 04:55:33 PM - SPINE: Poller[0] ERROR: Spine Timed Out While Processing Hosts Internal
07/06/2022 04:55:33 PM - SPINE: Poller[0] ERROR: Spine Timed Out While Processing Hosts Internal

Is this a result from the ./spine -R -V 3 -S -f device_id -l device_id?

I also reverted back to 1 php script server but nothing helps, how can I restore it?
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Gaps in SNMP graph

Post by TheWitness »

How many cores/threads is the poller? It's basically overloaded the database. If you run the following from the command line, you can see what is blocking:

Code: Select all

sudo mysql -e "show processlist" | grep -v Sleep
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?
kribbas
Posts: 27
Joined: Wed Oct 20, 2021 3:58 am

Re: Gaps in SNMP graph

Post by kribbas »

12 threads
1 php script server
25 scripter server timeout
15 max oid per snmp get requests

This was working fine before, except for that one node, now a lot is getting timeout.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Gaps in SNMP graph

Post by TheWitness »

I meant the "Cacti server" not Cacti.
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?
kribbas
Posts: 27
Joined: Wed Oct 20, 2021 3:58 am

Re: Gaps in SNMP graph

Post by kribbas »

[appadmin /]$ sudo mysql -e "show processlist" | grep -v Sleep
Id User Host db Command Time State Info
69245848 root localhost NULL Query 0 NULL show processlist
kribbas
Posts: 27
Joined: Wed Oct 20, 2021 3:58 am

Re: Gaps in SNMP graph

Post by kribbas »

should I run service mysqld restart? I have reverted all changes but stilll getting major error.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Gaps in SNMP graph

Post by TheWitness »

Nope, but answer the last question.
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?
kribbas
Posts: 27
Joined: Wed Oct 20, 2021 3:58 am

Re: Gaps in SNMP graph

Post by kribbas »

Not sure I understand, where do I show the processlist? I printed the output in previous reply form command line.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Gaps in SNMP graph

Post by TheWitness »

This:

Code: Select all

cat /proc/cpuinfo | grep -i cpuid | wc -l
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?
kribbas
Posts: 27
Joined: Wed Oct 20, 2021 3:58 am

Re: Gaps in SNMP graph

Post by kribbas »

I disabled some hosts and its looking better now. However several hosts are status "down" but they are in fact up and responding to snmpwalk from command line, any way to re-compile the spine to fetch again?

Can I do a service snmpd restart? to see if the snmp polling will start working again?
Last edited by kribbas on Wed Jul 06, 2022 2:29 pm, edited 1 time in total.
kribbas
Posts: 27
Joined: Wed Oct 20, 2021 3:58 am

Re: Gaps in SNMP graph

Post by kribbas »

output: 4
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests