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 have been facing an issue with crontab in RHEL-7. I tried to install nagios XI in RHEL-7 environment. During installation it was failed due to some crontab issue(which says "path too long".).
I have no idea about this. I just typed crontab in session, it prints "PATH TOO LONG".
If anyone came across such issue or knows how to resolve, Please help me.
Dear forum,
I have been facing an issue with crontab in RHEL-7. I tried to install nagios XI in RHEL-7 environment. During installation it was failed due to some crontab issue(which says "path too long".).
I have no idea about this. I just typed crontab in session, it prints "PATH TOO LONG".
If anyone came across such issue or knows how to resolve, Please help me.
Read the "Question Guidelines" and "How to ask a smart question" links in my posting signature. All we know from what you've said is:
You're using RHEL7
You tried to install Nagios
You got "some crontab issue"
What, exactly, do you think we'll be able to tell you from that? Also, you're using RHEL 7...are you PAYING FOR RHEL??? as you should be? Have you contacted RHEL support? There are many how-to guides you can easily find/follow by putting "how to install nagios on rhel 7" into Google. Have you looked at any of them, and if so, which are you following?
How did you try to install Nagois? Yum, .tgz or some other method?
What is the exact error message?
Are you trying to do the install as a user or say root?
-I am installing Nagios XI in an offline environment. Downloaded the tarball from https://repo.nagios.com/ for RHEL7. Pre-requisites are in place for installation.
-The Error Message is nothing but
"path too long"
This error comes when the installation script executes "crontab -u apache nagiosxi/crontab.apache" command.
-I am installing Nagios XI in an offline environment. Downloaded the tarball from https://repo.nagios.com/ for RHEL7. Pre-requisites are in place for installation.
-The Error Message is nothing but
"path too long"
This error comes when the installation script executes "crontab -u apache nagiosxi/crontab.apache" command.
-I am trying to Install nagios as a root user.
Thanks
More information.
Nagios XI is a paid for version, correct? If you have paid for it, why aren't asking Nagios for support?
Also its designed for network monitoring, why are you installing this in an offline environment?
I've also found two URLs that walk thru the install process, have you worked thru either of these?
Steps to install nagios in offline is just to run the fullinstall script in the tar ball, which takes care of apache, crontab and all other components required. Apache server is running in the server.
In a point where it has to add the crontab entries, it fails.
Nagios Version : 5.2.0 (nagiosxi-5-2.0.el7.x86_64.tar.gz)
It seems crontab not working. In the error it clearly says- Crontab failed: Path too long
I have installed Nagios XI 5.2.0 in RHEL 6, with same steps followed. It works fine, that's also Offline environment.
Where, exactly, did you get that information from?? Nagios most certainly DOES support offline environment, and that document even tells you how to do it. It says that the DOCUMENTATION is in beta..nothing else. Further, you DO get support during your trial...that is because they want you to PURCHASE their software, and you won't unless it can be installed and run. So call Nagios.
Quote:
Steps to install nagios in offline is just to run the fullinstall script in the tar ball, which takes care of apache, crontab and all other components required. Apache server is running in the server.
Yes...and it will only do these things, if you are paying for RHEL, since it cannot resolve any dependencies or download packages otherwise. From the Nagios documentation:
Quote:
Originally Posted by Nagios Docs
Modifying the yum configuration and installing prerequisite packages
...and....
Watch for error messages when running this command, as some installation scripts may fail if system requirements are missing,
Sounds familiar, doesn't it?
Quote:
In a point where it has to add the crontab entries, it fails.
Nagios Version : 5.2.0 (nagiosxi-5-2.0.el7.x86_64.tar.gz)
It seems crontab not working. In the error it clearly says- Crontab failed: Path too long I have installed Nagios XI 5.2.0 in RHEL 6, with same steps followed. It works fine, that's also Offline environment.
Ok, so again, as you've been asked before....HAVE YOU CONTACTED RED HAT SUPPORT??? You say you're using RHEL 6 and RHEL 7...both of which are commercial, pay-for distributions. They can certainly help you diagnose a problem with crontab, since that's an integral part of the system OS.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.