Maybe something like that will help
http://www.nagiosexchange.org/Patches_2_0.67.0.html?tx_netnagext_pi1[p_view]=427
Wednesday, March 29, 2006, 8:10:53 PM, you wrote:
On Wed, 2006-03-29 at 12:06 -0600, jeff vier wrote:
snip
define host {
use generic-host
host_name
I am coming into this a bit late, but maybe a method like this would
work. For each of my LDAP hosts I have a check_ldaps service defined
as:
$USER1$/check_ldaps -p 636 -H `$USER1$/ip2ldapCN $HOSTADDRESS$` $ARG1$
where ip2ldapCN is:
for i in auth1.example.com auth2.example.com
You can specify custom macros in resources.cfg:
$USER2$=192.168.0.30
However, this is not what you want and is no different than specifying
it in the command itself with $ARG#$ rather than using the
$hostaddress$. Pass the dnscacheaddress onto the command via the
argument.
check_dnscache -H
Ben O'Hara wrote:
Create check called check_dns_cache in checkcommands.cfg calling
check_dns or whatever you are using and use $ARG1$ as a macro thats
passed to it.
In services.cfg you define the check as
check_commandcheck_dns_cache!1.2.3.4
I see that possibility, but it seems
Terry wrote:
You can specify custom macros in resources.cfg:
$USER2$=192.168.0.30
However, this is not what you want and is no different than specifying
it in the command itself with $ARG#$ rather than using the
Right. This is useful for a global macro, but I'm looking for something
You could maybe write an intelligent plugin to query the host
information from another source based on the service name or something
but nagios needs to know the IP address somehow. Where would you want
to put this information so nagios can perform the service
appropriately?
On 3/29/06, David
jeff vier wrote:
On Wed, 2006-03-29 at 12:55 -0500, David Mansfield wrote:
Something like:
define host {
use generic-host
host_name myhost.mydomain.com
alias myhost
address 1.2.3.4
custom_macro FOOPROPERTY=AA:BB:CC:DD
custom_macro
-Original Message-
From: [EMAIL PROTECTED] [mailto:nagios-users-
[EMAIL PROTECTED] On Behalf Of David Mansfield
Sent: Wednesday, March 29, 2006 11:55 AM
To: Terry
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] per host custom macros
Terry wrote:
You
Marc Powell wrote:
-Original Message-
From: [EMAIL PROTECTED] [mailto:nagios-users-
[EMAIL PROTECTED] On Behalf Of David Mansfield
Sent: Wednesday, March 29, 2006 11:55 AM
To: Terry
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] per host custom macros
Terry
-Original Message-
From: David Mansfield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 29, 2006 3:09 PM
To: Marc Powell
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] per host custom macros
Marc Powell wrote:
[chop]
User-Defined Object Directives
-Original Message-
From: [EMAIL PROTECTED] [mailto:nagios-users-
[EMAIL PROTECTED] On Behalf Of David Mansfield
Sent: Wednesday, March 29, 2006 3:15 PM
To: Nagios Users Mailinglist
Subject: Re: [Nagios-users] per host custom macros
If this hostgroup is important than how
11 matches
Mail list logo