NRPE with command arguments
shadih rahman
shadhin71 at gmail.com
Wed May 19 21:12:27 CEST 2010
try nrpe call "-n" option
On Wed, May 19, 2010 at 11:06 AM, Ludse Verhoeven <ludse.verhoeven at vopak.com
> wrote:
>
> I think that's fine. It all depends on what you want to pass to the command
> itself (in this case the /usr/locall.nagios/libexec/check_disk-plugin). If
> f.i. -w "$ARG1$" can use space-seperated values (which it can't, but just
> for arguments sake), then you have to specify (in nrpe.cfg) the (single- or)
> double-quotes.
>
> Personally I tend not to use quoting in nrpe.cfg since in most cases it is
> not necessary, but there might be reasons to explicitly enclose such
> arguments in quotes.....
>
> Met vriendelijke groet/with kind regards,
> Ludse Verhoeven
>
> AIX System Engineer
> T: +31 10 400 2440
> F: +31 10 400 2891
> E: ludse.verhoeven at vopak.com
>
>
> Visit / Postal Address:
>
> http://www.vopak.com
>
>
>
>
>
> *Enrico Zimol <lomiz.mail at gmail.com>*
>
> 19/05/2010 16:46
> Please respond to
> Nagios Users List <nagios-users at lists.sourceforge.net>
>
> To
> Nagios Users List <nagios-users at lists.sourceforge.net>
> cc
> Subject
> Re: [Nagios-users] NRPE with command arguments
>
>
>
>
> On 19 May 2010 11:13, Ludse Verhoeven <*ludse.verhoeven at vopak.com*<ludse.verhoeven at vopak.com>>
> wrote:
> Not sure if this works like it is supposed to (haven't tested it myself),
> but qua syntax this seems more correct.
>
> That worked fine :)
> Other question, where exactly I've to insert quotes on nrpe.cfg commands to
> prevent code injection?
> I think like this:
> [nrpe.cfg]
> [...]
> command[check_disk]=/usr/local/nagios/libexec/check_disk -w *"*$ARG1$*"*-c
> *"*$ARG2$*"*
> [...]
>
> Is it right?
>
> Thank's!
>
> --
> Enrico "lomiz" Zimol
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> 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<https://lists.sourceforge.net/lists/listinfo/nagios-users>
>
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> 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
>
--
Cordially,
Shadhin Rahman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100519/0257fbd5/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
-------------- next part --------------
_______________________________________________
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