This page (revision-1) was last changed on 29-Nov-2024 16:16 by UnknownAuthor

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 1 added 25 lines
The scripts deployed by the [LDAPBuildProcess] use a simple mechisim to determine if a server is in a Scheduled Maintenance mode or if there is some failure in the operation of Edirectory.
The [Script Varaibles|Shared Script Variables] defines the following variables
*ndscheckMaintFlag=/tmp/nondscheck - A file, which is present implys that manual maintenance is being performed on the server.
*sMaintTime="010000" - The Time the scheduled maintenance window starts
*eMaintTime="013000" - The Time the scheduled maintenance window ends
*ndscheckMAX_STATUS_COUNT =6 - Maximum polling internvals to ignore a down condition (~ 1 Hour)
*ndscheckAlertFile=/tmp/ndscheckAlert.tmp - Temp file to keep track of what services are down from poll to poll
Any events that trigger alerts should; before sending an alert:
* Check that the alert is NOT within the scheduled maintenance window
{{{
if [[ ${DATE:8}00 > ${sMaintTime} && ${DATE:8}00 < ${eMaintTime} ]]; then
f_write_and_log "${DATE:0:4},${DATE:4:2},${DATE:6:2},`date '+%H:%M:%S'`,Scheduled maintenance window; exiting without action."
exit 0 # or some other method to not send an alert.
fi
}}}
* Check the presence of the ndscheckMaintFlag (This flag is maintained by [ndscheck.sh|ndscheck.sh] and should not be written to or removed by any other automation process.)
{{{
if [ -f $ndscheckMaintFlag ]
then
f_write_and_log "`date '+%H:%M:%S'`,manual maintenance in progress; exiting."
exit 0 # or some other method to not send an alert.
fi
}}}