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
Issue with plugin: check_snmp_synology
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Issue with plugin: check_snmp_synology
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Issue with plugin: check_snmp_synology
That would require rebuilding net-snmp from source...alsoszaa wrote:according to this article, looks like there is a way to change the amount of OIDs in snmpget.https://sourceforge.net/p/net-snmp/mail ... /26195198/#define SNMP_MAX_CMDLINE_OIDS 128
Re: Issue with plugin: check_snmp_synology
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")
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Issue with plugin: check_snmp_synology
How many disks does this synology unit have?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Issue with plugin: check_snmp_synology
Attached is one more revision to try to cut the number down even further
You do not have the required permissions to view the files attached to this post.
Re: Issue with plugin: check_snmp_synology
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")
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Issue with plugin: check_snmp_synology
the comment right at the top of the plugin states
My guess is this plugin will not work on larger systems without many modifications.actual number disk limit = 52 disks per Synology
Re: Issue with plugin: check_snmp_synology
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.
Thank you so very much for looking into this! We can mark this as closed.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Issue with plugin: check_snmp_synology
Locking threadalsoszaa 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.