Bug 1178765 - [Nagios] Do not monitor SMB service if samba is not installed
Summary: [Nagios] Do not monitor SMB service if samba is not installed
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: nagios-server-addons
Version: rhgs-3.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Timothy Asir
QA Contact: RamaKasturi
URL:
Whiteboard:
Depends On:
Blocks: 1202842
TreeView+ depends on / blocked
 
Reported: 2015-01-05 13:11 UTC by Shruti Sampat
Modified: 2023-09-14 02:52 UTC (History)
6 users (show)

Fixed In Version: nagios-server-addons-0.2.0-1.el6rhs.noarch
Doc Type: Known Issue
Doc Text:
Cause: When CTDB is configured on the systems chkconfig of smb will be off to prevent smb coming up during reboot. In this case if CTDB is configured on the system then smb service will be shown as smb not configured where as SMB is configured. Consequence: User might think that SMB is not configured properly Workaround (if any): SMB not configured message will occurs only when there is no smb service running and chkconfig smb is false. So if the message says SMB Not configured, user should read it as 'SMB not running and might not configured completely'
Clone Of:
Environment:
Last Closed: 2018-01-30 07:55:05 UTC
Embargoed:


Attachments (Terms of Use)

Description Shruti Sampat 2015-01-05 13:11:06 UTC
Description of problem:
--------------------------

It is planned to make samba as optional package while installing RHSS using ISO and moving samba out of the rhs repo to a different repo. In that case, Nagios server should not monitor SMB if user chooses not to install samba. Auto-discovery could check for `rpm -q samba' to decide whether SMB service should be created or not.

Version-Release number of selected component (if applicable):
--------------------------------------------------------------
nagios-server-addons-0.1.11-1.el6rhs.noarch

How reproducible:
N/A

Steps to Reproduce:
N/A

Actual results:
N/A

Expected results:
------------------
SMB service should not be created if samba is not installed. User should be expected to run auto-discovery after installing samba at a later point in time.


Additional info:

Comment 1 Dusmant 2015-01-12 09:39:35 UTC
If this happens in 3.1 release of RHS, we need to take care of it as well, otherwise it has to happen, when SMB installation is made optional.

Comment 2 Sahina Bose 2015-04-27 06:43:22 UTC
Plugin will be changed to look at chkconfig status of SMB. If turned off, plugin will report SMB service status as "Not Configured".

Comment 3 Timothy Asir 2015-04-28 12:17:51 UTC
(In reply to Shruti Sampat from comment #0)
> Description of problem:
> --------------------------
> 
> It is planned to make samba as optional package while installing RHSS using
> ISO and moving samba out of the rhs repo to a different repo. In that case,
> Nagios server should not monitor SMB if user chooses not to install samba.
> Auto-discovery could check for `rpm -q samba' to decide whether SMB service
> should be created or not.
> 
> Version-Release number of selected component (if applicable):
> --------------------------------------------------------------
> nagios-server-addons-0.1.11-1.el6rhs.noarch
> 
> How reproducible:
> N/A
> 
> Steps to Reproduce:
> N/A
> 
> Actual results:
> N/A
> 
> Expected results:
> ------------------
> SMB service should not be created if samba is not installed. User should be
> expected to run auto-discovery after installing samba at a later point in
> time.
> 
> 
> Additional info:

1) Currently it gives critical error message when some of the volumes configured to use smb but the smb is not configured or not running.
2) Returns "OK" when no volumes using smb and the smb is not configured or running.
If we disable the service completely if the supporting packages (samba) are not installed, it will not be possible to inform the user when the above mentioned cases occurred.
So we will modify the plugin to look at chkconfig status of SMB. If turned off, plugin will report SMB service status as "Not Configured".

Comment 4 Timothy Asir 2015-04-28 12:46:14 UTC
And by-default its enabled for the every gluster volume we create.

Comment 5 Timothy Asir 2015-04-28 12:57:09 UTC
Patch sent to upstream for review: http://review.gluster.org/10423

Comment 6 Timothy Asir 2015-04-30 09:20:01 UTC
If no volume uses smb and smb is not configured plugin will report "SMB is not configured"

Comment 8 RamaKasturi 2015-05-28 12:49:19 UTC
When CTDB is configured user will be doing chkconfig smb off, in this case will nagios report that SMB is not configured? can some please explain?

Comment 9 RamaKasturi 2015-05-29 09:32:31 UTC
When CTDB is configured user will be doing chkconfig smb off, in this case will nagios report that SMB is not configured. Is this expected?

Comment 10 RamaKasturi 2015-06-01 10:15:21 UTC
Moving this bug back because the fix provided is not valid in all the cases. When CTDB is configured on the systems chkconfig of smb will be off to prevent smb coming up during reboot. In this case if CTDB is configured on the system then smb service will be shown as smb not configured where as SMB is configured.

Comment 11 Dusmant 2015-06-11 05:43:42 UTC
Triage decided to doc-text it and take it up in 3.1.z

Comment 14 Timothy Asir 2015-07-14 07:21:18 UTC
The plugin returns the status as follows:

1) if smb is running it will immediately returns the status as
   'OK Process smb is running
2) if smb is not running it will check for check for chkconfig smb status
   and returns the status if its not configured (as 'OK: Not configured')
3) if smbd is not running and chkconfig smb is not true then
   it will check for any volumes using smb. If any volume uses
   smb it will return critical error message
   as ""CRITICAL: Process smb is not running"
4) if smbd not running, check config smb is not true
   and no volumes exists or no volume uses smb it will return the
   message as "OK: No gluster volume uses smb"

So the smb not configured message will occur any time when there is no
smb service running and when chkconfig smb is false. So it looks like a
minior issue all about the message. As per command3,
its consider that using chkconfig tool for smb is also a part of smb configuration. However as per comment10, the plugin need not necessarily
looking for chkconfig status of smb; because there may be some situation
where chkconfig smb will be off and the plugin can just bypass the above step2.

However the question here is, if chkconfig is not going to be the part of
smb configuration then how are we going to start the service automatically
on reboots. Do we have a separate ui to restart this service along with or without ctdb configuration if required or the admin has to do it manually.

Comment 15 Sahina Bose 2018-01-30 07:55:05 UTC
Thank you for the bug report. However, closing this as the bug is filed against gluster nagios monitoring for which no further new development is being undertaken.

Comment 16 Red Hat Bugzilla 2023-09-14 02:52:56 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


Note You need to log in before you can comment on or make changes to this bug.