Ports need to open on remote Linux/AIX hosts from Cacti server

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
soumendra
Posts: 10
Joined: Mon Jul 13, 2020 6:02 am

Ports need to open on remote Linux/AIX hosts from Cacti server

Post by soumendra »

Hi,

Can anyone tell me what are all the SNMP ports that need to open from Cacti server to remote Linux/AIX hosts in the firewall?
Do we need top open 161/tcp, 162/tcp or we need to open only UDP ports like 161/udp and 162/udp in firewall to fix snmp connection error.

Thanks,
Soumendra
Achea9
Posts: 44
Joined: Mon Sep 07, 2020 3:07 am

Re: Ports need to open on remote Linux/AIX hosts from Cacti server

Post by Achea9 »

Hi,

In my Opinion, you must usually have the standard TCP/UDP Ports open for your Switches or Rouiters. And what you have to do for your cacti is, to tell the Devices to accept SNMP Request from your cacti for example using Access-Lists to permit cacti's IP address. I hope it helps.

Regards
User avatar
macan
Cacti Guru User
Posts: 1101
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Ports need to open on remote Linux/AIX hosts from Cacti server

Post by macan »

For cacti monitoring you need only UDP/161. Communication looks like this:
UDP IP_cacti:(any port > 1024 < 65535) --> IP_monitored device:161

Port UDP/162 is snmp trap. It isn't necessary for cacti. Device can send traps to defined destination
UDP IP_monitored_device:(any port > 1024 < 65535) --> destination:162
Cacti can work with traps, but you need plugin syslog and few other tools (convert trap to syslog message).
Let the Cacti grow!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests