Code: Select all
cd /usr/local/nagios/etc/(this part does not need to be modified.)
Code: Select all
# 'check_smb_share_AA' command definition
define command{
command_name check_smb_share_AA
command_line $USER1$/check_smb_share_AA -H $HOSTADDRESS$ -U $ARG1$ -S $ARG2$
}
I do not have an objects.cfg file. There is an objects folder, which contains all the config files, but objects.cfg isn't one of them. Possibly the commands.cfg file? But then that changes the rest of the steps in your instructions, right?
Here is the contents of the objects directory:
[root@nagioscore objects]# ls -l
total 132
-rw-r--r-- 1 root root 8482 Dec 7 15:05 commands.cfg
-rw-rw-r--. 1 nagios nagios 2765 Dec 1 15:08 contacts.cfg
-rw-rw-r--. 1 nagios nagios 5375 Aug 27 14:02 localhost.cfg
-rw-rw-r--. 1 nagios nagios 13805 Dec 7 15:04 printer.cfg
-rw-r--r-- 1 root root 3027 Aug 31 11:17 snmpd.conf
-rw-rw-r--. 1 nagios nagios 4115 Nov 18 16:30 switch.cfg
-rw-rw-r--. 1 nagios nagios 14729 Dec 7 14:28 templates.cfg
-rw-rw-r--. 1 nagios nagios 3180 Aug 27 14:02 timeperiods.cfg
-rw-rw-r--. 1 nagios nagios 13462 Dec 8 11:04 windows.cfg