Netscree ISG / SSG 520 Template for Temp, Fan, Power

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

Moderators: Developers, Moderators

Post Reply
md88dg
Posts: 7
Joined: Tue Jan 04, 2011 1:35 am
Location: Germany

Netscree ISG / SSG 520 Template for Temp, Fan, Power

Post by md88dg »

Hi,

here my template for temprature, power supply and fan.
netscreen_cpu_temp.zip
(20.36 KiB) Downloaded 428 times
the templates are created under cacti 0.8.7g
Cacti 0.8.7g
PIA 2.8
PHP 5.1.6
MySQL 5.0.82sp1
RRDTool 1.2.23
SNMP 5.1.2

400 Hosts
4000 RRDs
8000 Data Sources
samshah
Posts: 15
Joined: Sat Mar 20, 2010 9:52 am

Re: Netscree ISG / SSG 520 Template for Temp, Fan, Power

Post by samshah »

Hey guys, been trying to get some graphs of my ssg20 and been trying templates...and getting following results...my question is if this SS520 template will work with SSG20??

Cacti OS win32
Cacti Version 0.8.7g
SNMP Version NET-SNMP version: 5.5
RRDTool Version RRDTool 1.2.x

SSG20 CPU (No/blank graph)
=====================
RRDTool Command:
C:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="SSG20 - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="C\:/Apache2/htdocs/cacti/rra/3/8.rrd":5min_cpu:AVERAGE \
AREA:a#FF0000FF:"CPU Usage" \
GPRINT:a:LAST:"Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf"
RRDTool Says:
OK


FAN (No/blank graph)
=================
RRDTool Command:
C:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="SSG20 - Fan Status" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Status" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="C\:/Apache2/htdocs/cacti/rra/3/64.rrd":nsfan1:AVERAGE \
DEF:b="C\:/Apache2/htdocs/cacti/rra/3/65.rrd":nsfan2:AVERAGE \
DEF:c="C\:/Apache2/htdocs/cacti/rra/3/66.rrd":nsfan3:AVERAGE \
AREA:a#FECEA8FF:"Fan 1\:" \
GPRINT:a:LAST:"Current\:%8.2lf %s\n" \
LINE1:b#FAFD9EFF:"Fan 2\:" \
GPRINT:b:LAST:"Current\:%8.2lf %s\n" \
LINE1:c#FA6900FF:"Fan 3\:" \
GPRINT:c:LAST:"Current\:%8.2lf %s\n"
RRDTool Says:
OK

Load Average (is working properly)
=========================
RRDTool Command:
C:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="SSG20 - Netscreen - Load Average" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Load" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="C\:/Apache2/htdocs/cacti/rra/3/9.rrd":cpu1:AVERAGE \
DEF:b="C\:/Apache2/htdocs/cacti/rra/3/11.rrd":cpu5:AVERAGE \
DEF:c="C\:/Apache2/htdocs/cacti/rra/3/10.rrd":cpu15:AVERAGE \
CDEF:cdefg=TIME,1296475805,GT,a,a,UN,0,a,IF,IF,TIME,1296475805,GT,b,b,UN,0,b,IF,IF,TIME,1296475805,GT,c,c,UN,

0,c,IF,IF,+,+ \
AREA:a#EACC00FF:"cpu 1 minute average" \
GPRINT:a:LAST:" Last\:%8.2lf %s\n" \
AREA:b#EA8F00FF:"CPU 5 minute average":STACK \
GPRINT:b:LAST:" Last\:%8.2lf %s\n" \
AREA:c#FF0000FF:"CPU 15 minute average":STACK \
GPRINT:c:LAST:"Last\:%8.2lf %s\n" \
LINE1:cdefg#000000FF:"Total"
RRDTool Says:
OK

Netscreen Memory (No/broken graph)
============================
RRDTool Command:
C:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="SSG20 - Netscreen - Memory" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="megabytes" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
LINE1:#157419FF:"Memory Allocated" \
GPRINT::AVERAGE:" Last\:%8.2lf %s\n" \
LINE2:#FF0000FF:"Memory Available" \
GPRINT::AVERAGE:" Last\:%8.2lf %s\n" \
LINE3:#F5F800FF:"Memory Fragmented" \
GPRINT::AVERAGE:"Last\:%8.2lf %s\n"
RRDTool Says:ERROR: parameter '#157419FF' does not represent a number in line LINE1:#157419FF:Memory Allocated

Sessions (Working properly)
=====================
RRDTool Command:
C:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="SSG20 - NetScreen - Sessions" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Sessions" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="C\:/Apache2/htdocs/cacti/rra/3/12.rrd":sessionsAlloc:AVERAGE \
DEF:b="C\:/Apache2/htdocs/cacti/rra/3/13.rrd":sessionsFail:AVERAGE \
AREA:a#FF0000FF:"Allocated\:" \
GPRINT:a:LAST:"Last\:%8.2lf %s\n" \
AREA:b#FFAB00FF:"Failed\:" \
GPRINT:b:AVERAGE:" Last\:%8.2lf %s\n"
RRDTool Says:
OK

Power Supply (No/blank graph)
=======================
RRDTool Command:
C:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="SSG20 - Power Supply Status" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Status" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="C\:/Apache2/htdocs/cacti/rra/3/62.rrd":nspower1:AVERAGE \
DEF:b="C\:/Apache2/htdocs/cacti/rra/3/63.rrd":nsfpower2:AVERAGE \
AREA:a#FECEA8FF:"Power1\:" \
GPRINT:a:LAST:"Current\:%8.2lf %s\n" \
LINE1:b#FAFD9EFF:"Power2\:" \
GPRINT:b:LAST:"Current\:%8.2lf %s\n"
RRDTool Says:
OK
md88dg
Posts: 7
Joined: Tue Jan 04, 2011 1:35 am
Location: Germany

Re: Netscree ISG / SSG 520 Template for Temp, Fan, Power

Post by md88dg »

Hello samshah,

i used this oid "1.3.6.1.4.1.3224.21" for my template. Please make a snmp walk from your cacti box over this oid.
my snmp walk looks like this

SNMP Walk Results for xxx.xxx.xxx.xxx

1.3.6.1.4.1.3224.21.1.1.1.1 1
1.3.6.1.4.1.3224.21.1.1.1.2 2
1.3.6.1.4.1.3224.21.1.1.2.1 1
1.3.6.1.4.1.3224.21.1.1.2.2 1
1.3.6.1.4.1.3224.21.1.1.3.1 Primary Power
1.3.6.1.4.1.3224.21.1.1.3.2 Secondary Power
1.3.6.1.4.1.3224.21.2.1.1.1 1
1.3.6.1.4.1.3224.21.2.1.2.1 1
1.3.6.1.4.1.3224.21.2.1.3.1 Fan 1
1.3.6.1.4.1.3224.21.4.1.1.1 1
1.3.6.1.4.1.3224.21.4.1.1.2 2
1.3.6.1.4.1.3224.21.4.1.1.3 3
1.3.6.1.4.1.3224.21.4.1.2.1 4
1.3.6.1.4.1.3224.21.4.1.2.2 7
1.3.6.1.4.1.3224.21.4.1.2.3 7
1.3.6.1.4.1.3224.21.4.1.3.1 41
1.3.6.1.4.1.3224.21.4.1.3.2 30
1.3.6.1.4.1.3224.21.4.1.3.3 34
1.3.6.1.4.1.3224.21.4.1.4.1 CPU/Management Board Temperature
1.3.6.1.4.1.3224.21.4.1.4.2 System Board Temperature 1
1.3.6.1.4.1.3224.21.4.1.4.3 System Board Temperature 2
1.3.6.1.4.1.3224.21.5.1.1.1 1
1.3.6.1.4.1.3224.21.5.1.1.4 4
1.3.6.1.4.1.3224.21.5.1.1.6 6
1.3.6.1.4.1.3224.21.5.1.1.7 7
1.3.6.1.4.1.3224.21.5.1.1.8 8
1.3.6.1.4.1.3224.21.5.1.1.9 9
1.3.6.1.4.1.3224.21.5.1.1.10 10
1.3.6.1.4.1.3224.21.5.1.3.1 1
1.3.6.1.4.1.3224.21.5.1.3.4 1
1.3.6.1.4.1.3224.21.5.1.3.6 1
1.3.6.1.4.1.3224.21.5.1.3.7 1
1.3.6.1.4.1.3224.21.5.1.3.8 1
1.3.6.1.4.1.3224.21.5.1.3.9 1
1.3.6.1.4.1.3224.21.5.1.3.10 1

how version is the os of the ssg20 ???? We also have a old NS25 and this firewall does not have this oid. Please make a snmp walk and look for this oid : 1.3.6.1.4.1.3224.21
Cacti 0.8.7g
PIA 2.8
PHP 5.1.6
MySQL 5.0.82sp1
RRDTool 1.2.23
SNMP 5.1.2

400 Hosts
4000 RRDs
8000 Data Sources
samshah
Posts: 15
Joined: Sat Mar 20, 2010 9:52 am

Re: Netscree ISG / SSG 520 Template for Temp, Fan, Power

Post by samshah »

hi md88dg,

Thanks for the reply, sorry, when i put the oid you mentioned i get following results.
C:\>snmpwalk -c ***** -v 2c *.*.*.45 1.3.6.1.4.1.3224.21
SNMPv2-SMI::enterprises.3224.21 = No Such Object available on this agent at this OID
:( remember, i am running SSG20 with this template hoping it will work with it..

My NetScreen SG version is 6.0
dexx
Posts: 28
Joined: Thu Jan 13, 2011 12:45 am

Re: Netscree ISG / SSG 520 Template for Temp, Fan, Power

Post by dexx »

Was there any progress with this template? Using it on an SSG-550 give me valid graphs for load and sessions. But not for cpu usage or memory usage.
md88dg
Posts: 7
Joined: Tue Jan 04, 2011 1:35 am
Location: Germany

Re: Netscree ISG / SSG 520 Template for Temp, Fan, Power

Post by md88dg »

Hello dexx,

This template is for CPU temprature and nor for CPU usage.
Cacti 0.8.7g
PIA 2.8
PHP 5.1.6
MySQL 5.0.82sp1
RRDTool 1.2.23
SNMP 5.1.2

400 Hosts
4000 RRDs
8000 Data Sources
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests