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_share_AA

Rating
0 votes
Favoured:
0
Current Version
1.1
Last Release Date
2014-07-22
Compatible With
  • Nagios 3.x
Owner
Hits
19628
Files:
FileDescription
check_smb_share_AAcheck_smb_share_AA
Nagios CSP

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_smb_share_AA is another plugin to check access to Windows Share for a specific user.
check_smb_share_AA is another plugin to check access to Windows Share for a specific user.

AA stands for Authorization - Authentication

This plugin will check not only if the share exists but it will check too if you're authorized to access it (share rights) and if you're using a valid authentication (user/password spelling in Centreon).

This plugin is a shell script.

Typically, the plugin will use smbclient to connect to a share and will do a dir command.
Doing a dir will completly valid the share access and authorization.

- Usage -

./check_smb_share_AA
Nagios plugin to check Windows share

Usage:
check_smb_share_AA -H -U USER%PASSWORD -S SHARE
check_smb_share_AA --help
check_smb_share_AA --version

- Example -

=== User doesnt have access rights to the share ===
./check_smb_share_AA -H HOST1 -U user%password -S share
CRITICAL Authorization problem : Access denied

=== Bad user/password spelling in config ===
./check_smb_share_AA -H HOST1 -U user%passwooord -S share
CRITICAL Authentication problem : Check USER/PWD config

=== Access is allowed ===
./check_smb_share_AA -H HOST1 -U user%password -S share
OK Share : centreon