Ubuntu :: Monit With A Pid But Without The Process?

Mar 9, 2010

I have a process that runs without creating a PID. I know how to use pidof... So I use it to create a pidfile containing the process number. The thing is that monit checks that the file exist... That works fine... But when I kill the process manually... leaving the pidfile, monit doesn't see this... And the process doesn't restart. The process is flashplayer... running an swf in full screen.

View 3 Replies


ADVERTISEMENT

Ubuntu Servers :: Using Monit For Services With No Pid?

Sep 8, 2010

It would seem MySQL and VSFTP no longer create pid files and monit requires a pid file to work. Is there any way to force MySQLD and VSFTPD to use pid files or am I out of luck?

View 3 Replies View Related

Software :: Configuring Monit For The System?

Jan 28, 2011

I was trying to configure monit for my system.These all are the commands i used to configure:

1). set httpd port to 2812 it worked..

2). ssl enable it gives command not found...

i am unable to locate the problem.....

View 1 Replies View Related

CentOS 5 :: Should Use Monit Or Mon To Monitor A .pl File

Dec 27, 2010

I have a perl program that I need to an eye on so it run 24/7 and restarts if it stops at any time. I have Webmin installed and I am looking into Mon but it seems it only monitors services like "httpd" and "smtp" rather than a file.pl file which runs. Actually the file creates a pid.log in /var/log/ which has the PID number in it.

Since Monit doesn't come on webmin I am not sure what I need to put in it's config file to monitor my file.pl.

View 3 Replies View Related

Ubuntu Servers :: Setup And Run Monit To Monitor An Apache2 Webserver?

Nov 11, 2010

I'm trying to set up and run Monit to monitor an Apache2 webserver, I want to be able to ensure Apache is running and if it's not have it restarted with an email alert sent out.

The monitrc (edited for relevance) looks like:

Code:
check system *server name*
if loadavg (1min) > 4 then alert
if loadavg (5min) > 2 then alert

[Code].....

View 8 Replies View Related

Server :: When Cron Is Running, Monit Loses Its Connection To Postfix?

Mar 18, 2011

I've run into a strange problem on one of the servers I maintain. It's running CentOS 5, fully up to date. The server has Monit installed via RPMforge, and runs Postfix as its MTA. Every day at about 4:20am, when cron is running, Monit loses its connection to Postfix. As far as I can tell, nothing is actually going wrong with Postfix and it's always restarted just fine. I run a couple of Debian servers with very similar setups, and the problem does not occur on them.

Perhaps related, other daemons on the CentOS box often lose their pid files at the time when cron runs, which results in Monit thinking they're not running. One service in particular (zarafa-dagent) is so bad for this that I've had to completely disable monitoring of it in Monit. Again, this problem doesn't occur on the Debian boxes I maintain.The problem isn't hugely urgent as everything still runs fine, but it does mean that pretty much every day I get false positive mail alerts from Monit, which is (a) annoying and (b) makes me more likely to miss a real alert.

View 5 Replies View Related

Red Hat / Fedora :: Command To Stop That File/process Or Is It Just Kill The Process To Stop The Process?

Nov 11, 2010

I've some file with .sh extensions that runs some softwares.Now,how do I stop running that filesI know we run the command ./start_tomcat.sh to start the apache.Is there any command to stop that file/process or is it just kill the process to stop the process

View 2 Replies View Related

General :: Kills A Process Internally Or From Where It Picks File To Continue Its Process?

Jan 8, 2010

one tell me the internal working of kill command. that is how it kills a process internally or from where it picks file to continue its process.

View 3 Replies View Related

General :: Elevate The Priority Of A Process Without Process Superuser Rights?

Jan 21, 2011

I have a high priority service that I start with sudo nice -n -10 process. This process does not need superuser rights though, except for the priority elevation. But nice requires superuser privileges to elevate priority.

View 3 Replies View Related

General :: How To Identify Raid Degrade Process / How To Rebuilt Process

Jun 12, 2010

send the details raid configuration how to use in linux el5 and how to indentify the raid degrade process and how to rebuilt the process.

View 4 Replies View Related

General :: Sending Signal From Child Process To Parent Process?

Sep 8, 2010

Code:

#include <stdio.h>
#include <unistd.h>
#include <signal.h>

[code]....

Description of what the code does or what i intended to do:

1. Created a child process from parent process using 'fork()'

2. Sent a signal 'SIGALRM' from child process to parent process using 'sigqueue' function.

(The Third parameter of 'siqueue' function contains the message (message msg) which the child process wants to send to the parent process.'msg' is a stucture instance containing a) pid of child and b) string) 5. Print the 'msg' sent by child process inside the signal handler function 'sig_action_function' of the parent process I am getting some junk value when this line is executed

Code:

printf("%d
",msg->cpid);

I expected to get the pid of child process, which the child process sent to parent process through the signal.

View 3 Replies View Related

General :: Process Scheduler A Part Of Process Queue?

Aug 12, 2010

as we all know Process Scheduler does Process scheduling and its a process as well. I was just wondering that if this happens then the Process "Process Scheduler" should be a part of Process queue as well.

So if there are 5 process are there in Process queue & process scheduler is administrating them then since its also a process, once it puts a process under RUN state it should itself go inside queue because at one instant only one process can get executed on a processor. This is quite confusing for me. Please help me out. I tried to search on this but could not find any relevant topics.

View 1 Replies View Related

General :: Find The Parent Process Of A Zombie Process?

May 4, 2010

How do you find the parent process of zombie processes?

When the child process is something where the parent is not entirely obvious...

Is there some way to list processes in tree format or something?

View 3 Replies View Related

Programming :: Displaying Process Id In Shell Script But There Is No Such Process?

Nov 9, 2010

I have a shell script to identify whether the process is running or not. If the process is not running, then I execute another script file to run my application. Below is my script and saved this script as monitorprocess.sh Code: #!/bin/bash

result=$(ps -ef | grep -v grep | grep "applicationname.sh" | awk '{print $2}')
echo $result
if [ "$result" == "" ];

[code]...

View 4 Replies View Related

General :: Process Shows Multiple Process Ids(pids)?

Nov 9, 2010

I have a process running on Linux.When i do ps -eaf | grep <myProcess>, it show muliple entries for <myProcess> with different pids for each entry.Kindly tell me what could be the reason for a process having multiple pids?

View 1 Replies View Related

Programming :: Difference Between Init.rc Process And Normal Process?

Mar 31, 2011

Is there any difference in cpu usage for process in init.rc(runs automatic when boot is happened) and manually running process. Will these both have same priority by default...?

View 1 Replies View Related

Programming ::get The PID Of The Process Giving Kill Signal To A Process?

Nov 26, 2008

I tried googling but didn't get any answer for this.I have a process called "abc" and it is running with PID "123".I have a putty session opened with PID "999".I am giving kill -TERM 123 from putty session.My process "abc" before dying it should catch the PID of the terminal which provided TERM signal to it.Is there any way to find this out

View 2 Replies View Related

General :: Ran New Process After Sungrid Process Finished?

Mar 23, 2010

I want ro ran new commandy after sungrid finish his task.Exp:qsub -q bla command1; command2 command2 start only when job of command1 finished.

View 9 Replies View Related

General :: Save The Process And Log Out Then Log In And Continue The Process?

Nov 16, 2010

I've been running my shellscript for about half an hour now. It's taking longer than I thought to process all the data. I have the process ID of it. Is it possible to save the process and log out then log in and continue the process? I know how to pause a process using kill -pause pID and continue it using kill -cont pID. But that only work if you don't log out after pausing it.

View 5 Replies View Related

Programming :: Showing Process Id But There Is No Such Process?

Nov 9, 2010

I have a shell script to identify whether the process is running or not. If the process is not running, then I execute another script file to run my application. Below is my script and saved this script as monitorprocess.sh

Code:
#!/bin/bash
result=$(ps -ef | grep -v grep | grep "applicationname.sh" | awk '{print $2}')

[code]...

View 14 Replies View Related

General :: Killing Parent Process Without Killing Child Process (Linux C Programming)?

Mar 10, 2011

I want to kill parent process after "fork()" method. but if I kill parent process with "exit(0)" method, main() thread is terminated as well so child prosess doesn't work anymore. Is there any way to kill only parent process without affecting to child process?

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

[code]....

View 1 Replies View Related

Programming :: Under Which Circumstances A Child Process Creates Another Child Process Using Fork

Dec 7, 2009

Consider the following code:

Code:

int main()
{
int i=0;
pid_t pid;
for(i=0;i<2;i++)

[code]....

I get the following output:

Parent: chid_pid=4356 i=0 parent's pid=4355
This is child 4356 i=0
This is child 4357 i=1

[code]....

I can observe instead of two children(as I expect) processes there are three. This is because child process 4356 creates its own child. Why all the messages of the type "This is child X i=Y" are concentrated one under another? How exactly fork works? Is affected by the fact that I have a dual-core processor?

View 3 Replies View Related

General :: Get Process Name By Process Id?

Sep 17, 2010

I need a command to get the process name by process id.

View 2 Replies View Related

Ubuntu :: How To Benchmark A Process?

Mar 21, 2010

I want to measure how CPU time was spent (user, system, i/o waits) for a process or the whole system totally in some period of time, (not in realtime intervals and ignoring idle time). Is there a way to do this in linux?

View 2 Replies View Related

Ubuntu :: Keep A Process Running From Ssh

May 21, 2010

I recenlty set up a headless linux home server by my router will my spare computer parts. I have NFS and even a COD4 server running on it for my friends and me. Because the box is headless, I take controll over it with ssh and start the COD4 server from there, but the problem is, if I close the terminal I have the ssh running from, it closes my server, meaning my desktop needs to be up and running the entire time. That kinda ruins the point of my server

So my question is, is there a way for me to run the command so that it will not close with the terminal AND that I can still send commands to the server.

View 9 Replies View Related

Ubuntu :: Does 10.04 LTS Use P2P In Synaptics Or Apt-get Or Another Process

Jun 16, 2010

I think I used the command apt-get and synaptics to install some programming library which are

{ autotools-dev, build-essential, cmake, cpp, libboost-thread1.35.0,libboost-thread1.35.0, libboost-thread1.35-dev, libboost-signals1.35.0, libboost-signals1.35-dev,libcv1, libcv-dev, libgdk-pixbuf2, libgdk-pixbuf-dev, libgnomecanvas2-0, libgnomecanvas2-dev, libgsl0, libgsl0-dev, libjpeg62-dev,libtool, libxmu-dev,swig,freeglut3 (for stage), freeglut3-dev (for stage), libfltk1.1 (for stage), libfltk1.1-dev (for stage), libgtk2.0-dev (for stage), libltdl7 (for stage), libltdl7-dev (for stage),libpng12-0 (for stage), libpng12-0-dev (for stage)}

and I didn't use anything else and didn't install any P2P client in Ubuntu. And then a few day later, my laboratory received the message that someone in our laboratory used P2P with prohibited in the university. The people in my laboratory pointed to me because they're all using windows only me using Ubuntu. So I would like to ask "Is it possible that Ubuntu using P2P in its background? or apt-get or synaptics using P2P in their process?" If Ubuntu can't do that, I can prove myself. But If Ubuntu does, I still can show to them that it's Ubuntu's program and it's legal.

View 2 Replies View Related

Ubuntu :: Apache Does Not Process PHP?

Jun 22, 2010

Apache2 on Ubuntu 10.04 no longer parses PHP files. I've done a complete uninstall and reinstall of both Apache and PHP, but no joy.In the Apache2 log, I get this message: /usr/lib/php5/20090626+lfs/xdebug.so: cannot open shared object fileI've done the obvious and checked that the library is there and it is. It has permissions of 644 (rw-r--r--).Does anyone know what I'm missing here?

View 9 Replies View Related

Ubuntu :: How To Name A BASH Process

Jun 26, 2010

I am having a problem identifying a BASH script process that I run at startup.When I use "ps -e", I see a few BASH and SH processes running, but I don't know if any of these are my script. Is there a way to give a BASH script a specific name when run that I could see as the process name. That would make it easier to identify and kill when needed.

View 3 Replies View Related

Ubuntu :: Xorg Process Use 100% Cpu In 10.04?

Aug 11, 2010

Recently, my pc xorg process was use 100% CPU of system

View 9 Replies View Related

Ubuntu One :: Sso-login Process Using 100% CPU?

Aug 19, 2010

When I run Ubuntuone Preferences applet and connect to Ubuntuone, process ubuntu-sso-login starts using 100% of my CPU and continues to do so even if I log out and disconnect from Ubuntuone. The only way I can stop the high CPU utilization is to reboot or log off the desktop. Does this happen to others? I opened bug 620584 on Launchpad.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved