remove this from
/usr/local/nagios/etc/objects/localhost.cfg
Code: Select all
# Define an optional hostgroup for Linux machines
define hostgroup {
hostgroup_name linux-servers ; The name of the hostgroup
alias Linux Servers ; Long name of the group
members localhost ; Comma separated list of hosts that belong to this group
}
also, these commands are duplicated in commands.cfg, so
Code: Select all
rm -f /usr/local/nagios/etc/objects/commands/command_notify.cfg
In nagios.cfg comment out these lines
Code: Select all
cfg_file=/usr/local/nagios/etc/objects/templates/generic-host.cfg
cfg_file=/usr/local/nagios/etc/objects/templates/generic-service.cfg
to
Code: Select all
#cfg_file=/usr/local/nagios/etc/objects/templates/generic-host.cfg
#cfg_file=/usr/local/nagios/etc/objects/templates/generic-service.cfg
because you are already loading them in this directive
Code: Select all
cfg_dir=/usr/local/nagios/etc/objects/templates
Then this definition in /usr/local/nagios/etc/objects/services/services.cfg has no hosts assigned so it needs to be removed
Code: Select all
#Special check for Content Ops Volume Reporting. This checks a scheduled task running on Kobofs1 once a day, starting at 9:10AM, for 10 minutes.
#If, at any time during that 10 minute window, the scheduled task completes with an error code other than 0, the Content OPS team is notified.
define service {
service_description New Volume Report Scheduled Task
use generic-service
#Conent Ops only needs this service to check once a day, just after the scheduled task is configured to run on kobofs1
check_period 9_10AM_for_10_min
#Since we will only have a 10 minute window to test this service each day, we will test the service more rapidly than normal.
check_interval 2
#Since this check will only run once a day, and since fixing the root cause does not clear the alert in nagios until the next day, we dont report recovery.
notification_options w,u,c
contact_groups contentoperations,admins
# hostgroup_name content_ops_scheduled_tasks
check_command check_nrpe!CheckTaskSched!"filter=title eq 'new volume report' AND exit_code ne 0" "syntax='%title%': Task completed with Exit Code %exit_code%. Please check the VolumeReports on TS3!" MaxCrit=1
}
Add something this to /usr/local/nagios/etc/objects/commands.cfg
Code: Select all
define command {
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
}
You will need to repead this for all your other missing commands like
snmp_windows_dhcp_avalaible_addresses
check_netapp_vol_cap
check_nrpe_1arg
etc...