Page 1 of 3

How im can change Service Periods ??

Posted: Thu Jul 14, 2016 4:49 pm
by almirf
Dear Friends

im want to change the time of service checks????

the service load the cpu at 100%, I want to create another service and put in different time. how can I do?

Thanks
Almir

Re: How im can change Service Periods ??

Posted: Thu Jul 14, 2016 5:04 pm
by Box293
https://assets.nagios.com/downloads/nag ... tions.html

max_check_attempts #
check_interval #
retry_interval #

Re: How im can change Service Periods ??

Posted: Thu Jul 14, 2016 7:52 pm
by almirf
Ok but im need to change in hosts ? or services?

Because the fields are blank ! and the the 3rd option are marked

see my image (the text´s are in portuguese)

Image

Thanks
Almir
Box293 wrote:https://assets.nagios.com/downloads/nag ... tions.html

max_check_attempts #
check_interval #
retry_interval #

Re: How im can change Service Periods ??

Posted: Thu Jul 14, 2016 8:26 pm
by Box293
almirf wrote:Ok but im need to change in hosts ? or services?
Both, as they are separate objects.
almirf wrote:Because the fields are blank ! and the the 3rd option are marked
If the fields are blank, then the settings will be defined in a template that the host or service is using. Hence the combination of the template and host or service object create the "final object" and they will meet the requirements of the Nagios verification process.
If you change it in the template, all host or service objects will be updated.
Otherwise you need to change it on all the individual host or service objects.

Re: How im can change Service Periods ??

Posted: Thu Jul 14, 2016 10:09 pm
by almirf
im can check only on services?

Whats is the option on service to set the time checks?

Thanks
Almir
Box293 wrote:
almirf wrote:Ok but im need to change in hosts ? or services?
Both, as they are separate objects.
almirf wrote:Because the fields are blank ! and the the 3rd option are marked
If the fields are blank, then the settings will be defined in a template that the host or service is using. Hence the combination of the template and host or service object create the "final object" and they will meet the requirements of the Nagios verification process.
If you change it in the template, all host or service objects will be updated.
Otherwise you need to change it on all the individual host or service objects.

Re: How im can change Service Periods ??

Posted: Thu Jul 14, 2016 10:28 pm
by Box293
almirf wrote:im can check only on services?
Host objects and service objects are two separate items. If you only need to change service objects then edit the service objects.
almirf wrote:Whats is the option on service to set the time checks?
Can you explain in more detail exactly what your need to change.

The information I have previously given you explains how to change the check interval (how often it checks in an OK state), retry interval (how often it checks in a NON-OK state) and max check attempts (how many times to check in a NON-OK state).

Re: How im can change Service Periods ??

Posted: Fri Jul 15, 2016 7:14 am
by almirf
almirf wrote:Whats is the option on service to set the time checks?
Can you explain in more detail exactly what your need to change.
The information I have previously given you explains how to change the check interval (how often it checks in an OK state), retry interval (how often it checks in a NON-OK state) and max check attempts (how many times to check in a NON-OK state).[/quote]

=================================================================================

Sure,

I want to set the frequency in minutes that the service will work.

im need to decrease the consumption of the CPU , then I want to split the service into two different services and assign the new service to half of existing hosts.

understood ? Help me

Thanks
Almir

Re: How im can change Service Periods ??

Posted: Fri Jul 15, 2016 9:51 am
by rkennedy
I'm having a hard time understanding what you're asking, but based on this part -
I want to set the frequency in minutes that the service will work.

Take a look at this link - https://assets.nagios.com/downloads/nag ... riods.html

If this isn't what you're looking for, please try to clarify what you can. Screenshots might help as well.

Re: How im can change Service Periods ??

Posted: Wed Jul 20, 2016 11:19 am
by almirf
Dear Friend

Im configure my file, but all of hosts configure to check in same time

See :

define service {
#NAGIOSQL_CONFIG_NAME servidor_esxi_hardware_2593
hostgroup_name servidor-esxi-HP-2593
service_description hwEsxiHardware
display_name Servidor Hospedeiro HP - estado de hardware
use servico-generico
check_command check_esxi_hardware_2593!-p!-t 120!-i "IPMI SEL,Memory"
check_interval 6
register 1
}


What is wrong?

Thanks
Almir
rkennedy wrote:I'm having a hard time understanding what you're asking, but based on this part -
I want to set the frequency in minutes that the service will work.

Take a look at this link - https://assets.nagios.com/downloads/nag ... riods.html

If this isn't what you're looking for, please try to clarify what you can. Screenshots might help as well.

Re: How im can change Service Periods ??

Posted: Wed Jul 20, 2016 2:57 pm
by tgriep
Take a look at this template you posted in your example, (servico-generico) that will have the values for the check interval, etc that are set to that service.
If you want certain host / service to check at different intervals, etc you would add those options to the host / service check and that will over ride the settings from the template.

My question to you is are all of your host / service checks running at the same time and you do not want that to happen?
What version of Nagios are you running and can you post your nagios.cfg file?