LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-14-2021, 03:54 PM   #1
BigD63
LQ Newbie
 
Registered: Jul 2021
Posts: 9

Rep: Reputation: Disabled
Question Cannot successfully configure SNMP in Ubuntu20


Hello all,
I am here to see what im missing, and I am a Linux newb.

If this matters everything here is in AWS.

I am setting up, trying to, snmp v2c (i started by pulling down a new installation of snmp with apt-get install snmpd) for use with Observium. The Observium server is alive and well, and a few Windows servers are already communicating with it fine.
I also did no add this to Ubuntu specifically as I will also have Amazon Linux, Centos, and Debian to do this with as well once im done here.

OK, if it matters im using nano for editting.
I have read several tutorials and all are similar and I have tried most combo's I can think of from the info i have found.

agentAddress udp:161,udp6:[::1]:161

Gave errors about not communicating with 127.0.0.1

agentAddress udp:0.0.0.0 with or without /24 at the end it reflected the IP address and when I checked status after restarting the service got this message:
Active: failed (Result: exit-code) then gives date and time stamp.

Per other instructions I have also read i tried at the end of the agentAddress line after the ip (space)udp:161 and this produced the same error.

Also i do have the rocommunity (communityname) there as well and the rocommuinity6 listing, I have tried with one\the other\both

I can ping the observium server from here so i know it can see it, and windows servers are working just fine connecting, but a majority of the companies servers are linux, so this needs to work.

The error feels very vague to me, maybe it isnt to a non-newb

I am 100% confident this is a me issue, not a server issue, so if someone could point me in the right direction i can get this squared away.

Thanks all!
 
Old 07-14-2021, 06:36 PM   #2
BigD63
LQ Newbie
 
Registered: Jul 2021
Posts: 9

Original Poster
Rep: Reputation: Disabled
I am still looking on my own and have been trying things based off of this link https://www.systutorials.com/docs/li...nmpd.examples/
I can provide a pic of my conf file, as I have been using # to blot out failed attempts so I can see what all i have tried, and when it became clear I might need advice i kept doing that so I could show what I had done.

I am currently seeing:
Error opening specified endpoint "IP address"
Server Exiting with code 1


Im gonna keep testing, and hope I get some info form those of you who know more than me.
 
Old 07-15-2021, 03:56 PM   #3
BigD63
LQ Newbie
 
Registered: Jul 2021
Posts: 9

Original Poster
Rep: Reputation: Disabled
OK, still haven't gotten it running and I am starting to run out of possible combos, but I am thinking this is a syntax error.

I am getting consistent:
Error opening specified Endpoint "ipinfo..."

The thing is I have seen like 8 or 10 different examples of "correct" syntax. Can you guys take a look at the list below and see if you can see where I am going wrong. For the sake of being exact I will type [space] and all ips will be 192.168.0.1

agentaddress[space]udp:192.168.0.1:161
agentaddress[space]udp:192.168.0.1/24
agentaddress[space]udp:192.168.0.1
agentaddress[space]192.168.0.1[space]udp:161
agentaddress[space]udp:161,udp6:[::1]:161
this one felt kinda redundant but it was in a tutorial so wth, but same error
agentaddress[space]udp:192.168.0.1[space]udp:161

The 192# is the ip for the observium server, which I can ping from the box im getting the errors on. Being that I keep getting errors regarding not being able to open the endpoint, i figure it is something wrong with how I am presenting the info, ie the syntax.

As this is a forum filled with people who know more about linux than me, I would really appreciate some help\advise

Thanks All!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure(Monitor) SNMP traps for CPU Utilisation and Disk Usage in Linux servers using net-snmp ,snmpd.config file. arjunganta Linux - Newbie 3 03-20-2020 07:29 AM
SNMP Configuration problem - able to snmp outbound, unable to snmp inbound. sumncguy Linux - Desktop 2 04-28-2015 09:26 AM
Cannot su to root successfully / Cannot copy/move *.bz2 files from Sosreport jbottiger Linux - Newbie 17 02-06-2009 09:28 AM
How to configure ucd-snmp and net-snmp? Tazzmanian Linux - Networking 1 05-27-2005 08:09 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration