Re: [Nagios-users] ORACLE instance and CHECK_NRPE: No output returned from daemon

2006-04-04 Thread David Mansfield
Jason Martin wrote: On Tue, Apr 04, 2006 at 05:07:08PM +0100, Sandeep Narasimha Murthy wrote: My command is invoking a script which verifies the state of an Oracle instance. My problem is when I invoke this command, I get a CHECK_NRPE: No output returned from daemon Error. The problem has to

Re: [Nagios-users] per host custom macros

2006-03-29 Thread David Mansfield
[apologies if anyone receieves dups of this. i sent it from the wrong email address and I understand list management is fairly strict] Hugo van der Kooij wrote: On Wed, 29 Mar 2006, Terry wrote: You could maybe write an "intelligent" plugin to query the host information from another source ba

Re: [Nagios-users] per host custom macros

2006-03-29 Thread David Mansfield
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

Re: [Nagios-users] per host custom macros

2006-03-29 Thread David Mansfield
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 BARVALUE

Re: [Nagios-users] per host custom macros

2006-03-29 Thread David Mansfield
hostgroup { name all_foo alias all_foo } define service { hostgroup_name all_foo check_command check_foo } And finally, the payoff: define command { command_name check_foo command_line $USER1$/check_foo -f $FOOPROPERTY$ } On 3/29/06, David Mansfie

Re: [Nagios-users] per host custom macros

2006-03-29 Thread David Mansfield
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 ho

Re: [Nagios-users] per host custom macros

2006-03-29 Thread David Mansfield
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 reall

[Nagios-users] per host custom macros

2006-03-29 Thread David Mansfield
Hi All, I'm somewhat of a new to nagios (coming from a mon environment) and I'm using nagios 2.0 on Centos 4, using RPMs from DAG. I was wondering if it is possible to define 'custom macros' that can be defined per host. For example, we have the $HOSTADDRESS$ macro which can be referenced i