Nagios 3.X quoted check commands

Marc Powell marc at ena.com
Sun May 25 15:37:45 CEST 2008



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Hugo van der Kooij
> Sent: Saturday, May 24, 2008 9:06 AM
> To: Nagios Users Mailinglist
> Subject: Re: [Nagios-users] Nagios 3.X quoted check commands
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Aaron McKinnon wrote:
> | I'm working on migrating a 1.4 server that uses some quoted check
> | commands. For example:
> |
> | check_command
"/usr/lib/nagios/plugins/check_file_age
> | -w 86400 -c 172800 -W 310000 -C 1 -f
/mnt/backup/aus-sql0/mysql/mysql.sql"
> |
> | ...and it appears that 3.X doesn't support that:

It was removed early in the 2.x release --

http://nagios.cvs.sourceforge.net/nagios/nagios/base/config.c?view=log&p
athrev=nagios-2-0

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Wed Dec 4 02:33:05 2002 UTC (5 years, 5 months ago) by egalstad
Branch: MAIN
Changes since 1.7: +8 -5 lines
Diff to previous 1.7

Host check commands can now have arguments, removed vanilla command
support

> Why would you use these quotes here to begin with. The while line
after
> the check_command keyword is considered to be the command to run the
check.

It didn't always used to be so. Using raw commands was supported and
useful. What other reason would someone need?

--
Marc


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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