Useful Links:

Russian locale for NagVis 1.5rc3

Description

Russian locale for NagVis 1.5rc3. Hope this will appear in 1.5 release.

To make NagVis be able to work with utf-8 you should patch to files (and mk_livestatus also, if you use it):

/usr/local/nagvis/share/server/core/definesmatches.php

//define('MATCH_STRING', '/^[0-9a-z\s\:\+\[\]\(\)\_\.\,\-\&\?\!\#\@\=\/\\\]+$/i');                                                                          
//define('MATCH_STRING_EMPTY', '/^[0-9a-z\s\:\+\[\]\(\)\_\.\,\-\&\?\!\#\@\=\/\\\]*$/i');
//define('MATCH_STRING_NO_SPACE', '/^[0-9a-z\:\+\[\]\(\)\_\.\,\-\&\?\!\#\@\=\/\\\]+$/i');
//define('MATCH_STRING_NO_SPACE_EMPTY', '/^[0-9a-z\:\+\[\]\(\)\_\.\,\-\&\?\!\#\@\=\/\\\]*$/i');
// by Alexander Yegorov
define('MATCH_STRING', '/^[0-9a-zа-яё\s\:\+\[\]\(\)\_\.\,\-\?\!\#\=\/\\\]+$/iu');
define('MATCH_STRING_EMPTY', '/^[[0-9a-zа-яё\s\:\+\[\]\(\)\_\.\,\-\?\!\#\=\/\\\]*$/iu');
define('MATCH_STRING_NO_SPACE', '/^[[0-9a-zа-яё\:\+\[\]\(\)\_\.\,\-\?\!\#\@\=\/\\\]+$/iu');
define('MATCH_STRING_NO_SPACE_EMPTY', '/^[[0-9a-zа-яё\:\+\[\]\(\)\_\.\,\-\?\!\#\@\=\/\\\]*$/iu');


/usr/local/nagvis/share/frontend/wui/js/wui.js

156c156,158
< sRegex = sRegex.replace(/\/[igm]*$/, "");
---
> //sRegex = sRegex.replace(/\/[igm]*$/, "");
> // pathced by Alexander Yegorov
> sRegex = sRegex.replace(/\/[iugm]*$/, "");
Submitted By
Alexander Yegorov (boldhedgehog)
Submitted On
2010-06-03
File Size
23.95 Kb
Downloads
131
File Version
0.1
Download
Rating
Total Votes0
Be the first to comment! Please sign in or register.