Build precise queries to find exactly what you need
Press ESC to close
Since I run backups late night I needed also yesterday’s backups checked, and did: after #my $date = strftime(“%d-%b-%Y”, localtime); I added:
#Yesterday 🙂 #http://stackoverflow.com/questions/3506475/how-do-i-get-yesterdays-date-using-localtime my $date = strftime(“%d-%b-%Y”, localtime); my ($sec, $min, $hour, $mday, $mon, $year) = localtime(); my $yesterday_midday=timelocal(0,0,12,$mday,$mon,$year) – 24*60*60; ($sec, $min, $hour, $mday, $mon, $year) = localtime($yesterday_midday); my $yesterdate = strftime(“%d-%b-%Y”, localtime($yesterday_midday));
and added an OR to the date check further down: # want only todays and yesterdays jobs next unless ($job{‘Start time’} =~ m/^Q$dateEs/) or ($job{‘Start time’} =~ m/^Q$yesterdateEs/);
thanks !
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!