Nagios Macro Tokens accessible in NRPE check scripts?

Ralph.Grothe at itdz-berlin.de Ralph.Grothe at itdz-berlin.de
Fri Aug 12 15:36:37 CEST 2005


Hello,

it says somewhere in the docs that as of Nagios V2 check scripts
(plug-ins) can access the Nagios macro tokens
(such as $HOSTNAME$) through their environment as env vars.

You may be wondering why I would want to get something as
redundant as the hostname 
(where the script on the remote nrpe host could simply run a
"uname -n" or similar, couldn't it)?

Well, it's a bit more convoluted because what is supposed to
stand in $HOSTNAME$
is an alias for a relocatable IP address that each packet (or
service group,
depending on your cluster software's terminology) of a cluster is
provided with
(think of separate webservers or databases with their own
hostname and IP).

On the other hand I want to avoid opening up for exploits by
allowing nrpe arguments
(viz. dont_blame_nrpe=1)

I could circumvent the necessity of passed in arguments, by
keeping some flexibility,
if I had access to the macros like $HOSTNAME$.

So is that given?

Regards

Ralph


-------------------------------------------------------
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