Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check_iscsi
1.0
2013-01-01
- Nagios 3.x
GPL
36344
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
Check various aspects of iSCSI clients
Usage: ./check_iscsi.pl [-offl (y|yes|n|no)] [-mtu (1500|9000)] [-vlan (1-4049) [-sessions (0-9)+] [ -? | -h | -help ]
Available options:
-offl hardware iSCSI offload, yes|no
query "iscsiadm -m iface -P1" and parse default
-mtu mtu size for iSCSI interfaces, 1500|9000
if offl=n, query "ip addr" and parse mtu
if offl=y, query "iscsiadm -m iface -I $I | grep iface.mtu"
-vlan vlan id, 1-4094 (IEEE 802.1Q standard)
if offl=n, query "iscsiadm -m host" -> obtain IP of initiator "ip addr | grep IP" -> obtain interface name "cat /sys/class/net/eth#/mtu" -> obtain mtu value
if offl=y, "iscsiadm -m iface -I $I -o show | grep vlan_id"
-sessions total number active iSCSI sessions, (0-9)+
query "iscsiadm -m session -r SID -P1" and parse
NOTES:
This plugin only issues state OK|WARN
ONLY works for the following interfaces...
Standard Linux network interfaces
Broadcom Corporation NetXtreme II 10 Gigabit Ethernet Chelsio Communications Inc 10GbE Port Adapters
Send me lspci, "iscsiadm -m iface -P1", "iscsiadm -m host"
VLAN is experimental. The code looks like it should work but we don't vlan tagged storage interfaces so I have no a test bed.
Please note: I haven't used this code since 2013 when I worked in a large iSCSI environment. Also it's incredibly inefficient even for perl. I cranked it out one day while I was at the North Carolina beach and mostly drunk. ;)
Available options:
-offl hardware iSCSI offload, yes|no
query "iscsiadm -m iface -P1" and parse default
-mtu mtu size for iSCSI interfaces, 1500|9000
if offl=n, query "ip addr" and parse mtu
if offl=y, query "iscsiadm -m iface -I $I | grep iface.mtu"
-vlan vlan id, 1-4094 (IEEE 802.1Q standard)
if offl=n, query "iscsiadm -m host" -> obtain IP of initiator "ip addr | grep IP" -> obtain interface name "cat /sys/class/net/eth#/mtu" -> obtain mtu value
if offl=y, "iscsiadm -m iface -I $I -o show | grep vlan_id"
-sessions total number active iSCSI sessions, (0-9)+
query "iscsiadm -m session -r SID -P1" and parse
NOTES:
This plugin only issues state OK|WARN
ONLY works for the following interfaces...
Standard Linux network interfaces
Broadcom Corporation NetXtreme II 10 Gigabit Ethernet Chelsio Communications Inc 10GbE Port Adapters
Send me lspci, "iscsiadm -m iface -P1", "iscsiadm -m host"
VLAN is experimental. The code looks like it should work but we don't vlan tagged storage interfaces so I have no a test bed.
Please note: I haven't used this code since 2013 when I worked in a large iSCSI environment. Also it's incredibly inefficient even for perl. I cranked it out one day while I was at the North Carolina beach and mostly drunk. ;)
Reviews (0)
Be the first to review this listing!