Nagios compatibility

Kevin Keane subscription at kkeane.com
Tue Jan 20 04:08:49 CET 2009


You are looking at two completely separate issues. chkconfig doesn't 
have much to do with nagios; it is a Redhat specific file.

chkconfig doesn't care about nagios.cfg. It will install any 
service/daemon. What it is looking for is a shell script in, I believe, 
/etc/init.d. This shell script must accept the arguments "start" and 
"stop" (and should also accept a few other ones). So what the error 
message is telling you is "there is no shell script /etc/init.d/nagios".

This shell script - you probably need to write it yourself - is 
responsible for actually starting nagios. It is also a Redhat-specific 
one. On SUSE, the shell script will look similar but be subtly different.

Nagios won't work until you get this running, so it is not really 
surprising that you can't log in right now.

My recommendation: throw out the nagios you did (just keep the files in 
the /usr/local/nagios/etc directory), and instead find nagios as an 
already-compiled RPM. There really is very little reason to ever run 
your own compiled software except to learn. On a production server, it 
is outright dangerous to do so because you won't get any software updates.

Khairuzzamri wrote:
> Hi everyone,
> I'm a newbie on linux and nagios. Need your help on this.
> I'm using Redhat 9 and have installed Nagios 3.0.3., step by step 
> according to Nagios 3.0 Jumpstart guide for linux 
> (www.thegeekstuff.com <http://www.thegeekstuff.com>).
> Installation run smoothly, but I cannot add the nagios to the startup 
> routine:
> [root at localhost]# chkconfig –add nagios
> [root at localhost]# chkconfig nagios on
> Both give 'error reading information on service nagios: No such file 
> or directory'.
> But when I verify the nagios configuration files:
> [root at localhost]# /usr/local/nagios/bin/nagios -v 
> /usr/local/nagios/etc/nagios.cfg
> It stated 'No warning & no errors'.
> 1 more thing if I'm go to the nagios page, even I'm providing the 
> correct username and password, it wont let me in.
> Am I missing something here, or is Nagios 3.0.3 is not compatible with 
> Redhat 9?
>
> Thanks & regards,
> Zamri,
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> ------------------------------------------------------------------------
>
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null


-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof.


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list