Configure the Nagios config files and plugins
# vi /etc/nagios/r71_services.cfg
##### SSH REMOTE CALLS – ensure SSH REMOTE CALLS services are available. #####
define service { define service{ define service { define service{ |
# vi /etc/nagios/r71_commands.cfg
# ‘check_by_ssh’ command defenition define command { command_name check_by_ssh command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -l nagios -C ‘~/nagios_check.sh $ARG1$’ } |
# vi /etc/nagios/r71_hostgroups.cfg
define hostgroup{ hostgroup_name snmp-enabled-servers alias snmp enabled servers members alpedhuez.r71.nl,telegraph.r71.nl,aubisque.r71.nl } |
Leave a Reply