Database Reference
In-Depth Information
[-- snip --]
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
# Start Nagios as a service
$ sudo service nagios start
Now you are ready to see the Nagios web console. Open ht-
tp://NAGIOS_HOST_ADDRESS/nagios URL in your browser. You should be able
to see the Nagios home page with a couple of default checks on the Nagios host.
Nagios plugins
Nagios's power comes from the plethora of plugin libraries available for it. There are suf-
ficient default plugins provided as a part of the base package to perform decent resource
monitoring. For advanced or non-standard monitoring, you will have to either download
the plugin from somewhere, such as the Nagios plugin directory or GitHub, or you will
have to write a plugin of your own. Writing a custom plugin is very simple. There are
only two requirements: the plugin should be executable via the command prompt, and the
plugin should return with the following exit values:
0 : This implies the ok state
1 : This implies the warning state
2 : This implies the critical state
3 : This implies the unknown state
This means you are free to choose your programming language and tooling. As long as
you follow these two specifications, your plugin can be used in Nagios.
Note
For the Nagios plugin directory, visit http://exchange.nagios.org/directory/Plugins .
Search WWH ::




Custom Search