Rev 2042 | Rev 2047 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 2042 | Rev 2046 | ||
|---|---|---|---|
| Line 97... | Line 97... | ||
| 97 | */ |
97 | */ |
| 98 | 98 | ||
| 99 | /* Function to add new rrd config on atomic command line interface */ |
99 | /* Function to add new rrd config on atomic command line interface */ |
| 100 | function RRDTool_AddConfig(alias_name, variable_name, push_interval, store_name, rrd_filename, rrd_data_source_name) |
100 | function RRDTool_AddConfig(alias_name, variable_name, push_interval, store_name, rrd_filename, rrd_data_source_name) |
| 101 | { |
101 | { |
| - | 102 | if (arguments.length < 6) |
|
| - | 103 | { |
|
| - | 104 | Log("\033[31mNot enough parameters given.\033[0m\n"); |
|
| - | 105 | return false; |
|
| - | 106 | } |
|
| - | 107 | ||
| 102 | /* In case RRD_Tool() is not called from autostart.js yet */ |
108 | /* In case RRD_Tool() is not called from autostart.js yet */ |
| 103 | if (RRD_Tool_Config == null || RRD_Tool_StoredData == null || RRD_Tool_Timers == null) |
109 | if (RRD_Tool_Config == null || RRD_Tool_StoredData == null || RRD_Tool_Timers == null) |
| 104 | { |
110 | { |
| 105 | RRD_Tool_Config = "RRD_Tool_config"; |
111 | RRD_Tool_Config = "RRD_Tool_config"; |
| 106 | RRD_Tool_StoredData = new Array(); |
112 | RRD_Tool_StoredData = new Array(); |