[users] problems in nagios-plugins package
Christof Damian
christof at damian.net
Tue Jan 29 18:14:04 CET 2008
IRC you can also use a wildcard like "/usr/lib*/nagios/plugins/",
that will be expanded by the shell on the remote system. I use it like
this:
define command {
command_name check_remote_load
command_line $USER1$/check_by_ssh -t 30 -i
/home/nagios/nagios-ssh-key -H $HOSTADDRESS$ -l nagios -C
"/usr/lib*/na
gios/plugins/check_load -w $ARG1$ -c $ARG2$"
}
On Jan 29, 2008 12:08 AM, Hugo van der Kooij <hvdkooij at vanderkooij.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Dag Wieers wrote:
> | On Fri, 20 Jul 2007, Jim Nelson wrote:
> |
> |> I've had a couple of issues dealing with a new nagios implementation
> using the
> |> rpmforge packages.
> |>
> |> 1. When using check_by_ssh, there are real problems defining commands
> that
> |> work on both 32- and 64-bit systems. The problem lies in that the nagios
> |> plugins are installed in /usr/lib on a 32-bit system, and in
> /usr/lib64 on a
> |> 64-bit system.
> |>
> |> My fix for it is to symlink /usr/lib64/nagios into /usr/lib, and
> write the
> |> command definitions based off of the /usr/lib/nagios path.
> |
> | Hi Jim,
> |
> | I am not sure how nagios wants me to fix this. The directory contains
> | binary stuff so it is normal that it goes into /usr/lib64 on 64-bit
> | systems.
> |
> | Your fix is a valid one, but not something I would do in the package. You
> | could also install the 32bit nagios package on 64bit. Although I am not
> | sure if everything exist in 32bit (and if that is a good idea altogether).
> |
> | Maybe we have to bring this up on the Nagios forums ?
>
> Isn't this exactly why there is a variable dedicated to the path of the
> plugins?
>
> # Sets $USER1$ to be the path to the plugins
> $USER1$=/usr/lib/nagios/plugins
>
> Hugo.
>
>
> - --
> hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/
> PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc
>
> A: Yes.
> >Q: Are you sure?
> >>A: Because it reverses the logical flow of conversation.
> >>>Q: Why is top posting frowned upon?
>
> Bored? Click on http://spamornot.org/ and rate those images.
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (GNU/Linux)
>
> iD8DBQFHnmBvBvzDRVjxmYERAlTBAJ9GBamDKq6hkCa1W1hRRcskDcym4wCfSYdB
> 5sZxP4GrEmOMykr10HfEQvI=
> =XtC4
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> users mailing list
> users at lists.rpmforge.net
> http://lists.rpmforge.net/mailman/listinfo/users
>
--
Christof Damian
More information about the users
mailing list