UNIX Template Set for Cacti: HP-UX, Solaris, Linux

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

Moderators: Developers, Moderators

Post Reply
mgeoffret
Posts: 3
Joined: Fri Dec 21, 2012 11:00 am

Re: UNIX Template Set for Cacti: HP-UX, Solaris, Linux

Post by mgeoffret »

I added a server 11.31 with 8 FS, it's OK.

Code: Select all

+ Located input field 'fileSystemDir' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.11.2.3.1.2.2.1.10'
+ Found item [fileSystemDir='/stand'] index: 1073741825.0 [from value]
+ Found item [fileSystemDir='/'] index: 1073741827.0 [from value]
+ Found item [fileSystemDir='/home'] index: 1073741828.0 [from value]
+ Found item [fileSystemDir='/opt'] index: 1073741829.0 [from value]
+ Found item [fileSystemDir='/tmp'] index: 1073741830.0 [from value]
+ Found item [fileSystemDir='/usr'] index: 1073741831.0 [from value]
+ Found item [fileSystemDir='/var'] index: 1073741832.0 [from value]
...
Another 11.31 with 31 FS, it's not good.

Code: Select all

+ Located input field 'fileSystemDir' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.11.2.3.1.2.2.1.10'
gwhite
Posts: 3
Joined: Wed Mar 26, 2014 3:34 pm

Re: UNIX Template Set for Cacti: HP-UX, Solaris, Linux

Post by gwhite »

I am having trouble with these commands. For CPU & Memory I am getting only a NaN reply. Any advice would be appreciated. I've tried importing the .xml file twice as suggested. I'm running Cacti 0.8.8b

Config Details:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1400084997 \
--end=1400099397 \
--title='inst.1m0a.doma.lsc.lco.gtn - CPU Usage' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit='0' \
COMMENT:"From 2014/05/14 16\:29\:57 To 2014/05/14 20\:29\:57\c" \
COMMENT:" \n" \
--vertical-label='percent' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a='/usr/share/cacti/rra/inst_1m0a_doma_lsc_lco_gtn_cpu_idle_1352.rrd':'cpu_idle':AVERAGE \
DEF:b='/usr/share/cacti/rra/inst_1m0a_doma_lsc_lco_gtn_cpu_system_1354.rrd':'cpu_system':AVERAGE \
DEF:c='/usr/share/cacti/rra/inst_1m0a_doma_lsc_lco_gtn_cpu_user_1355.rrd':'cpu_user':AVERAGE \
DEF:d='/usr/share/cacti/rra/inst_1m0a_doma_lsc_lco_gtn_cpu_nice_1353.rrd':'cpu_nice':AVERAGE \
CDEF:cdefb='b,100,*,TIME,1400099104,GT,b,b,UN,0,b,IF,IF,TIME,1400099104,GT,c,c,UN,0,c,IF,IF,TIME,1400099104,GT,d,d,UN,0,d,IF,IF,TIME,1400099104,GT,a,a,UN,0,a,IF,IF,+,+,+,/' \
CDEF:cdefg='c,100,*,TIME,1400099104,GT,b,b,UN,0,b,IF,IF,TIME,1400099104,GT,c,c,UN,0,c,IF,IF,TIME,1400099104,GT,d,d,UN,0,d,IF,IF,TIME,1400099104,GT,a,a,UN,0,a,IF,IF,+,+,+,/' \
CDEF:cdefbb='d,100,*,TIME,1400099104,GT,b,b,UN,0,b,IF,IF,TIME,1400099104,GT,c,c,UN,0,c,IF,IF,TIME,1400099104,GT,d,d,UN,0,d,IF,IF,TIME,1400099104,GT,a,a,UN,0,a,IF,IF,+,+,+,/' \
CDEF:cdefbg='TIME,1400099104,GT,b,b,UN,0,b,IF,IF,TIME,1400099104,GT,c,c,UN,0,c,IF,IF,TIME,1400099104,GT,d,d,UN,0,d,IF,IF,TIME,1400099104,GT,a,a,UN,0,a,IF,IF,+,+,+,a,-,100,*,TIME,1400099104,GT,b,b,UN,0,b,IF,IF,TIME,1400099104,GT,c,c,UN,0,c,IF,IF,TIME,1400099104,GT,d,d,UN,0,d,IF,IF,TIME,1400099104,GT,a,a,UN,0,a,IF,IF,+,+,+,/' \
COMMENT:' ' \
AREA:cdefb#FF0000FF:'System' \
GPRINT:cdefb:LAST:' Last\:%6.2lf%%' \
GPRINT:cdefb:MIN:'Min\:%6.2lf%%' \
GPRINT:cdefb:AVERAGE:'Avg\:%6.2lf%%' \
GPRINT:cdefb:MAX:'Max\:%6.2lf%%\n' \
AREA:cdefg#0000FFFF:'User':STACK \
GPRINT:cdefg:LAST:' Last\:%6.2lf%%' \
GPRINT:cdefg:MIN:'Min\:%6.2lf%%' \
GPRINT:cdefg:AVERAGE:'Avg\:%6.2lf%%' \
GPRINT:cdefg:MAX:'Max\:%6.2lf%%\n' \
AREA:cdefbb#00FF00FF:'Nice':STACK \
GPRINT:cdefbb:LAST:' Last\:%6.2lf%%' \
GPRINT:cdefbb:MIN:'Min\:%6.2lf%%' \
GPRINT:cdefbb:AVERAGE:'Avg\:%6.2lf%%' \
GPRINT:cdefbb:MAX:'Max\:%6.2lf%%\n' \
LINE1:cdefbg#000000FF:'Total Usage' \
GPRINT:cdefbg:LAST:'Last\:%6.2lf%%' \
GPRINT:cdefbg:MIN:'Min\:%6.2lf%%' \
GPRINT:cdefbg:AVERAGE:'Avg\:%6.2lf%%' \
GPRINT:cdefbg:MAX:'Max\:%6.2lf%%\n'
Attachments
Screenshot of problem
Screenshot of problem
nan.jpeg (38.05 KiB) Viewed 1675 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests