|
Where you put them depends on your Nagios configuration - somewhere you will have a file which contains service templates, and somewhere a file containg the definitions of services to monitor. The top example is a template, and the bottom is an example of how to use the template. Of course you need to modify these to specify the correct hostname, contact group, notification and check periods, etc and also make sure you have check_dummy defined. THESE ARE ONLY EXAMPLES; you cannot just copy them into your configuration as they are without changing them to match your particular Nagios configuration.
If Nagios is not working, run a config check (nagios -v nagios.cfg) and see what it is complaining about - probably you have forgotten to configure the service correctly.
_________________ Steve Shipway UNIX Systems, ITSS, University of Auckland, NZ Woe unto them that rise up early in the morning... -- Isaiah 5:11
|