[XML] Netscreen CPU Memory and Session stats

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

Moderators: Moderators, Developers

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

Re: Another version

#31 Post by mpking » Thu Sep 21, 2006 5:04 pm

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

#32 Post by samuelshi » Fri Oct 13, 2006 4:51 am

I want to know how to install netscreen MIBS in the Cacti?
Thanks!

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

#33 Post by mpking » Fri Oct 13, 2006 8:12 am

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

#34 Post by AndySTT » Tue Dec 12, 2006 9:47 am

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

#35 Post by slech » Fri Nov 23, 2007 5:49 pm

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 2155 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:

#36 Post by fitzer » Tue Sep 16, 2008 2:56 pm

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

#37 Post by pdurnien » Fri Feb 26, 2010 6:33 am

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
cpu.png
Showing CPU at 1,5,15 minute averages
cpu.png (27.38 KiB) Viewed 5412 times
Mem.png
Showing Memory Available and Allocated
Mem.png (7.06 KiB) Viewed 5412 times
Session.png
Showing Session and Failed Sessions (Zero shown here)
Session.png (8.46 KiB) Viewed 5412 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 1185 times

hahaweber
Posts: 2
Joined: Mon Apr 19, 2010 9:31 pm

#38 Post by hahaweber » Tue Apr 20, 2010 7:04 pm

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

#39 Post by samshah » Mon Jan 31, 2011 7:51 am

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

#40 Post by itpsgriffinma » Thu May 05, 2011 3:30 pm

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

#41 Post by samir7399 » Fri Nov 30, 2012 3:30 am

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