Jump to content

freakytoad1

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by freakytoad1

  1. For anyone struggling to convert the MIB output to an OID, I found a way. I use PRTG to monitor snmp and it takes OIDs. It was able to auto-discover most things but not the NET-SNMP-EXTEND-MIB stuff. Not sure if the following has been noted in this thread previously but I couldn't find a coherent method among the posts.

     

    snmpwalk on the NET-SNMP-EXTEND-MIB

    root@BLOOTOO:~# snmpwalk -v 2c localhost -c public NET-SNMP-EXTEND-MIB::nsExtendOutLine
    NET-SNMP-EXTEND-MIB::nsExtendOutLine."cpumhz".1 = STRING: 3713.766 MHz
    NET-SNMP-EXTEND-MIB::nsExtendOutLine."meminfo".1 = STRING: MemTotal: 67461050368
    NET-SNMP-EXTEND-MIB::nsExtendOutLine."sharefree".1 = STRING: appdata: 286401884160
    ...
    

     

    Convert prefix to OID format:

    root@BLOOTOO:~# snmptranslate -Td NET-SNMP-EXTEND-MIB::nsExtendOutLine.
    NET-SNMP-EXTEND-MIB::nsExtendOutLine.""
    nsExtendOutLine OBJECT-TYPE
      -- FROM       NET-SNMP-EXTEND-MIB
      -- TEXTUAL CONVENTION DisplayString
      SYNTAX        OCTET STRING (0..255) 
      DISPLAY-HINT  "255a"
      MAX-ACCESS    read-only
      STATUS        current
      DESCRIPTION   "A single line of output from the extension command."
    ::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) netSnmp(8072) netSnmpObjects(1) nsExtensions(3) nsExtendObjects(2) nsExtendOutput2Table(4) nsExtendOutput2Entry(1) nsExtendOutLine(2) 0 }

     

    Take note of the numbers at the end. 1.3.6.1.4.1.8072.1.3.2.4.1.2. is the OID way of saying NET-SNMP-EXTEND-MIB::nsExtendOutLine.

     

    The OID for my appdata share is then:

    1.3.6.1.4.1.8072.1.3.2.4.1.2."sharefree".1

     

    PRTG accepts this as an snmpcustomstringsensor

    image.png.1f47d87375dfbf13e26fafc7606e96f0.png

     

    In PRTG use the following to extract the numerical portion of the string:

    image.png.2f25bafb29d22928f3ad8373db484ffd.png

     

    What the sensor looks like:

    image.thumb.png.b85f6b29d05e33f72792fd85cce61d3d.png

    • Thanks 1
  2. On 7/5/2021 at 12:30 PM, arch1mede said:

    I just wanted to report, this is still present in the latest 6.9.2

     

    
    Jul  5 09:47:41 UnRaid-Mini-NAS nginx: 2021/07/05 09:47:41 [alert] 8435#8435: worker process 18731 exited on signal 6
    Jul  5 09:47:43 UnRaid-Mini-NAS nginx: 2021/07/05 09:47:43 [alert] 8435#8435: worker process 18756 exited on signal 6
    Jul  5 09:47:45 UnRaid-Mini-NAS nginx: 2021/07/05 09:47:45 [alert] 8435#8435: worker process 18801 exited on signal 6
    Jul  5 09:47:47 UnRaid-Mini-NAS nginx: 2021/07/05 09:47:47 [alert] 8435#8435: worker process 18828 exited on signal 6

     

    I was checking on my parity check and noticed my logs filled with this. I only had 2 windows open, main one and a systems log.

     

    Ran the following:

    
    killall --quiet --older-than 1w process_name

     

    This seemed to have solved the issue.

    What would 'process_name' be in this case? nginx?

  3. On 2/19/2021 at 6:08 PM, SimplifyAndAddCoffee said:

    ok so I installed it, but important question: where can I set the SNMP community string?

    I wrote a User Script to do this at the start of my array. The sed command will replace "public" with whatever you put in the 2nd portion of the command and then overwrite the existing file. Then 2nd line restarts the service.

     

    #!/bin/bash
    sed -i 's/public/other-string/' /etc/snmp/snmpd.conf
    bash /etc/rc.d/rc.snmpd restart

     

    • Like 1
  4. Getting a lot of HTTP 429 errors in the last week from this docker. This docker worked for several days and was able to download videos just fine before this.

     

    I am still able to use something like tartube from a windows pc and download videos using youtube-dl. No 429 errors on that. Both systems are behind the same public IP.

     

    {"level":"info","msg":"Initiating db","time":"2020-08-13T23:29:05Z"}
    {"level":"info","msg":"server running on port 8080","time":"2020-08-13T23:29:05Z"}
    {"level":"error","msg":"uploadCheckerPlaylists: GetCheckingInterval: empty target list","time":"2020-08-13T23:29:05Z"}
    {"level":"info","msg":"received a request to get the checking interval","time":"2020-08-13T23:32:15Z"}
    {"level":"info","msg":"getting all channels from channels.json","time":"2020-08-13T23:32:15Z"}
    {"level":"info","msg":"Returning checking-interval: {15 minutes Channel}","time":"2020-08-13T23:32:15Z"}
    {"level":"info","msg":"successfully read all channels","time":"2020-08-13T23:32:15Z"}
    {"level":"info","msg":"[{https://www.youtube.com/channel/UCLtREJY21xRfCuEKvdki1Kw WeeOkvkEYUU Video And Audio Uploads from H3 Podcast  any [GSw5YvHhGUg] 08-06-2020 20:39:35 15 minutes Channel /channels/%(uploader)s/video/%(title)s.%(ext)s}]","time":"2020-08-13T23:32:15Z"}
    {"level":"info","msg":"received a request to check a playlist for new uploads","time":"2020-08-13T23:33:20Z"}
    {"level":"info","msg":"checking for new videos","time":"2020-08-13T23:33:20Z"}
    {"level":"info","msg":"getting all channels from channels.json","time":"2020-08-13T23:33:20Z"}
    {"level":"info","msg":"successfully read all channels","time":"2020-08-13T23:33:20Z"}
    {"level":"info","msg":"[{https://www.youtube.com/channel/UCLtREJY21xRfCuEKvdki1Kw WeeOkvkEYUU Video And Audio Uploads from H3 Podcast  any [GSw5YvHhGUg] 08-06-2020 20:39:35 15 minutes Channel /channels/%(uploader)s/video/%(title)s.%(ext)s}]","time":"2020-08-13T23:33:20Z"}
    {"level":"info","msg":"executing youtube-dl command: /usr/local/bin/youtube-dl -j --playlist-end 1 https://www.youtube.com/channel/UCLtREJY21xRfCuEKvdki1Kw","time":"2020-08-13T23:33:20Z"}
    {"level":"error","msg":"From GetMetadata(): exit status 1","time":"2020-08-13T23:33:23Z"}
    {"level":"info","msg":"returning response: {Error ERROR_CHECKING_PLAYLIST There was an error while checking the playlist: CheckNow: From c.GetMetadata(): ERROR: Unable to download webpage: HTTP Error 429: Too Many Requests (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.\n}","time":"2020-08-13T23:33:23Z"}

     

×
×
  • Create New...