LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-15-2013, 09:06 AM   #1
vrodask
LQ Newbie
 
Registered: Oct 2013
Posts: 2

Rep: Reputation: Disabled
Samba Service Monitoring


Hi,

I'm currently looking after an old SCO UNIX server that is running Samba to share files to a Windows server.

The issue is that the smbd service keeps stopping (currently diagnosing) but I wondered if it was possible to monitor when it is stopped and then automatically restart the service?

The client in question uses these servers 24/7 and it would be better to have it auto-start if it stops at 2AM to avoid down-time etc.

Any help is appreciated and thanks in advance.
 
Old 10-15-2013, 09:39 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by vrodask View Post
Hi,
I'm currently looking after an old SCO UNIX server that is running Samba to share files to a Windows server.

The issue is that the smbd service keeps stopping (currently diagnosing) but I wondered if it was possible to monitor when it is stopped and then automatically restart the service?

The client in question uses these servers 24/7 and it would be better to have it auto-start if it stops at 2AM to avoid down-time etc.
Well, that's a bit vague and open-ended. Are they currently using any monitoring systems now, like Nagios or Zabbix?? They can use those to monitor/restart services if they've already got them, or a system like it. You can also write a script for the local machine that runs a periodic check on the service, to see if it's still going, and bounce it if not. Or, a script on a remote machine that uses SNMP to query the service, and issue a restart via some method (ssh command?).

And bear in mind that if the service is hung, those methods go right out the window...since the PROCESS is still there and alive, but not actually DOING anything. That's when monitoring gets interesting, and the solutions more creative.

Best thing I could suggest for you and your client is to get off that old SCO crap, and go to CentOS for Samba services. Heck, even a simple off-the-shelf NAS device that you can go buy will probably have better performance than the SCO system, and still provide *Nix/Windows sharing services.
 
Old 10-15-2013, 09:52 AM   #3
vrodask
LQ Newbie
 
Registered: Oct 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks TB0ne. I thought it may be a simple question so didn't add all of the details.

The script will probably be the best route as it does completely stop rather than hanging in a running state.

It's running an old PECAS system that will cost the client £120,000 to upgrade apparently so we're having to work with what we have.

Thanks again for the suggestions mate.
 
Old 10-15-2013, 10:01 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Wink

Quote:
Originally Posted by vrodask View Post
It's running an old PECAS system that will cost the client £120,000 to upgrade apparently so we're having to work with what we have.
lol, they should have run an economic model simulation around replacement of obsolete equipment! (Or is it just me that finds it funny?)
 
Old 10-15-2013, 10:13 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by vrodask View Post
Thanks TB0ne. I thought it may be a simple question so didn't add all of the details.
The script will probably be the best route as it does completely stop rather than hanging in a running state.
Well, that's a simple script to write, and there are probably thousands of samples you can find on Google already, ready to modify to suit you.
Quote:
It's running an old PECAS system that will cost the client £120,000 to upgrade apparently so we're having to work with what we have.
Thanks again for the suggestions mate.
No worries, you're welcome. But honestly, if Samba is the service you're worried about, why not leave the other services on that system alone, and just spring for a NAS? This:

http://www.newegg.com/Product/Produc...82E16822154587

...is $189. And a snappy 2TB hard disk is about $110. Supports NFS, Samba, FTP, and HTTP. Makes the problem go away cheaply. And if they can spend $500 or so, they can get hot-swappable disks and LOTS more capacity.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Monitoring service? jedimastermopar General 1 10-04-2010 02:43 PM
Best monitoring Service helptonewbie Linux - Software 3 06-09-2010 09:06 AM
Fetchmail monitoring service? ddales Linux - Software 1 04-10-2006 05:51 AM
what do you think of this monitoring service? ziggie216 Linux - Software 2 12-23-2003 08:18 AM
Service Monitoring Daemon (MON) PokerFace Programming 1 12-04-2002 11:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration