LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-14-2013, 11:29 PM   #1
Nivin Abraham
LQ Newbie
 
Registered: Sep 2013
Posts: 6

Rep: Reputation: Disabled
Question nagios install in ubuntu


i have installed ubuntu 12.04 ,while nagios 4.0.0beta i had no problem it installed without any issues,similarly installing nagios plugin every thing went smoothly so no issues till now, but when i "service nagios start"
"/etc/init.d/nagios: 20 .: Can't open /etc/rc.d/init.d/functions"
so can anyone help me pls i am stuck her couldnt open nagios pls help ............
 
Old 09-15-2013, 08:23 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
How did you install? from package manager or source?
 
Old 09-15-2013, 09:17 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by Nivin Abraham View Post
i have installed ubuntu 12.04 ,while nagios 4.0.0beta i had no problem it installed without any issues,similarly installing nagios plugin every thing went smoothly so no issues till now, but when i "service nagios start"
"/etc/init.d/nagios: 20 .: Can't open /etc/rc.d/init.d/functions"
so can anyone help me pls i am stuck her couldnt open nagios pls help ............
Spell out your words, please. And if you put the error into Google, you'd have found plenty of suggestions:
http://tracker.nagios.org/view.php?id=460
http://comments.gmane.org/gmane.netw...ios.user/75320
http://askubuntu.com/questions/73206...-init-d-script

...with some solutions. Did you try Google, or any of the suggested solutions?
 
Old 09-15-2013, 10:16 PM   #4
Nivin Abraham
LQ Newbie
 
Registered: Sep 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
i am new to linux i tried the installation in terminal
 
Old 09-16-2013, 07:57 AM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
have a look at http://www.hammondslegacy.com/forum/...php?f=40&t=194
 
Old 09-16-2013, 08:02 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by Nivin Abraham View Post
i am new to linux i tried the installation in terminal
...and you STILL haven't answered the questions. How did you do the installation 'in terminal'?? What did you do/type? Results? Where did you get the package?

And AGAIN...did you try any of the solutions listed in the links provided to you? Because if you had, it would probably be working.
 
Old 09-17-2013, 03:21 AM   #7
Nivin Abraham
LQ Newbie
 
Registered: Sep 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
my ubuntu version is 12.04
nagios version is nagios-4.0.0beta4
nagios plugin version is nagios-plugins-1.4.16

i have installed my host os is windows 7
vm used is oracle virtualbox

i followed the installation from youtube video Nagios sous Ubuntu 12.04 ~ Mohamed AKRICH

i followed the entire installation but changed the versions as mentioned above everything got installed without any issues but when i type

"service nagios start"
and this is what i get

/etc/init.d/nagios: 20 .:Can't open /etc/rc.d/init.d/functions




so pls help me and i am a newbie to ubuntu
i dont know what to do how to replace and what to replace those url never gave a solution they simply ask the same
 
Old 09-17-2013, 06:47 AM   #8
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Rep: Reputation: 15
Hey Nivin..

/etc/rc.d/init.d/functions belongs to CentOS/RHEL/Fedora flavors NOT on ubuntu.

So remove that line.
 
Old 09-17-2013, 08:39 AM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by bkcreddy17 View Post
Hey Nivin..

/etc/rc.d/init.d/functions belongs to CentOS/RHEL/Fedora flavors NOT on ubuntu.

So remove that line.
Right...that's what the links in post #3 said.
 
Old 09-17-2013, 11:33 AM   #10
Nivin Abraham
LQ Newbie
 
Registered: Sep 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bkcreddy17 View Post
Hey Nivin..

/etc/rc.d/init.d/functions belongs to CentOS/RHEL/Fedora flavors NOT on ubuntu.

So remove that line.
how to remove that line , i dont get it could u be more precise pls
 
Old 09-17-2013, 11:37 AM   #11
Nivin Abraham
LQ Newbie
 
Registered: Sep 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Right...that's what the links in post #3 said.
see i dont understand by removing that line i just want to run nagios ,so can you be more precise and explain me what i should do pls.

Last edited by Nivin Abraham; 09-17-2013 at 11:40 AM.
 
Old 09-17-2013, 12:29 PM   #12
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
vi +20 /etc/init.d/nagios
Press I and then # <-- that's a capital i not an El or One
Press ESC twice
It should look like this now
Code:
# /etc/rc.d/init.d/functions
or
Code:
#/etc/rc.d/init.d/functions
either way, it's remarked out.
Press ZZ twice to exit vi
back at the terminal prompt
Code:
service nagios start
 
1 members found this post helpful.
Old 09-17-2013, 02:25 PM   #13
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by Nivin Abraham View Post
see i dont understand by removing that line i just want to run nagios ,so can you be more precise and explain me what i should do pls.
Spell your words out...and the three links initially provided have instructions on what to edit, and what to change. Can't be much more 'precise' than that. And AGAIN, you have not answered the questions asked of you, such as HOW you installed Nagios, etc.

You can install Nagios for Ubuntu, and not have to edit ANYTHING, if you followed the Ubuntu Nagios quickstart guide (again, it's in one of the links you were already given). The 'precise' link:
http://nagios.sourceforge.net/docs/3...rt-ubuntu.html
 
1 members found this post helpful.
Old 09-17-2013, 11:36 PM   #14
ahmadmusfikin
LQ Newbie
 
Registered: Jul 2013
Posts: 2

Rep: Reputation: Disabled
Smile why

I would like to ask how the first step to installing the Linux operating system and the two windows in one pc?
 
Old 09-18-2013, 08:58 AM   #15
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by ahmadmusfikin View Post
I would like to ask how the first step to installing the Linux operating system and the two windows in one pc?
Read the LQ Rules, please. Do NOT hijack someone elses thread with your own question...open your own thread if you have something to ask. And your question is vague...what version/distro of Linux? What do you mean by "two windows"? What kind of PC? What are your goals, what have you done/tried, and have you tried to look this up??

When you open your own thread, be sure to post all those things.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to install Icinga (Nagios Fork) in Ubuntu 12.10 server LXer Syndicated Linux News 1 04-18-2013 04:15 AM
Error: Make install-plugin step in Nrpe2.12 nagios in Ubuntu gurumoorthy444 Linux - Software 2 04-05-2012 08:11 AM
LXer: How to install Nagios in ubuntu 9.x and 10.04 LXer Syndicated Linux News 0 04-16-2010 02:40 AM
net-snmp-utils to install nagios in Ubuntu linuxcol Ubuntu 1 03-22-2010 03:16 AM
LXer: Install Nagios 3 on Ubuntu 8.10 LXer Syndicated Linux News 0 11-27-2008 07:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration