Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
Your review has been submitted and is pending approval.
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.
Current Version
Last Release Date
June 15, 2009
Owner
Nagios Exchange
Compatible With
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/share1.pw 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_name=check-diskwrite 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 description check_command check-diskwrite!HOSTNAME!"SHARENAME"!WORKGROUP/DOMAIN NAME } share1.pw should look like standard smbclient configuration file, see man smbclient, -A option.
You must be logged in to submit a review.
To:
From: