NRPE: Conditional parsing of nrpe.cfg supporte d?

Andreas Ericsson ae at op5.se
Thu Aug 4 17:03:45 CEST 2005


Ralph.Grothe at itdz-berlin.de wrote:
>>Ralph.Grothe at itdz-berlin.de wrote:
>>
>>>Hi,
>>> 
>>>I wonder if something like this is possible in nrpe.cfg (with
>>>liberal artistic macrolike syntax here)
>>>
>>>
>>>
>>>#if defined dont_blame_nrpe
>>>command[check_tns]=/export/oracle/V9.2.0
>>>PATH=/usr/bin:/export/oracle/V9.2.0/bin
>>>/usr/local/nagios/libexec/check_oracle --tns $ARG1$
>>>#else
>>>command[check_tns]=/export/oracle/V9.2.0
>>>PATH=/usr/bin:/export/oracle/V9.2.0/bin
>>>/usr/local/nagios/libexec/check_oracle --tns MY_SID
>>>#endif
>>>
>>
>>
>>It isn't. It would have been documented if it were.
> 
> 
> That's what I thought,
> but I have become suspisious of what is documented for Nagios
> (and especially Plug-ins),
> and what is left to the user's imagination.
> 
> 
>>For future reference, you might want to just try things like
> 
> this and 
> 
>>see if they work. You would have saved about an hour that way.
> 
> 
> how do you mean?
> 
> I'm anxious running undocumented features that I only remotely
> assume to exist,
> had I written the thing.
> The thing could run havock purging my root filesystem or
> something else.


Do you really think it would do that?
If you're actually serious you can always create a pseudo-user without 
any write-access what so ever and then try running it as that pseudo-user.

> I guess recovery would cost me more than an hour than asking
> silly questions.
> 

The problem is that you're drawing your timegains from other people, 
making them lose time. When you do that without paying them and without 
even trying to do any of the work yourself, it's very rude indeed.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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