Check osad service status in Satellite


RedHat Satellite server allows user to push the updates or run the command remotely in a ‘real time’ manner. The backend services for this feature are osa-dispatcher, jabberd and osad. osa-dispatcher periodically check the database to see if any clients have actions they need to perform. If there are, it sends the messages through jabberd to the osad process that is running on the client. If the client is behind the satellite proxy, then the message is forwarded by the proxy.

Selection_024

I don’t see anywhere in Satellite page to allow user to see the overall number of all servers’ osa status. So I wrote a python script to do the work. It looks this:

[jchen@fedora scripts]$ ./osa_status.py

Please login https://satellite-server-fqdn-here/rpc/api
Username: jchen
Password:
Please wait…
###############################
Total servers: 798
Online OSA servers: 734
Offline OSA servers: 25
Unknown OSA servers: 39
###############################

Type online, offline or unknown to see more. Or type X to exit:

The script can be found here.

Updates

05/02/2015: new version allows user to query a list of given servers. syntax: ./osa_status.py -a or ./osa_status.py -i <serverlist>

Reference:

https://fedorahosted.org/spacewalk/wiki/OsadHowTo
https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.6/pdf/API_Overview/Red_Hat_Satellite-5.6-API_Overview-en-US.pdf
https://access.redhat.com/solutions/38854

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s