LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-21-2016, 08:45 AM   #31
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled

I did your suggestion:
Look below:
[root@li1964 ~]# ssh -p 161 172.27.252.3
ssh: connect to host 172.27.252.3 port 161: Connection refused
[root@li1964 ~]# ssh -p 162 172.27.252.3
ssh: connect to host 172.27.252.3 port 162: Connection refused
Now I am waiting The network admin solves this to continue testing this environment.
Tks again

Last edited by thomazp; 06-21-2016 at 02:47 PM. Reason: Translating question
 
Old 06-21-2016, 02:59 PM   #32
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
The two ports are rejecting connections.
I asked to solve it to continue using mrtg.
Thanks

Last edited by thomazp; 06-21-2016 at 03:01 PM.
 
Old 06-21-2016, 03:09 PM   #33
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
I tested SSH -p <port> <host> using the two ports and the desired host.
Both rejected, and I send the evidences to the network admin. Now I am waiting to continue implementing the MRTG services.
Thanks,
 
Old 06-24-2016, 12:22 PM   #34
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
I need try a get to an address here, which command I use ?
But The address is unreachable , no ping to the address I need. The person asked it isn't here now.

Last edited by thomazp; 06-24-2016 at 12:50 PM.
 
Old 06-28-2016, 02:49 PM   #35
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
Someone Said this Kind of connection isn't necessary when monitoring like this. Can anyone send me a site conforming this is obviously needed.
Tks,
 
Old 06-28-2016, 07:01 PM   #36
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
The 2 ports above aren't opened in the destination device, I showed before.
 
Old 06-28-2016, 07:20 PM   #37
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by thomazp View Post
Someone Said this Kind of connection isn't necessary when monitoring like this. Can anyone send me a site conforming this is obviously needed.
Yes, I can:http://www.net-snmp.org/docs/man/snmpd.conf.html

Last edited by Habitual; 06-28-2016 at 07:32 PM.
 
Old 06-28-2016, 07:38 PM   #38
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
Sorry I only noticed now:-(.
Tomorrow morning I will do it and post results going.
Tks
 
Old 06-30-2016, 02:03 PM   #39
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
See this:
# snmpwalk -v 2c -c netcomro 172.27.252.3 1.3.6.1.2.1.1
SNMPv2-MIB::sysDescr.0 = STRING: Extreme Networks, Inc. S8 Chassis Rev 08.22.01.
0023 04/07/2014--16:18 ofc
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.5624.2.1.133
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (2094101068) 242 days, 8:56:50.
68
SNMPv2-MIB::sysContact.0 = STRING: Info.Telecomunicacoes
SNMPv2-MIB::sysName.0 = STRING: NC3DB2
SNMPv2-MIB::sysLocation.0 = STRING: BRA_SP_SaoPaulo_Matriz_DinoBueno_2Andar_CPD_
NC03DB02_Nucleo
SNMPv2-MIB::sysServices.0 = INTEGER: 79
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00

And for the other community the result was similar.
What to do now to configure MRTG to monitore this router ? Since is accepting SNMP requests.
Thanks,

Last edited by thomazp; 06-30-2016 at 02:50 PM. Reason: Correcting info
 
Old 07-01-2016, 09:25 AM   #40
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
Now I'm having problems with cfgmaker, look:
# cfgmaker netcomro@172.27.252.3
SNMP Error:
no response received
SNMPv1_Session (remote host: "172.27.252.3" [172.27.252.3].161)
community: "netcomro"
request ID: -940212693
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib64/mrtg2/SNMP_util.pm line 629
SNMPWALK Problem for 1.3.6.1.2.1.1 on netcomro@172.27.252.3::::::v4only
at /usr/bin/cfgmaker line 950
WARNING: Skipping netcomro@172.27.252.3: as no info could be retrieved
What have to do to create mrtg.cfg file.
 
Old 07-01-2016, 10:01 AM   #41
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
Is it possible to increase this timeout value to enable this connection ?

Last edited by thomazp; 07-01-2016 at 01:56 PM. Reason: Changing the question.
 
Old 07-01-2016, 03:48 PM   #42
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
Next try

Quote:
Originally Posted by thomazp View Post
Is it possible to increase this timeout value to enable this connection ?
I tried this way:
# cfgmaker netcomro@172.27.252.3 -global "Workdir:/opt/apache2/ht
docs/mrtg" -output server.cfg
SNMP Error:
no response received
SNMPv1_Session (remote host: "172.27.252.3" [172.27.252.3].161)
community: "netcomro"
request ID: -1904685969
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib64/mrtg2/SNMP_util.pm line 629
SNMPWALK Problem for 1.3.6.1.2.1.1 on netcomro@172.27.252.3::::::v4only
at /usr/bin/cfgmaker line 950
WARNING: Skipping netcomro@172.27.252.3: as no info could be retrieved

What should I do ?
 
Old 07-01-2016, 05:45 PM   #43
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by thomazp View Post
SNMPWALK Problem for 1.3.6.1.2.1.1 on netcomro@172.27.252.3::::::v4only
at /usr/bin/cfgmaker line 950
WARNING: Skipping netcomro@172.27.252.3: as no info could be retrieved
That certainly is interesting ^^^

So, I consider the "WARNING" "progress" since earlier you could only get "Connection refused".
Now I suspect it ACL related in the snmpd.conf on the host being queried.

Try sniffing the traffic from 172.27.252.3:161 on wherever host this cfgmaker tools exists.
Using
Code:
sudo tcpdump -nn -i eth0 src 172.27.252.3 and port 161 -w capture.log -c 250
in one terminal and
I'd let this run for a few minutes and you should at least have a visual of "traffic".
Understanding it is not the issue atm., sorry. We just need visual feedback that our attempts
are in fact working up to a point.
In yet another terminal (or 'new' tab...) do your cfgmaker thing and then switch immediately to the tcpdump in the first tab, or terminal.

tcpdump with listen for traffic and dump to capture.log and only 250 packets and quit.
So, relax.
Don't do anything silly like try to open the capture.log.

On the other hand, if it doesn't sniff 250 packets on port 161 from that IP, that tcpdump command/terminal will sit there like a sentry, sniffing for 'noise' from 172.27.252.3 on port 161 until it does.

NOTE: Your "eth0" may differ...

Last edited by Habitual; 07-01-2016 at 05:47 PM.
 
Old 07-04-2016, 01:15 PM   #44
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
Now I need to start mrtg services.
The mrtg package is installed.
Also GD ,png and zlib .
SNMP is running.
What to do now?
The site instructions aren't working.

Last edited by thomazp; 07-04-2016 at 05:39 PM. Reason: correecting speeling
 
Old 07-05-2016, 08:10 PM   #45
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
I noticed I Can start mrtg, but soon The script ends. The .PNG files are old, not generated today or yesterday.
I need :
1 Example of cfgmaker cmd to generate the .cfg file ;
2 The way I fill in the contrab.
Thanks,

Last edited by thomazp; 07-06-2016 at 07:42 AM.
 
  


Reply

Tags
mrtg, snmp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SNMP Configuration problem - able to snmp outbound, unable to snmp inbound. sumncguy Linux - Desktop 2 04-28-2015 09:26 AM
MRTG cfgmaker Error SNMPwalk problem manish_2479 Linux - Networking 3 07-10-2007 03:48 PM
Cfgmaker for Mrtg pkrishna10 Linux - Newbie 0 12-05-2004 02:57 AM
cfgmaker for mrtg. pkrishna10 Linux - Wireless Networking 0 12-05-2004 02:02 AM
cfgmaker for squid assooy Red Hat 3 07-28-2004 11:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:38 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