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
ADVERTISEMENT
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
May 29, 2010
I got my hands on a couple old servers. An HP tc2021 and a Proliant ML110. Sure they're ancient, but I thought they would make a couple of great Ubuntu Servers for a new "start up" business I'm trying out. Now I've got to decide the best scenario to distribute the load between the two servers. I'm going to make an internal domain and will probably be running the following: Kerberos, Samba, Apache, Postfix, mysql, bind, dhcp, SVN, GCC, and Nagios. So in summary, I'll have the following roles; domain controller, web server, file server, and network monitoring services. how they would handle splitting these services up between two servers?
View 1 Replies
View Related
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
View Related
Nov 29, 2010
I recently became responsible for a server running Ubuntu 10.04. I am trying to figure out how its outbound mail service is setup. Everything is working fine now, I just want to document how it is setup so if I need to rebuild the box I can do so without too much trouble when the pressure is on. It is a pretty basic setup, the only outbound mail gets sent from php scripts, the server does not receive incoming messages. Is there a place I can look to see what service is sending outgoing messages?
View 2 Replies
View Related
Jan 18, 2011
I have three HP diskless thin clients and a Server with Ubuntu installed. I'd like to be able to run the desktop version of Ubuntu on the clients straight from the server, akin to what would be possible on Windows Server running terminal services and thin clients. Is this possible?
View 1 Replies
View Related
Sep 29, 2010
I have a server running 64bit lucid and while trying to get a script to run on boot to start Davmail I appear to have broken something. I have webmin installed but I have been trying to do the majority of things via the command line. I now have davmail starting at boot but a lot of other services don't start anymore, including apache, mysql and webmin. Fortunately SSH still works and I can start apache and webmin from the command line without any problems.
View 1 Replies
View Related
Apr 30, 2010
Where can I find a list of services converted to upstart in Ubuntu 10.04? What is the syntax for stopping, starting and restarting these services?
View 6 Replies
View Related
Apr 10, 2011
How do you enable/disable the autostart of services. For example let's say I know I'm not gonna use apache and mysql for a while and don't want it to autostart anymore how do I disable it ?
And then once it is needed again how do you enable the autostart again ?
View 5 Replies
View Related
Apr 24, 2009
Why some application has daemon and some others doesn't. I thought just network application has services like httpd, nfs, cups.... but I just found out that cron, gpm.. and other has it to. why other some other applications hasn't got daemon. Just want to know what sort of application has services.
View 2 Replies
View Related
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
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
May 7, 2010
I downloaded the latest 10.4 server CD with the intention of running a small Ubuntu Enterprise Cloud. I am following the directions here: [URL] Ive got 2 laptops that are capable of the tasks assigned to them. Both have dual core Intel chips that are VT enabled, 4GB of RAM, 250GB hard drives. Ill use one ( "server" ) as the front end server running cc, clc, walrus and sc.The other one ( "node1" ) will be the only node controller on my little network. Ive also got another laptop as a client, running euca commands to make instances and what not.These three laptops are connected to a switch. server is 192.168.1.100, node1 is going to be 192.168.1.110, the client laptop is 192.168.1.120.
the server seems to install fine, I select Install Ubuntu Enterprise Cloud, use it as the Cluster, give the cluster a name and 10 IPs to assign, 192.168.1.150-192.168.1.160 After the server is done installing and reboots, I boot the node machine off the CD and again select Ubuntu Enterprise Cloud. It's at this point the install craps out, because it does not recognize a cloud computer on the network.
Indeed, as I go to the server I run
Code:
ps -aux | grep euca
and see nothing running. So I start the eucalyptus service, and run
Code:
sudo euca_conf --list-clusters
and nothing shows up. Ive done some googling, ran some more euca_conf commands, registering the cluster, enabling walrus, cloud and sc. I can access the web gui on the client laptop, then restart the node install on the node laptop. This time it does see the server as a cluster controller, but when it tries to fetch the preseed file, it seems to not know the cluster's IP, as the red box that complains about the lack of a preseed file lists the URL as [URL] ( or whatever the file is called, I dont have the error in front of me. )
View 8 Replies
View Related
May 30, 2009
I can view my website, and ssh in when I've logged in already at home, but if the system gets rebooted, and gets as far as the login screen, I am not able to view the web site or ssh in. I was wondering how to set things up so thatthese services are running independent of logging in.
View 14 Replies
View Related
Mar 31, 2009
I am running a server init3.During boot I would like to start some services inside screenie. IRC chat, rtorrent etc.How do I do this?
View 1 Replies
View Related
May 29, 2010
I have Apache Server working online under Fedora Core 6. But before I installed and configured everything, I've been testing in Fedora 12. The problem surges here, when I start the httpd service, every supuse 404 action on a web browser, takes me to localhost. I mean, if I enter google.com, no error, just goes to localhost, http://asdasd, no error, gives back localhost. I used to ignore the problem 'cause I thought it was a problem on my apache, but when I installed the Server on the Fedora Core 6 machine, I found that I have the same problem there. Of course, it only occurs when I am browsing through the same machine that has httpd started. Does anyone know how to change that??
View 6 Replies
View Related
Jan 29, 2011
i have installed apache and bind on my server and i've also registered a dynamic domain through dyndns as jan27.dyndns.biz. i am able to successfully host my own webpages using this method.
then i registered a domain name (lets call it "blah.com") through namescheap.com and have registered my nameserver to my ip address. after reconfiguring the my external zones in bind and restarted my services, i am unable to reach my webpages through the new domain name.. www.blah.com and blah.com would lead me to a opendns.com page but interestingly ns1.blah.com loads my webpages successfully.
View 8 Replies
View Related
Dec 7, 2010
So I want to get mount/umount option under right click services menu. I went to Dolphin -> Settings -> Configure Dolphin -> Services -> Download New Services and from there I installed KDE CDEmu Emulator and MountISO. But neither of them is showing up in actual context menu. Neither in Dolphin -> Settings -> Configure Dolphin -> Services for that matter. I tried to install them as normal user and as a root. I went to have a peak in /usr/share/kde4/services/ServiceMenus/ but they aren't there as well... It's just me or lots of things seems to be not quite working in 11.3?
View 9 Replies
View Related
Oct 7, 2010
I have a good grasp on windows server 2003 but I don?t want to pay outrageous license fees for software and services and clients. I am newish to terminal as I only know a few commands. I have no problem installing services for the server edition for 10.04. Its just understanding whats going wrong to troubleshoot. I guess there is you guys and I have good working knowledge of Cisco's IOS's so I understand things like routing tables and interfaces and such for troubleshooting.
Questions I have... Can I install the desktop version of 10.04 and just install the server services? I was looking at the server guide [URL] and would like to know if these can all be installed on the desktop edition without too much trouble. I would imagine one could just use the server edition but I would really want a graphical user environment for some of the activities, if not all that I can. This would be becuase on my skills in the CLI. I priced out a server from Dell. I fits my budget perfectly if I go the Ubuntu 10.04 route. I was wondering if anyone sees any conflicts with the hardware for the Ubuntu OS....
[Code]....
View 4 Replies
View Related
May 9, 2010
so my server is doing fine, but there is one odd thing I would like to fix. When I start and stop services, the CPU is maxed out for about five seconds each time. The services start the same speed, but it still does this. Small things like lm_sensors don't do this, just things like httpd and sendmail. THis server was upgraded to Fedora 11 with a netinstall CD a few months ago.
View 4 Replies
View Related
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
Sep 13, 2010
How can Vsftpd services & Xinetd.d services can be differentiated?
View 5 Replies
View Related
Oct 21, 2010
I can see this phenomenon on 2 different systems running 11.3 .In simple mode and also in expert mode.
View 9 Replies
View Related
Feb 9, 2010
I am running ubuntu 9.10 with the latest patches and all the prerelase patches. At some point and i am not sure when something broke and none off the services start during the boot. Also the virtual consoles do not start. The only services that start are the one that are controlled by the gnome session. In addition i cannot start the rescue mode. It stops loading at same point where the console should show up. I am guessing that the problem is related to the upstart but i am not sure. I never ever had problems with boot in linux and this is very frustrating. I feel like i am running windows and dont know how to troubleshoot. I cannot see anything in the log that would give me a hint? I dont know where too look. I tried to activate the bootlogd but it does not work. Probably beacause the services dont start correctly. Something broke and one of the updates must changed something but i dont know what and where? Anyone can recommend where to look? How do i see the interactive boot? I tried remove the splash and quiet from grub config but i could not see anything there. I got too fast to the x login.
View 9 Replies
View Related
Mar 29, 2010
Why is the services tab grayed out in the ubuntu one client? Is this an error? should it be syncing files I have in the ubuntu one folder on my hard drive?
View 2 Replies
View Related
Jul 12, 2010
Basically services aren't starting up, like cron, VBox, ssh. I suspect a problem in the boot process, but I don't know where to look for errors with init or upstart or whatever it is these days.
View 5 Replies
View Related
Sep 12, 2010
I am working on a notebook which has both gnome and wmii. I am trying to find a way to script stopping various services when booting into wmii however the "service xxx stop" requires sudo..Is there a way to allow a user to manage services without the need for sudo (aside from password-less sudo)? I assume there are permissions complications with writing the PIDs, etc. Is there a 'simple' solution? Even possible passwordless sudo just for the 'service' command?
View 2 Replies
View Related
Jul 23, 2011
I spent a few minutes googling this, but I am not even sure what to search for. I suspect I'm looking at part of upstart, but it could also be sysvinit, plymouth or something else entirely. Every time I reboot, just between plymouth's splash screen and gdm loading, I am shown a list of services starting. The list shows the names of the services and [OK] if they started sucessfully or [fail] if they did not (only apport ever fails and only occasionally). I don't need or want to see this list. It also interrupts the transition from Grub to GDM (the background color should be the same shade of purple from grub all they way to the desktop, but this list is presented as ordinary terminal output: white text on black background)
View 4 Replies
View Related
Nov 18, 2010
Whenever I have a system and I like to disable several services from starting that are unessecary. I typically
PHP Code:
sudo services --status-all
to list the services
PHP Code:
[ ? ] acpi-support
[ ? ] acpid
[ ? ] alsa-mixer-save
[ ? ] anacron
[Code]....
I can see the init scripts being removed but it doesnt reflect the changes via services, why?
View 2 Replies
View Related
Jan 7, 2010
I'm Using 9.04/Gnome. I was looking in System>Administration>Services and wonder if I need them All of below enabled? It seems like duplication to me.
View 3 Replies
View Related