Novell Cool Solutions

ZLM PHP Script to Monitor the Bundle Installation Status



By:

January 17, 2008 5:08 am

Reads:6,058

Comments:0

Score:Unrated

Print/PDF

License:
free

Download zlm_bundle_installed

Short Description:

This small php script allows you to easily monitor the installation status of your bundles.

Audience:

For all zlm administrators that have the problem to assign a bundle to a big number of devices (eg. 200) and get just 175 response messages from the devices. So which one have not installed it is the great question and should be answered using this script.

Server Requirements:

  • Zenworks Linux Management 7.x
  • PostgreSQL must be your zlm database
  • You need a PHP enabled web server with the following packages installed (sample from a sles 10 system), I think version below should also work:
    • php5-xmlreader-5.1.2
    • php5-pgsql-5.1.2
    • php5-5.1.2
    • php5-mysql-5.1.2
    • php5-ldap-5.1.2
    • php5-mysqli-5.1.2
    • php5-dom-5.1.2

Installation:

Copy the php file to the DocumentRoot of the web server (/srv/www/htdocs by default).

Configuration:

In the script you have to change a view lines for authentication information to zlm:

  1. line 40 and 60: put in the zlm server name
  2. line 43: put in the password of the zlm Administrator account
  3. line 63: put in the postgresql password from the file /etc/opt/novell/zenworks/serversecret

If you would like to use the zlm last contact information as well you have to do two more configurations:

  1. line 70: this is the time offset from UTC to your local time (Austria/Vienna is 3600 = 1 hour)
  2. line 69: if the last contact is out of this value mark the last contact field as warning (21600 = 6 hours)

Documentation:

After everything is ready access the file from a browser using the following url:

http://<web server name>/zlm_bundle_installed.php

Here is the initial screen that shows all bundles that are assigned to any device, folder or group.
Bundles that are not assigned anywhere aren’t listed:

After you select a bundle and submit the query the php script connects to the object store (edirectory) of zlm and searches for all assignments for that bundle. It collects them all, gathers some informations from the data store (postgresql) and builds the list of effected devices and their current status. The last row “Installed” will show you if the selected bundle is installed on that device. The web page will automatically refresh every 10 seconds so you see if something changes during a software distribution.

If you have problems with the script feel free to contact me.

Rainer Brunold

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading...Loading...

Tags:
Categories: Uncategorized

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

Comment

RSS