How-to test SNMP Trap in Mango
-
This post is deleted! -
Hi all !
When i enable a Data Source i got this message : 'SNMP TRAP': java.net.BindException: Permission denied.
Somebody could help me ?
Thanks !
-
Stop any other SNMP Trap service running already and you should not receive this error.
-
Are you running tomcat as a normal user and not as root. It will helps if you could let us know the OS on which mango is running. If you are running on a UNIX system ensure that mango runs as root to be able to accept SNMP TRAPS on UDP 162.
-
Yes, when i post it here at same instant i remember that was not running as root and now it's ok. Thanks !
-
Sorry for resurrecting an old post, but the current linux installation instructions specifically say not to run mango as root. If we follow the instruction and create a new user (e.g. mango), we will not be able to bind the snmp trap port, e.g we will get "'SNMP': Unable to bind to trap port. Permission denied.". What is the suggested work around?
-
Any idea here?
-
Hi @ricardo you should use a program such as persistent iptables to route port 123 --> 1123. Then bind your data source to 1123.
-
@CraigWeb Thank you for your reply. Sorry, can you provide more detail on how to do this?
-
@Ricardo there is some information here as to how to use iptables. I suggest you familiarize yourself with how they work as they are useful to redirect port I/O between privileged ports and non-privileged ports.