Nagios 2.5
Andy Shellam
andy.shellam-lists at mailnetwork.co.uk
Tue Sep 5 13:58:25 CEST 2006
Hi Kaushal,
As John said, you've got 3 config files which all contain (some of the
same) commands. When I started out with Nagios I found it easier to
start writing your own config files from scratch.
In /etc/nagios, I created another directory called "nagios_cfg." In
nagios_cfg, I created files named "services.cfg", "hosts.cfg",
"commands.cfg", "contacts.cfg", "time.cfg" and defined all my own object
definitions in the relevant files.
Then, my nagios.cfg file (/etc/nagios/nagios.cfg) simply lists
# OBJECT CONFIGURATION FILES
cfg_dir=/etc/nagios/nagios_cfg
with *all* cfg_file directives commented out.
This way you avoid duplicates from the sample configuration data, and
you know the layouts of the config files. Plus if you later add a
configuration file (extension .cfg) in the nagios_cfg directory, you
don't need to do anything but HUP the Nagios daemon to use it.
You generally need to define:
- hosts (host groups optional but useful)
- services (service groups optional but useful)
- commands
- contacts
- time periods (at minimum create a 24*7 time-period)
It sounds difficult, but it isn't really - just look through the
documentation at creating different objects, and you're done :)
Andy.
>>
> Hi Andy
>
> Below is the output of command which you asked for
>
> [root at e nagios]# grep cfg_file nagios.cfg
> # different config files by using multiple cfg_file statements here.
> cfg_file=/etc/nagios/checkcommands.cfg
> cfg_file=/etc/nagios/misccommands.cfg
> cfg_file=/etc/nagios/minimal.cfg
>
> Kaushal
>
> !DSPAM:37,44fd6139143294224513357!
>
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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