Save
Saving
  • Swino Swino

    @mattfox said in SNMP trap receiving - iptables:

    iptables -t nat -A PREROUTING -p UDP -i eth0 -d 127.0.0.1 --dport 162 -j DNAT --to-destination 127.0.0.1:1162

    Hi Matt is there anyway to packet sniff the data in Mango? The only way I am testing this at the moment is looking at the data point in the watch list or the data point in the data source. Are there any tools for seeing if the UDP packets are making it into Mango?

    posted in User help read more
  • Swino Swino

    I am running mango version 4.0.0 and trying to get SNMP traps working. I have added a rule to iptables to forward snmp traps from port 162 to 1162 using this command. I have changed my data source to look for traps on port 1162.

    iptables -t nat -A PREROUTING -i eth0 -p udp --dport 162 -j REDIRECT --to-port 1162
    iptables -I INPUT -p udp --destination-port 162 -j ACCEPT

    When run the iptables list I get this

    899a82ee-48a9-4c8d-84b3-73d5d1b0a040-image.png

    when I run netstat I can see that port 1162 is bound to java so that all looks good

    9b7ae692-aa7f-4d19-8f5a-43c546f8f87e-image.png

    So I think the issue might be with my understanding of the iptables rule. Is the above iptables rule correct?

    I have used wireshark to packet sniff my trap sender, the traps are definitely being generated.
    0ce1416b-7b76-4887-8915-16b640829fbb-image.png

    In mango how can I check if the traps are being received in the application apart from looking at the data point in the data source?

    My test device is a router and I am monitoring a spare ethernet port for UP/DOWN status. only the get requests are updating the port status. The trap generation has no effect on the data point.

    posted in User help read more
  • Swino Swino

    I had the same issue on another system that I setup today. Both installs are using version 4.0.0. I even tried deleting the snmp data source and then add it again from scratch. When I check the data point values in the data source tab all the snmp points are reading data fine. when I open each data point it shows a XID associated with the data point. However when I am in my dashboard editor and I try to assign the XID to things on my dashboard the data source XID's are not in the list. I also tried copying the XID and pasting it into the field on the dashboard. I have other devices that appear in the XID list just fine. Is there anyway to refresh the list of available XID's in the dashboard editor.

    Below is screenshot of the dashboard editor. The data point XID shows all the points from my Moxa switch. However the other device just not show in this list.

    419aeaf5-e652-4967-acc0-66c9f8912bcd-image.png

    This screenshot shows my data source and all the points are reading and are valid.
    170d8738-3246-4572-a978-973c063ed5d4-image.png

    posted in User help read more
  • Swino Swino

    Hi

    I have created a SNMP data source. all the data points are reading fine. When I go to dashboard designer these points don't appear in the list of XID's. Therefore I can seem to add these SNMP points to my dashboard. Any ideas why the data source XID would not be available in the dashboard designer?

    posted in User help read more
  • Swino Swino

    I found it, top left under user profiles

    posted in Mango Automation general Discussion read more
  • Swino Swino

    I have just setup mango, its all working well but how do I set the time zone? I have looked all through the menus and can't find how to set it.

    posted in Mango Automation general Discussion read more
  • Swino Swino

    Hi thanks for getting back to me. The script link has me up and running

    posted in Mango Automation Installation read more
  • Swino Swino

    I have followed the installation instructions to install mango onto linux. When I download the script its blank just has a 404 error? is there a new installation script link that you can share.

    posted in Mango Automation Installation read more
  • Swino Swino

    Hi Craig, I had no real plans for the smaller unit. I will stick to the Odroid spec and higher. The UX4 flows along very nicely. The only behaviour I am trying to understand is that the mango server seems to restart its self every so often. I left it running over night and screen shot this from the events. Any ideas on the system shutdown system start up messages?0_1586041728746_startup-shutdown.PNG

    posted in Mango Automation Installation read more
  • Swino Swino

    I am also running mango on the Odroid XU4. This has to 2Gb ram. It also is falling over and restarting, just not as often. The log in the UI just says system restarted.

    posted in Mango Automation Installation read more