$USERn$ macros should be allowed in services.cfg
Lori Adams
ladams at cloudmark.com
Mon Aug 8 06:16:43 CEST 2005
In my situation, putting it in checkcommand creates 2 checkcommands
definitions and 2 service checkcommands. I was trying to create 2
service definitions and one checkcommand to simplify my configs.
I've tried several times putting it in services.cfg, so no they do not
work there. Yes, putting it in checkcommands is a workaround, but not
desired.
Thanks, I suppose.
-Lori
-----Original Message-----
From: Andreas Ericsson [mailto:ae at op5.se]
Sent: Saturday, August 06, 2005 7:02 AM
To: Lori Adams
Cc: nagios-devel at lists.sourceforge.net
Subject: Re: [Nagios-devel] $USERn$ macros should be allowed in
services.cfg
Lori Adams wrote:
> It would be nice if $USERn$ macros would be allowed in services.cfg.
>
I thought they were.
>
>
> Example:
> define service {
>
> check_command some_command!$USERn$
>
You can do this anyway, by putting the USER-macro in the checkcommand
definition instead.
> }
>
>
>
> I just had this come for the second time in my configuration.
>
>
>
> It's especially useful, because the $USER$ macros accept exclamation
> points, and don't cause issues with checkcommands.
>
>
>
> Thanks,
>
>
You're welcome, I suppose.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20050807/01309fcf/attachment.html>
More information about the Developers
mailing list