CPU Usage graph problem

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

Moderators: Developers, Moderators

Post Reply
flycker
Posts: 5
Joined: Tue Sep 05, 2006 7:56 am

CPU Usage graph problem

Post by flycker »

I installed cacti on a Linux Fedora 4 without problems. (2.6.17-1.2142_FC4)
All the "UNIX - *" graphics are working, but not the "ucd/net - *" graphics.
I added "ucd/net CPU Usage", but they doenst work. There's no graphic generated.

Any idea?

Maybe this will be usefull:

Code: Select all

# snmpwalk -v1 -c public 127.0.0.1

SNMPv2-MIB::sysDescr.0 = STRING: Linux ip-208-109-110-31.ip.secureserver.net 2.6.17-1.2142_FC4 #1 Tue Jul 11 22:41:14 EDT 2006 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
SNMPv2-MIB::sysUpTime.0 = Timeticks: (432105) 1:12:01.05
SNMPv2-MIB::sysContact.0 = STRING: Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
SNMPv2-MIB::sysName.0 = STRING: ip-208-109-110-31.ip.secureserver.net
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.7 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface sub-layers
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (1) 0:00:00.01
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (180080303) 20 days, 20:13:23.03
End of MIB
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

can you try this :

Code: Select all

$ snmpwalk -v1 -c public 127.0.0.1 .1.3.6.1.4.1.2021.11
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
flycker
Posts: 5
Joined: Tue Sep 05, 2006 7:56 am

Post by flycker »

Appers this:

Code: Select all

[root@ip-208-109-110-31 includes]# snmpwalk -v1 -c public 127.0.0.1 .1.3.6.1.4.1.2021.11
End of MIB
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Can you try with this (and only this) in /etc/snmp/snmpd.conf :

Code: Select all

rocommunity public
disk /
This is detailed in the howto in my signature.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
flycker
Posts: 5
Joined: Tue Sep 05, 2006 7:56 am

Post by flycker »

I followed all the steps in the howto, but is still not work...

The command runs ok:

Code: Select all

[root@ip-208-109-110-31 cacti-0.8.6h]# snmpwalk -v1 -c public 127.0.0.1 .1.3.6.1.4.1.2021.11
UCD-SNMP-MIB::ssIndex.0 = INTEGER: 1
UCD-SNMP-MIB::ssErrorName.0 = STRING: systemStats
UCD-SNMP-MIB::ssSwapIn.0 = INTEGER: 0
UCD-SNMP-MIB::ssSwapOut.0 = INTEGER: 0
UCD-SNMP-MIB::ssIOSent.0 = INTEGER: 14
UCD-SNMP-MIB::ssIOReceive.0 = INTEGER: 22
UCD-SNMP-MIB::ssSysInterrupts.0 = INTEGER: 1
UCD-SNMP-MIB::ssSysContext.0 = INTEGER: 3
UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 15
UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 2
UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 81
UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 27440977
UCD-SNMP-MIB::ssCpuRawNice.0 = Counter32: 11153
UCD-SNMP-MIB::ssCpuRawSystem.0 = Counter32: 5122195
UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 143250438
UCD-SNMP-MIB::ssCpuRawWait.0 = Counter32: 5667752
UCD-SNMP-MIB::ssCpuRawKernel.0 = Counter32: 5122195
UCD-SNMP-MIB::ssCpuRawInterrupt.0 = Counter32: 0
UCD-SNMP-MIB::ssIORawSent.0 = Counter32: 133794608
UCD-SNMP-MIB::ssIORawReceived.0 = Counter32: 1193761478
UCD-SNMP-MIB::ssRawInterrupts.0 = Counter32: 688399509
UCD-SNMP-MIB::ssRawContexts.0 = Counter32: 606897153
UCD-SNMP-MIB::ssCpuRawSoftIRQ.0 = Counter32: 0
UCD-SNMP-MIB::ssRawSwapIn.0 = Counter32: 0
UCD-SNMP-MIB::ssRawSwapOut.0 = Counter32: 13
But the graphics appers nan in all fills:
http://flycker3.no-ip.org/cacti/cacti-0 ... 5&rra_id=1

More information:
Image

Any ideia?
What im doing wrong?

Tks!
flycker
Posts: 5
Joined: Tue Sep 05, 2006 7:56 am

Post by flycker »

Here is the poller log:

Code: Select all

09/05/2006 11:07:19 AM - CMDPHP: Poller[0] Host[1] SNMP: Device does not require SNMP
09/05/2006 11:07:19 AM - CMDPHP: Poller[0] Host[1] No host availability check possible for '127.0.0.1'.
09/05/2006 11:07:19 AM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /home/flycker/html/cacti/cacti-0.8.6h/scripts/linux_memory.pl MemFree:, output: 38016
09/05/2006 11:07:19 AM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /home/flycker/html/cacti/cacti-0.8.6h/scripts/linux_memory.pl SwapFree:, output: 2048224
09/05/2006 11:07:19 AM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /home/flycker/html/cacti/cacti-0.8.6h/scripts/loadavg_multi.pl, output: 1min:0.48 5min:0.70 10min:0.74
09/05/2006 11:07:19 AM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /home/flycker/html/cacti/cacti-0.8.6h/scripts/unix_users.pl, output: 2
09/05/2006 11:07:19 AM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /home/flycker/html/cacti/cacti-0.8.6h/scripts/unix_processes.pl, output: 90
09/05/2006 11:07:19 AM - CMDPHP: Poller[0] Time: 0.0924 s, Theads: N/A, Hosts: 1
09/05/2006 11:07:20 AM - SYSTEM STATS: Time:1.0521 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
flycker
Posts: 5
Joined: Tue Sep 05, 2006 7:56 am

Post by flycker »

It's all ok now.
Im forgot to fill the parameter "SNMP Community".

Thanks for the help guys!
[]s
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest