check_multisvc.pl

Stanley Hopcroft Stanley.Hopcroft at IPAustralia.Gov.AU
Fri Dec 6 09:54:19 CET 2002


Dear Sir,

Nagios 1.0 accepts quoted arguments to Perl plugins when it is built
with embedded Perl support.

(There was never any issue about quoted arguments without embedded
Perl, provided you get the quotes in a form the shell can understand).

This is one of the items dealt with in the transition from 1.0b6 to 1.0

tsitc> head -20  build/nagios-1.0/Changelog
###################
Nagios Change Log
###################


1.0 - 11/24/2002
----------------
* Minor bug fixes in CGIs
* Minor bug fixes in sample config files
* Minor doc updates
* Minor bug fixes to init script
* Spec file updates
* Bug fix for flex host downtime
* Embedded perl bug fixe for arguments with spaces
* Host escalation logic fix
* Bug fix for PostgreSQL timestamps


1.0b6 - 09/15/2002
------------------
tsitc> 

Here is the evidence,

Quoted argument for embedded Perl patch test - dev/debug
   OK 12-06-2002 19:43:48 4d 1h 19m 20s 1/3 $ARGV[1]: In the beginning
was the $ARGV[2]: word $ARGV[3]: and $ARGV[4]: the 'word' was with GOD
   
tsitc# /usr/local/nagios/bin/nagios -m

Nagios 1.0
Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org)
Last Modified: 11-24-2002
License: GPL

External Data I/O
-----------------
Object Data:      TEMPLATE
Status Data:      DEFAULT
Retention Data:   DEFAULT
Comment Data:     DEFAULT
Downtime Data:    DEFAULT
Performance Data: DEFAULT

Options
-------
* Embedded Perl compiler (With caching)


tsitc# 

tsitc# grep -i -4 'quoted ' /usr/local/nagios/etc/services.cfg
define service{
        use                             generic-service

        host_name                       test
        service_description             Quoted argument for embedded
Perl patch test - dev/debug
        contact_groups                  test-admins
        check_command                   check_quoted_args!'In the
beginning was the'!word!and!"the 'word' was with GOD"
        }

tsitc# 

-- 
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------

'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'

from Meditation 17, J Donne.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list