2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Merge pull request #905 from sumpfralle/tests-executable-flag

Test for executable permission bits.
Fix many plugins with missing permission bit.

Closes: #787
Closes: #904
This commit is contained in:
sumpfralle 2018-03-09 00:42:32 +01:00 committed by GitHub
commit f28acdd8d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
98 changed files with 8 additions and 1 deletions

0
plugins/accounting/accounting_ Normal file → Executable file
View File

0
plugins/apache/apache_average_time_last_n_requests Normal file → Executable file
View File

0
plugins/apache/apache_byprojects/byprojects_access Normal file → Executable file
View File

0
plugins/apache/apache_byprojects/byprojects_bandwidth Normal file → Executable file
View File

View File

0
plugins/apache/apache_vhosts/apache_logparser Normal file → Executable file
View File

0
plugins/apache/apache_vhosts/apache_pipelogger Normal file → Executable file
View File

0
plugins/apache/apache_vhosts/apache_vhosts Normal file → Executable file
View File

0
plugins/apache/page_load Normal file → Executable file
View File

0
plugins/arp/arp_bsd_ Normal file → Executable file
View File

0
plugins/dhcp/dhcpd-pools Normal file → Executable file
View File

0
plugins/disk/btrfs_subvol_usage Normal file → Executable file
View File

0
plugins/disk/e2 Normal file → Executable file
View File

0
plugins/disk/hdsentinel Normal file → Executable file
View File

0
plugins/disk/quota2percent_ Normal file → Executable file
View File

0
plugins/djabberd/djabberd_ Normal file → Executable file
View File

0
plugins/dovecot/dovecot_stats_ Normal file → Executable file
View File

0
plugins/drupal/drupal_page_speed_test.php Normal file → Executable file
View File

0
plugins/dvb/2wcomdsr_ Normal file → Executable file
View File

0
plugins/freeradius/freeradius_queue Normal file → Executable file
View File

0
plugins/games/game Normal file → Executable file
View File

0
plugins/glassfish/glassfish_counters_ Normal file → Executable file
View File

0
plugins/icecast/icecast2_ Normal file → Executable file
View File

0
plugins/icecast/icecast2_all Normal file → Executable file
View File

0
plugins/jchkmail/jchkmail_counters_ Normal file → Executable file
View File

0
plugins/jenkins/jenkins_ Normal file → Executable file
View File

0
plugins/mail/postfwd-rbl Normal file → Executable file
View File

0
plugins/mediawiki/mediawiki_api Normal file → Executable file
View File

0
plugins/memcached/memcached_servers_ Normal file → Executable file
View File

0
plugins/minecraft/bukkit-jsonapi-players Normal file → Executable file
View File

0
plugins/minecraft/bukkit-jsonapi-ramusage Normal file → Executable file
View File

0
plugins/minecraft/bukkit-jsonapi-tps Normal file → Executable file
View File

0
plugins/minecraft/bukkit-statistician-killshostile Normal file → Executable file
View File

0
plugins/minecraft/bukkit-statistician-killsneutral Normal file → Executable file
View File

0
plugins/minecraft/bukkit-statistician-killspassive Normal file → Executable file
View File

0
plugins/minecraft/bukkit-statistician-players Normal file → Executable file
View File

0
plugins/minecraft/bukkit-ultrabans-shame Normal file → Executable file
View File

0
plugins/minecraft/minecraft-users-ram_ Normal file → Executable file
View File

0
plugins/mongodb/mongo_collection_ Normal file → Executable file
View File

0
plugins/moodle/moodle_files Normal file → Executable file
View File

0
plugins/moodle/moodle_logs Normal file → Executable file
View File

0
plugins/moodle/moodle_mod_chat Normal file → Executable file
View File

0
plugins/moodle/moodle_mod_forum Normal file → Executable file
View File

0
plugins/moodle/moodle_mod_quiz Normal file → Executable file
View File

0
plugins/moodle/moodle_modules_total Normal file → Executable file
View File

0
plugins/moodle/moodle_users_online Normal file → Executable file
View File

0
plugins/moodle/moodle_users_total Normal file → Executable file
View File

0
plugins/mysql/hs_read Normal file → Executable file
View File

0
plugins/mysql/hs_write Normal file → Executable file
View File

0
plugins/network/ddclient Normal file → Executable file
View File

0
plugins/network/multibandwidth Normal file → Executable file
View File

0
plugins/network/ubiquiti_airfiber_ Normal file → Executable file
View File

0
plugins/network/ubiquiti_airos_ Normal file → Executable file
View File

0
plugins/nfs-freebsd/nfs_client Normal file → Executable file
View File

0
plugins/nfs-freebsd/nfs_client_cache Normal file → Executable file
View File

0
plugins/percona/percona_ Normal file → Executable file
View File

0
plugins/pf/pf_tables_ Normal file → Executable file
View File

0
plugins/php/php_errors_ Normal file → Executable file
View File

0
plugins/php/php_opcache.php Normal file → Executable file
View File

0
plugins/php/php_time_execution Normal file → Executable file
View File

0
plugins/postgresql/postgres_tuplesratio_ Normal file → Executable file
View File

0
plugins/power/eatonups_ Normal file → Executable file
View File

0
plugins/power/upsmonpro_ Normal file → Executable file
View File

0
plugins/printer/snmp__hpclj Normal file → Executable file
View File

0
plugins/prosody/prosody_ Normal file → Executable file
View File

0
plugins/puma/puma_ Normal file → Executable file
View File

0
plugins/rackspace/rackspace_cdn_count.php Normal file → Executable file
View File

0
plugins/rackspace/rackspace_cdn_size.php Normal file → Executable file
View File

0
plugins/rethinkdb/rethinkdb_node_io Normal file → Executable file
View File

0
plugins/riak/riak_fsm_time_95 Normal file → Executable file
View File

0
plugins/router/snmp__cisco_sbs_cpu Normal file → Executable file
View File

0
plugins/sabnzbd/sabnzbd_dataleft Normal file → Executable file
View File

0
plugins/sabnzbd/sabnzbd_speed Normal file → Executable file
View File

0
plugins/security/fail2ban_ Normal file → Executable file
View File

0
plugins/senderscore/senderscore Normal file → Executable file
View File

0
plugins/sendmail/sendmail_mailq Normal file → Executable file
View File

0
plugins/sensors/voltcraft_tcm220_ Normal file → Executable file
View File

0
plugins/sge/sge_queue_xml_ Normal file → Executable file
View File

0
plugins/smf/smf_errors Normal file → Executable file
View File

0
plugins/smf/smf_mail_queue Normal file → Executable file
View File

0
plugins/smf/smf_online Normal file → Executable file
View File

0
plugins/smf/smf_stats Normal file → Executable file
View File

0
plugins/snmp/snmp__airport Normal file → Executable file
View File

0
plugins/snmp/snmp__cyberpower Normal file → Executable file
View File

0
plugins/synology/snmp__synology_hddtemp Normal file → Executable file
View File

0
plugins/synology/snmp__synology_temperature Normal file → Executable file
View File

0
plugins/synology/snmp__synology_ups Normal file → Executable file
View File

0
plugins/syslog/syslog_ng_stats Normal file → Executable file
View File

0
plugins/unicorn/unicorn_ Normal file → Executable file
View File

0
plugins/uwsgi/uwsgi_ Normal file → Executable file
View File

0
plugins/varnish/varnish4_ Normal file → Executable file
View File

0
plugins/vbulletin/vbulletin4_users Normal file → Executable file
View File

0
plugins/virtualbox/virtualbox_cpu_kernel Normal file → Executable file
View File

0
plugins/virtualbox/virtualbox_cpu_user Normal file → Executable file
View File

0
plugins/virtualbox/virtualbox_ram_usage Normal file → Executable file
View File

0
plugins/voldemort/voldemort Normal file → Executable file
View File

0
plugins/wordpress/wordpress2 Normal file → Executable file
View File

View File

@ -48,7 +48,14 @@ sub process_file {
my ( $file, $filename, $interpreter, $arguments ) = @_;
use v5.10.1;
if ( $interpreter =~ m{/bin/sh} ) {
if ( ! -x $file ) {
# missing executable flag
diag(
sprintf("\nFile '%s' lacks executable permission bits. Maybe try 'chmod +x $file'?\n",
$file)
);
}
elsif ( $interpreter =~ m{/bin/sh} ) {
subtest $filename => sub {
plan tests => 2;
run_check(