Sending Data Between Nagios Servers
-
optionstechnology
- Posts: 234
- Joined: Thu Nov 17, 2016 11:26 am
Re: Sending Data Between Nagios Servers
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?
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?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Sending Data Between Nagios Servers
I don't really understand the question. You can set commands per host/service.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?
Which log are you referring to, they are logged multiple places?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?
-
optionstechnology
- Posts: 234
- Joined: Thu Nov 17, 2016 11:26 am
Re: Sending Data Between Nagios Servers
There is no way of setting the commands per host / service using the Nagios front end
It is being logged to the nagios.log
It is being logged to the nagios.log
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Sending Data Between Nagios Servers
CCM -> Services -> Edit Serviceoptionstechnology wrote:There is no way of setting the commands per host / service using the Nagios front end
change the field "Check command"
Save
Apply Configuration
If you mean something else I must be missing something.
-
optionstechnology
- Posts: 234
- Joined: Thu Nov 17, 2016 11:26 am
Re: Sending Data Between Nagios Servers
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-
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
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
}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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Sending Data Between Nagios Servers
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
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
- rexconsulting
- Posts: 60
- Joined: Fri May 04, 2012 4:27 pm
- Location: Oakland, CA
- Contact:
Re: Sending Data Between Nagios Servers
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.
CP
--
Chris Paul
Rex Consulting, Inc
5652 Florence Terrace, Oakland, CA 94611
email: [email protected]
web: http://www.rexconsulting.net
phone, toll-free: +1 (888) 403-8996 ext 1
--
Chris Paul
Rex Consulting, Inc
5652 Florence Terrace, Oakland, CA 94611
email: [email protected]
web: http://www.rexconsulting.net
phone, toll-free: +1 (888) 403-8996 ext 1
- rexconsulting
- Posts: 60
- Joined: Fri May 04, 2012 4:27 pm
- Location: Oakland, CA
- Contact:
Re: Sending Data Between Nagios Servers
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.
CP
--
Chris Paul
Rex Consulting, Inc
5652 Florence Terrace, Oakland, CA 94611
email: [email protected]
web: http://www.rexconsulting.net
phone, toll-free: +1 (888) 403-8996 ext 1
--
Chris Paul
Rex Consulting, Inc
5652 Florence Terrace, Oakland, CA 94611
email: [email protected]
web: http://www.rexconsulting.net
phone, toll-free: +1 (888) 403-8996 ext 1
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Sending Data Between Nagios Servers
Thanks for being clearer for me @rexconsulting !
-
optionstechnology
- Posts: 234
- Joined: Thu Nov 17, 2016 11:26 am
Re: Sending Data Between Nagios Servers
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
Once I switched it to force off it stopped generating the errors