You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# ~/check_drbd9.pl
Odd number of elements inhash assignment at /home/xorpaul/check_drbd9.pl line 689.
DRBD: 1 crit, 0 okay|
-
version: 9.0.29-1 (api:2/proto:86-120)
transports: (api:17): tcp (9.0.29-1)
resources: 1
-
r0 role:Secondary (CRIT)
Use of uninitialized value in division (/) at /home/xorpaul/check_drbd9.pl line 483.
Use of uninitialized value inprintf at /home/xorpaul/check_drbd9.pl line 483.
vol:0 disk: minor:0 size:0MB
server.domain.tld role:Primary conn:Connected
Use of uninitialized value in division (/) at /home/xorpaul/check_drbd9.pl line 497.
Illegal division by zero at /home/xorpaul/check_drbd9.pl line 497.
I have a
backing_dev
containing:
characters, which then causeschk_drbd_walk
to fail here at thesplit
:https://github.com/alaskacommunications/nagios_check_drbd9/blob/master/check_drbd9.pl#L687
Output of check:
Output of
drbdsetup events2
:# /usr/sbin/drbdsetup events2 --now --statistics all 2> /dev/null exists resource name:r0 role:Secondary suspended:no write-ordering:flush may_promote:no promotion_score:10102 exists connection name:r0 peer-node-id:1 conn-name:server.domain.tld connection:Connected role:Primary congested:no ap-in-flight:0 rs-in-flight:0 exists device name:r0 volume:0 minor:0 backing_dev:/dev/disk/by-path/pci-0000:03:00.0-scsi-0:2:1:0 disk:UpToDate client:no quorum:yes size:5858739564 read:0 written:7958103 al-writes:9133 bm-writes:78 upper-pending:0 lower-pending:0 al-suspended:no blocked:no exists peer-device name:r0 peer-node-id:1 conn-name:server.domain.tld volume:0 replication:Established peer-disk:UpToDate peer-client:no resync-suspended:no received:7958103 sent:0 out-of-sync:0 pending:0 unacked:0 exists path name:r0 peer-node-id:1 conn-name:server.domain.tld local:ipv4:127.0.0.1:7789 peer:ipv4:127.0.0.2:7789 established:yes exists -
I currently have a frickelaround inplace, because my perl knowledge is limited and this was the fastest solution for me:
The text was updated successfully, but these errors were encountered: