NRPE with command arguments

Enrico Zimol lomiz.mail at gmail.com
Wed May 19 16:44:08 CEST 2010


On 19 May 2010 11:13, Ludse Verhoeven <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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100519/925a7b0b/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