07-26-2005
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am the Linux Admin in my organisation and need to write a shell script which will monitor the machine statistics every day and will send a consolidated report to me on my email id / will display the output into a file.
Does anyone have such kind of script fulfilling this kind of purpose?
... (4 Replies)
Discussion started by: csaha
4 Replies
2. Shell Programming and Scripting
Hi guys i have purchased sun server for my visualization project.
Request you to help me finding the io for disk .
I have put storage(disks) on different location (File Server) and on server (Application) i have configured 4 virtual machines.
How would i monitor the io for file server from... (0 Replies)
Discussion started by: pinga123
0 Replies
3. Infrastructure Monitoring
Hi,
We user What's Up Gold tool for monitoring the WIndows servers. My idea is to add my Solaris 10 server to this monitoring tool. Is it feasible? If yes, can somebody help in configuring the server onto the tool?
My current solaris 10 server is i86pc, and has SNMP daemons running. the... (0 Replies)
Discussion started by: EmbedUX
0 Replies
4. Shell Programming and Scripting
we have a server, which becomes down at times and we dont get any notification mail.
Can we monitor PID for that server run and create a script to send notification to a mail id?
I have URL for the server, which I can use.
Please let me know if more information is required from my end to... (2 Replies)
Discussion started by: vandana.parwani
2 Replies
5. Windows & DOS: Issues & Discussions
:wall:hi all, as hp support pack has hpasm, hpacu command using in linux server to show and monitor hareware status.
hpacu command was avaialbe in windows server also, but where can find hpasm command in windows, it looks hp support pack not support hpasm in windows. any one can help? an... (1 Reply)
Discussion started by: maxlee24
1 Replies
6. Programming
Hi All,
I am new to JMX.Can anybody tell me how to use this it on unix server.
Using JMX i want to check the system monitoring(%cpu utilization , size utilization )how to start JMX on UNIX
Thanks
Double post, continued (9 Replies)
Discussion started by: aish11
9 Replies
7. UNIX for Dummies Questions & Answers
Hi all - newb here.
We're a Windows shop and I'm looking for something that I could stand up to monitor various aspects of our servers. I'm specifically looking for something that can:
verify that servers are up
verify services are up
verify remote sites are up/accessible
monitor CPU &... (2 Replies)
Discussion started by: Phylum
2 Replies
8. Infrastructure Monitoring
Hi
I like to use tmadmin commands to monitor running application in tuxedo server 12c.But When i use tmadmin help command i get only meta commands.But i like to check printconn,printclient,printserver like that.But these commands are not avaialble in list.I here pasted the help command... (0 Replies)
Discussion started by: selva1587
0 Replies
9. Solaris
Hi forum
We have nearly 240 servers inclding zones . How can i monitor server and its performance by using any monitoring tools. My indentions is to plot graphs based on server utilization interms of cpu and memory
Is there any opensource tools for this.
I saw collectd and it has agent... (3 Replies)
Discussion started by: bentech4u
3 Replies
10. UNIX for Beginners Questions & Answers
I want to write a shell script which is used in cron job and it runs every 4 hours to check whether tomcat servers are running or not . If servers are not running , one email should be triggered like alert notification. if servers are Running then no need to print anything.
This is what i want... (5 Replies)
Discussion started by: kk123
5 Replies
LEARN ABOUT PHP
win32_start_service_ctrl_dispatcher
WIN32_START_SERVICE_CTRL_DISPATCHER(3) 1 WIN32_START_SERVICE_CTRL_DISPATCHER(3)
win32_start_service_ctrl_dispatcher - Registers the script with the SCM, so that it can act as the service with the given name
SYNOPSIS
mixed win32_start_service_ctrl_dispatcher (string $name)
DESCRIPTION
When launched via the Service Control Manager, a service process is required to "check-in" with it to establish service monitoring and
communication facilities. This function performs the check-in by spawning a thread to handle the lower-level communication with the service
control manager.
Once started, the service process should do 2 things. The first is to tell the Service Control Manager that the service is running. This
is achieved by calling win32_set_service_status(3) with the WIN32_SERVICE_RUNNING constant. If you need to perform some lengthy process
before the service is actually running, then you can use the WIN32_SERVICE_START_PENDING constant. The second is to continue to check-in
with the service control manager so that it can determine if it should terminate. This is achieved by periodically calling
win32_get_last_control_message(3) and handling the return code appropriately.
PARAMETERS
o $name
- The short-name of the service, as registered by win32_create_service(3).
RETURN VALUES
Returns TRUE on success, FALSE if there is a problem with the parameters or a Win32 Error Code on failure.
EXAMPLES
Example #1
A win32_start_service_ctrl_dispatcher(3) example
Check if the service is runnig under the SCM.
<?php
if (!win32_start_service_ctrl_dispatcher('dummyphp')) {
die("I'm probably not running under the service control manager");
}
win32_set_service_status(WIN32_SERVICE_START_PENDING);
// Some lengthy process to get this service up and running.
win32_set_service_status(WIN32_SERVICE_RUNNING);
while (WIN32_SERVICE_CONTROL_STOP != win32_get_last_control_message()) {
# do some work here, trying not to take more than around 30 seconds
# before coming back into the loop again
}
?>
SEE ALSO
win32_set_service_status(3), win32_get_last_control_message(3), Win32 Error Codes.
PHP Documentation Group WIN32_START_SERVICE_CTRL_DISPATCHER(3)