SNMP sanity check failed error Please help me

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
maynatay67
Posts: 3
Joined: Sat Mar 20, 2010 4:35 am

SNMP sanity check failed error Please help me

Post by maynatay67 »

i am new cacti. my os freebsd 8.0

i use cacti with freebsd 8.0 ports. when i set up cacti

SNMP sanity check failed. Stop /usr/ports/net-mgt/php-snmp failed.

snmp sanity check failed configure: failed program was: | /* confdefs.h. */

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

Re: SNMP sanity check failed error Please help me

Post by gandalf »

maynatay67 wrote:i am new cacti. my os freebsd 8.0

i use cacti with freebsd 8.0 ports. when i set up cacti

SNMP sanity check failed. Stop /usr/ports/net-mgt/php-snmp failed.

snmp sanity check failed configure: failed program was: | /* confdefs.h. */

please help me.
SNMP sanity check failed??? What is that? On a device screen? Please post a screenshot
R.
maynatay67
Posts: 3
Joined: Sat Mar 20, 2010 4:35 am

Post by maynatay67 »

checking for snmp_parse_oid in -lnetsnmp... no
checking for init_snmp in -lnetsnmp... no
configure: error: SNMP sanity check failed. Please check config.log for more information.
===> Script "configure" failed unexpectedly.
Please report the problem to ale@FreeBSD.org [maintainer] and attach the
"/usr/ports/net-mgmt/php5-snmp/work/php-5.2.12/ext/snmp/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/net-mgmt/php5-snmp.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.
%

conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
configure:3200: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You'd best provide all of:

usr/ports/net-mgmt/php5-snmp/work/php-5.2.12/ext/snmp/config.log

For an untrained eye, they are actually quite difficult to read.

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?
maynatay67
Posts: 3
Joined: Sat Mar 20, 2010 4:35 am

Post by maynatay67 »

i sent my config log.

Please help me.
Attachments
snmp.txt
My Config Log
(12.17 KiB) Downloaded 359 times
User avatar
Sirup
Cacti Moderator
Posts: 348
Joined: Tue Mar 02, 2010 9:03 am

Post by Sirup »

First, this is something BSD-specific, so it might be better to ask your question in de FreeBSD-Forums.

Try to compile and reinstall SNMP or make portupgrade -f on snmpd.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Agreed. From my read of the log, you have a dependent library that is already compiled in one of the dependent libraries that expects the net-snmp library to contain a function that is not defined for the version of net-snmp that you have installed.

My suggestion is that the net-snmp package is at the wrong version for the entire build to work.

Here is the message of interest.

Code: Select all

/usr/local/lib/libnetsnmp.so: undefined reference to `__stack_chk_fail_local'
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?
bart.taichung
Posts: 2
Joined: Thu Apr 15, 2010 3:56 am

Re: SNMP sanity check failed error Please help me

Post by bart.taichung »

maynatay67 wrote:i am new cacti. my os freebsd 8.0

i use cacti with freebsd 8.0 ports. when i set up cacti

SNMP sanity check failed. Stop /usr/ports/net-mgt/php-snmp failed.

snmp sanity check failed configure: failed program was: | /* confdefs.h. */

please help me.

i had the same problem with installed php5-snmp on freebsd 8.0

pkg_info
apache-2.2.14
php5-5.3.2
php5-extensions-1.3
net-snmp-5.4.2.1
perl-threaded-5.10.1

attachment is the error clip
Attachments
snmp .rar
php5-snmp install fail
(31.06 KiB) Downloaded 117 times
bart.taichung
Posts: 2
Joined: Thu Apr 15, 2010 3:56 am

Re: SNMP sanity check failed error Please help me

Post by bart.taichung »

bart.taichung wrote:
maynatay67 wrote:i am new cacti. my os freebsd 8.0

i use cacti with freebsd 8.0 ports. when i set up cacti

SNMP sanity check failed. Stop /usr/ports/net-mgt/php-snmp failed.

snmp sanity check failed configure: failed program was: | /* confdefs.h. */

please help me.

i had the same problem with installed php5-snmp on freebsd 8.0

pkg_info
apache-2.2.14
php5-5.3.2
php5-extensions-1.3
net-snmp-5.4.2.1
perl-threaded-5.10.1

attachment is the error clip

Its working. Finally
try this way .
perl-5.8.9_3 make config without threaded ,
then make install php5-snmp will be success
because php5-snmp conflicts with perl-threaded .


Image
Image[/img]
Attachments
FreeBSD8_apache22_php532_snmp.rar
(37.24 KiB) Downloaded 113 times
bilgeexuu
Posts: 3
Joined: Tue Dec 21, 2010 8:42 pm

Re: SNMP sanity check failed error Please help me

Post by bilgeexuu »

/usr/local/lib/libnetsnmp.so: undefined reference to `__stack_chk_fail_local'
error code ....


check net-snmp-----------

Bug fix: freebsd 8.1 cacti-spine
uname -a
FreeBSD cacti#........... 8.1-RELEASE

cacti# cd /usr/ports/net-mgmt/net-snmp
cacti# more Makefile
----------- - - - - - check
.if ${OSVERSION} >= 800000
CONFIGURE_ARGS+= --wuth-libs="-lssp_nonshared"
---------------------------
cacti# cd /usr/ports/net-mgmt/cacti-spine/work/cacti-spine-0.8.7g/
cacti# vi Makefile
------add line--------LIBS-----lssp_nonshared-------------------------------------
LIBS = -lnetsnmp -lmysqlclient_r -lcrypto -lz -lpthread -lm -lssp_nonshared
-----------------------------end----------------------------------------------------------
cacti# make clean
cacti# make install
ok
bilgeexuu
Posts: 3
Joined: Tue Dec 21, 2010 8:42 pm

Re: SNMP sanity check failed error Please help me

Post by bilgeexuu »

cd /usr/ports/net-mgmt/net-snmp/
make install
cd work/net-snmp-XXX/
more INSTALL
cd perl
perl Makefile.PL
make
make test
make install
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests