LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 04-26-2004, 04:22 AM   #1
tidom
LQ Newbie
 
Registered: May 2003
Posts: 2

Rep: Reputation: 0
Question Monitoring with perl script


I have made any perl scripts to survey my servers from a linux.
Of course, there are some of those on Wondows.
So, is anybody knows a command to survey a windows service from a linux.

Thanks.
 
Old 04-26-2004, 11:42 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Depends on what you want to do. If you just want to check simple things, like is a specific file available on the HTTP server, can you get a connection banner on the SMTP server, etc then those can be done fairly trivially. If you want to check the status of a proprietary Windows service that is not network-accessible, then you would need to run the script on that box itself (of course).

I would suggest browsing www.CPAN.org for modules that may help in polling Windows services
Also the following books may be helpful:
Learning Perl on Win32 Systems
Perl for System Administration

I have the latter book and it does have some useful examples of things you can do on Win32 systems using some of the Win32-specific PERL modules.

Last edited by chort; 04-26-2004 at 11:43 AM.
 
Old 04-27-2004, 04:18 AM   #3
tidom
LQ Newbie
 
Registered: May 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you for your answer but, as you said, i have to check a proprietary windows service status.
I have already searched on CPAN but it only provides system administration scripts for "system" to "same system". My pb is to check a windows service status from a linux system.
I think i will use a link to an another apache web page based on a win32 system but if there is another way to resolve my pb without using another computer, i am really interresting.
 
Old 05-02-2004, 05:10 AM   #4
440beeper
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
The Win32 modules should allow you to do this. I seem to recall that you can specify remote machines as a parameter to query the services. It's been a while since I've looked at it and I'm going by memory (always a scary thing), but I'm pretty sure it works that way. I do this at work but a slightly different way. I just use "MSINFO32 \\server /r server.txt" in my script (looping thru all the servers) and check the output of the text file. This way I can verify that all the automatic services are running, keep an eye on disk space, etc.
 
Old 05-02-2004, 02:01 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You may be able to save yourself some work by using an established project such as nagios:
http://www.nagios.org
 
  


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
Monitoring Script required nimish Linux - Software 0 11-05-2004 03:25 AM
Please advise on monitoring script pembo13 Linux - Software 1 07-22-2004 02:04 AM
Converting a Windows Perl script to a Linux Perl script. rubbercash Programming 2 07-19-2004 10:22 AM
how to find the pid of a perl script from shell script toovato Linux - General 1 12-19-2003 06:25 PM
Including methods from a perl script into another perl script gene_gEnie Programming 3 01-31-2002 05:03 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

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