Re: net-snmp5.8 endpoint ""

2019-06-15 Thread Philippe DENIS via Net-snmp-users
Hello all,

I’ve deleted all the snmpd.conf files (only the ones create by myself) and copy 
the one described previously in the /usr/local/share/snmp/ and switch off the 
snmpd and the VM.

I’ve parsed the code in order to find the root cause of the error message 
without success.

But, It seems that the problem is fixed but I’m wondering why do we have 3 
snmpd.conf file under /etc, /var and /usr/local/share/snmp ?

I assume that each one may have a specific role, is it ?

Thanks

> Le 8 juin 2019 à 23:03, Philippe DENIS via Net-snmp-users 
>  a écrit :
> 
> Hello,
> 
> I tried it without success... I’ve checked that the one snmpd which is 
> running is the one currently built and it’s.
> 
> Any other idea to help me to fix the problem or mean to investigate ?
> 
>>> Le 8 juin 2019 à 05:30, Bart Van Assche  a écrit :
>>> 
>>> On 6/7/19 11:19 AM, Philippe DENIS via Net-snmp-users wrote:
>>> Then, from this step; I've succeeded to build the snmp daemon (i.e. snmpd)
>>> sudo ./configure --prefix=/usr/bin --without-perl-modules 
>>> --disable-embedded-perl --disable-perl-cc-checks 
>>> --with-default-snmp-version="1" --with-sys-contact="aaa@mycompany.com" 
>>> --with-sys-location="France" --with-logfile="/var/log/snmpd.log" 
>>> --with-persistent-directory="/var/net-snmp" --disable-static 
>>> --libdir=/usr/lib
>> 
>> Have you tried to add --with-transports=...?
>> 
>> Bart.
> 
> 
> 
> ___
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: net-snmp5.8 endpoint ""

2019-06-08 Thread Philippe DENIS via Net-snmp-users
Hello,

I tried it without success... I’ve checked that the one snmpd which is running 
is the one currently built and it’s.

Any other idea to help me to fix the problem or mean to investigate ?

> Le 8 juin 2019 à 05:30, Bart Van Assche  a écrit :
> 
>> On 6/7/19 11:19 AM, Philippe DENIS via Net-snmp-users wrote:
>> Then, from this step; I've succeeded to build the snmp daemon (i.e. snmpd)
>> sudo ./configure --prefix=/usr/bin --without-perl-modules 
>> --disable-embedded-perl --disable-perl-cc-checks 
>> --with-default-snmp-version="1" --with-sys-contact="aaa@mycompany.com" 
>> --with-sys-location="France" --with-logfile="/var/log/snmpd.log" 
>> --with-persistent-directory="/var/net-snmp" --disable-static 
>> --libdir=/usr/lib
> 
> Have you tried to add --with-transports=...?
> 
> Bart.



___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: net-snmp5.8 endpoint ""

2019-06-07 Thread Bart Van Assche

On 6/7/19 11:19 AM, Philippe DENIS via Net-snmp-users wrote:

Then, from this step; I've succeeded to build the snmp daemon (i.e. snmpd)
sudo ./configure --prefix=/usr/bin --without-perl-modules --disable-embedded-perl --disable-perl-cc-checks 
--with-default-snmp-version="1" --with-sys-contact="aaa@mycompany.com" 
--with-sys-location="France" --with-logfile="/var/log/snmpd.log" 
--with-persistent-directory="/var/net-snmp" --disable-static --libdir=/usr/lib


Have you tried to add --with-transports=...?

Bart.


___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


net-snmp5.8 endpoint ""

2019-06-07 Thread Philippe DENIS via Net-snmp-users
Dear all,

I've an issue with the net-snmp 5.8 package, it's the first time, I used this 
protocol. I think that I've missed something either in the configuration of the 
snmpd or in the writing of the configuration file.
See attached, a description of my problem.

1st step:
==
I've created a Virtual Machine which contains an Ubuntu distribution freshly 
installed.
Linux phil-VirtualBox 4.18.0-21-generic #22~18.04.1 Ubuntu SMP x86_64 x86_64 
GNU/Linux

2nd step:
==
On this machine, I've installed the gcc, make and ld utilities in the following 
versions:
- gcc 7.4.0
- GNU Make 4.1
- GNU ld (GNU binutils for Ubuntu) 2.30

3rd step:
==
I've downloaded the net-snmp-5.8.tar.gz and enter the following commands:
tar xzvf  net-snmpd-5.8.tar.gz
ln -s net-snmpd-5.8 net-snmpd

4th step:
==
Once in the net-snmpd directory; I've tried to configure it by entering:
sudo ./configure and answer all the questions ...

>From this step, I had a problem link to perl module, after a search on google; 
>I found out to add specific options to remove it => --without-perl-modules 
>--disable-embedded-perl --disable-perl-cc-checks
After this point, I had a new problem link to the snmpd daemon which complains 
about a the following shared library libsnmp35.so; ;fix by adding 
--disable-static --libdir=/usr/lib

Then, from this step; I've succeeded to build the snmp daemon (i.e. snmpd)
sudo ./configure --prefix=/usr/bin --without-perl-modules 
--disable-embedded-perl --disable-perl-cc-checks 
--with-default-snmp-version="1" --with-sys-contact="aaa@mycompany.com" 
--with-sys-location="France" --with-logfile="/var/log/snmpd.log" 
--with-persistent-directory="/var/net-snmp" --disable-static --libdir=/usr/lib

5th step:
==
I've set the PATH and MIBS environment variables as follows: 
export PATH:$PATH:/usr/bin
export MIBS=ALL

I've succeeded to start the snmpd daemon by entering the following command line:
sudo snmpd -Lsd -Lf /dev/null -u phil -g phil -I -f

By doing a ps -edf | grep snmpd; the process is running but not responding to a 
snmpwalk request.
By typing snmpd -L -Dsystem.

I got the following error Error opening specific endpoint "" and I haven't 
found what is the problem.

According to my understanding, it's looks like the /usr/bin/etc/snmp/snmpd.conf 
file is not correctly configured. See attached the present configuration:
rocommunity MyCom1
rwcommunity MyCom2
syscontact aaa@mycompany.com
syslocation France

Could you please help me to fix this "endpoint" error ?

Thanks - Yogis4031


___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users