Search Exchange

Search All Sites

Nagios Log Server Now Available - Download Now

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Check_iscsi

Bookmark and Share

Current Version
1.0
Last Release Date
2013-01-01
Compatible With
  • Nagios 3.x
E-mail
License
GPL
Hits
21842
Check_iscsi -
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.