[Pkg-nagios-devel] regular expressions in nagios?

Steve Wray stevew@catalyst.net.nz
Fri, 25 Feb 2005 11:05:21 +1300


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig1410CAB3E0B25E40CDDEBA2C
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

from the nagios docco at;

http://nagios.sourceforge.net/docs/2_0/configmain.html#use_regexp_matching

I should be able to put;

use_regexp_matching=1

in my nagios config which, if I read this right, would allow this sort 
of structure;

define service{
         hostgroup_name                  .*-ssh-servers
         contact_groups                  linux-admins
         service_description             Service: SSH Test
         check_command                   check_ssh

         use                             service-catalyst
         }

where a bunch of host groups foo-ssh-servers, bar-ssh-servers etc, had 
been defined.

However I get a syntax error in the config file if I try to use that 
directive.

Was support for this not compiled into the debian package?

Thanks!


--------------enig1410CAB3E0B25E40CDDEBA2C
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFCHk+hmVx2hyhuTucRAmw7AKCJjH2jKgn0LcQT07JY1U2i9nsWRgCg0Ced
3rb3qQMFd551CQfdQv55ZMw=
=+peg
-----END PGP SIGNATURE-----

--------------enig1410CAB3E0B25E40CDDEBA2C--