给Linux监控软件Monitorix 3.5添加登录认证密钥
2014-06-15 21:37
447 查看
monitorix是一个不错的Linux系统监控软件。很多可能不懂E文的朋友不知道怎么给Monitorix添加登录密钥。
下面就来简单介绍下吧(Monitorix 安装的很简单,不懂可以留言):
相关配置文件部分:
老外的英文密钥相关在这:
htpasswd This option sets the path to the password file that was created with the help of the htpasswd.pl script. That script encrypts and validates passwords using the system’s crypt() routine. If your Monitorix package doesn’t come with that script, you may use the similar htpasswd(1) program provided with the Apache web server.
The format of the password file consist of one or more lines with a username and password separated by a colon.
The following is an example of a password file:
paul:oGkEsQK6RYIII
peter:HF1r7qRL4Kg6E
Since the script uses the crypt() algorithm, only the first 8 characters of the password are used to form the password. If the supplied password is longer, the extra characters will be silently discarded.
Default value: /var/lib/monitorix/htpasswd
其实很多人卡壳就在怎么生成密钥,下面本人提供一个简单的Perl小脚本,用来生成密钥,添加到
/var/lib/monitorix/htpasswd
即可。
用法:./passwd.pl 密码
OK,这样就可以了。
原文转载本人自:http://www.jincon.com/archives/194/
本人还搞了,#monitorix# 的中文翻译页面(还没翻译完,精力有限,慢慢翻译中):http://monitorix.jincon.com/
下面就来简单介绍下吧(Monitorix 安装的很简单,不懂可以留言):
相关配置文件部分:
<httpd_builtin> enabled = y host = port = 8080 user = nobody group = nogroup log_file = /var/log/monitorix-httpd hosts_deny = hosts_allow = <auth> enabled = y # 这里要改为y msg = Monitorix: Restricted access htpasswd = /var/lib/monitorix/htpasswd </auth> </httpd_builtin>
老外的英文密钥相关在这:
htpasswd This option sets the path to the password file that was created with the help of the htpasswd.pl script. That script encrypts and validates passwords using the system’s crypt() routine. If your Monitorix package doesn’t come with that script, you may use the similar htpasswd(1) program provided with the Apache web server.
The format of the password file consist of one or more lines with a username and password separated by a colon.
The following is an example of a password file:
paul:oGkEsQK6RYIII
peter:HF1r7qRL4Kg6E
Since the script uses the crypt() algorithm, only the first 8 characters of the password are used to form the password. If the supplied password is longer, the extra characters will be silently discarded.
Default value: /var/lib/monitorix/htpasswd
其实很多人卡壳就在怎么生成密钥,下面本人提供一个简单的Perl小脚本,用来生成密钥,添加到
/var/lib/monitorix/htpasswd
即可。
#!/usr/bin/perl use strict; my $pw=$ARGV[0]; print crypt($pw,$pw)."\n";
用法:./passwd.pl 密码
OK,这样就可以了。
原文转载本人自:http://www.jincon.com/archives/194/
本人还搞了,#monitorix# 的中文翻译页面(还没翻译完,精力有限,慢慢翻译中):http://monitorix.jincon.com/
相关文章推荐
- 给Linux监控软件Monitorix 3.5添加登录认证密钥
- Linux 系统监控软件 Monitorix
- 监控软件nagios之添加Linux主机
- secureCRT软件如何用密钥登录linux系统
- linux 本地添加/删除软件
- linux下服务器监控软件
- linux 下三款监控网卡流量的软件iptraf iftop nload
- linux 免用户名登录 (RSA认证登录)
- 打造自己的专属linux(三):添加网络模块,登录界面,开关机
- linux上安装cpu温度监控软件
- Linux下监控网卡流量的软件iftop
- linux服务(二)主流论坛软件使用和虚拟主机及https,认证配置
- linux 下实现本地添加/删除软件的功能
- 服务器间通过ssh使用密钥对实现无密码登录solaris,redhat,linux
- linux 监控软件 Nagios编译安装的详细
- Linux下监控网卡流量的软件iftop和nload
- 通过HISTFILE变量实现在Linux下的用户登录和命令操作的监控
- Linux下监控网卡流量的软件iftop
- Linux下监控网卡流量的软件iftop