Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm following alone on youtube tutor linux videos to learn linux. One of the videos walk you thur installing and editing monit. It called for me to mv monitrc to monitrc-ORIG. now when i open monitrc in nano it's blank. I did this as root. Is there a way to fix this?
If I do cat monitrc or monitrc-ORIG i get the below:
cat: monit: no such file or directory
running Ubuntu version 18.04 kernel 4.15.0-38 generic
no the instructions called for mv. the first time i open monitrc in nano it had context in there. now when i open it, it's blank. So does that mean that monit is no longer working? I'm new to linux so this stuff is new to me.
no the instructions called for mv. the first time i open monitrc in nano it had context in there. now when i open it, it's blank. So does that mean that monit is no longer working? I'm new to linux so this stuff is new to me.
Thanks for replying
I would guess that monit doesn’t work correctly if monitrc is absent.
nano shows a blank page because you renamed the file monitrc-ORIG, and no file named monitrc exists anymore. For nano, it looks like you want to create a new file with this name.
Hi Berndbausch thanks for replying. Is there anyway to download a another copy of the monitrc file?
Sorry, but I don't know this application.
You must have installed it somehow in the first place. If you perform the same installation steps, you are bound to have your monitrc back. To reinstall it, the following command should do the trick:
Code:
apt-get --reinstall install
Last edited by berndbausch; 11-09-2018 at 10:16 PM.
Berndbausch that the monit software to monitor. I tried installing it again but it says "monit is already the newest version". I guess there is no way to reinstall monit.
Berndbausch that the monit software to monitor. I tried installing it again but it says "monit is already the newest version". I guess there is no way to reinstall monit.
Of course there is. Uninstall it using apt remove, then install it with apt install. And while I don't know apt so well, I would be surprised if it had no "force" option of some kind.
bernbauch i remove the software using apt-get remove monit
then i tried to reinstall using apt-get install monit
I get the following message when the installed was running: Failed to start LSB: service and resource monitoring daemon. Is there a way to fix that error?
I want bother you again tonight.
Thank you so much for answering and helping me
Failed to start LSB: service and resource monitoring daemon
Something when wrong when starting monit. You may get clues from the output of this command:
Code:
systemctl status monit
How did you install it in the first place?
Also, what is your goal? Do you have a strong need to set up monit, or do you want to learn Linux from the videos you mention? In the latter case, I would not bother with monit and move on. Once you learn about service management with systemd (that is the service management environment used by Ubuntu), you will understand the error message and know how to address it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.