Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Brocade Fibre Channel templates.
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
jus



Joined: 23 Jul 2007
Posts: 7

PostPosted: Tue Aug 07, 2007 9:06 am    Post subject: Reply with quote

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
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12206
Location: Muenster, Germany

PostPosted: Wed Aug 08, 2007 1:23 pm    Post subject: Reply with quote

Please follow generic debugging help given at the second link of my signature
Reinhard
Back to top
jus



Joined: 23 Jul 2007
Posts: 7

PostPosted: Wed Aug 08, 2007 2:23 pm    Post subject: Reply with quote

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.

Thanks for your replies,

JUS
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12206
Location: Muenster, Germany

PostPosted: Wed Aug 08, 2007 2:40 pm    Post subject: Reply with quote

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
Back to top
pkompibgc



Joined: 20 Sep 2007
Posts: 5

PostPosted: Thu Sep 20, 2007 3:33 am    Post subject: Problems with Brocade template Reply with quote

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'
Back to top
ame
Cacti User


Joined: 25 Nov 2005
Posts: 68

PostPosted: Fri Sep 21, 2007 6:06 am    Post subject: Reply with quote

Hi,

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

Alex
Back to top
ame
Cacti User


Joined: 25 Nov 2005
Posts: 68

PostPosted: Fri Sep 21, 2007 6:13 am    Post subject: Reply with quote

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



cacti_host_template_brocade_4100.xml
 Description:

Download
 Filename:  cacti_host_template_brocade_4100.xml
 Filesize:  260.46 KB
 Downloaded:  442 Time(s)



Last edited by ame on Wed Dec 05, 2007 1:51 am; edited 1 time in total
Back to top
pkompibgc



Joined: 20 Sep 2007
Posts: 5

PostPosted: Fri Sep 21, 2007 6:41 am    Post subject: Reply with quote

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
Back to top
ame
Cacti User


Joined: 25 Nov 2005
Posts: 68

PostPosted: Fri Sep 21, 2007 6:51 am    Post subject: Reply with quote

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
Back to top
pkompibgc



Joined: 20 Sep 2007
Posts: 5

PostPosted: Fri Sep 21, 2007 7:02 am    Post subject: Reply with quote

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
Back to top
pkompibgc



Joined: 20 Sep 2007
Posts: 5

PostPosted: Fri Sep 21, 2007 7:16 am    Post subject: Reply with quote

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
Back to top
pkompibgc



Joined: 20 Sep 2007
Posts: 5

PostPosted: Fri Sep 21, 2007 8:47 am    Post subject: Get values, but no graphs ... Reply with quote

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
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12206
Location: Muenster, Germany

PostPosted: Mon Oct 01, 2007 11:51 am    Post subject: Reply with quote

Please see second link of my signature and pay attention to the section talking about "Downed Host Detection"
Reinhard
Back to top
jus



Joined: 23 Jul 2007
Posts: 7

PostPosted: Thu Oct 18, 2007 5:00 am    Post subject: gettin' new templates work Reply with quote

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
Back to top
nyx



Joined: 13 Jul 2005
Posts: 12

PostPosted: Tue Dec 04, 2007 11:58 pm    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Page 7 of 9

 



Powered by phpBB © 2001, 2005 phpBB Group