SNMP based template for memory / swap usage on a Unix host

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

Moderators: Developers, Moderators

jfxura
Posts: 2
Joined: Thu Dec 17, 2009 1:46 am
Location: India
Contact:

Post by jfxura »

Thnx phalek. That worked.

Wish i'd read the entire thread before posting!
voltsz
Posts: 13
Joined: Thu Dec 31, 2009 2:01 am

Post by voltsz »

Hello world (the first message on this board, I guess).

Was happen also to my installation the CDEF was incorrect and I needed to adjuct the definition, as suggested by phalek.

My installation is 0.8.7e, installed from fresh. Maybe it's need to export the template I have for avoid the same error to someone?

Cesare
emil.s
Posts: 4
Joined: Sat Sep 26, 2009 5:58 am
Location: Sweden

Re: SNMP based template for memory / swap usage on a Unix ho

Post by emil.s »

Hello!

I have imported the template, but I only have the "Localhost - Memory - Free" data template:
<path_rra>/localhost_mem_buffers_3.rrd

Is there any patch for the other fields?
ketan985
Posts: 11
Joined: Wed Nov 21, 2012 6:25 am

Re: SNMP based template for memory / swap usage on a Unix ho

Post by ketan985 »

All is nice but it will very nice if we can add memory usage with percentage.
User avatar
msaum
Posts: 5
Joined: Tue Dec 22, 2009 8:43 am

Re: SNMP based template for memory / swap usage on a Unix ho

Post by msaum »

I added percentage to the graph by creating my own CDEF. I used the Memory Used (Linux) CDEF.
I called it "Percentage Memory Used (Linux)
cdef=d,c,-,b,-,a,-,1024,*,d,/,10,/

Item #1......Another CDEF: Memory Used (Linux)
Item #2......Custom String: d
Item #3......Operator: /
Item #4......Custom String: 10
Item #5......Operator: /

*****************************
It doesn't get graphed but it shows up in the list of values..
My ONLY problem is trying to create a THOLD against the percentage. Anyone?
Attachments
graph_image.png
graph_image.png (31 KiB) Viewed 2183 times
v1ctorong
Posts: 5
Joined: Fri Jun 28, 2013 3:54 am

Re: SNMP based template for memory / swap usage on a Unix ho

Post by v1ctorong »

Excellent template. Used in cacti 0.8.8.a with some minor correction suggested by phalek.

CDEF:cdefa=d,c,-,b,-,a,-,1024,* \
Kamsiinov
Posts: 3
Joined: Tue Aug 06, 2013 7:12 am

Re: SNMP based template for memory / swap usage on a Unix ho

Post by Kamsiinov »

Seems to be quite good template. However I seem to be getting only buffer and free working. Any idea how come the others are either 0 or "nan"?
Axel90
Cacti User
Posts: 139
Joined: Fri Feb 10, 2017 12:41 pm

Re: SNMP based template for memory / swap usage on a Unix ho

Post by Axel90 »

Hey guys!

the memory template works fine on hosts with a total of up to 16GB RAM (I guess).

But I have 3 Linux Hosts and each of them has 256GB RAM.

the template isn't capable to get the total, used and cached values.

It's just -nan

is there a solution?

PS: My CDEFs are CDEF:cdefa=d,c,-,b,-,a,-,1024,* \
Attachments
mem.JPG
mem.JPG (44.58 KiB) Viewed 1183 times
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests