In Nagios Core -> System -> Configuration -> Commands... I see a listing of commands with options/parameters. I cannot find a method to add/change this list. Where does it come from ? How can I go about adding a command? or changing a command?
TIA
Nagios Core Configuration Commands
-
dkstuart23
- Posts: 8
- Joined: Thu Feb 18, 2021 2:42 pm
Re: Nagios Core Configuration Commands
Ok, for all you out there keeping score, I found the answer myself. Under the directory structure as follows etc/objects/command/check there are a set of cfg files that contain the commands. On our system all of them begin with command-check- and have an extension of cfg. I would bet that the only part that is required is that they have an extension of cfg. For example, there is a file called command-check-nrpe.cfg where you will find check_nrpe, check_nrpe_long, etc. I would also expect that you can create a new file with any command you want to define as long as you put in the correct format. So, I was able to add a command with the options/parameters.