net-snmp 5.2 + openbsd 3.7 + cacti 0.8.6f --> freeze

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
xtalex
Posts: 29
Joined: Sun Aug 14, 2005 1:10 pm

net-snmp 5.2 + openbsd 3.7 + cacti 0.8.6f --> freeze

Post by xtalex »

Good evening,

I have set up 2 machines with net-snmp 5.2 built from the latest stable ports.

The one with cacti 0.8.6f (built from the lastest stable ports) is a freebsd 5.4-stable, and is getting snmp information from an openbsd 3.7-stable.

Information of both machine are collecting thanks cron (/etc/crontab):

Code: Select all

*/5 * * * * cacti /usr/local/bin/php /usr/local/share/cacti/poller.php > /dev/null 2>&1
Everything is working for the freebsd (ie, localhost), but when its cacti tries to get information from the openbsd machine, its (openbsd) net-snmp daemon freezes.

I read this article http://forums.cacti.net/about8134.html, but i guess this is not the same issue.

Any ideas ? Thanks.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

In my 3+ years with Cacti, it has never been the source of another hosts snmp deamon freezing. You should walk the device using net-snmp:

snmpwalk -c <your_community> -v 2c <your_openbsd_host>

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
xtalex
Posts: 29
Joined: Sun Aug 14, 2005 1:10 pm

Post by xtalex »

Before running poller.php, i execute on my openbsd : snmpwalk -c <your_community> -v 2c <your_openbsd_host> and

Code: Select all

snmpwalk -v 2c -c public localhost system.sysUpTime.0 ucdDemoUserList.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (318) 0:00:03.18
Then after :

Code: Select all

snmpwalk -v 2c -c public localhost system.sysUpTime.0 ucdDemoUserList.0
Timeout: No Response from localhost
For each time.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Don't specify a PDU. Just do a walk of the entire tree. I suspect an agent problem none the less.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
xtalex
Posts: 29
Joined: Sun Aug 14, 2005 1:10 pm

Post by xtalex »

Still the same error :(

Code: Select all

snmpwalk -c public -v 2c localhost
Timeout: No Response from localhost
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please make a post to the Net-SNMP forum about your agent crashing. It is likely a known issue as I review the posts in that forum and agent issues can be common.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
bob@plexus
Posts: 2
Joined: Fri Aug 26, 2005 5:06 pm

Post by bob@plexus »

I'm having the same problem on openBSD 3.6 and 3.7. If the daemon is running non-root and started with rc.local on boot it fails. If started as root it does not. If snmpd is started after a login it works fine, even running non-root.

My snmpwalk shows it fails just before this line.

IF-MIB::ifNumber.0 = INTEGER: 6

I'm running net-snmp-5.1.2 and 5.1.2p1 from packages.
bob@plexus
Posts: 2
Joined: Fri Aug 26, 2005 5:06 pm

Post by bob@plexus »

I changed my snmpd files to setgid kmem. Works now.
xtalex
Posts: 29
Joined: Sun Aug 14, 2005 1:10 pm

Fixed

Post by xtalex »

Interesting... I will test it.

But i am using now ucd-snmp and it is working.

http://www.bsdforums.org/forums/showthr ... post185241
xtalex
Posts: 29
Joined: Sun Aug 14, 2005 1:10 pm

Post by xtalex »

bob@plexus wrote:I changed my snmpd files to setgid kmem. Works now.
Can you show me your files please ?

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests