Page 1 of 1
Nagios Core Configuration Commands
Posted: Thu Feb 18, 2021 2:53 pm
by dkstuart23
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
Re: Nagios Core Configuration Commands
Posted: Tue Mar 02, 2021 1:13 pm
by dkstuart23
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.