Page 2 of 2

Re: Nagios simulation

Posted: Mon Apr 04, 2011 5:58 am
by elvinchia
mguthrie wrote:There isn't anything that I know of off hand, but if you wanted to create a dummy setup, the check_dummy command basically lets you create a host or service with a fake check that will return the status code, along with a text string you define.

Example:

Hosts
./check_dummy 0 'Everything is OK'
./check_dummy 1 'Everything is BAD!'

Services
./check_dummy 0 'Everything is OK'
./check_dummy 1 'Everything is WARNING!'
./check_dummy 2 'Everything is CRITICAL'

In which file to define the dummy host and dummy services?