[Nagiosplug-help] command.cfg syntax

Subhendu Ghosh sghosh at sghosh.org
Sun Jul 7 06:26:11 CEST 2002


On Sun, 7 Jul 2002, Charles Young wrote:

> Hi, 
> 
> After I installed the plugin, I found a file called "command.cfg" was
> created.  The Nagios core program already has a "checkcommands.cfg".  
> In the docs, it kept saying make sure to sure the config file that
> provided by the plugin. So, I thought I should replace
> "checkcommands.cfg" with "command.cfg" and modify nagios.cfg.  However,
> running the nagios with -v shows it does not like the syntax in
> "command.cfg".  The "checkcommands.cfg" file seems to work fine.
> 
> Am I missing something?
> 
> Nagios is running on Linux 2.4.7.10
> Nagios version 1.0b3
> plugin version 1.3-beta1
> 
> Thanks.
> 
> Charles,
> 

Nagios support 2 types of config files - old netsaint style or the new 
template style.

The command.cfg in the plugins is the old style as the plugins don't know 
what your nagios comile ontions were...

You can convert it to the template style using convertcfg in the 
nagios/contrib directory.


-- 

-sg





More information about the Help mailing list