Build precise queries to find exactly what you need
Press ESC to close
This is a small pathc to allow fuzzy names (with globbing), it helps when integrating with cacti, so we can make a match like servername_service_*.rrd that is more effective.
— /tmp/check_rrd.pl 2013-05-13 14:05:11.000000000 +0200 +++ check_rrd.pl 2013-05-13 16:35:09.000000000 +0200 @@ -313,8 +313,16 @@ # main # ———————————————————————–
+#In case the file is a glob expression (*), expand it and check if matches if ( ! -r $rrdfile ) { – $np->nagios_die(“rrdfile $rrdfile not readable or does not exist”); + my @filelist = glob “$rrdfile”; + if ( ! @filelist) { + $np->nagios_die(“rrdfile $rrdfile not readable or does not exist”); + } elsif ( scalar(@filelist)!=1 ) { + $np->nagios_die(“Glob matches more than one file @filelist “); + } else { + $rrdfile=$filelist[0]; + } }
# —————————————-
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!