LinuxQuestions.org
Help answer threads with 0 replies.
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 09-25-2009, 05:19 PM   #1
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 139

Rep: Reputation: 16
can a linux server monitor win server???


Hi All....

Is it possible that windows server can be monitored by linux server through bash script???? what should be the logic...
 
Old 09-25-2009, 06:19 PM   #2
MBybee
Member
 
Registered: Jan 2009
Location: wherever I can make a living
Distribution: OpenBSD / Debian / Ubuntu / Win7 / OpenVMS
Posts: 440

Rep: Reputation: 57
Short answer, yes.

Long answer, it depends on what you're monitoring. Things like Nagios/GroundWork and NetIQ work great for monitoring servers of nearly any OS from nearly any OS.

If you're doing it yourself, it's going to depend on what you want to monitor. I've done this many times, and here's a couple general ideas/solutions:

1) Windows Web/File server: You can check the ports, mount/verify SAMBA shares, the works. Use things like Windows Services for Unix (SFU) if you want a quick and easy SSHD that MS will support. Then you can easily do remote ssh to check on services and the like.

2) Windows App server: App servers can do such a wide range of things, what I usually do is install Active Perl then create and run a Perl-based test suite on the Windows server. Place the logs and the start/stop information someplace you can get to from the other server (like an sftp directory or something).

3) Windows Database server: These are quite easy, just connect to the database ports (even MSSQL is supported - there are even Perl modules for it) and run simple queries to check size/space/user load/etc. Alternatively, run it like option 2) above.

Just some thoughts. Send me a mail if you want some more stuff on this, as I do quite a lot of this on a day to day basis

Last edited by MBybee; 09-25-2009 at 06:20 PM. Reason: just can't type today!
 
Old 09-25-2009, 06:42 PM   #3
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 139

Original Poster
Rep: Reputation: 16
Thanks, i just want to monitor windows services if it will be down then it sends the email,disk space administration..these are the few things...so which will be the best monitoring tool for doing all these activities...can i go for any bash script..
 
Old 09-26-2009, 12:25 AM   #4
MBybee
Member
 
Registered: Jan 2009
Location: wherever I can make a living
Distribution: OpenBSD / Debian / Ubuntu / Win7 / OpenVMS
Posts: 440

Rep: Reputation: 57
If you are monitoring things like disk space and services, I'd go with option 1 or 2.

If you want to run all the logic from the Unix side, install SSHD on the windows box, then just script the commands and such like you would from any other linux box.
Otherwise write the scripts windows side and pick up and parse the logs/outputs from the linux box.

Whatever floats your boat.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to monitor web server, FTP server, Mail server and database server vodka33us Programming 1 06-16-2008 04:20 AM
How can I monitor my linux server from my WIN ALInux Linux - Networking 3 10-30-2006 06:40 AM
VPN Server: need help setting up a public server accessible by win xp clients hamish Linux - Networking 6 09-20-2006 02:39 AM
Linux vs. win 2k web server mbvo Linux - Newbie 12 05-14-2006 12:22 PM

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

All times are GMT -5. The time now is 09:42 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