Issue in updating Watched Clients on Airwave

MVP Expert
MVP Expert
Problem:

Issue in updating Watched Clients on Airwave

Below is the screenshot of the Client where we have tried to make it as watched client from Client Detail page. When we select the radio button to "Yes" and "save", but the radio button goes back to "No" and the client is not added as a watched client.


 



Diagnostics:

We can verify the error_log for the client MAC which we tried to update as watched client. Here in the error_log we noticed the below messages

Use of uninitialized value $hostname in string eq at /usr/local/airwave/lib/perl/Mercury/Config/Hostname.pm line 81, <$__ANONIO__> line 513.

error opening '/var/log/system/client/AF/44_00_10_2C_0A_AF/audit.log' for '>>' writing: No such file or directory

Use of uninitialized value in subroutine entry at /usr/local/airwave/lib/perl/Mercury/Utility/Network.pm line 163, <$__ANONIO__> line 396.

Use of uninitialized value in gethostbyaddr at /usr/local/airwave/lib/perl/Mercury/Utility/Network.pm line 163, <$__ANONIO__> line 396.

Use of uninitialized value $hostname in string eq at 

We can verify the permissions of /var/log/system/client directory.

When we manually create a directory under /var/log/system/client using the last two digits of the MAC address of a random client and changed the permission to 777, changed the ownership and group to apache, then we are able to add that client as a watched client on the customer's server

# cd /var/log/system/client

# mkdir <last 2 digits of MAC>

# chmod 777 <Directory Name>

As the Client count is huge manually creating the directory for each client would be difficult.

 



Solution

We have collected the Backup to restore in lab by doing a fresh install, it worked in lab using Customer backup without any issues and we are able to make the client as watched client in lab Server

From lab Server we have copied the entire “client” directory (/var/log/system/client directory)  to Customer’s AMP.

After copying the “client” directory to Customer’s Server, we need to give permissions as below.

# chown -R apache:apache /var/log/system/

Once done with the permissions we are to able to make the client as watched client.

We have also tried with new clients and random clients, able to make the client as watched client and vice versa on Customer's AMP.

 

Version history
Revision #:
2 of 2
Last update:
‎09-18-2019 10:14 AM
Updated by:
 
Labels (1)
Contributors
Tags (2)
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: