mattie112

Members
  • Posts

    350
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by mattie112

  1. Yeah I thought something like that, most consumer routers normally work out of the box (although the how might be a bit unexpected) but most advanced require some config. I have a Mikrotik and that also took some trying to get it to work. You might want to check https://www.watchguard.com/help/docs/help-center/en-US/Content/en-US/Fireware/nat/nat_loopback_static_c.html On my router it was enough to specify a "dst address" on my NAT rules (instead of not filling that in) and a masquerade rule but yours might need something different. If you just want to know if everything works you can either add a static DNS in your router (to your local IP) or your pc HOSTS file (/etc/hosts or c:\windows\system32\drivers\etc\hosts).
  2. What router do you have? You can try to lookup "hairpin nat" for your router. Or perhaps you can add a static DNS entry in your router your.server.dns -> 192.x.x.x So that it always resolves to an internal IP.
  3. If your DNS is resolving to cloudflare are you 100% sure the '/config/letsencrypt-acme-challenge' is also forwarded correctly? Letsencrypt needs to contact your server (over http) to verify the signature.
  4. And you can resolve your domain correctly? Both ipv4 and ipv6? It looks like it is doing a http challenge but that fails so most likely letsencrypt cannot reach your domain to verify.
  5. Allright, wel at least there is a work-around for now by cropping
  6. Is there any info on the template engine that is used? It looks like that it at least support PHP but it also has some elements for UI fields? (I'm trying to edit https://github.com/kubedzero/unraid-snmp/blob/main/source/usr/local/emhttp/plugins/snmp/snmp.page)
  7. Does it not work even with that error? I also did see this error a few times but I am not missing anything it seems. But then perhaps it differs from phone to phone?
  8. Oh wow the documentation is really terrible / non existing but helping at other plugins works So: I have managed to trigger a file of my own when submitting the form (might need to implement the current 'write settings' flow or perhaps also all the update file). So yeah now that I am in PHP context I can really do anything I need. I can write files and restart the service for example. First version might be a bit rough as I have no idea what the expected flow is but I think I can at least create something that would function. I will create a PR if I have something that works
  9. If you want to have it listen to 80/443 you need to change the container itself. When using bridge network mode there is no such thing as "port mapping" so whatever you do it still will be 8080 But: I also needed 80/443 so I forked this project and change the ports so you can use that
  10. Ah yes thanks for the suggestions, I was thinking of rebuilding/reinstalling the plugin after changes but I can just mount the 'installed' directory and work from there. I will look into this this weekend Might first go for a version to just change the snmp community or something to keep it simple And I now also understand the 'unsafe temperature'. I thought this was a setting that needed to be written to the snmpd.conf so that was why I was so confused about "where does he write the conf file". It is simply never written
  11. @kubed_zero I'm looking into editing the plugin and so far I managed to add a text field on the settings, compile and install the plugin and see that the value is written to /boot/config/plugins/snmp/snmp.cfg So here come my (noob) questions: How / when is this file used? I see that on install it copies /usr/local/emhttp/plugins/snmp/snmpd.conf to /etc/snmp/snmpd.conf but I don't see this file mentioned? When is this file created? Is a plugin "installed" again on boot? Do the current settings work? (just to know where to look). I would assume that the doinst.sh should overwrite the snmpd.conf with whatever exists in /boot/config/plugins/snmp/snmp.cfg (and also when saving the settings). When saving the settings I see a form submit to '/update.php'. Is this an unraid file/feature? I don't see it in this repo. Is there any way to quickly test things? It takes some time to compile & install the plugin. Sorry for the questions but this is for me the quickest way to help I can find out a lot but I need some pointers before I spend an entire day and only get frustrated
  12. Heh that's funny, after removing the plugin this file remained on the filesystem. I manually removed the file, then reinstalled the plugin and yes it is now /etc/snmp/snmpd.conf So yeah: a reboot would also fix this I guess Thanks and I will look into how things work with Unraid plugins to see if I can add somekind of config options to the UI (I will also be feeding it some custom config for snmp v3 as everything in my network uses that). But for now I can overwrite the conf file on boot as suggested.
  13. Yes thank you I understand that, however the snmpd process is not using that file, it is using `/usr/local/emhttp/plugins/snmp/snmpd.conf` Te /etc/rc.d/rc.snmpd contains: #!/bin/sh # # rc.snmpd This shell script takes care of starting and stopping # the net-snmp SNMP daemon OPTIONS="-LF w /var/log/snmpd.log -A -p /var/run/snmpd -a" start() { if [ -x /usr/sbin/snmpd -a -f /usr/local/emhttp/plugins/snmp/snmpd.conf ]; then echo -n "Starting snmpd: " /usr/sbin/snmpd $OPTIONS -c /usr/local/emhttp/plugins/snmp/snmpd.conf echo " /usr/sbin/snmpd $OPTIONS -c /usr/local/emhttp/plugins/snmp/snmpd.conf" fi } stop() { # Stop daemons. COUNT=0 echo -n "Shutting down snmpd: " while `killall snmpd 2>/dev/null`; do echo -n "." sleep 1 COUNT=$((COUNT+1)) if [ $COUNT -ge 30 ]; then killall -9 snmpd sleep 1 break fi done echo " DONE" } # See how we were called. case "$1" in start) start ;; stop) stop ;; restart|reload) stop start ;; condrestart) if [ -f /var/run/snmpd ]; then stop start fi ;; *) echo $"Usage: $0 {start|stop|restart|condrestart}" ;; esac
  14. I simply searched in CA for "snmp" (from kubedzero version 2020.12.20) Is that not the current version? I will try to manually install the plg file. edit: Same after a manuall install (from https://raw.githubusercontent.com/kubedzero/unraid-snmp/main/snmp.plg): plugin: installing: https://raw.githubusercontent.com/kubedzero/unraid-snmp/main/snmp.plg plugin: downloading https://raw.githubusercontent.com/kubedzero/unraid-snmp/main/snmp.plg plugin: downloading: https://raw.githubusercontent.com/kubedzero/unraid-snmp/main/snmp.plg ... done plugin: downloading: https://raw.githubusercontent.com/kubedzero/unraid-snmp/main/packages/perl-5.32.0-x86_64-1.txz ... done +============================================================================== | Skipping package perl-5.32.0-x86_64-1 (already installed) +============================================================================== plugin: downloading: https://raw.githubusercontent.com/kubedzero/unraid-snmp/main/packages/libnl-1.1.4-x86_64-3.txz ... done +============================================================================== | Installing new package /boot/config/plugins/snmp/libnl-1.1.4-x86_64-3.txz +============================================================================== Verifying package libnl-1.1.4-x86_64-3.txz. Installing package libnl-1.1.4-x86_64-3.txz: PACKAGE DESCRIPTION: # libnl (netlink socket library) # # libnl is a library for applications dealing with netlink sockets. # The library provides an interface for raw netlink messaging and # various netlink family specific interfaces. # # Homepage: http://people.suug.ch/~tgr/libnl/ # # Executing install script for libnl-1.1.4-x86_64-3.txz. Package libnl-1.1.4-x86_64-3.txz installed. plugin: downloading: https://raw.githubusercontent.com/kubedzero/unraid-snmp/main/packages/net-snmp-5.9-x86_64-1.txz ... done +============================================================================== | Installing new package /boot/config/plugins/snmp/net-snmp-5.9-x86_64-1.txz +============================================================================== Verifying package net-snmp-5.9-x86_64-1.txz. Installing package net-snmp-5.9-x86_64-1.txz: PACKAGE DESCRIPTION: # net-snmp (Simple Network Management Protocol tools) # # Various tools relating to the Simple Network Management Protocol: # # An extensible agent # An SNMP library # Tools to request or set information from SNMP agents # Tools to generate and handle SNMP traps # A version of the UNIX 'netstat' command using SNMP # A graphical Perl/Tk/SNMP based mib browser # Executing install script for net-snmp-5.9-x86_64-1.txz. Package net-snmp-5.9-x86_64-1.txz installed. plugin: downloading: https://raw.githubusercontent.com/kubedzero/unraid-snmp/main/packages/unraid-snmp-2020.12.20-x86_64-1.txz ... done +============================================================================== | Installing new package /boot/config/plugins/snmp/unraid-snmp-2020.12.20-x86_64-1.txz +============================================================================== Verifying package unraid-snmp-2020.12.20-x86_64-1.txz. Installing package unraid-snmp-2020.12.20-x86_64-1.txz: PACKAGE DESCRIPTION: # unraid-snmp # # unraid-snmp assists with installing a custom extension of net-snmp # and configuring it for use on Unraid. # # nano /etc/snmp/snmpd.conf # edit config # bash /etc/rc.d/rc.snmpd restart # stop and start daemon # tail -f /var/log/snmpd.log # tail logs # # https://github.com/kubedzero/unraid-snmp # Executing install script for unraid-snmp-2020.12.20-x86_64-1.txz. Set permissions and move into dir /usr/local/emhttp/plugins/snmp/ Set shell script executable permissions Set read only permissions for other files Checking if /etc/rc.d/rc.snmpd exists before editing Stop SNMP daemon if it is currently running Shutting down snmpd: DONE Replace default snmpd.conf with our own, backing up the original SNMP logging flag already present in rc.snmpd, skipping modification Restart SNMP daemon now that we've adjusted how rc.snmpd starts it Starting snmpd: /usr/sbin/snmpd -LF w /var/log/snmpd.log -A -p /var/run/snmpd -a -c /usr/local/emhttp/plugins/snmp/snmpd.conf PID of started SNMP daemon is 4184 Package unraid-snmp-2020.12.20-x86_64-1.txz installed. +============================================================================== | Testing SNMP by listing mounts, /boot should be present +============================================================================== snmpwalk -v 2c localhost -c public hrFSMountPoint SNMP appears to be working. Output: HOST-RESOURCES-MIB::hrFSMountPoint.1 = STRING: "/mnt/disk1" [..] +============================================================================== | Other SNMP Examples +============================================================================== Here are how sharefree lines look: snmpwalk -v 2c -c public localhost 'NET-SNMP-EXTEND-MIB::nsExtendOutLine."sharefree"' [..] Here are how all custom extensions look: snmpwalk -v 2c -c public localhost nsExtendOutLine NET-SNMP-EXTEND-MIB::nsExtendOutLine."cpumhz".1 = STRING: 2713.370 MHz NET-SNMP-EXTEND-MIB::nsExtendOutLine."meminfo".1 = STRING: MemTotal: 33567850496 [..] +============================================================================== | snmp version 2020.12.20 has been installed. +============================================================================== plugin: snmp.plg installed I have never developed something for Unraid but I will look into it to see if I can create a PR
  15. It seems that when I install this it uses a different config file: root@Tower:~# ps auxf | grep snmpd root 16826 0.0 0.0 3904 1916 pts/2 S+ 20:16 0:00 \_ grep snmpd root 16351 0.0 0.0 22996 8204 ? S 20:16 0:00 /usr/sbin/snmpd -LF w /var/log/snmpd.log -A -p /var/run/snmpd -a -c /usr/local/emhttp/plugins/snmp/snmpd.conf But in the link from @kubed_zero above it looks like what file should be copied to /etc/snmp/snmpd.conf? Am I doing something wrong? Simply installed this plugin and I did nothing else so? So should I then edit that file? Or can we make a change to choose what file to use? Might be a nice config option right? That you can provide the path to the config file? Then you can even save that file on flash if this process starts before the array.
  16. Yeah I believe the docker internal DNS only works within the single-network scope (e.g. with docker-compose)
  17. Do you have a redis container running? And the PAPERLESS_REDIS environment variable correctly set? It uses redis to schedule tasks (like consuming) I have `sameersbn/redis` running with no other config then the port (6379) and the env variable for paperless set to: redis://iip_unraid_server:6379
  18. Yeah there is a "upload document" option. It works here, can you check the logs of the paperless container? Perhaps the directory is not writeable or something like that? And also: for consuming you should not really need to do a lot of config, does it not work when you add some documents to the "scans" (consume) folder
  19. I don't think this option exists in NPM but you can inject your own nginx config so perhaps you can do it manually? http://nginx.org/en/docs/http/load_balancing.html
  20. Hm strange, do you happen to have a PDF with no details (like a last blank page or something) so I can just try it on my paperless to see if it consumes?
  21. Is this always the same document or different ones? Is your consume directory mapped by docker but local on Unraid or is it somekind of network directory? Also does it tries a couple of times and does it work or does it never consume that pdf?
  22. No reason really, I only care about 80/443 the WebUI port is fine on 8181 but it would also be fine on any other port
  23. I have also seen this but it seems the documents are parsed correctly. Is that not the case for your document?