LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-15-2013, 12:29 AM   #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, 09:23 AM   #2
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,195
Blog Entries: 10

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

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
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, 11: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, 08:57 AM   #5
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,195
Blog Entries: 10

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

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
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, 04: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, 07: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, 09:39 AM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,961

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
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, 12:33 PM   #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, 12:37 PM   #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 12:40 PM.
 
Old 09-17-2013, 01:29 PM   #12
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,195
Blog Entries: 10

Rep: Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986
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, 03:25 PM   #13
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,961

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
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-18-2013, 12:36 AM   #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, 09:58 AM   #15
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,961

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:15 AM
Error: Make install-plugin step in Nrpe2.12 nagios in Ubuntu gurumoorthy444 Linux - Software 2 04-05-2012 09:11 AM
LXer: How to install Nagios in ubuntu 9.x and 10.04 LXer Syndicated Linux News 0 04-16-2010 03:40 AM
net-snmp-utils to install nagios in Ubuntu linuxcol Ubuntu 1 03-22-2010 04:16 AM
LXer: Install Nagios 3 on Ubuntu 8.10 LXer Syndicated Linux News 0 11-27-2008 08:30 AM


All times are GMT -5. The time now is 02:33 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration