All CPU graph Black 100% or Blank

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

Moderators: Developers, Moderators

Post Reply
Kurtou74
Posts: 5
Joined: Mon May 06, 2024 9:32 am

All CPU graph Black 100% or Blank

Post by Kurtou74 »

Hi Mates,

Version of cacti : cacti-1.2.22

I'm encountering a problem on cacti with my CPU graphs, everthing turn to black 100% or Blank

You can see in attachment an example from one server, it was working before.. only CPU encountering an issue.

i tried the OID from the cacti server to my linux client with snmpwalk, seems no problem at all.

[root@XXXXXX ~]# snmpwalk -v 2c -c public XXXXX .1.3.6.1.4.1.2021.11.52.0
UCD-SNMP-MIB::ssCpuRawSystem.0 = Counter32: 1383738077
[root@XXXXXX ~]# snmpwalk -v 2c -c public XXXXX .1.3.6.1.4.1.2021.11.54.0
UCD-SNMP-MIB::ssCpuRawWait.0 = Counter32: 966256650

I'm using from datasources :

ucd_ssCpuRawIdle
ucd_ssCpuRawNice
ucd_ssCpuRawSystem
ucd_ssCpuRawUser
ucd_ssCpuRawWait

Thanks in advance for your feedback if you have any idea..
Attachments
Capture d'écran 2024-04-08 152028.png
Capture d'écran 2024-04-08 152028.png (21.58 KiB) Viewed 2036 times
Capture d'écran 2024-05-06 163030.png
Capture d'écran 2024-05-06 163030.png (126.76 KiB) Viewed 2036 times
Kurtou74
Posts: 5
Joined: Mon May 06, 2024 9:32 am

Re: All CPU graph Black 100% or Blank

Post by Kurtou74 »

For some reason.. i found the problem was Min and Max values who were setted to 0 instead of U... why .. i don't know..

Do you know guys who to update all my datasources already setted and indexed from all servers without deleting and recreating everything ?
Kurtou74
Posts: 5
Joined: Mon May 06, 2024 9:32 am

Re: All CPU graph Black 100% or Blank

Post by Kurtou74 »

Attachment :
Attachments
Capture d'écran 2024-05-06 dddd.png
Capture d'écran 2024-05-06 dddd.png (141.79 KiB) Viewed 2030 times
Kurtou74
Posts: 5
Joined: Mon May 06, 2024 9:32 am

Re: All CPU graph Black 100% or Blank

Post by Kurtou74 »

I tried something like that but it doesn't work..

for i in `cat /tmp/client.txt` ; do
/bin/rrdtool tune /cac0x00/prd/local/cacti-1.2.22/rra/$i_ucd_sscpurawidle_*.rrd --minimum ucd_ssCpuRawIdle:U
/bin/rrdtool tune /cac0x00/prd/local/cacti-1.2.22/rra/$i_ucd_sscpurawidle_*.rrd --maximum ucd_ssCpuRawIdle:U
/bin/rrdtool tune /cac0x00/prd/local/cacti-1.2.22/rra/$i_ucd_sscpurawsystem_*.rrd --minimum ucd_ssCpuRawSystem:U
/bin/rrdtool tune /cac0x00/prd/local/cacti-1.2.22/rra/$i_ucd_sscpurawsystem_*.rrd --maximum ucd_ssCpuRawSystem:U
/bin/rrdtool tune /cac0x00/prd/local/cacti-1.2.22/rra/$i_ucd_sscpurawuser_*.rrd --minimum ucd_ssCpuRawUser:U
/bin/rrdtool tune /cac0x00/prd/local/cacti-1.2.22/rra/$i_ucd_sscpurawuser_*.rrd --maximum ucd_ssCpuRawUser:U
/bin/rrdtool tune /cac0x00/prd/local/cacti-1.2.22/rra/$i_ucd_sscpurawwait_*.rrd --minimum ucd_ssCpuRawWait:U
/bin/rrdtool tune /cac0x00/prd/local/cacti-1.2.22/rra/$i_ucd_sscpurawwait_*.rrd --maximum ucd_ssCpuRawWait:U
done

ERROR: unknown data source name 'ucd_ssCpuRawSystem'
ERROR: unknown data source name 'ucd_ssCpuRawSystem'
ERROR: unknown data source name 'ucd_ssCpuRawUser'
ERROR: unknown data source name 'ucd_ssCpuRawUser'
ERROR: unknown data source name 'ucd_ssCpuRawWait'
ERROR: unknown data source name 'ucd_ssCpuRawWait'
ERROR: unknown data source name 'ucd_ssCpuRawIdle'
ERROR: unknown data source name 'ucd_ssCpuRawIdle'
ERROR: unknown data source name 'ucd_ssCpuRawSystem'
ERROR: unknown data source name 'ucd_ssCpuRawSystem'
ERROR: unknown data source name 'ucd_ssCpuRawUser'
ERROR: unknown data source name 'ucd_ssCpuRawUser'
ERROR: unknown data source name 'ucd_ssCpuRawWait'
ERROR: unknown data source name 'ucd_ssCpuRawWait'

Any idea ?
Kurtou74
Posts: 5
Joined: Mon May 06, 2024 9:32 am

Re: All CPU graph Black 100% or Blank

Post by Kurtou74 »

Solved myself

for addr in $(cat /tmp/client.txt)
do
/bin/rrdtool tune /cac0x00/prd/local/cacti-1.2.22/rra/"$addr"_ucd_sscpurawidle_*.rrd --minimum ucd_ssCpuRawIdle:U
/bin/rrdtool tune /cac0x00/prd/local/cacti-1.2.22/rra/"$addr"_ucd_sscpurawidle_*.rrd --maximum ucd_ssCpuRawIdle:U
/bin/rrdtool tune /cac0x00/prd/local/cacti-1.2.22/rra/"$addr"_ucd_sscpurawsystem_*.rrd --minimum ucd_ssCpuRawSystem:U
/bin/rrdtool tune /cac0x00/prd/local/cacti-1.2.22/rra/"$addr"_ucd_sscpurawsystem_*.rrd --maximum ucd_ssCpuRawSystem:U
/bin/rrdtool tune /cac0x00/prd/local/cacti-1.2.22/rra/"$addr"_ucd_sscpurawuser_*.rrd --minimum ucd_ssCpuRawUser:U
/bin/rrdtool tune /cac0x00/prd/local/cacti-1.2.22/rra/"$addr"_ucd_sscpurawuser_*.rrd --maximum ucd_ssCpuRawUser:U
/bin/rrdtool tune /cac0x00/prd/local/cacti-1.2.22/rra/"$addr"_ucd_sscpurawwait_*.rrd --minimum ucd_ssCpuRawWait:U
/bin/rrdtool tune /cac0x00/prd/local/cacti-1.2.22/rra/"$addr"_ucd_sscpurawwait_*.rrd --maximum ucd_ssCpuRawWait:U
done

Maybe it can helps someone..
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: All CPU graph Black 100% or Blank

Post by TheWitness »

Use rrdtool info command to see the data source names.
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 4 guests