Overview
The agent configuration is pretty simple and composed by couple files in:
/usr/local/nagios
Deploy new plugin
The configuration of a new plugin is done pretty simple. There are many available scripts for GPL use which can be downloaded for free.
Monitor ASM
The plugin: ASM_CHECK is able to monitor the ASM instance as follows:
Change the config file
[root@oraback etc]# cat /usr/local/nagios/etc/nrpe.cfg ---- #command[check_procs]=/usr/local/nagios/libexec/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$ command[check_mem]=/usr/local/nagios/libexec/custom_check_mem -w $ARG1$ -c $ARG2$ command[check_asm]=/usr/bin/perl /usr/local/nagios/libexec/asm_check.perl --asm_home=$ARG1$ --action=usedspace --threshold DATA=$ARG2$
The syntax is very simple:
command[command_name]=script –script_ARG1=$nagios_ARG1$ –script_ARG2=$nagios_ARG2$ –script_ARG3=$nagios_ARG3$
The nagios argument should be passed in the CORE server, when the script argument are passed in the configuration file of the agent.
Post-Configuration
The next step is to configure the CORE server to recognise this configuration.