Build precise queries to find exactly what you need
Press ESC to close
@arnotixe
Member Since: March 4, 2017
Favorites0
Views
Projects0
on my QNAP TS-853A 8-bay I just went to control panel and enabled SNMP. Heads up: As http://search.cpan.org/dist/Nagios-Plugin/lib/Nagios/Plugin.pm indicates, you need to search-and-replace "Nagios::Plugin" with "Monitoring::Plugin" in the perl script now. You also need to perl -MCPAN -e 'install Monitoring::Plugin' instead of "Nagios::Plugin' :D thanks!
Reviewed 9 years ago
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 !