Query scaling nagios Core
Query scaling nagios Core
Dear forum members,
I would appreciate please support me with the scaling configuration .. I have tried some configurations without success.
I have three areas: Infrastructure, security and support, in this case, what I intend is that Nagios notify me every 30 minutes to the security area when the host is inactive and every 60 escalating notifications to the other areas.
For the delivery of the notifications I have configured postfix with Exchange, in fact it worked fine before adding the escalation now with this configuration only notifies me every hour when the host is inactive and not every thirty minutes. in the notification I see that it indicates Yes: Incident Escalated but the mail does not arrive at the second and third contact of the escalation.
When I do the configuration check I do not have errors:
[root@localhost nagios]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.4.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2018-06-25
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 64 services.
Checked 11 hosts.
Checked 4 host groups.
Checked 0 service groups.
Checked 4 contacts.
Checked 4 contact groups.
Checked 32 commands.
Checked 5 time periods.
Checked 20 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 11 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
Thanks for the support
Best regards.
I would appreciate please support me with the scaling configuration .. I have tried some configurations without success.
I have three areas: Infrastructure, security and support, in this case, what I intend is that Nagios notify me every 30 minutes to the security area when the host is inactive and every 60 escalating notifications to the other areas.
For the delivery of the notifications I have configured postfix with Exchange, in fact it worked fine before adding the escalation now with this configuration only notifies me every hour when the host is inactive and not every thirty minutes. in the notification I see that it indicates Yes: Incident Escalated but the mail does not arrive at the second and third contact of the escalation.
When I do the configuration check I do not have errors:
[root@localhost nagios]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.4.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2018-06-25
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 64 services.
Checked 11 hosts.
Checked 4 host groups.
Checked 0 service groups.
Checked 4 contacts.
Checked 4 contact groups.
Checked 32 commands.
Checked 5 time periods.
Checked 20 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 11 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
Thanks for the support
Best regards.
- Attachments
-
- contacts.cfg
- (3.99 KiB) Downloaded 177 times
-
- fw.cfg
- (1.55 KiB) Downloaded 183 times
Re: Query scaling nagios Core
Try changing your host escalations to this:
Code: Select all
define hostescalation{
hostgroup_name FW
first_notification 2
last_notification 0
notification_interval 60
escalation_period 24x7
escalation_options d,r
contact_groups infraestructura,soporte
}
define hostescalation{
hostgroup_name FW
first_notification 1
last_notification 0
notification_interval 30
escalation_period 24x7
escalation_options d,r
contact_groups seguridad
}
Re: Query scaling nagios Core
Dear ssax,
After the suggested changes I still have the problem that the escalated notification does not reach the support user (user3ctx). If I see that it already notifies me every thirty minutes (some cases in 15 minutes) when a host is off and also does the scaling, I still have doubts about the correct configuration, the support is appreciated.
Best regards.
After the suggested changes I still have the problem that the escalated notification does not reach the support user (user3ctx). If I see that it already notifies me every thirty minutes (some cases in 15 minutes) when a host is off and also does the scaling, I still have doubts about the correct configuration, the support is appreciated.
Best regards.
- Attachments
-
- fw.cfg
- (1.56 KiB) Downloaded 167 times
Re: Query scaling nagios Core
Please zip up your entire nagios/etc directory with all your configuration files and PM it to me so that I can look through them to figure out what's going on.
Send your status.dat file as well, you can find it with this command:
Thank you
Send your status.dat file as well, you can find it with this command:
Code: Select all
find / -name status.dat
Re: Query scaling nagios Core
I send it dear.
Best regards.
Best regards.
Re: Query scaling nagios Core
What does the notifications report look like for this? I want to see what each contact's notification command is listed as. Does it show user3ctx in there for it?
Please PM me your /usr/local/nagios/var/objects.cache file as well.
Please PM me your /usr/local/nagios/var/objects.cache file as well.
Re: Query scaling nagios Core
Good night,
Attached,
Best regards.
Attached,
Best regards.
Re: Query scaling nagios Core
Please go to the Nagios Core web interface and then click on the link on the left hand side that says Notifications, send me an example of the output so that I can see if user3ctx is listed. Based on the config user3ctx should have received it.
Additionally, user3ctx looks to be using these notification commands"
Are those the proper ones?
Additionally, user3ctx looks to be using these notification commands"
Code: Select all
service_notification_commands notify-service-by-email-html
host_notification_commands notify-host-by-email-html
Re: Query scaling nagios Core
Dear ssax,
Attached screenshots ..
Greetings.
Attached screenshots ..
Greetings.
- Attachments
-
- screenshots.docx
- (482.01 KiB) Downloaded 148 times
Re: Query scaling nagios Core
You Contact Notifications screenshot shows that user3ctx was notified:
That means that Nagios did what it was supposed to do and tried to fire off the notification.
So if user3ctx did not receive the email, that means that one of these things happened:
- Your notify-host-by-email-html command failed.
-- Please check your script that you are using to send it, there is something wrong with it for this user
- The script worked but whatever you submitted it to is having a problem (queue full, delayed, etc)
Please zip up and attach this entire directory so that we can see what is occurring:
Thank you
That means that Nagios did what it was supposed to do and tried to fire off the notification.
So if user3ctx did not receive the email, that means that one of these things happened:
- Your notify-host-by-email-html command failed.
-- Please check your script that you are using to send it, there is something wrong with it for this user
- The script worked but whatever you submitted it to is having a problem (queue full, delayed, etc)
Please zip up and attach this entire directory so that we can see what is occurring:
Code: Select all
/usr/local/nagios/libexec/php-html-email