Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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,
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.
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
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.
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
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.
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
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,
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.