Page 2 of 3

Re: Setting renewal failure

Posted: Tue Jun 05, 2018 8:24 pm
by bizreach
Thank you very much.

Please update it because it was updated.

It was saved.

Re: Setting renewal failure

Posted: Wed Jun 06, 2018 9:28 am
by scottwilkerson
bizreach wrote:Thank you very much.

Please update it because it was updated.

It was saved.
I don't follow, are you saying the hosts exists? Can you see it in CCM -> Hosts and is it active?

Re: Setting renewal failure

Posted: Mon Jun 11, 2018 10:21 pm
by bizreach
It worked normally as attached.

I wrote what I did below.
There is another problem caused by it.

please tell me.

However, updating can not be done if you try to update it.
but,

>Configure -> CCM -> Tools -> Config File Management
>click Delete Files

>Then Apply Configuration again.

If you follow the procedure below, you can update it.

However, mail and Slack notifications will not fly away
The report graph disappears.

https://support.nagios.com/forum/viewto ... 16&t=48873

Because we can not distinguish the cause well, I would like to confirm.

Re: Setting renewal failure

Posted: Tue Jun 12, 2018 2:19 pm
by scottwilkerson
Well this all looks correct, but I'm not sure what the error you have in the reports and notifications.

Do you see notifications in the Notifications Report?

Re: Setting renewal failure

Posted: Wed Jun 13, 2018 6:12 am
by bizreach
I put together tickets.

https://support.nagios.com/forum/viewto ... 16&t=48873
>tail -f /var/log/httpd/*_log

I have attached.

Can not display graph
Or a situation where notifications do not fly occur mutually.

I will send you the specified ini file later.

Re: Setting renewal failure

Posted: Wed Jun 13, 2018 9:18 am
by scottwilkerson
Adding in discussion from here (multiple threads)
https://support.nagios.com/forum/viewto ... 80#p253780

The logs look normal. You likely could benefit from increasing the max_execution_time in the php.ini

Code: Select all

max_execution_time = 90
and then restarting apache

Code: Select all

service httpd restart

Re: Setting renewal failure

Posted: Fri Jun 15, 2018 6:26 am
by bizreach
Thanks,

I'd like you to make recognition once.
I will explain the current situation.

Now,[Pattern A]

In that state the following answers were carried out.

==============================================
Re: Setting renewal failure
Postby scottwilkerson » Tue Jun 05, 2018 11:48 pm

Actually looking at your logs it's like there was a file imported for this host/services
/usr/local/nagios/etc/import/BIZ29N-EE_F29-N1.cfg

Do you intend for this host to exist? If not you should remove the services from Configure, -> CCM -> Services ->in the template dropdown choose BIZ29N-EE_F29-N1 Remove services.

Also, you should remove this import config if it still exists
rm -f /usr/local/nagios/etc/import/BIZ29N-EE_F29-N1.cfg

then try the procedure I mentioned above
==============================================

Will,[Pattern B]

Because alerts will not fly, restore.
Switch back [Pattern B]

++++++++++++++++++++++++++++++++++++++++++
[Pattern A]
・Can not update new registration, modification, deletion etc

[Pattern B]
・Alert does not fly
・Can not count reporting functions
++++++++++++++++++++++++++++++++++++++++++


Please lend me your wisdom.

Re: Setting renewal failure

Posted: Fri Jun 15, 2018 12:50 pm
by tgriep
Can you provide more details on what you mean by [Pattern B]?
Are you setting up a new configuration and the Email Notifications are not getting sent?
Can you provide a screen capture if the issue so we can better understand the issue?
Thanks

Re: Setting renewal failure

Posted: Tue Jun 19, 2018 1:06 am
by bizreach
[Pattern B]
CentOS6.9
Message notifications are sent to mail and Slack in the following file.

/usr/local/nagios/etc/commands.cfg

>>>
define command {
command_name notify-host-by-email
command_line /usr/bin/printf "%b" "***** Nagios Monitor XI Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nHostGroup: $HOSTGROUPNAMES$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n\n---------Support---------\n$HOSTNOTES$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" -r aaa@[mydomain] $CONTACTEMAIL$
}
define command {
command_name notify-host-by-slack
command_line /usr/bin/curl -X POST --data-urlencode 'payload={"channel": "#adm_corp-it_alert", "username": "NagiosXI", "text": "@shintaro.nakamura @daiki.matsumiya @kazuya.nakahara \n`** Nagios XI $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **`\n```Notification Type: $NOTIFICATIONTYPE$\n\nHost: $HOSTNAME$%\nHostGroup: $HOSTGROUPNAMES$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$```", "icon_emoji": ":sigotosiro:", "link_names": "1"}' [webhook]
}
define command {
command_name notify-service-by-email
command_line /usr/bin/printf "%b" "***** Nagios Monitor XI Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTNAME$\nHostGroup: $HOSTGROUPNAMES$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n\n---------Support---------\n$HOSTNOTES$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" -r aaa@[mydomain] $CONTACTEMAIL$
}
define command {
command_name notify-service-by-slack
command_line /usr/bin/curl -X POST --data-urlencode 'payload={"channel": "#adm_corp-it_alert", "username": "NagiosAlert", "text": "@shintaro.nakamura @daiki.matsumiya @kazuya.nakahara \n`** Nagios XI $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **`\n```Notification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nHostGroup: $HOSTGROUPNAMES$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n$SERVICEOUTPUT$```", "icon_emoji": ":ghost:", "link_names": "1"}' [webhook]
}

*aaa@[mydomain]
Since it is our address, I am confined.

*[webhook]
We are Slack's incoming Webhook.

Re: Setting renewal failure

Posted: Tue Jun 19, 2018 1:12 am
by bizreach
About the case where the graph is not displayed
I will speak with this inquiry.
Please confirm.