[SOLVED] Better Linux memory usage graphs ?

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

kriskaido
Posts: 18
Joined: Wed Oct 26, 2005 10:15 am

Post by kriskaido »

Here it is :

Code: Select all

UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
UCD-SNMP-MIB::memErrorName.0 = STRING: swap
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 522104 kB
UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 435912 kB
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 1005480 kB
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 150168 kB
UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 586080 kB
UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000 kB
UCD-SNMP-MIB::memShared.0 = INTEGER: 0 kB
UCD-SNMP-MIB::memBuffer.0 = INTEGER: 36268 kB
UCD-SNMP-MIB::memCached.0 = INTEGER: 407592 kB
UCD-SNMP-MIB::memSwapError.0 = INTEGER: noError(0)
UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING: 
Here's another funny graph
Attachments
graph_image.php.png
graph_image.php.png (53.77 KiB) Viewed 15129 times
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

I think the graph template is corrupted...

Could you post a screenshot of it ?
[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]
kriskaido
Posts: 18
Joined: Wed Oct 26, 2005 10:15 am

Post by kriskaido »

Here it is
Attachments
Picture 2.png
Picture 2.png (181.51 KiB) Viewed 15103 times
User avatar
exploit-soget
Posts: 40
Joined: Tue Jan 23, 2007 5:31 am

Post by exploit-soget »

Hi all,

I've exactly the same problem than kriskaido ....

Please help us ... Your template seems great.

My cacti configuration is :
Cacti Version - 0.8.7a
Plugin Architecture - 1.4
Poller Type - Cactid v
Server Info - Linux 2.6.9-55.0.12.plus.c4smp
Web Server - Apache/2.0.59 (CentOS)
PHP - 5.1.6
PHP Extensions - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, gd, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp, eAccelerator
MySQL - 5.0.48
RRDTool - 1.2.23
SNMP - 5.1.2
Plugins
  • Create Aggregate Graphs (aggregate - v0.63)
    Dataquery (dataquery - v0.1.4a)
    Network Discovery (discovery - v0.8.2)
    Error Images (errorimage - v0.1)
    FlowView (flowview - v0.4)
    Host Info (hostinfo - v0.2)
    killspike (killspike - v0.1.0a)
    Device Monitoring (monitor - v0.8.1)
    ReportIt (ReportIt - v0.5.1)
    RRD File Cleaner (RRD Cleaner - v0.32)
    Global Plugin Settings (settings - v0.3)
    SSL Redirector (ssl - v0.1)
    Syslog Monitoring (syslog - v0.5.1)
    Thresholds (thold - v0.3.8)
    Network Tools (tools - v0.2)
    Update Checker (update - v0.4)
    Real-time statistics (zond - v0.32)
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Well, after checking quicky, I have the same problem with Cacti 0.8.7a :cry: :

Image

With 0.8.6j, the CDEF (which calculates "used memory" with "total memory - shared - free - buffers) works fine :

Image

I'll try to find why.
[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]
User avatar
exploit-soget
Posts: 40
Joined: Tue Jan 23, 2007 5:31 am

Post by exploit-soget »

Thanks a lot for your time and patience ... :wink:
kormoc
Posts: 3
Joined: Fri Nov 30, 2007 1:36 am

Post by kormoc »

Awesome graph. Thanks very much!

Any idea on how hard (or where I should look) to add shared memory to the graphs?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

kormoc wrote:Any idea on how hard (or where I should look) to add shared memory to the graphs?
It's not difficult to modify the templates, but on every server I have the value is 0 :-?
[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]
User avatar
exploit-soget
Posts: 40
Joined: Tue Jan 23, 2007 5:31 am

Post by exploit-soget »

fmangeant wrote:Well, after checking quicky, I have the same problem with Cacti 0.8.7a :cry: :

Image

With 0.8.6j, the CDEF (which calculates "used memory" with "total memory - shared - free - buffers) works fine :

Image

I'll try to find why.
Have you some news (good ?) about the problem of this graph ?
I use it in a PRODUCTION environment and it is difficult to resolve this problem (i have try with the CDEF but in vain).

Please HEEELPPPP ...
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

I'll keep an eye on it tomorrow (I don't have access to my Cacti serves today).
[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]
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Using this patch, the graph is working again :)
Attachments
graph_image.php.png
graph_image.php.png (32.15 KiB) Viewed 14946 times
[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]
kriskaido
Posts: 18
Joined: Wed Oct 26, 2005 10:15 am

Post by kriskaido »

I'm not a patch guru, how do you apply it ?

Thanks !!

Kris.
User avatar
exploit-soget
Posts: 40
Joined: Tue Jan 23, 2007 5:31 am

Post by exploit-soget »

IT WORKS ! Thanks a lot.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

kriskaido wrote:I'm not a patch guru, how do you apply it ?
See the instructions here.

You can also download pre-patched files there.
[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]
kriskaido
Posts: 18
Joined: Wed Oct 26, 2005 10:15 am

Post by kriskaido »

Perfect, thanks !
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests