Linux Server为什么无法启动NaviAgent
当我们在Linux Server中启动NaviAgent的时候出现报错的情况是怎么回事呢?你知道Linux Server为什么无法启动NaviAgent吗?下面我们就针对这个问题一起去看看解决方法吧。
1. 修改/etc/Navisphere/agent.config,添加如下两行。
system@xxx.xxx.xxx.xxx #SPA IP Address
system@xxx.xxx.xxx.xxx #SPB IP Address
2. 启动NaviAgent服务时,显示失败。
[root@chais Navisphere]# /etc/init.d/naviagent start
Starting Navisphere agent: [FAILED]
3. 修改/etc/hosts如下。
[root@chais Navisphere]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1 localhost.localdomain localhost
xxx.xxx.xxx.xxx testchs.corp.com testchs
3. 重新启动Naviagent,成功。
[root@chais Navisphere]# /etc/init.d/naviagent start
Starting Navisphere agent: [ OK ]
又一篇:
今天遇到一个小问题,一台linux主机修改hostname后就无法启动naviagent服务了
[root@server3]# service naviagent start
Starting Navisphere agent: [FAILED]
查看/var/log/messages,看到如下信息:
Sep 3 13:29:45 server3 Navisphere Agent[12662]: Agent Main -- Net or File event. Err: Local hostname/address mapping unknown; see installation notes
Sep 3 13:32:49 server3 Navisphere Agent[12782]: Agent Main -- Net or File event. Err: Local hostname/address mapping unknown; see installation notes
Sep 3 13:34:25 server3 Navisphere Agent[12858]: Agent Main -- Net or File event. Err: Local hostname/address mapping unknown; see installation notes
查看/etc/sysconfig/network:
[root@server3]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=server3
查看/etc/hosts:
[root@server3]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 server1 localhost.localdomain localhost
原来是系统管理员只改了/etc/sysconfig/network而没有修改/etc/hosts造成的
修改/etc/hosts之后,再启动服务:
[root@server3]# service naviagent start
Starting Navisphere agent: [ OK ]
这样就好了
看完后你知道Linux Server为什么无法启动NaviAgent了吗?如果你也遇到这个情况的话不妨试试小编为大家介绍的方法吧。