Nagios CONFIG ERROR!
Jim Perrin
jperrin at gmail.com
Wed Jul 12 13:35:25 CEST 2006
> > /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
He's running the rpm installed version of nagios, so his paths are
different. There's nothing in /usr/local for him.
> is it #nagios -v /etc/nagios/nagios.cfg,
> the above command says
>
> [root at bdcworld nagios]# nagios -v /etc/nagios/nagios.cfg
>
> Error: Command 'check-host-alive' has already been defined
> Error: Could not register command (config file
> '/etc/nagios/minimal.cfg', starting on line 76)
The default configs are samples. It doesn't work or monitor anything
out of the box. Your minimal.cfg and bigger.cfg are most likely
conflicting with each other.
Couple things you can do here.
Step 1. Read the documentation. Seriously. We see this question on the
list at least twice a week. Nagios requires a slightly anal method of
thinking. EVERY little thing matters in the communication from nagios
machine to the watched system.
Step 2. Read the appropriate distro related documentation. For rpms
coming from rpmforge and dag, there are a couple decent documents to
turn to.
http://www.cognitive-dissonance.org/wiki/Configuring+Nagios
http://wiki.centos.org/Nagios_on_CentOS_4.x
Those should walk you through pretty much whatever you need to know to
get it working.
--
During times of universal deceit, telling the truth becomes a revolutionary act.
George Orwell
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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