I’m in the process in converting older handmade done checks from nrpe to nagios2.
I need some advise how to convert the objects into icinga2 Syntax correctly.
This entry is in my nrpe.cfg
### CHECK ORACLE ###
command[check_oracle_nospaceerrcnt]=/usr/lib64/nagios/plugins/check_oracle_nospaceerrcnt.sh $ARG1$ $ARG2$
This comes from my hosts techlab1.cfg
define host {
host_name techlab1
alias techlab1
address 192.168.19.10
check_command check_ping!10,2%!20,5%
max_check_attempts 1
contacts nagiosadmin
contact_groups admins
icon_image linux.gif
register 1
}
From my services file check_oracle_nospaceerrcnt.cfg:
define service {
#NAGIOSQL_CONFIG_NAME check_oracle_nospaceerrcnt
host_name techlab1
service_description check_oracle_nospaceerrcnt
display_name check_oracle_nospaceerrcnt
check_command check_oracle_nospaceerrcnt!tl1!techlab.techlab.local
max_check_attempts 1
register 1
}
entry form my commands.cfg:
define command {
command_name check_oracle_nospaceerrcnt
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -2 -c check_oracle_nospaceerrcnt -a $ARG1$ $ARG2$
register 1
}