Sending Data Between Nagios Servers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Re: Sending Data Between Nagios Servers

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Sending Data Between Nagios Servers

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Re: Sending Data Between Nagios Servers

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Sending Data Between Nagios Servers

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Re: Sending Data Between Nagios Servers

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Sending Data Between Nagios Servers

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
rexconsulting
Posts: 60
Joined: Fri May 04, 2012 4:27 pm
Location: Oakland, CA
Contact:

Re: Sending Data Between Nagios Servers

Post 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.
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
User avatar
rexconsulting
Posts: 60
Joined: Fri May 04, 2012 4:27 pm
Location: Oakland, CA
Contact:

Re: Sending Data Between Nagios Servers

Post 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.
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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Sending Data Between Nagios Servers

Post by scottwilkerson »

Thanks for being clearer for me @rexconsulting !
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Re: Sending Data Between Nagios Servers

Post 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
Locked