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    


Can Cacti auto detect ?

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
gifty



Joined: 17 Jul 2008
Posts: 21

PostPosted: Thu Jul 17, 2008 2:08 pm    Post subject: Can Cacti auto detect ? Reply with quote

Hi

I was wondering can cacti auto detect if router is 32 bit or 64 bit ?
I was trying to write a script to auto add graphs, on information available in database,
But i can not chose between In/out bits and In/Out bits (64 bit counter) using query in database. How should i do that ?


Please Help me as i am newbie to Cacti.

Thanks a lot

-Vineet Singh
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Fri Jul 25, 2008 1:06 pm    Post subject: Reply with quote

You should do the following, in this order:

1) Poll the High Speed Uptime using snmpv2c. if you get a good value use 64bit
2) Poll the ifSpeed using snmpv2c if you can, walk the High Speed Counters, if all good, use 64bit
3) Else, use 32bit

TheWitness
Back to top
gifty



Joined: 17 Jul 2008
Posts: 21

PostPosted: Fri Jul 25, 2008 1:15 pm    Post subject: Reply with quote

You should do the following, in this order:

1) Poll the High Speed Uptime using snmpv2c. if you get a good value use 64bit
2) Poll the ifSpeed using snmpv2c if you can, walk the High Speed Counters, if all good, use 64bit
3) Else, use 32bit

TheWitness



Hi, Thanks a lot for replying.

Can you please tell me "How to poll?" ... Like u said "Poll the High Speed Uptime" -> How can i do that.
I am really new to cacti so do not know most of the things.
Please let me know.

Thanks a lot.

-Vineet Singh
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Fri Jul 25, 2008 1:21 pm    Post subject: Reply with quote

Use the cacti functions cacti_snmp_get and cacti_snmp_walk. Do a walk of one of your 64bit devices to find the High Speed stuff. I don't have it handy.

TheWitness
Back to top
gifty



Joined: 17 Jul 2008
Posts: 21

PostPosted: Fri Jul 25, 2008 1:53 pm    Post subject: Reply with quote

Hi,

I do not know how to use those functions?
It was not there in tutorials .
From where i can get tutorials for those functions ?
All i know is what its on cacti site documentation and it was not in there.

Please tell me.

Thanks a lot.

-Vineet Singh
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Fri Jul 25, 2008 8:40 pm    Post subject: Reply with quote

I would review the few scripts that we include in the base package. There you will find a few snmp function calls that give you all the details. If you are unfamiliar with snmp, then you will learn.

There is nothing better for creation than reference artwork.

TheWitness
Back to top
gifty



Joined: 17 Jul 2008
Posts: 21

PostPosted: Mon Jul 28, 2008 1:10 pm    Post subject: Reply with quote

Hey,

Can you tell me which files i have to look in ?
Thanks

-Vineet Singh
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
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group