NRPE Problem
Lee Azzarello
lee at dropio.com
Thu Feb 12 17:51:23 CET 2009
You can also try typing your arguments at the far end in the nrpe
command file. I'm not the biggest fan of passing arguments via nrpe.
I've found it simpler to deploy the same nrpe command file to a
cluster and have nagios just execute the check_nrpe_1arg command.
-lee
On Thu, Feb 12, 2009 at 3:39 AM, LEVEAU Stanislas
<stanislas.leveau at ac-caen.fr> wrote:
> hi
>
> in your define command, i think it's
>
> define command{
> command_name check_nrpe_manual_disk
> command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c
> check_manual_disk -a $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$
> }
>
> and not -a $ARG1$ $ARG2$ $ARG3$
>
> maybe
>
> regards
> Stan
>
> Thomas Guyot-Sionnest a écrit :
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 11/02/09 02:43 PM, Vasiliy Boulytchev wrote:
>
>
> Gents,
>
> I am trying to have Nagios specify which partition to check via
> nrpe... and am getting the following error:
>
> DISK CRITICAL - 10 is not accessible: No such file or directory
>
> Here is my configuration:
>
>
> ###############################
>
> define command{
> command_name check_nrpe_manual_disk
> command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c
> check_manual_disk -a $ARG1$ $ARG2$ $ARG3$
> }
>
>
>
> command[check_manual_disk]=/usr/local/nagios-plugins/libexec/check_disk
> -w $ARG1$ -c $ARG2$ -p $ARG3$
>
>
>
>
> define service{
> use local-service
> host_name localhost
> service_description Manual Disk /dev/sda1
> check_command check_nrpe_manual_disk!20!10!/
> }
>
>
> It looks like an extra argument is passed somehow, so check_disk ends up
> checking the the path "10" (your warning threshold)", although your
> config looks ok. Are you sure NRPE and Nagios have been started with the
> most recent config, and there's not more than one instance of Nagios and
> NRPE running?
>
> Have you tried running the check trough the command link (check_nrpe)?
>
> - --
> Thomas
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFJk7aK6dZ+Kt5BchYRArhiAJ0dYvtmC13zVi0WGHFaWXeB/snukACgr8By
> JhACq1XdPD5D2Ay+7IJdzgI=
> =Yglg
> -----END PGP SIGNATURE-----
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> 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
>
>
>
> --
> LEVEAU Stanislas
> Rectorat de Caen
> SIAC
> 168, rue Caponière
> B.P. 6184
> 14061 CAEN Cedex
>
>
> Service Informatique de l'académie de Caen
> Département Systèmes & Réseaux
>
>
> Tel : 02.31.30.17.86
>
>
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> 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
>
------------------------------------------------------------------------------
_______________________________________________
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