検索

このコンテンツは選択した言語では利用できません。

8. General Resource Questions

download PDF
Q: I deleted a Platform from inventory. How can I rediscover it, so I can re-import it?
Q: On a Red Hat Enterprise Linux platform, interface "sit0" is discovered, but it is always red. How can I remove this interface from inventory?
Q: How can I collect syslog messages as JBoss ON events?
Q: Executing a script resource fails on Red Hat Enterprise Linux.
Q:
I deleted a Platform from inventory. How can I rediscover it, so I can re-import it?
A:
You can force an agent discovery by issuing the following command at the agent command prompt:
> discovery -f
Q:
On a Red Hat Enterprise Linux platform, interface "sit0" is discovered, but it is always red. How can I remove this interface from inventory?
A:
Because network adapters are child services, there is currently no way to tell JBoss ON to ignore them or not inventory them.
However, there is an easy way to disable this interface on the machine itself. If you have root or sudo access to the box, disable all IPv6 support.
Change the NETWORKING_IPV6 value in /etc/sysconfig/network:
NETWORKING_IPV6=no

Warning

Disabling this interface will disable IPv6 support.
Then, edit /etc/modprobe.conf to include the following lines:
alias net-pf-10 off
alias ipv6 off
Stop the ipv6tables service:
service ip6tables stop
Disable the ipv6tables service:
chkconfig ip6tables off
Q:
How can I collect syslog messages as JBoss ON events?
A:
The Linux platform plug-in can monitor syslog messages by emitting them as events. Syslog messages can be collected by the plug-in by either reading syslog message files or by receiving them over a socket listener.
The syslog must be configured to format the messages in a way that JBoss ON can parse. You can either tell JBoss ON (in the platform's plug-in configuration or connection properties) what regular expressions can parse syslog messages, or format the messages in the syslog config file (/etc/rsyslog.conf) so that JBoss ON understands. For example:
$template RHQfmt,"%timegenerated:::date-rfc3339%,%syslogpriority-text%,%syslogfacility-text%:%msg%\n"
If you then use RHQfmt in the syslog configuration so it writes messages out in that format, JBoss ON understands the log messages fully. For example:
$template RHQfmt,"%timegenerated:::date-rfc3339%,%syslogpriority-text%,%syslogfacility-text%:%msg%\n"
*.* /var/log/messages-for-rhq;RHQfmt
*.* @@127.0.0.1:5514;RHQfmt
That both writes syslog messages to /var/log/messages-for-rhq and sends the messages over TCP to a listener on port 5514, as configured in the platform's connection properties.
Q:
Executing a script resource fails on Red Hat Enterprise Linux.
A:
If invoking the Execute operation on a script resource, it immediately fails with an error message saying that the script cannot be executed, then ensure that the script itself is executable. Set the script to execute:
chmod a+x scriptname
Red Hat logoGithubRedditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

© 2024 Red Hat, Inc.