Setting renewal failure
Re: Setting renewal failure
Thank you very much.
Please update it because it was updated.
It was saved.
Please update it because it was updated.
It was saved.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Setting renewal failure
I don't follow, are you saying the hosts exists? Can you see it in CCM -> Hosts and is it active?bizreach wrote:Thank you very much.
Please update it because it was updated.
It was saved.
Re: Setting renewal failure
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.
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.
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Setting renewal failure
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?
Do you see notifications in the Notifications Report?
Re: Setting renewal failure
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.
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.
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Setting renewal failure
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
and then restarting apache
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 = 90Code: Select all
service httpd restartRe: Setting renewal failure
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.
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
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
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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Setting renewal failure
[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": "
", "link_names": "1"}' [webhook]
}
*aaa@[mydomain]
Since it is our address, I am confined.
*[webhook]
We are Slack's incoming Webhook.
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": "
}
*aaa@[mydomain]
Since it is our address, I am confined.
*[webhook]
We are Slack's incoming Webhook.
Re: Setting renewal failure
About the case where the graph is not displayed
I will speak with this inquiry.
Please confirm.
I will speak with this inquiry.
Please confirm.