[Nagiosplug-checkins] Nagios-Plugin/t/npg03 README, NONE, 1.1 plugins.cfg, NONE, 1.1

Gavin Carr gonzai at users.sourceforge.net
Thu Feb 8 06:18:07 CET 2007


Update of /cvsroot/nagiosplug/Nagios-Plugin/t/npg03
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv13930/npg03

Added Files:
	README plugins.cfg 
Log Message:
Add initial --default-opts implementation to Nagios::Plugin::Getopt (II).

--- NEW FILE: README ---
Nagios-Plugin-Getopt-03.t automatically tests all cases defined in the 'input' directory
and expects the output to match the corresponding file in the 'expected' directory. To
define a new test case, just create a new file in the 'input' directory containing the
input command line, and a corresponding file in the 'expected' directory containing
what you think the expanded command line should be. Note that this expansion is normalised
as follows:

- command line arguments are reported in alphabetical order
- extraneous white space is removed

Also, if you use a completely new argument than those defined in Nagios-Plugin-Getopt-03.t
you will need to define it there as well.


--- NEW FILE: plugins.cfg ---
[check_mysql]
username=tonvoon
password=secret

[more_options]
username=altinity
warning=10
critical=15

[check_disk]
p=/tmp

[check_2_disks]
p=/tmp
p=/var

[funny_stuff]
username="Ton Voon"
p=
expect=" space in front"






More information about the Commits mailing list