FAQFAQ   SearchSearch   RegisterRegister   ProfileProfile   Log inLog in 

Discovery plugin and SNMPv2c

 
Post new topic   Reply to topic    CactiUsers.org Forum Index -> General
View previous topic :: View next topic  
Author Message
br5409
New User


Joined: 21 May 2008
Posts: 4

PostPosted: Wed May 21, 2008 5:55 pm    Post subject: Discovery plugin and SNMPv2c Reply with quote

Does the discovery plugin support SNMPv2c? When I run it on SNMPv2c products, it says "10.1.1.ip - Host is alive but no SNMP!" It discovers my SNMPv1 products fine.
Back to top
View user's profile
br5409
New User


Joined: 21 May 2008
Posts: 4

PostPosted: Thu May 22, 2008 5:43 pm    Post subject: Reply with quote

Anyone? Is there a way to force the plugin to use SNMPv2c in the discovery process? or does it use the default setting in Cacti?
Back to top
View user's profile
jimmy
Site Admin


Joined: 11 Nov 2004
Posts: 1498

PostPosted: Mon May 26, 2008 2:57 pm    Post subject: Reply with quote

Easy enough to manually force it.
Open findhosts.php
Find this
'snmp_version' => 1,
and change it to
'snmp_version' => '2c',
Back to top
View user's profile Visit poster's website
br5409
New User


Joined: 21 May 2008
Posts: 4

PostPosted: Thu May 29, 2008 12:45 pm    Post subject: Reply with quote

Thanks Jimmy, I tried that and I am still getting:

[root@localhost html]# php -q plugins/discovery/findhosts.php -f -d
Checking to determine if it's time to run.
Checking if user changed the start time
The next run time has been determined to be at
2008-06-04 11:46:45
Scanning has been forced
Setting 'Rerun Data Queries' = false
Setting 'Create Graphs for Up Interfaces Only' = true
05/29/2008 12:56:21 PM - POLLER: Poller[0] Network Discover is now running
Primary Community Name : (right name here)
Secondary Community Names :
Calculating Info for Subnet :10.1.1.*
Start IP is 10.1.1.1
Total IPs is 254
10.1.1.1
10.1.1.2 - Host is already in hosts table!
10.1.1.3 - Host is alive but no SNMP!
10.1.1.4 - Host is alive but no SNMP!

.3 and .4 are snmpv2c devices. I can add these manually and it works fine. Any ideas?
Back to top
View user's profile
br5409
New User


Joined: 21 May 2008
Posts: 4

PostPosted: Thu May 29, 2008 12:52 pm    Post subject: Reply with quote

Nevermind... I changed this:

'snmp_version' => '2c',

TO

'snmp_version' => 2,

and it works!! Thanks for the help.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    CactiUsers.org Forum Index -> General All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Forums Sitemap