How im can change Service Periods ??

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
almirf
Posts: 31
Joined: Tue Apr 29, 2014 1:23 pm

How im can change Service Periods ??

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: How im can change Service Periods ??

Post by Box293 »

https://assets.nagios.com/downloads/nag ... tions.html

max_check_attempts #
check_interval #
retry_interval #
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
almirf
Posts: 31
Joined: Tue Apr 29, 2014 1:23 pm

Re: How im can change Service Periods ??

Post 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 #
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: How im can change Service Periods ??

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
almirf
Posts: 31
Joined: Tue Apr 29, 2014 1:23 pm

Re: How im can change Service Periods ??

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: How im can change Service Periods ??

Post 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).
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
almirf
Posts: 31
Joined: Tue Apr 29, 2014 1:23 pm

Re: How im can change Service Periods ??

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: How im can change Service Periods ??

Post 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.
Former Nagios Employee
almirf
Posts: 31
Joined: Tue Apr 29, 2014 1:23 pm

Re: How im can change Service Periods ??

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: How im can change Service Periods ??

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked