Sharing local/remote machine .cfg

Alain Williams addw at phcomp.co.uk
Thu Jun 21 16:50:06 CEST 2007


I am relatively new to Nagios, I am setting up a group of Linux machines that
all send reports to a central monitoring one with nsca.

I have a separate .cfg file for each machine, I would like to share this file
between remote and central machines - so that if I change anything I just copy it over.

One change that *is* needed is the value of active_checks_enabled - which is zero
on the central box and one on the remote.

I tried something like this in a 'define service':

	active_checks_enabled           $USER11$

and elsewhere had:

	$USER11$=1
or
	$USER11$=0

as appropriate for the machine.

This does not work. Why ? and is there a way of achieving what I want to do ?

TIA

-- 
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
#include <std_disclaimer.h>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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