[XML] Netscreen CPU Memory and Session stats

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

Moderators: Developers, Moderators

mpking
Posts: 18
Joined: Thu Dec 08, 2005 11:16 am

Re: Another version

Post by mpking »

Setarcos wrote: Note: There is a mix of numeric OIDs and MIB variables. In order to use this host template as-is you will need the Netscreen MIBs installed.
Just for the record, how do you do this?
samuelshi
Posts: 2
Joined: Thu Oct 12, 2006 11:59 pm

Post by samuelshi »

I want to know how to install netscreen MIBS in the Cacti?
Thanks!
mpking
Posts: 18
Joined: Thu Dec 08, 2005 11:16 am

Post by mpking »

samuelshi wrote:I want to know how to install netscreen MIBS in the Cacti?
Thanks!
I never got an answer.

I ended up recreating the Files, since they didn't work for me. I also tweaked a few things. (I hate stacked graphs for CPU, it always screws me up)

I'm attaching my file,

Tell me how I did

***UPDATE***

I just used my own Template (rebuilding a new cacti server) and it looks like it corrupts the SNMP-interfaces template, which means it royally screws things up when you try to add more hosts

I'll post what I did to to rename the Named OID's to Numbers
AndySTT
Posts: 9
Joined: Tue Dec 12, 2006 9:36 am

Adding sub-interfaces and tunnels to stats

Post by AndySTT »

Has anyone, or can someone explain to me (point me in the right direction) of how to add discovery and collection of sub-interface and tunnel specific byte count information.

I have the last of the templates from this post installed and it works just fine but we have a large number of netscreens and almost all have 5+ VPNs tunnels each and all use a configuration that doesn't use the native interfaces for each 'domain'.

Any help greatly appreciated!
slech
Cacti User
Posts: 90
Joined: Tue Nov 06, 2007 7:51 am

Post by slech »

I have modifaed this template
Its work without need to import any mibs.


NETSCREEN-RESOURCE-MIB::nsResMemAllocate.0 - 1.3.6.1.4.1.3224.16.2.1
NETSCREEN-RESOURCE-MIB::nsResMemFrag.0 - 1.3.6.1.4.1.3224.16.2.3
NETSCREEN-RESOURCE-MIB::nsResMemLeft.0 - 1.3.6.1.4.1.3224.16.2.2
NETSCREEN-RESOURCE-MIB::nsResSessAllocate.0 - 1.3.6.1.4.1.3224.16.3.2
NETSCREEN-RESOURCE-MIB::nsResSessFailed.0 - 1.3.6.1.4.1.3224.16.3.4
Attachments
cacti_host_template_netscreen_ns_50.xml
(179.45 KiB) Downloaded 2191 times
[size=75]
[color=green]|Cacti 0.87|[/color][color=green]|PA 1.3|[/color][color=green]|Poller cmd.php|[/color][color=green]|IIS 6.0|[/color][color=green]|PHP Version 5.2.4|[/color][color=green]|MySQL 5.0.27|[/color][color=green]|RRDtool 1.2.15|[/color][/size]
[color=brown]|Thold 0.3.8 |[/color] [color=red]|Zond 0.34 |[/color]
[url=http://forums.cacti.net/viewtopic.php?t=15067][size=75]Complete List of Cacti Scripts and Templates[/size][/url]
[url=http://forums.cacti.net/viewtopic.php?t=14985][size=75]Currently Known Plugins[/size][/url]
fitzer
Posts: 3
Joined: Sun Feb 10, 2008 2:37 pm
Contact:

Post by fitzer »

mpking wrote: I ended up recreating the Files, since they didn't work for me. I also tweaked a few things. (I hate stacked graphs for CPU, it always screws me up)

I'm attaching my file,

Tell me how I did
mpking: I'd love to tell you how you did, but I can't find the file you updated. I hate stacked graphs as well.
pdurnien
Posts: 1
Joined: Fri Feb 26, 2010 6:11 am
Location: England

Post by pdurnien »

After trying several templates and scripts I found "slech" to work mostly well. There were a couple problems however. I have corrected them and now CPU, Memory and Sessions are working correctly and without fault.

I ripped out all the old NetScreen scripts - leaving the device in place.

Whats nice about this XML is that everything is done by polling SNMP direct from cacti and does away with additional scripts. should the need be changes can be made within Cacti's UI.

Importing the xml should set everything up. you may need to just configure your graphs but the data queries should be in place.
If it's working you should start to see graphing within a couple minutes. Certainly no longer

Compatibility
This is working with a NS25 but should work with other devices. Hence the Host template "Netscreen Device"
Loaded on Cacti Version 0.8.7e
Attachments
Showing CPU at 1,5,15 minute averages
Showing CPU at 1,5,15 minute averages
cpu.png (27.38 KiB) Viewed 6382 times
Showing Memory Available and Allocated
Showing Memory Available and Allocated
Mem.png (7.06 KiB) Viewed 6382 times
Showing Session and Failed Sessions (Zero shown here)
Showing Session and Failed Sessions (Zero shown here)
Session.png (8.46 KiB) Viewed 6382 times
cacti_host_template_netscreen_device.xml
Builds on slech work - correcting a couple graph errors and making some minor changes to Naming. Working well on NetScreen-25 version 5.4.0r3a.0.

To install simply download the .xml and import into Cacti. The XML file will setup a new host template 'Ne
(180.42 KiB) Downloaded 1234 times
hahaweber
Posts: 2
Joined: Mon Apr 19, 2010 9:31 pm

Post by hahaweber »

Hi TFC
I met the same question as you,But I succeeded in the following way

check follow path

Console-Data-Input-Methods "Input String" add “perl”

By the way, I am not very good in English

thanks!
samshah
Posts: 15
Joined: Sat Mar 20, 2010 9:52 am

Re: [XML] Netscreen CPU Memory and Session stats

Post by samshah »

Hi,

I am getting following error on cpu load average only, while memory usage is graphing fine :)
Plz help..

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

CPU LOad Average
==================

RRDTool Command:
C:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="SSG20 - CPU Load Average" \
--rigid \
--base=1000 \
--height=240 \
--width=1000 \
--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/67.rrd":load_1min:AVERAGE \
DEF:b="C\:/Apache2/htdocs/cacti/rra/3/69.rrd":load_5min:AVERAGE \
DEF:c="C\:/Apache2/htdocs/cacti/rra/3/68.rrd":load_15min:AVERAGE \
CDEF:cdefg=TIME,1296477690,GT,a,a,UN,0,a,IF,IF,TIME,1296477690,GT,b,b,UN,0,b,IF,IF,+ \
AREA:a#EACC00FF:"1 Minute Average" \
GPRINT:a:AVERAGE:" Current\:%8.2lf\n" \
AREA:b#EA8F00FF:"5 Minute Average":STACK \
GPRINT:b:LAST:" Current\:%8.2lf\n" \
AREA:#FF0000FF:"15 Minute Average":STACK \
GPRINT:c:LAST:"Current\:%8.2lf\n" \
LINE1:cdefg#000000FF:""
RRDTool Says:
ERROR: parameter '#FF0000FF' does not represent a number in line AREA:#FF0000FF:15 Minute Average:STACK

Also, see if you can help me with another post i am currently working with here..
http://forums.cacti.net/viewtopic.php?f ... 38#p206838
I am having similar problems with another Juniper device..JSR6350
itpsgriffinma
Posts: 1
Joined: Fri Apr 29, 2011 4:24 pm

Re: [XML] Netscreen CPU Memory and Session stats

Post by itpsgriffinma »

This is an old post and hopefully someone answers. I am pretty new to Cacti and I am trying to use the pre-built templates. If someone could assist me I would really appreciate it. Thanks.

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='Firewall - CPU Load Average' \
--rigid \
--base=1000 \
--height=240 \
--width=1000 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='percent' \
--slope-mode \
--font TITLE:10: \
--font AXIS:6: \
--font LEGEND:8: \
--font UNIT:6: \
DEF:a="/var/www/html/cacti/rra/_load_1min_11.rrd":load_1min:AVERAGE \
DEF:b="/var/www/html/cacti/rra/_load_5min_13.rrd":load_5min:AVERAGE \
DEF:c="/var/www/html/cacti/rra/_load_15min_12.rrd":load_15min:AVERAGE \
CDEF:cdefg=TIME,1304626817,GT,a,a,UN,0,a,IF,IF,TIME,1304626817,GT,b,b,UN,0,b,IF,IF,+ \
AREA:a#EACC00FF:"1 Minute Average" \
GPRINT:a:AVERAGE:" Current\:%8.2lf\n" \
AREA:b#EA8F00FF:"5 Minute Average":STACK \
GPRINT:b:LAST:" Current\:%8.2lf\n" \
AREA:#FF0000FF:"15 Minute Average":STACK \
GPRINT:c:LAST:"Current\:%8.2lf\n" \
LINE1:cdefg#000000FF:""

RRDTool Says:

ERROR: parameter '#FF0000FF' does not represent a number in line AREA:#FF0000FF:15 Minute Average:STACK

@samshah
As you can see above I was having the same issues. I went into the XML file and changed the color used FF0000FF to another color. Deleted my test device, re-imported the device. I was still having the issue so I unassociated the data source from the graph and re-applied that and then it started graphing. Hope this helps.
samir7399
Posts: 10
Joined: Thu Nov 22, 2012 1:24 am

Re: [XML] Netscreen CPU Memory and Session stats

Post by samir7399 »

Installed Pdurnien's template.

All graphs are working except CPU. the graph is not getting generated. I suspect this to be some other issue though not necessarily a problem with the template.

--Update

Got the CPU graph working too. Somehow the first data source was selected as "None". The other two data sources were automatically selected as 1 min and 5 min intervals. Added the 15 min interval to the source which was None and the graph got generated instantly.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest