Skip to content

Discover Linux by utilizing the content of /etc/passwd file. Al least Zabbix 4.2 required

Notifications You must be signed in to change notification settings

aigarskadikis/linux-user-discovery-zabbix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Discover Linux users having bash environment.

Utilize the file /etc/passwd and JavaScript preprocessing feature to feed the file into low-level discovery. This will allow us to monitor some files per user profile.

IMAGE ALT TEXT

Dependencies

Zabbix server

Must have at least version 4.2 because of "JavaScript preprocessing feature" and "Discard unchanged" feature.

Zabbix agent

It is suggested to run Zabbix agent under the root environment to be able to access anything in each user profile.

AllowRoot=1

Items

Pick up bash history:

logrt[{#PATH}/.bash_history*,,utf8]

Pick up MySQL history:

logrt[{#PATH}/.mysql_history*,,utf8]

Take a backup of .bashrc file. Usefull if you invent your own command alias

vfs.file.contents[{#PATH}/.bashrc,utf8]

About

Discover Linux by utilizing the content of /etc/passwd file. Al least Zabbix 4.2 required

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published