Recurring Downtime schedule issue
-
- Posts: 36
- Joined: Wed Sep 05, 2018 2:23 am
Recurring Downtime schedule issue
Hi,
I have scheduled recurring downtime for a host and its services on every week starts Friday 8pm to Sunday 8pm.
Issue is: Once downtime ends it automatically schedule downtime for very next day for another 3 days which is not expected.
could anyone please advise to overcome the issue...
Thanks,
Anand
I have scheduled recurring downtime for a host and its services on every week starts Friday 8pm to Sunday 8pm.
Issue is: Once downtime ends it automatically schedule downtime for very next day for another 3 days which is not expected.
could anyone please advise to overcome the issue...
Thanks,
Anand
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Recurring Downtime schedule issue
Hi @akumarhe1868,
You had another post regarding notifications during scheduled downtime, was that resolved or are you still having the same issue?
Can you PM your system profile for us to review the log files?
To send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it to a cloud storage of your choice. You can share a link with me in a personal message.
After you upload the profile please post something in this thread to bring it up in the support queue
You had another post regarding notifications during scheduled downtime, was that resolved or are you still having the same issue?
Can you PM your system profile for us to review the log files?
To send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it to a cloud storage of your choice. You can share a link with me in a personal message.
After you upload the profile please post something in this thread to bring it up in the support queue
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 36
- Joined: Wed Sep 05, 2018 2:23 am
Re: Recurring Downtime schedule issue
Hi,
I have downloaded system profile and attached in your PM.
Kindly check.
Thanks.
I have downloaded system profile and attached in your PM.
Kindly check.
Thanks.
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Recurring Downtime schedule issue
Hi @akumarhe1868,
Thanks for the profile. I noticed in your logs that you have crashed database tables. Log in as root and run the database repair script:
Repairing The Nagios XI Databases
https://assets.nagios.com/downloads/nag ... tabase.pdf
Next, looking in you configuration files, I don't see the recurring downtime that you have described (see below). Which host have you scheduled for?
Can you log into Nagios XI, go to Home >Incident Management > Recurring Downtime and verify your settings?
Thanks for the profile. I noticed in your logs that you have crashed database tables. Log in as root and run the database repair script:
Code: Select all
/usr/local/nagiosxi/scripts/repair_databases.sh
https://assets.nagios.com/downloads/nag ... tabase.pdf
Next, looking in you configuration files, I don't see the recurring downtime that you have described (see below). Which host have you scheduled for?
Code: Select all
define schedule {
sid 970b4d53815e73d8f3c0563df4e12cf3
user bslater
comment
time 23:29
duration 10
days_of_week
days_of_month
months_of_year
schedule_type host
host_name jira.leggmason.com
}
define schedule {
sid 86b1928c1ffcc3fa1f137bc1ff07a817
user akumarhe1868
comment Downtime as per SUP0103885 on every Sun 05:00 PM EST - Sun 06:00 PM EST
time 21:45
duration 75
days_of_week sun
days_of_month
months_of_year
svcalso 1
schedule_type host
host_name LMAWSBOEAPP01.globallmam.com
}
define schedule {
sid 45151d033f4ddae35a2e98f4b685d4ec
user akumarhe1868
comment Downtime as per SUP0103885 on every Sun 06:00 PM EST - Sun 07:00 PM EST
time 22:45
duration 75
days_of_week sun
days_of_month
months_of_year
svcalso 1
schedule_type host
host_name LMAWSBOEAPP02.globallmam.com
}
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 36
- Joined: Wed Sep 05, 2018 2:23 am
Re: Recurring Downtime schedule issue
Hi,
As suggested, I ran the database repair script and completed successfully without any error.
Below are the hostname scheduled recurring downtime to run every Sunday.
Also I have scenario to schedule host recurring downtime for Every Friday, Saturday and Sunday
LMAWSBOEAPP01.globallmam.com & LMAWSBOEAPP02.globallmam.com
Attached schedule settings for one of the host separately in PM.
Please review and advise the changes undergo in settings to overcomes the issue.
Thanks.
As suggested, I ran the database repair script and completed successfully without any error.
Below are the hostname scheduled recurring downtime to run every Sunday.
Also I have scenario to schedule host recurring downtime for Every Friday, Saturday and Sunday
LMAWSBOEAPP01.globallmam.com & LMAWSBOEAPP02.globallmam.com
Attached schedule settings for one of the host separately in PM.
Please review and advise the changes undergo in settings to overcomes the issue.
Thanks.
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Recurring Downtime schedule issue
Hi @akumarhe1868,
Thanks for sending over the image for recurring downtime. Looks like you have LMAWSBOEAPP01.globallmam.com scheduled for downtime every Sunday at 21:45 for 75 minutes, and that is what is in the configuration definitions. I do not see downtime scheduled for another host Friday - Sunday. Is this intended?
As far as the unexpected downtime occurring, you may have multiple processes running, log in as root and run the following commands:
Next go to Configure > Tools > Configure File Management, Delete Files and then run Write Configs followed by a verification. Are you getting any errors? If no, then restart to fully apply the configuration.
Thanks for sending over the image for recurring downtime. Looks like you have LMAWSBOEAPP01.globallmam.com scheduled for downtime every Sunday at 21:45 for 75 minutes, and that is what is in the configuration definitions. I do not see downtime scheduled for another host Friday - Sunday. Is this intended?
As far as the unexpected downtime occurring, you may have multiple processes running, log in as root and run the following commands:
Code: Select all
service nagios stop
service ndo2db stop
pkill -9 nagios
killall -9 nagios
for i in `ipcs -q | grep nagios |awk '{print $2}'`; do ipcrm -q $i; done
service ndo2db start
service nagios start
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 36
- Joined: Wed Sep 05, 2018 2:23 am
Re: Recurring Downtime schedule issue
Hi,
I have executed the command in root. Below is the output:
I do see no process killed on executing kill command.
Also no output on executing command: for i in `ipcs -q | grep nagios |awk '{print $2}'`; do ipcrm -q $i; done
Is the "done" will come at the end of the "for" command?
After executing all the command with above said, I went to Configure > Tools > Configure File Management, Delete Files and then run Write Configs
Do I need to select "Verify Files" before Nagios core restart?
[root@henagiosxi ]# service nagios stop
Stopping nagios: .done.
[root@henagiosxi ]# service ndo2db stop
Stopping ndo2db: done.
[root@henagiosxi ]# pkill -9 nagios
[root@henagiosxi ]# killall -9 nagios
nagios: no process killed
[root@henagiosxi ]# for i in `ipcs -q | grep nagios |awk '{print $2}'`; do ipcrm -q $i; done
[root@henagiosxi ]# service ndo2db start
Starting ndo2db: done.
[root@henagiosxi ]# service nagios start
Starting nagios: done.
I have executed the command in root. Below is the output:
I do see no process killed on executing kill command.
Also no output on executing command: for i in `ipcs -q | grep nagios |awk '{print $2}'`; do ipcrm -q $i; done
Is the "done" will come at the end of the "for" command?
After executing all the command with above said, I went to Configure > Tools > Configure File Management, Delete Files and then run Write Configs
Do I need to select "Verify Files" before Nagios core restart?
[root@henagiosxi ]# service nagios stop
Stopping nagios: .done.
[root@henagiosxi ]# service ndo2db stop
Stopping ndo2db: done.
[root@henagiosxi ]# pkill -9 nagios
[root@henagiosxi ]# killall -9 nagios
nagios: no process killed
[root@henagiosxi ]# for i in `ipcs -q | grep nagios |awk '{print $2}'`; do ipcrm -q $i; done
[root@henagiosxi ]# service ndo2db start
Starting ndo2db: done.
[root@henagiosxi ]# service nagios start
Starting nagios: done.
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Recurring Downtime schedule issue
Hi @akumarhe1868
That looks good. Yes, select Verify to check your configuration and then restart to apply the configuration.
After that is complete, did you verify if the other recurring downtime from, Friday - Sunday, exists as I'm not seeing it in the profile that was sent.
That looks good. Yes, select Verify to check your configuration and then restart to apply the configuration.
After that is complete, did you verify if the other recurring downtime from, Friday - Sunday, exists as I'm not seeing it in the profile that was sent.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 36
- Joined: Wed Sep 05, 2018 2:23 am
Re: Recurring Downtime schedule issue
Hi,
I have not scheduled recurring downtime earlier for Friday to Sunday but now I have scheduled and can be displayed in Nagios.
Hope I will not get notification during this downtime.
I will monitor this week schedule and will let you know.
Meanwhile, how can I export all the host configured in Nagios?
Also, how can I schedule downtime for all the host belongs to particular location(Eg:Tokyo)?
I need all the host/IP address belongs to Tokyo have to schedule downtime configured in NAGIOS.
Is there any easy way to do this task?
I have not scheduled recurring downtime earlier for Friday to Sunday but now I have scheduled and can be displayed in Nagios.
Hope I will not get notification during this downtime.
I will monitor this week schedule and will let you know.
Meanwhile, how can I export all the host configured in Nagios?
Also, how can I schedule downtime for all the host belongs to particular location(Eg:Tokyo)?
I need all the host/IP address belongs to Tokyo have to schedule downtime configured in NAGIOS.
Is there any easy way to do this task?
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Recurring Downtime schedule issue
Hello @akumarhe1868,
The configuration files are located in /usr/local/nagios/etc. You can either download your local backup archive ( Admin > System Backups) or download a system profile that contains the configuration files for hosts and services ( Admin >System Profile).
I would recommend creating a host group for all the Tokyo based servers/devices and the schedule recurring downtime for that host group. If you have the enterprise edition you can use the bulk modifications tool to quickly select hosts and create a host group.
OK. Sounds good.I will monitor this week schedule and will let you know.
The configuration files are located in /usr/local/nagios/etc. You can either download your local backup archive ( Admin > System Backups) or download a system profile that contains the configuration files for hosts and services ( Admin >System Profile).
I would recommend creating a host group for all the Tokyo based servers/devices and the schedule recurring downtime for that host group. If you have the enterprise edition you can use the bulk modifications tool to quickly select hosts and create a host group.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!