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


Remember Me


0 votes

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

Polished and fixed version of check_diskwrite, which allows to check availability of either smb or windows shares, by writing and reading of file into the share.
Simple Shell Script, which touches a textfile with smbclient on an SMB-Mount, then checks if the file is readable, and deletes the file. Installation hints: - Needs smbclient installed - you'll need a file /etc/nagios2/conf.d/ in which you enter the smb-mount credentials like this (in this example with user: nagios and password: nagiosexec): username = nagios password = nagiosexec this User must have read/write access to the share! commands.cfg entry looks like this:

define command{
command_line=$USER1$/check_diskwrite $ARG1$ $ARG2$ $ARG3$

ARG1 : hostname ARG2 : share ARG3:Domain or Workgroup

corresponding service definition:

define service{
use generic-service
hostname HOSTNAME
check_command check-diskwrite!HOSTNAME!"SHARENAME"!WORKGROUP/DOMAIN NAME
} should look like standard smbclient configuration file,
see man smbclient, -A option.