Checkcommands.cfg vs command.cfg
Julian Hein
jhein at netways.de
Tue Dec 14 08:12:05 CET 2004
Hi Minkov,
> Which one of these files should I use to add new check
> commands? I read something about "the new way of doing it is
> using checkcommands.cfg and the old way is using
> command.cfg"... Is this correct?
You can handle that as you like. Just make shure, that both or all
of your commands are included in nagios.cfg.
> What is the best practice? Check_* commands in
> checkcommands.cfg and notify-by-* commands in command.cfg?
I would recommend to split them up even further and use seperated
file for all kinds of need. We have here:
- check_nsclient.cfg
- check_ssh.cfg
- check_network.cfg
- check_http.cfg
- notifications.cfg
and so on and put them all in a subdirectory called "commands".
> And if there are 2 different check commands with the same name,
> one in checkcommands.cfg, the other one in command.cfg, which
> one is going to be used by nagios if referenced in services.cfg?
None, because you will get an error message, when you restart Nagios
or test the configs.
Julian
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
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