Questo contenuto non è disponibile nella lingua selezionata.

8. General Resource Questions


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
Copy to Clipboard Toggle word wrap
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
Copy to Clipboard Toggle word wrap

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
Copy to Clipboard Toggle word wrap
Stop the ipv6tables service:
service ip6tables stop
Copy to Clipboard Toggle word wrap
Disable the ipv6tables service:
chkconfig ip6tables off
Copy to Clipboard Toggle word wrap
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"
Copy to Clipboard Toggle word wrap
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
Copy to Clipboard Toggle word wrap
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
Copy to Clipboard Toggle word wrap
Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2025 Red Hat