Search Exchange

Search All Sites

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

Directory Tree

check_smb_speed

Current Version
1.0
Last Release Date
2011-05-09
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
License
GPL
Hits
96456
Files:
FileDescription
check_smb_speed.vbscheck_smb_speed.vbs
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
check_smb_speed
This is a nagios plugin vb script (VBS) that will check read or write speed over SMB.
It would be useful to be located on one machine targeting another.

The chunk size of reads and writes has taken into account the loose documentation on Microsoft's extended CIFS, SMB v1.0, that the "block size is 64KB."

This script doesn't take into account the clearing of all the caches where previously written data can reside.
Think about how appropriate this script is in your situation and how large your cache is.

A useful example is:
I want to perform two operations:
- write once every 5 minutes to a file server get the time (starting at time 0 minutes)
- read once every 5 minutes from a file server, get the time (starting at time 2.5 minutes)
Because I know that the I/O on this server is large, it is likely that all of the caches** are cleared by 2.5 minutes.
** caches could include: Client SMB, client NIC buffer, server NIC buffer, Server SMB, Server hdd driver cache, Server RAID controller write cache, Server RAID HDDs individual cache

These are just considerations and are probably not applicable to your situation.
This is probably a 100% acceptable test unless you're in an extremely high frequency area.


Suggestion:
1) Run it with warning and critical levels very high to establish a baseline speed of the operation.
2) Set the warning and critical levels according to this baseline.


Read the comments in the vbs for configuration and usage.


perf data output to specs:
(label)=(value)(metric);(warn level);(crit level);(min level);(max level)


v1.0 has been tested with NSClient++, expanded configuration example and addressed security thoroughly, can not be integrated into NSClient++'s wrapper.