Page 2 of 2

Re: Issue with plugin: check_snmp_synology

Posted: Wed Nov 07, 2018 4:49 pm
by scottwilkerson
Unfortunately the script would have to be re-written to do the calls differently.

I did make some modifications to try to limit the calls and I have attached the file, but if this doesn't work, I would have to send you to our sales department for a quote for custom development.

Try the attached version

Re: Issue with plugin: check_snmp_synology

Posted: Wed Nov 07, 2018 4:50 pm
by scottwilkerson
alsoszaa wrote:according to this article, looks like there is a way to change the amount of OIDs in snmpget.
#define SNMP_MAX_CMDLINE_OIDS 128
https://sourceforge.net/p/net-snmp/mail ... /26195198/
That would require rebuilding net-snmp from source...

Re: Issue with plugin: check_snmp_synology

Posted: Wed Nov 07, 2018 5:00 pm
by alsoszaa
Here is the result of the new command

Code: Select all

 ./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 339: 52
 53
 55
 56
 57
 58
 59
 61
 62
 63
 65
 67
 68
 69
 70
 71
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 /volume13
 /volume18
 /volume1
 /volume20
 /volume9
 /volume11
 /volume8
 /volume19
 /volume4
 /volume2
 /volume14
 /volume22
 /volume23
 /volume12
 /volume15
 /volume17
 4096 Bytes
 4096 Bytes
 4096 Bytes
 4096 Bytes
 4096 Bytes
 4096 Bytes
 8192 Bytes
 4096 Bytes
 4096 Bytes
 16384 Bytes
 32768 Bytes
 16384 Bytes
 4096 Bytes
 16384 Bytes
 4096 Bytes
 8192 Bytes
 503316480
 251658240
 503316480
 503316480
 251658240
 503316480
 1258291200
 1258291200
 2013265920
 1572864000
 1572864000
 2076180480
 503316480
 1258291200
 251658240
 1258291200
 142
 19962832
 307506
 202185073
 105637511
 199360
 2694733
 221944866
 391558592
 802357473
 1259462861
 821746804
 946807344
 253211644
 903785557
 7555472
 579040471 * 100 /  52
 53
 55
 56
 57
 58
 59
 61
 62
 63
 65
 67
 68
 69
 70
 71
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 /volume13
 /volume18
 /volume1
 /volume20
 /volume9
 /volume11
 /volume8
 /volume19
 /volume4
 /volume2
 /volume14
 /volume22
 /volume23
 /volume12
 /volume15
 /volume17
 4096 Bytes
 4096 Bytes
 4096 Bytes
 4096 Bytes
 4096 Bytes
 4096 Bytes
 8192 Bytes
 4096 Bytes
 4096 Bytes
 16384 Bytes
 32768 Bytes
 16384 Bytes
 4096 Bytes
 16384 Bytes
 4096 Bytes
 8192 Bytes
 503316480
 503316480
 251658240
 503316480
 503316480
 251658240
 503316480
 1258291200
 1258291200
 2013265920
 1572864000
 1572864000
 2076180480
 503316480
 1258291200
 251658240
 1258291200
 19962832
 307506
 202185073
 105637511
 199360
 2694733
 221944866
 391558592
 802357473
 1259462861
 821746804
 946807344
 253211644
 903785557
 7555472
 579040471: syntax error in expression (error token is "53
 55
 56
 57
 58
 59
 61
 62
 63
 65
 67
 68
 69
 70
 71
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 /volume13
 /volume18
 /volume1
 /volume20
 /volume9
 /volume11
 /volume8
 /volume19
 /volume4
 /volume2
 /volume14
 /volume22
 /volume23
 /volume12
 /volume15
 /volume17
 4096 Bytes
 4096 Bytes
 4096 Bytes
 4096 Bytes
 4096 Bytes
 4096 Bytes
 8192 Bytes
 4096 Bytes
 4096 Bytes
 16384 Bytes
 32768 Bytes
 16384 Bytes
 4096 Bytes
 16384 Bytes
 4096 Bytes
 8192 Bytes
 503316480
 251658240
 503316480
 503316480
 251658240
 503316480
 1258291200
 1258291200
 2013265920
 1572864000
 1572864000
 2076180480
 503316480
 1258291200
 251658240
 1258291200
 142
 19962832
 307506
 202185073
 105637511
 199360
 2694733
 221944866
 391558592
 802357473
 1259462861
 821746804
 946807344
 253211644
 903785557
 7555472
 579040471 * 100 /  52
 53
 55
 56
 57
 58
 59
 61
 62
 63
 65
 67
 68
 69
 70
 71
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 /volume13
 /volume18
 /volume1
 /volume20
 /volume9
 /volume11
 /volume8
 /volume19
 /volume4
 /volume2
 /volume14
 /volume22
 /volume23
 /volume12
 /volume15
 /volume17
 4096 Bytes
 4096 Bytes
 4096 Bytes
 4096 Bytes
 4096 Bytes
 4096 Bytes
 8192 Bytes
 4096 Bytes
 4096 Bytes
 16384 Bytes
 32768 Bytes
 16384 Bytes
 4096 Bytes
 16384 Bytes
 4096 Bytes
 8192 Bytes
 503316480
 503316480
 251658240
 503316480
 503316480
 251658240
 503316480
 1258291200
 1258291200
 2013265920
 1572864000
 1572864000
 2076180480
 503316480
 1258291200
 251658240
 1258291200
 19962832
 307506
 202185073
 105637511
 199360
 2694733
 221944866
 391558592
 802357473
 1259462861
 821746804
 946807344
 253211644
 903785557
 7555472
 579040471")

Re: Issue with plugin: check_snmp_synology

Posted: Thu Nov 08, 2018 10:49 am
by scottwilkerson
How many disks does this synology unit have?

Re: Issue with plugin: check_snmp_synology

Posted: Thu Nov 08, 2018 10:55 am
by scottwilkerson
Attached is one more revision to try to cut the number down even further

Re: Issue with plugin: check_snmp_synology

Posted: Thu Nov 08, 2018 11:30 am
by alsoszaa
Well, its certainly shorter. I didn't set this up. but going into the DSM, and looking at system info I see what looks like 64 disks. This looks to be setup with multiple sinology devices connected together. 5x12 disk + 1x4 disk.

Code: Select all

./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 304: [: : integer expression expected
./check_snmp_synology.bash: line 339: 59
 62
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 /volume8
 /volume4
 8192 Bytes
 4096 Bytes
 1258291200
 2013265920
 142
 221944866
 802357473 * 100 /  59
 62
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 /volume8
 /volume4
 8192 Bytes
 4096 Bytes
 503316480
 1258291200
 2013265920
 221944866
 802357473: syntax error in expression (error token is "62
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 /volume8
 /volume4
 8192 Bytes
 4096 Bytes
 1258291200
 2013265920
 142
 221944866
 802357473 * 100 /  59
 62
 .1.3.6.1.2.1.25.2.1.4
 .1.3.6.1.2.1.25.2.1.4
 /volume8
 /volume4
 8192 Bytes
 4096 Bytes
 503316480
 1258291200
 2013265920
 221944866
 802357473")

Re: Issue with plugin: check_snmp_synology

Posted: Thu Nov 08, 2018 11:45 am
by scottwilkerson
the comment right at the top of the plugin states
actual number disk limit = 52 disks per Synology
My guess is this plugin will not work on larger systems without many modifications.

Re: Issue with plugin: check_snmp_synology

Posted: Thu Nov 08, 2018 11:49 am
by alsoszaa
This is the first I have looked at the actual number of disks. so that makes sense.
Thank you so very much for looking into this! We can mark this as closed.

Re: Issue with plugin: check_snmp_synology

Posted: Thu Nov 08, 2018 11:54 am
by scottwilkerson
alsoszaa wrote:This is the first I have looked at the actual number of disks. so that makes sense.
Thank you so very much for looking into this! We can mark this as closed.
Locking thread