Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

s1n0

Reviews(1)
bys1n0, February 4, 2014
nagios 4.0.2:
downtimeschedhst.cfg
# Daysfield,Hostname,StartTime(HH:MM:ss),duration(seconds),fixed/dynamic,Trigger ID,Dynamic time ( if dynamic = 1 ),Name(user posting downtime),Comments
# 0:1:1:1:1:1:0,host1.co.za,23:59:00,14400,1,0,7200,Nagios,Scheduled Daily Downtime (Backups)
downtimeschedsvc.cfg
#Daysfield,Hostname,service-name,StartTime(HH:MM:ss),duration(seconds),fixed/dynamic,Trigger ID(often=0 ),Dynamic time ( if dynamic = 1 ),Name(user posting downtime),Comments
#0:1:1:1:1:1:0,host1.co.za,Host Service,23:59:00,14400,1,0,7200,Nic le Roux,Scheduled Daily Downtime (Backups)

in perl script:
add this variable:
my $TriggerId; # Id is to the ID of another scheduled downtime entry.If TriggerId( =0 ) then it should not be trigged by another downtime entry.

and modify:
# Read variable in
($DaysOfWeek,$Hostname,$ServiceName,$DownStartNormal,$DownDuration,$Fixed,$TriggerId,$DynDownDuration,$Username,$Comments)=split(/,/);
#Read Variables in
($DaysOfWeek,$Hostname,$DownStartNormal,$DownDuration,$Fixed,$TriggerId,$DynDownDuration,$Username,$Comments)=split(/,/);