Error ‘The Logon User Interface DLL NWGINA.DLL failed to load’ instead of a login prompt


I had removed the Novell Netware client from an XP workstation and received this error message after a reboot. It’s simply a registry key that hasn’t been deleted during the Novell client uninstall process.

Restart the PC in Safe Boot mode. Open the registry and locate the following key:
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogonGinaDLL

The value is set to NWGINA.DLL

Double click the GinaDLL key and change the value to MSGINA.DLL

Restart the PC and you should now have a Windows login prompt.

Advertisements

How to install the latest Nagios plugins into Groundwork Community Edition


Installing additional Nagios plugins

Download the latest Nagios plugins from http://nagiosplugins.org/

Unzip them and copy them to a location on your Linux server, in my case CentOS that is hosting your GroundWork server

Log in as root and open up a terminal session. Change directory to the location of your nagios plugins

Run the configure script to initialize variables and create a Makefile. I found the correct syntax here http://archive.groundworkopensource.com/groundwork-opensource/trunk/monitor-core/nagios/plugins-gwcustom/compile-plugins.txt

It would be worth checking your configuration to ensure that the directories match up

./configure –prefix=/usr/local/groundwork/nagios –with-trusted-path=/usr/local/groundwork/bin:/usr/local/groundwork/sbin:/bin:/sbin:/usr/bin:/usr/sbin –with-cgiurl=/usr/local/groundwork/apache2/cgi-bin/nagios –with-perl=/usr/local/groundwork/perl/bin/perl –with-openssl=/usr/local/groundwork/ –with-mysql=/usr –with-fping-command=/usr/local/groundwork/sbin/fping –with-snmpget-command=/usr/local/groundwork/common/bin/snmpget –with-snmpgetnext-command=/usr/local/groundwork/common/bin/snmpgetnext

Compile the plugins with the following command:

make

Install the compiled plugins and plugin scripts with the following command which will copy the plugins into /usr/local/groundwork/nagios/libexec:

make install

I restarted my server to be on the safe side but am sure that a restart of nagios and gwservices would suffice

For all NetWare servers that you wish to monitor you will need to ensure that the MRTGEXT.NLM module is loaded on each Netware server

How to monitor Netware servers using the check_nwstat command in GroundWork Community Edition and Nagios


Pre-requisites

Netware servers need to be running the MRTGEXT.NLM module

The latest Nagios plugins required to be installed in the plugin directory

Creating the specific check command

In Groundwork from the toolbar Select Configurations > Commands and then New

Select USER1 as the resource macro that points at the plugin directory at /usr/local/groundwork/nagios/libexec

In the Plugin: drop down menu select check_nwstat

Click Next

image001

As I was initially wanting to check the free disk space on volumes I created a command that would check this.

In command name I typed NWVolume_PercentFree

In Type: select check

For the command line I used the check_nwstat command with the VPF (Volume Percentage FREE) syntax:

$USER1$/check_nwstat -H $HOSTADDRESS$ -v VPF$ARG1$ -w $ARG2$ -c $ARG3$

image002

Click Add then Continue

We have now created the command that will check percentage free disk space. We now need to create services that will use the command with specific variables set for ARG1, ARG2 and ARG3.

Creating the specific service check

Select Configuration > Services and New Service

I created a SysSpaceFree service using the generic-service

image003

Click Add then select the Service Check tab

In the Check command drop down menu select NWVolume_Percent Free

In the Command line: field we need to substitute values for ARG1, ARG2 and ARG3:

For ARG1 substitute the name of the volume to be checked so in this case SYS

For ARG2 substitute the WARNING value. I have selected 25 which means that Nagios will create a Service warning when the disk percentage free drops to 25% free

For ARG2 substitute the CRITICAL value. I have selected 10 which means that Nagios will create a Service critical warning when the disk percentage free drops to 10% free

My amended command line looks like this:

NWVolume_PercentFree!SYS!25!10

You can test by adding in a Netware server that is running the MRTGEXT.NLM into the Test: Host: field

image004

Click Save

Commit the changes by selecting Configuration > Control > Commit and then Commit

Applying the service to the host

Apply in the normal way – Configuration > Hosts. Locate your host and selectDetail then the Services tab.

Select the service and select Add Services

Follow the commit process to make the service check of the host possible

Creating further NetWare service checks

In this instance we created a service that will check the percentage free on SYS. This service can therefore be applied to any NetWare server that has a SYS volume.

To create another volume service check simply clone the service that you created, rename it and change the ARG1 variable to a different volume name.

To create different Netware service checks create a new command using the check_nwstat plug-in but with different variables.

A list can be found here:

http://nagiosplugins.org/man/check_nwstat

How to shutdown or restart a Netware server at the system console


At the server system console prompt type either:

To stop the Netware server and exit to the local operating system type DOWN and then hit the enter key at the server system console prompt. If prompted to confirm overtype the pre-entered ‘N’ with‘Y’

To stop the Netware server and reboot the physical server type RESTART SERVER and then hit the enter key at the server system console prompt. If prompted to confirm overtype the pre-entered ‘N’ with‘Y’

How to install or replace a license key in Kaspersky Anti-Virus 5.7 for Novell Netware


If your license key is expiring and you need to replace it or you just need to register a license key after a fresh install of Kaspersky then there are two methods.

You can register the key using the ConsoleOne Kaspersky Anti-Virus snap-in or you can create a local or group task in the Admin Kit that will deploy the license after an existing license expires.

I personally prefer the ConsoleOne method as I know it works really well.

Using ConsoleOne

Open ConsoleOne and select the Kaspersky Anti-Virus 5 snap-in.

Navigate through your NDS tree until you find the correct server.

Right click on the server and select ‘Properties’

In the ‘General’ tab select the ‘Register license key’ button

image001

Select ‘Add key’ and browse to the location of your license key. Select the key and click ‘Apply’

image002

If you have a key that is about to expire you can also delete it here after you have added your new key. In theory I think that you could also leave the new key as a second key which would automatically take over if the first key expired.

Finally stop and restart Kaspersky on the Netware server. To do this connect to the console and at the system console type unload klabav and once it has stopped type load klabav

The new license key should be evident in the ‘serial no’ field in the Kaspersky Anti-Virus Module screen on the Netware server console

Using Admin Kit

If you are familiar with Admin Kit then the task is a simple one.

Create a group task within your Netware Group or within whatever group your Netware servers reside.

image003

Select ‘Next’ at the ‘New Task Wizard’ prompt

image004

Name the task and click ‘Next’

image005

Select ‘Kaspersky Anti-virus 5.7 for Novell Netware’ and ‘License key installation’ from task type

image006

Select the ‘Browse’ button and locate your license key. Click ‘Next’

image007

Schedule the task to run ‘Manually’ and click ‘Next’

image008

Finally, click ‘Finish’

This new Group Task should now be visible to all the Netware servers.

Open the Properties page of a server and select the ‘Tasks’ tab. You will see the task listed. To run it simply right click it and select ‘Start’

image009

Error message ‘ERROR 32 (0x00000020) Changing File Attributes’ when running Robocopy followed by ‘The process cannot access the file because it is being used by another process. Waiting 30 seconds…’


I was experiencing issues when backing up a local directory to a Netware drive. The files would eventually write but after a few attempts and 30 seconds per attempt. The files were not locked by any process and even after I tested with a dummy directory with dummy files I had the same result.

The syntax that I was using was fairly standard and I ruled out a permissions issue as I could create a folder pair in MS SyncToy which was able to copy files without any issue.

My only way around this was to change the retry time from 30 seconds to 1 second by adding the /W:1 switch at the end of the line:

Robocopy error

C:\Backup\robocopy.exe c:\test\ g:\test\ /MIR /W:1 >c:\Backup\test.log

I can only assume that this was an NDS related error and the Netware volume didn’t like the way that the Robocopy process was writing to it.

How to manually update the Kaspersky antivirus definition files on Netware servers


Having experienced a large number of problems with the update process on Netware servers running Kaspersky 5.70.xx I generally find that I have to manually update the virus definition files.

Fortunately, Kaspersky do maintain 3 different update files that when applied will bring the client definitions up to date. Unfortunately, unlike McAfee the update file is not a single exe but instead a series of zip files that need to be merged to compile a repository of the latest  definition files.

Kaspersky have 3 files that are updated regularly:

  • A cumulative zip archive contains all antivirus databases released till the last Sunday. It is updated once a week on Sunday
  • A weekly zip archive has all updates of threat signatures that were released last week (from Sunday till Sunday). The archive is updated on the servers once a week on Sunday
  • A daily zip has all updates of threat signatures released since last Sunday till the present moment. As Kaspersky Lab releases updates every hour the archive is updated every hour too

The update files are available here http://www.kaspersky.com/avupdates

On a PC/workstation

  • If your antivirus  definitions are older than a week old then you will need to download the cumulative zip file and the daily zip file. This combination will provide all antivirus definitions.
  • Create a folder on your workstation and extract all the files from the cumulative zip file into it.
  • Next, extract all the files from the daily zip file. Copy these files into the same folder that contains the cumulative files and overwrite any files when prompted.

Prepare the Netware server

  • If you use the Kaspersky Administration Kit check that the server is not currently trying to update. End any update processes
  • At the Netware server system console unload the Klabav.nlm by typing unload klabav
  • Type m kl* at the console will list any modules that are open. Only the klnagent.nlm should be running. If any instances of klabscan.nlm are running stop these by typing unload klabscan
  • Copy all the contents in the root of KLAB\Bases into the KLAB\Bases\Backup directory and overwrite files when prompted

Files to be backed up

  • Delete all the files in the root directory just leaving the backup directory
  • Copy all the latest files made from the merging of the cumulative and daily definitions to the KLAB\Bases directory
  • At the Netware server system console load the Klabav.nlm by typing load klabav
  • Check the klab Kaspersky Anti-Virus for Novell Netware program screen top check that the ‘Last Update’ field is correctly updated

Netware console