Requirements to monitor Linux/Unix services using system/service logs:
- FTP server
- User with system privileges (i.e. SELinux) and access to var/log directory
Steps to configure FTP sensor:
- Locate the node where FTP server is installed by either the IP address or the DNS name (to do this follow the instructions below)
- Click on
Network Atlas View -> Network Atlas -> Nodes -> Details(To locate the node by DNS name scroll down the list until you find the node. To locate the node by IP address, click on the search icon in the top right hand corner , and enter the IP you're looking for) Double click on the chosen node -> Press F2- Go to
Monitoring Sensors -> Add Monitoring Sensorfrom the drop down menu chooseFile/FTP - In File path typein the correct file path, and user credentials
- Go to Connection Settings and change them to reflect your FTP server configuration
To Create a failed SSH authorization Alert:
- Locate the node where FTP server is installed by either the IP address or the DNS name (to do this follow the instructions below)
- Click on
Network Atlas View -> Network Atlas -> Nodes -> Details(To locate the node by DNS name scroll down the list until you find the node. To locate the node by IP address, click on the search icon in the top right hand corner , and enter the IP you're looking for) Double click on the chosen node -> Press F2- While in Monitoring Sensors click on
File: FTP -> Add Alert -> Create New Alert on Text Log Entry -> Edit event Definition -> Description(here type: SSH authentication failure) - Configure Severity/State/Application group
- In Match log line by text enter authentication failure (provided the access log matches entry: Oct 2 10:16:00 DnsHostName sshd[30898]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=IPAddress user=userlog )
- Click
OK. At this point you have successfully set up your Alert - Newly created Alerts can be found by going to
Node -> Alert
To Create a failed authorization Alert (non SSH alert):
- Locate the node where FTP server is installed by either the IP address or the DNS name (to do this follow the instructions below)
- Click on Network Atlas View -> Network Atlas -> Nodes -> Details (To locate the node by DNS name scroll down the list until you find the node. To locate the node by IP address, click on the search icon in the top right hand corner , and enter the IP you're looking for)
- Double click on the chosen node -> Press F2
4.While in Monitoring Sensors click on
File: FTP -> Add Alert -> Create New Alert on Text Log Entry -> Edit event Definition -> Description(here type: authentication failure) - Configure Severity/State/Application group
-
In Match log line by text enter check|authentication|password\sfail (provided the access log matches entry: ... Oct 2 10:17:58 DnsHostName unix_chkpwd[31651]: password check failed for user (userlog) ... ... Oct 2 10:17:58 DnsHostName su: pam_unix(su:auth): authentication failure; logname=test uid=1000 euid=0 tty=pts/0 ruser=test rhost=IPAddress user=userlog ... )
-
Before clicking OK check off Regular expression box. Click
OK.
Note:
At this point you have succesfully set up your Alert. Newly created Alerts can be found by going to Node -> Alert