Database Reference
In-Depth Information
#custom file *ADD YOUR FILES HERE*
cfg_file=/usr/local/nagios/etc/objects/
cassandrahosts.cfg
Test the configuration and you are done.
$ sudo /usr/local/nagios/bin/nagios -v /usr/local/
nagios/etc/nagios.cfg
Nagios Core 3.5.0
[-- snip --]
Reading configuration data...
Read main config file okay...
Processing object config file '/usr/local/nagios/etc/
objects/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/
objects/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/
objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/
objects/templates.cfg'...
Processing object config file '/usr/local/nagios/etc/
objects/cassandrahosts.cfg'...
Processing object config file '/usr/local/nagios/etc/
objects/localhost.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
[-- snip --]
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected
during the pre-flight check
Restart Nagios by executing sudo service nagios restart .
Monitoring and notification using Nagios
Nagios has built-in support to send mail whenever an interesting event (such as a warning,
an error, or a service coming back to the ok state) occurs. By default, it uses the mail
command, so if your mail is configured correctly, you should see mails when you execute
the following command:
Search WWH ::




Custom Search