contrib/collectd.lua: s/dofile/require/
[collectd.git] / contrib / collectd.lua
1 -- contrib/collectd.lua
2 --
3 -- Auxilliary functions to use in plugins written in Lua. Load this file using
4 --   require ("collectd.lua");
5 -- at the beginning of your script.
6
7 function collectd_error (msg)
8         return (collectd_log (3, msg));
9 end
10
11 function collectd_warning (msg)
12         return (collectd_log (4, msg));
13 end
14
15 function collectd_notice (msg)
16         return (collectd_log (5, msg));
17 end
18
19 function collectd_info (msg)
20         return (collectd_log (6, msg));
21 end
22
23 function collectd_debug (msg)
24         return (collectd_log (7, msg));
25 end
26