by Brad Bartholomew
This IDM Driver monitoring solution searches eDirectory for IDM Drivers, checks their status, looks up the TAO file size, and sends an email alert if the TAO file size exceeds the threshold you specify. You can also setup a web interface to view the results. Here are the installation instructions.
- Copy the drvmon.tgz file to the /root/ directory or another of your choice. Untar the drvmon.tgz file.
# tar zxvf drvmon.tgz
- Modify the ldap.conf file with the details for your eDirectory instance that contains your IDM driver(s). If you have multiple instances of eDirectory that contain IDM drivers, then copy and create an instance of ldap.conf for each. You can name the conf file specific to your eDirectory instance - idv.conf.
# vi /root/drvmon/ldap.conf
- Modify the drivers.sh if the ldap.conf file was renamed or if you have multiple instances. If you have multiple instances copy the perl line, adding the new ldap.conf file created.
# vi /root/drvmon/drivers.sh
- Create a crontab entry similar to the following if you want the driver monitored every five minutes and the logs archived nightly:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /root/drvmon/drivers.sh
0 0 * * * /root/drvmon/archdriver.sh
- To integrate with apache, copy the drivers.xsl file to the apache web directory (i.e. /var/www) and include the idm-drivers.conf file to the httpd.conf file.
You can then access the driver status via: http://yourserver/drivers/drivers.xsl
You can also use the drivers.html file by modifying it to referece the url above.
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
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, test, test before you do anything drastic with it.