NDRP - Send output from 1 nagios core to 2 nagiosXI servers
Posted: Fri Jul 02, 2021 9:24 am
Hello ,
I success installalled NRDP and now I send the output of services monitored by my nagios core to nagiosXI with NRDP .
In my landscape I have 2 nagiosXI servers , one for dev and test system and another for production systems.
In some remote sites I have installed nagios core servees with svil , test and prod system monitored .
I tried without succcess to creare in the command.cfg 2 commands and add the follow line in the nagios.cfg file :
nagios.cfg :
# NRDP Send Data to NagiosXI
ochp_command=send_nrdp_host , send_nrdp_host_prod
ocsp_command=send_nrdp_service , send_nrdp_service_prod
command.cfg
define command{
command_name send_nrdp_host
command_line $USER1$/send_nrdp.php --url=http://xxx.xxx.xxx.xxx/nrdp/ --token=mytoken --host="$HOSTNAME$" --state=$HOSTSTATEID$ --output="$HOSTOUTPUT$"
}
define command{
command_name send_nrdp_service
command_line $USER1$/send_nrdp.php --url=http://xxx.xxx.xxx.xxx/nrdp/ --token=mytoken --host="$HOSTNAME$" --service="$SERVICEDESC$" --state=$SERVICESTATEID$ --output="$SERVICEOUTPUT$"
}
command_name send_nrdp_host_prod
command_line $USER1$/send_nrdp.php --url=http://xxx.xxx.xxx.xxx/nrdp/ --token=mytoken --host="$HOSTNAME$" --state=$HOSTSTATEID$ --output="$HOSTOUTPUT$"
}
define command{
command_name send_nrdp_service_prod
command_line $USER1$/send_nrdp.php --url=http://xxx.xxx.xxx.xxx/nrdp/ --token=mytoken --host="$HOSTNAME$" --service="$SERVICEDESC$" --state=$SERVICESTATEID$ --output="$SERVICEOUTPUT$"
}
This is possible to send the output of services monitored by nagios core to 2 nagiosXI servers wth NRDP ?
Thanks in advance
Davide
I success installalled NRDP and now I send the output of services monitored by my nagios core to nagiosXI with NRDP .
In my landscape I have 2 nagiosXI servers , one for dev and test system and another for production systems.
In some remote sites I have installed nagios core servees with svil , test and prod system monitored .
I tried without succcess to creare in the command.cfg 2 commands and add the follow line in the nagios.cfg file :
nagios.cfg :
# NRDP Send Data to NagiosXI
ochp_command=send_nrdp_host , send_nrdp_host_prod
ocsp_command=send_nrdp_service , send_nrdp_service_prod
command.cfg
define command{
command_name send_nrdp_host
command_line $USER1$/send_nrdp.php --url=http://xxx.xxx.xxx.xxx/nrdp/ --token=mytoken --host="$HOSTNAME$" --state=$HOSTSTATEID$ --output="$HOSTOUTPUT$"
}
define command{
command_name send_nrdp_service
command_line $USER1$/send_nrdp.php --url=http://xxx.xxx.xxx.xxx/nrdp/ --token=mytoken --host="$HOSTNAME$" --service="$SERVICEDESC$" --state=$SERVICESTATEID$ --output="$SERVICEOUTPUT$"
}
command_name send_nrdp_host_prod
command_line $USER1$/send_nrdp.php --url=http://xxx.xxx.xxx.xxx/nrdp/ --token=mytoken --host="$HOSTNAME$" --state=$HOSTSTATEID$ --output="$HOSTOUTPUT$"
}
define command{
command_name send_nrdp_service_prod
command_line $USER1$/send_nrdp.php --url=http://xxx.xxx.xxx.xxx/nrdp/ --token=mytoken --host="$HOSTNAME$" --service="$SERVICEDESC$" --state=$SERVICESTATEID$ --output="$SERVICEOUTPUT$"
}
This is possible to send the output of services monitored by nagios core to 2 nagiosXI servers wth NRDP ?
Thanks in advance
Davide