diff --git a/misc/munin/wormhole_channels b/misc/munin/wormhole_channels index 10e5f2c..4b306b2 100755 --- a/misc/munin/wormhole_channels +++ b/misc/munin/wormhole_channels @@ -12,7 +12,7 @@ import os, sys, time, sqlite3 def count_events(): serverdir = os.environ["serverdir"] dbfile = os.path.join(serverdir, "relay.sqlite") - if not os.path.exists("relay.sqlite"): + if not os.path.exists(dbfile): print "cannot find relay.sqlite, please set env.serverdir" sys.exit(1) db = sqlite3.connect(dbfile) diff --git a/misc/munin/wormhole_errors b/misc/munin/wormhole_errors index aa73b5f..07f4a82 100755 --- a/misc/munin/wormhole_errors +++ b/misc/munin/wormhole_errors @@ -12,7 +12,7 @@ import os, sys, sqlite3 def count_events(): serverdir = os.environ["serverdir"] dbfile = os.path.join(serverdir, "relay.sqlite") - if not os.path.exists("relay.sqlite"): + if not os.path.exists(dbfile): print "cannot find relay.sqlite, please set env.serverdir" sys.exit(1) db = sqlite3.connect(dbfile) diff --git a/misc/munin/wormhole_events b/misc/munin/wormhole_events index 3c15ea9..c934bd5 100755 --- a/misc/munin/wormhole_events +++ b/misc/munin/wormhole_events @@ -12,7 +12,7 @@ import os, sys, sqlite3 def count_events(): serverdir = os.environ["serverdir"] dbfile = os.path.join(serverdir, "relay.sqlite") - if not os.path.exists("relay.sqlite"): + if not os.path.exists(dbfile): print "cannot find relay.sqlite, please set env.serverdir" sys.exit(1) db = sqlite3.connect(dbfile) diff --git a/misc/munin/wormhole_messages b/misc/munin/wormhole_messages index aa3e5af..3dc6acd 100755 --- a/misc/munin/wormhole_messages +++ b/misc/munin/wormhole_messages @@ -12,7 +12,7 @@ import os, sys, time, sqlite3 def count_events(): serverdir = os.environ["serverdir"] dbfile = os.path.join(serverdir, "relay.sqlite") - if not os.path.exists("relay.sqlite"): + if not os.path.exists(dbfile): print "cannot find relay.sqlite, please set env.serverdir" sys.exit(1) db = sqlite3.connect(dbfile) diff --git a/misc/munin/wormhole_transit b/misc/munin/wormhole_transit index 49646cb..4b881d5 100755 --- a/misc/munin/wormhole_transit +++ b/misc/munin/wormhole_transit @@ -12,7 +12,7 @@ import os, sys, sqlite3 def count_events(): serverdir = os.environ["serverdir"] dbfile = os.path.join(serverdir, "relay.sqlite") - if not os.path.exists("relay.sqlite"): + if not os.path.exists(dbfile): print "cannot find relay.sqlite, please set env.serverdir" sys.exit(1) db = sqlite3.connect(dbfile)