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

Robert Dodier robert at infotility.com
Tue Mar 25 23:34:38 CET 2008


On Tue, Mar 25, 2008 at 4:18 PM, Marc Powell <marc at ena.com> wrote:

>  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?

nagios-plugins rpm installed /etc/nagios/command.cfg.
nagios rpm installed some other .cfg files in /etc/nagios.
There aren't any .cfg files outside of /etc/nagios
(except for an identical copy of command.cfg in
/usr/share/doc/nagios-plugins-1.4.11). I don't see any files
named *example* or *sample* or the like in either nagios rpm
or nagios-plugins rpm.

I see there is a directory nagios-3.0/sample-config in the tarball
but that directory doesn't appear in the nagios rpm.

>  > 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.

Well, better still, just erase any outdated files, and make sure the
up-to-date ones are installed.

FWIW

Robert Dodier

-------------------------------------------------------------------------
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