Chinaunix

标题: 监控邮件出现vts报错信息的问题小结 [打印本页]

作者: hb_xiaojun    时间: 2006-04-23 16:11
标题: 监控邮件出现vts报错信息的问题小结
故障现象:
有两台sun系统的/var/adm/messages中都出现与sunvts相关的错误信息。
主机h3ccomm-or
20060301020000: Mar  1 01:38:51 h3ccomm-or inetd[451]: [ID 858011 daemon.warning] /opt/SUNWvts/bin/sunvts: Hangup
20060301020000: Mar  1 01:45:21 h3ccomm-or inetd[451]: [ID 858011 daemon.warning] /opt/SUNWvts/bin/sunvts: Hangup
主机h3crnd03-lc
Feb 28 23:48:08 h3crnd03-lc vtsk[19576]: [ID 530472 user.error] Kerberos mechanism library initialization error: No profile file open.
Feb 28 23:48:38 h3crnd03-lc vtsk[19581]: [ID 530472 user.error] Kerberos mechanism library initialization error: No profile file open.
故障分析/解决:
远程登陆后,发现/usr/sbin/inetd -s进程开启了/opt/SUNWvts/bin/sunvts -g,而且sunvts的PID是不断变化的。
$ ps -ef | grep sunvts
   root  4646  451  0   Feb 28 ?        0:00 /opt/SUNWvts/bin/sunvts -g
osadmin  5414  5410 0   10:31:24 pts/2 0:00 grep sunvts
$ ps -ef | grep 451
    root   451     1  0   Aug 28 ?        0:03 /usr/sbin/inetd -s
    root  1563   451  0   Nov 29 ?        0:00 in.telnetd
  daemon  2246   451  0   Feb 28 ?        0:00 rpc.cmsd
    root  2241   451  0   Feb 28 ?        0:00 rpc.rstatd
    root  2349   451  0   Feb 28 ?        0:00 dr_daemon
osadmin 27894 27884  0 15:44:31 pts/2    0:00 grep 451
    root 27881   451  0 15:44:06 ?        0:00 in.telnetd
    root  2333   451  0   Feb 28 ?        0:00 rpc.ttdbserverd
    root  2239   451  0   Feb 28 ?        0:00 sadmind
    root  4646  451  0   Feb 28 ?        0:00 /opt/SUNWvts/bin/sunvts -g
在/etc/inetd.conf中也包含相关的vts条目
$ more /etc/inetd.conf | grep vts
100153/1     dgram   rpc/udp wait root /opt/SUNWvts/bin/sunvts /opt/SUNWvts/bin/sunvts -g
因为sunvts的PID是不断变化的,因此无法直接使用kill将其杀掉。应该按如下步骤处理:
1. 查看/opt/SUNWvts/bin/.sunvts_sec_gss文件,如果RPC_SEC_GSS被设置为ON,则将其该为OFF。
2. 使用pkill-HUP inetd 指令重启 inetd 进程。
长久的方法是修改/etc/inetd.conf文件,将包含sunvts的条目屏蔽掉。


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/372/showart_103820.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2