diff --git a/plugins/icecast/icecast2_simple b/plugins/icecast/icecast2_simple index c69ee2a2..5ebf8acf 100755 --- a/plugins/icecast/icecast2_simple +++ b/plugins/icecast/icecast2_simple @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby # # Plugin author: Gunnar Wolf # diff --git a/plugins/minecraft/minecraft-users b/plugins/minecraft/minecraft-users index ecfa641b..8a4c12ee 100755 --- a/plugins/minecraft/minecraft-users +++ b/plugins/minecraft/minecraft-users @@ -1,4 +1,4 @@ -#!/usr/local/bin/ruby +#!/usr/bin/env ruby # Config: # [minecraft_users] # env.host awesomeserver.com diff --git a/plugins/mssql/microsoft-sql b/plugins/mssql/microsoft-sql index 457298b1..181396ba 100755 --- a/plugins/mssql/microsoft-sql +++ b/plugins/mssql/microsoft-sql @@ -1,4 +1,4 @@ -#! /usr/bin/ruby +#!/usr/bin/env ruby # # Munin Plugin for MSSQL - transaction monitoring # diff --git a/plugins/mssql/microsoft-sql-buffer-cache-hit-ratio b/plugins/mssql/microsoft-sql-buffer-cache-hit-ratio index ef48f336..61ca3d7d 100755 --- a/plugins/mssql/microsoft-sql-buffer-cache-hit-ratio +++ b/plugins/mssql/microsoft-sql-buffer-cache-hit-ratio @@ -1,4 +1,4 @@ -#! /usr/bin/ruby +#!/usr/bin/env ruby # # Munin Plugin for MSSQL - Buffer cache hit ratio monitoring # diff --git a/plugins/mssql/microsoft-sql-data-file-sizes b/plugins/mssql/microsoft-sql-data-file-sizes index 1e068e5d..f7143658 100755 --- a/plugins/mssql/microsoft-sql-data-file-sizes +++ b/plugins/mssql/microsoft-sql-data-file-sizes @@ -1,4 +1,4 @@ -#! /usr/bin/ruby +#!/usr/bin/env ruby # # Munin Plugin for MSSQL - Data file size monitoring # diff --git a/plugins/mssql/microsoft-sql-log-file-size b/plugins/mssql/microsoft-sql-log-file-size index 45951c6a..3bbf0c0e 100755 --- a/plugins/mssql/microsoft-sql-log-file-size +++ b/plugins/mssql/microsoft-sql-log-file-size @@ -1,4 +1,4 @@ -#! /usr/bin/ruby +#!/usr/bin/env ruby # # Munin Plugin for MSSQL - log files monitoring # diff --git a/plugins/oracle/oracle-pga-monitor b/plugins/oracle/oracle-pga-monitor index a0eaa1a3..bc723a0f 100755 --- a/plugins/oracle/oracle-pga-monitor +++ b/plugins/oracle/oracle-pga-monitor @@ -1,4 +1,4 @@ -#! /usr/bin/ruby +#!/usr/bin/env ruby # # Munin Plugin for PGA memory components monitoring # diff --git a/plugins/oracle/oracle-sga b/plugins/oracle/oracle-sga index d167296d..dddbdc04 100755 --- a/plugins/oracle/oracle-sga +++ b/plugins/oracle/oracle-sga @@ -1,4 +1,4 @@ -#! /usr/bin/ruby +#!/usr/bin/env ruby # # Munin Plugin for SGA memory components monitoring # diff --git a/plugins/other/port_ b/plugins/other/port_ index bfd9d832..7249cbac 100755 --- a/plugins/other/port_ +++ b/plugins/other/port_ @@ -1,4 +1,4 @@ -#! /opt/csw/bin/ruby +#!/usr/bin/env ruby # # Wildcard-script to monitor network port usage using netstat. To monitor a # port, link port_ to this file. E.g. This plugin shall run by root user diff --git a/plugins/php/php_eaccelerator b/plugins/php/php_eaccelerator index d8a8a818..34edc549 100755 --- a/plugins/php/php_eaccelerator +++ b/plugins/php/php_eaccelerator @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby # Monitor your EAccelerator usage. # Requires: ruby diff --git a/plugins/puppet/puppet_runtime b/plugins/puppet/puppet_runtime index 8962f4df..b2cdebeb 100755 --- a/plugins/puppet/puppet_runtime +++ b/plugins/puppet/puppet_runtime @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby # This plugin reports the duration of the most recent puppet agent run. # It requires read access to the puppet logfile (defaults to /var/log/messages). diff --git a/plugins/router/ag241-adsl b/plugins/router/ag241-adsl index de0d11ee..9a3d7e63 100755 --- a/plugins/router/ag241-adsl +++ b/plugins/router/ag241-adsl @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby # munin plugin to retrieve connection statistics from the web admin interface # on a Linksys AG241v2 ADSL modem # Makes use of the http://modemaddress/ADSLCStatus.htm page diff --git a/plugins/router/d-link-dir-655-router-statistics-plugin b/plugins/router/d-link-dir-655-router-statistics-plugin index 8c7923de..202e0538 100755 --- a/plugins/router/d-link-dir-655-router-statistics-plugin +++ b/plugins/router/d-link-dir-655-router-statistics-plugin @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby # # Munin plugin for the D-link DIR-655 router # diff --git a/plugins/router/snmp__linksys_poe b/plugins/router/snmp__linksys_poe index c3fa6b88..886326db 100755 --- a/plugins/router/snmp__linksys_poe +++ b/plugins/router/snmp__linksys_poe @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby " =head1 NAME diff --git a/plugins/snmp/snmp_room_alert_ b/plugins/snmp/snmp_room_alert_ index 249c6c12..4114aaf9 100755 --- a/plugins/snmp/snmp_room_alert_ +++ b/plugins/snmp/snmp_room_alert_ @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby # encoding: utf-8 # Plugin to monitor Room Alert 11E environmental units. diff --git a/plugins/ssh/sshd_invalid_countries_ruby b/plugins/ssh/sshd_invalid_countries_ruby index 9a6c11f4..45cc9148 100755 --- a/plugins/ssh/sshd_invalid_countries_ruby +++ b/plugins/ssh/sshd_invalid_countries_ruby @@ -1,4 +1,4 @@ -#!/usr/local/bin/ruby +#!/usr/bin/env ruby # Plugin to monitor the number of invalid access to sshd per country # # Require read permitions for SYSLOG