check_snmp_synology

Bash script to check Synology NAS by SNMP. Designed for use in Nagios.

Log in or register to post comments

  • n1tr0-5urf3r

    I think I have found the issue with the disks, can you check again? You can send me an email to contact@ihlecloud.de

  • isol

    Hello nitr0, it works "mostly", I can test on 6 and 7. The main issue I see is that it always only checks the first disk (and maybe array?) I could figure out more, but I cannot disclose results publicly. Can we get in direct contact somehow?

  • n1tr0-5urf3r

    Hi isol, you are totally right! It looks like the wrong version was pushed in github. As I did not write the original plugin, but only added a few new features, this got probably lost in the transition. I tried to recreate it in the following branch from the original version: https://github.com/n1tr0-5urf3r/check_snmp_synology/tree/check_types Unfortunately, I do not have access to a Synology with DSM version 7 anymore. Can you probably verify if the version works for you?

  • isol

    Hmm, the check command description says "/usr/lib64/nagios/plugins/check_snmp_synology -2 public -h $HOSTADDRESS$ -t $ARG1$" but the current coe available here and on github does not have this parameter? Is the statement "Also, it checks readings by type, rather then checking everything at once. This allows for splitting checks into different services in Nagios / Icinga. " actually true? I cannot see how this is one with the code available.

  • henningkessler

    Result of a normal run ends in: CRITICAL - Problem with SNMP request, check user/password/host. if I run the script with sh -xv ./check_snmp_synology -2 public -h hostname it hangs a long time at + /usr/bin/snmpwalk -OQne -v 2c -c public -t 10 ber0nas02 1.3.6.1.4.1.6574 and ends with this: .1.3.6.1.4.1.6574.5.1.1.8.20 = 656 + [ 1 != 0 ] + echo CRITICAL - Problem with SNMP request, check user/password/host CRITICAL - Problem with SNMP request, check user/password/host + exit 2

  • n1tr0-5urf3r

    Hi there! What do you mean by "it hangs"? Any output or timeout? Also where did you get this OID from? IIRC this is not a valid synology OID, at least I couldnt find it in the docs and its also not implemented in the script.

  • henningkessler

    Hi there, I am having issues with this plugin as it hangs while scraping the snmp OIDs on my RS422+ running g DSM 7.1.1. To be precise this happens on this OID: .1.3.6.1.4.1.6574.5.1.1.8.62 Any ideas how I can solve this issue? Regards Henning