Nagios fails pre-launch verification step; "Unexpected token or statement" in command.cfg

Marc Powell marc at ena.com
Tue Mar 25 23:18:38 CET 2008



> -----Original Message-----
> From: Robert Dodier [mailto:robert at infotility.com]
> Sent: Tuesday, March 25, 2008 4:40 PM
> To: Marc Powell
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Nagios fails pre-launch verification step;
> "Unexpected token or statement" in command.cfg
> 
> On Tue, Mar 25, 2008 at 3:12 PM, Marc Powell <marc at ena.com> wrote:
> 
> > > It seems like the packaging is a little out of date; I wouldn't
expect
> >  > the latest & greatest tarball to contain configuration files with
the
> >  > wrong format. Oh well.
> >
> >  I checked before responding. The example config files are in the
correct
> >  format. I'm not sure where you got these but I assure you it wasn't
from
> >  the distribution nagios tarball.
> 
> I assure that it was indeed.
> 
> I went to http://www.nagios.org/download/ and clicked the button
> to download "Nagios 3.0 (stable)" which redirected me to SF from
> which I obtained nagios-3.0.tar.gz. Then I went back to

Not in nagios-3.0.tar.gz (small vindication there)--

~/Desktop/nagios-3.0$ grep -r notify-by-email *
html/docs/objectdefinitions.html:       service_notification_commands
notify-by-email
html/docs/objectdefinitions.html:       host_notification_commands
host-notify-by-email

> http://www.nagios.org/download for "Nagios Plugins (stable releases)"
> which sent me to SF, from which I downloaded the most recent
> release, nagios-plugins-1.4.11.tar.gz dated 2007-12-13.

Does appear here.

> From those I built rpms via rpmbuild -tb <tarball>.
> Then I installed those rpms. The obsolete command.cfg was in
> one of those rpms.

Curious as to why this hasn't come up before, I built the RPM from the
tarball and see that this command.cfg isn't installed in the nagios
configuration file directory but rather in
/usr/share/doc/nagios-plugins-1.4.11/command.cfg. I suspect that is
because it's been deprecated in favor of the sample commands file
distributed with nagios since pre-2.0. I've reviewed the Fedora
Quickstart and it doesn't mention this file at all so it should have
remained there. Was it installed to ~nagios/etc/ automatically for you?

> Maybe building rpms is a stupid idea. If so, would someone please
> remove the rpm spec files from the tarballs.

That's silly of course but I think the plugin maintainers could add a
header to that file that it's deprecated or only useful as a reference
for nrpe.cfg.

> > This format hasn't been used or  distributed for probably 5 years or
more.
> 
> Maybe the files were in a state of suspended animation in the
> Bermuda Triangle or Knotts Berry Farm or something.

Docco Triangle looks like.

--
Marc

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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