commands.cfg
Posted: Wed Jul 13, 2011 10:53 am
Hello,
I am trying to add commands to the commands.cfg, but without realizing it; probably because I did not read the comments at the top of the file, this file gets overwritten everytime the "Apply Configuration" button is clicked in the Nagios Web Interface. Which is not an issue as long as I use the Core Configuration Manager to add commands in the web interface provided. However, I would prefer to edit the configuration files by hand if at all possible.
Could someone please tell which file or files I need to update in order for commands to be properly add to the commands.cfg file? Also, on my RHEL virutal machine that Nagios XI is installed on the path to the commands.cfg file is '../usr/local/nagios/etc/commands.cfg'. Is this correct location I should be looking? Most of the online sources say the file should exist under '../usr/local/nagios/etc/objects/commands.cfg', but apparently I do not have an 'objects' directory. Any help with this would be appreciated. Thanks.
I am trying to add commands to the commands.cfg, but without realizing it; probably because I did not read the comments at the top of the file, this file gets overwritten everytime the "Apply Configuration" button is clicked in the Nagios Web Interface. Which is not an issue as long as I use the Core Configuration Manager to add commands in the web interface provided. However, I would prefer to edit the configuration files by hand if at all possible.
Could someone please tell which file or files I need to update in order for commands to be properly add to the commands.cfg file? Also, on my RHEL virutal machine that Nagios XI is installed on the path to the commands.cfg file is '../usr/local/nagios/etc/commands.cfg'. Is this correct location I should be looking? Most of the online sources say the file should exist under '../usr/local/nagios/etc/objects/commands.cfg', but apparently I do not have an 'objects' directory. Any help with this would be appreciated. Thanks.