Page 5 of 6
Re: Sending Data Between Nagios Servers
Posted: Mon Jul 30, 2018 11:34 am
by optionstechnology
Sorry meant to come back to this to let you know it had all worked!
Is there a feature request in for adding the ability to set the command per service / per host instead of an overall one?
Reason I ask is that the other hosts I am not forwarding are generating about half a gig of event log every day!
Is there a way to stop it logging failed nrdp?
Re: Sending Data Between Nagios Servers
Posted: Mon Jul 30, 2018 12:18 pm
by scottwilkerson
optionstechnology wrote:Is there a feature request in for adding the ability to set the command per service / per host instead of an overall one?
I don't really understand the question. You can set commands per host/service.
optionstechnology wrote:Reason I ask is that the other hosts I am not forwarding are generating about half a gig of event log every day!
Is there a way to stop it logging failed nrdp?
Which log are you referring to, they are logged multiple places?
Re: Sending Data Between Nagios Servers
Posted: Tue Jul 31, 2018 6:53 am
by optionstechnology
There is no way of setting the commands per host / service using the Nagios front end
It is being logged to the nagios.log
Re: Sending Data Between Nagios Servers
Posted: Tue Jul 31, 2018 7:34 am
by scottwilkerson
optionstechnology wrote:There is no way of setting the commands per host / service using the Nagios front end
CCM -> Services -> Edit Service
change the field "Check command"
Save
Apply Configuration
If you mean something else I must be missing something.
Re: Sending Data Between Nagios Servers
Posted: Wed Aug 01, 2018 4:20 am
by optionstechnology
Yes I'm not looking to alter the check command, I'm looking to alter the obsess command, currently I have to set it globally in the config-
obsess_over_hosts=1
obsess_over_services=1
ochp_command=send_nrdp_host
ocsp_command=send_nrdp_service
Because there is no option to do it on the service or host itself,
@vazudevan demonstrated how to do it in the config-
Code: Select all
###### Cleint 1
define host {
...
ochp_command send_nrdp_host_client1
}
define service {
...
oscp_command send_nrdp_service_client1
}
##### Client 2
define host {
...
ochp_command send_nrdp_host_client2
}
define service {
...
oscp_command send_nrdp_service_client2
}
But I would like to be able to do it using the front end
The problem is that only a small number of hosts need this function, and when I get it globally it generates an error for every other host thats not setup for it
Re: Sending Data Between Nagios Servers
Posted: Wed Aug 01, 2018 8:59 am
by scottwilkerson
If you go to CCM -> Hosts -> Edit Host -> Check Settings Tab
you can turn it off for all hosts that don't need it.
If you have the enterprise version of XI you can do this in bulk from CCM-> Tools -> Bulk Modifications Tool
Change a Single Config Option
Re: Sending Data Between Nagios Servers
Posted: Wed Aug 01, 2018 2:46 pm
by rexconsulting
By setting "obsess_over_service" and/or "obsess_over_host", one can control which hosts and/or services are sent to the NRDP ocsp_command and ochp_command.
Re: Sending Data Between Nagios Servers
Posted: Wed Aug 01, 2018 2:47 pm
by rexconsulting
By setting "obsess_over_service" and/or "obsess_over_host", one can control which hosts and/or services are sent to the NRDP ocsp_command and ochp_command.
Re: Sending Data Between Nagios Servers
Posted: Wed Aug 01, 2018 3:21 pm
by scottwilkerson
Thanks for being clearer for me
@rexconsulting !
Re: Sending Data Between Nagios Servers
Posted: Wed Aug 08, 2018 7:51 am
by optionstechnology
Yip thats it - I had set it to skip on the other ones
Once I switched it to force off it stopped generating the errors