Brocade Fibre Channel templates.

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

Moderators: Developers, Moderators

Post Reply
jus
Posts: 7
Joined: Mon Jul 23, 2007 10:05 am

Post by jus »

I changed to cactid - snmp walking works perfect.
Now the system produces no graphs and I can't find no hints in the logs at all.

There are not even rra files for the added hosts in rra dir.....


JUS
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please follow generic debugging help given at the second link of my signature
Reinhard
jus
Posts: 7
Joined: Mon Jul 23, 2007 10:05 am

Post by jus »

gandalf wrote:Please follow generic debugging help given at the second link of my signature
Reinhard
Hi Reinhard,

I solved the problem already:
Changing from poller to cactid won't work on a running system:
- delete all devices
- delete all rrd files
- change to cactid
- setup the devices again.

Now I got to solve the not (yet) working ftp-export, then I'll setup the monitoring for the switches in a 1.6 PByte environment. :wink:

Thanks for your replies,

JUS
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

jus wrote: I solved the problem already:
Changing from poller to cactid won't work on a running system:
- delete all devices
- delete all rrd files
- change to cactid
- setup the devices again.
There should definately be NO reason for doing so. I often change between both simply by changing the poller at Settings->Poller. That's all. But if it's working for you, I won't bother you any more
Reinhard
pkompibgc
Posts: 5
Joined: Thu Sep 20, 2007 3:13 am

Problems with Brocade template

Post by pkompibgc »

Hi,

I'm currently starting to use cacti to get some closer look at our SAN switches.
After installing the normal SuSE stuff (we are working with SuSE ...) Cacti
cacti-0.8.6h-36.2 is up and running. I've added a host (for testing) and also
both Brocades (SW 4100).
I can monitor fan and temp, but I see not a single fc port ...

Adding the data query for Brocade_ports shows this output.
So what's wrong with my setup ?
snmpwalk shows all values.

Thanks for your help !
Bye, Peer


Debug output is
+ Running data query [10].
+ Found type = '4 '[script query].
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/brocade_interfaces.xml'
+ XML file parsed ok.
+ Executing script for list of indexes ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/brocade_interfaces.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/brocade_interfaces.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/brocade_interfaces.xml'
ame
Cacti User
Posts: 77
Joined: Fri Nov 25, 2005 6:15 am

Post by ame »

Hi,

I have no problems querying a Brocade 4100....community settings correct? I am using SNMP V2.....

Alex
ame
Cacti User
Posts: 77
Joined: Fri Nov 25, 2005 6:15 am

Post by ame »

for testing I have added you my modified template for the Brocade 4100

[b]Please be careful - nyx said that some Interface graph templates will be changed while importing my host template......sorry for the confusion...

But that is a general problem of cacti when you want to import host templates - it does update all linked data sources and graph templates......[/b]

Alex
Attachments
cacti_host_template_brocade_4100.xml
(260.46 KiB) Downloaded 1043 times
Last edited by ame on Wed Dec 05, 2007 1:51 am, edited 1 time in total.
pkompibgc
Posts: 5
Joined: Thu Sep 20, 2007 3:13 am

Post by pkompibgc »

Hi,

thanks for your help.

When I try to import the template I get an error message
Error: XML: Hash version does not exist.

What does it mean ?

snmpwalk is working for the switch. The Temp and FAN values are all correct.

Bye, Peer
ame
Cacti User
Posts: 77
Joined: Fri Nov 25, 2005 6:15 am

Post by ame »

I am using 0.86i - so that is the problem with the import.....have you saved the xml-file at .../resource/snmp_queries ?

All interfaces will be queried over the xml-file....so it seems that this file is missing

Alex
pkompibgc
Posts: 5
Joined: Thu Sep 20, 2007 3:13 am

Post by pkompibgc »

HI,

you mean the file brocade_interfaces.xml from the original source ?
It's there
sequoia:/usr/share/cacti/resource/snmp_queries # ll
total 24
-rw-r--r-- 1 root root 5472 Sep 5 09:20 brocade_interfaces.xml

So what I've done:
I've imported the templates and copied the file above into the resource/snmp_queries
folder. I have added a new device and I'm able to monitor fan and temperature.

The log file shows no error.

Can I call the xml file from the cli to get more informations what's going wrong ?

Bye, Peer
pkompibgc
Posts: 5
Joined: Thu Sep 20, 2007 3:13 am

Post by pkompibgc »

OK,

as expected: my fault. Somehow the data query was NOT set to snmp....
Don't know how this could happen. Now all 32 ports are found.
Waiting for the graphs ....

Thanks a lot !

Bye, peer
pkompibgc
Posts: 5
Joined: Thu Sep 20, 2007 3:13 am

Get values, but no graphs ...

Post by pkompibgc »

Hi,

I'm now seeing all devices, but creating a graph is not working correctly:

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Brocade 3- Traffic Port 1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/var/lib/cacti/brocade_3_traffic_in_230.rrd":traffic_in:AVERAGE \
DEF:b="/var/lib/cacti/brocade_3_traffic_in_230.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In\: 0 bytes\n" \
LINE1:cdeff#002A97:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 0 bytes"

RRDTool Says:

ERROR: opening '/var/lib/cacti/brocade_3_traffic_in_230.rrd': No such file or directory

In which step is "brocade_3_traffic_in_230.rrd" created (normaly) ?

Bye, Peer
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please see second link of my signature and pay attention to the section talking about "Downed Host Detection"
Reinhard
jus
Posts: 7
Joined: Mon Jul 23, 2007 10:05 am

gettin' new templates work

Post by jus »

Hi,

I would like to update my brocade template with the newer one so that I can see the throughput in bytes.

I put the new templates in the appropriate places (the one into the filesystem <cacti/ressources/ >), the host template I removed and imported the new one.

HowTo get the new template working (see additional the bytes transmitted) without destroying the old graphs?

Would it be possible to expand the template to see two results (Rx bytes and Tx bytes per port) seperately?


Thanks for help,

cheers, JUS
nyx
Posts: 12
Joined: Wed Jul 13, 2005 1:23 am

Post by nyx »

ame, can you please add to your post with the updated .xml for the 4100 and warn people that you have changed the default interfaces bits/s and the 95th percentile? I installed it and just spent 15mins getting all my graphs back to the standard formats we use.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests