How To Install tenshi on Debian 9
Introduction
In this tutorial we learn how to install tenshi
on Debian 9.
What is tenshi
tenshi is:
Tenshi is a log monitoring program, designed to watch one or more log files for lines matching user defined regular expressions and report on the matches. The regular expressions are assigned to queues which have an alert interval and a list of mail recipients.
Queues can be set to send a notification as soon as there is a log line assigned to it, or to send periodic reports.
Additionally, uninteresting fields in the log lines (such as PID numbers) can be masked with the standard regular expression grouping operators ( ). This allows cleaner and more readable reports. All reports are separated by hostname and all messages are condensed when possible.
The program reads a configuration file and then forks a daemon for monitoring the specified log files.
There are three methods to install tenshi
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install tenshi Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install tenshi
using apt-get
by running the following command:
sudo apt-get -y install tenshi
Install tenshi Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install tenshi
using apt
by running the following command:
sudo apt -y install tenshi
Install tenshi Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install tenshi
using aptitude
by running the following command:
sudo aptitude -y install tenshi
How To Uninstall tenshi on Debian 9
To uninstall only the tenshi
package we can use the following command:
sudo apt-get remove tenshi
Uninstall tenshi And Its Dependencies
To uninstall tenshi
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove tenshi
Remove tenshi Configurations and Data
To remove tenshi
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge tenshi
Remove tenshi configuration, data, and all of its dependencies
We can use the following command to remove tenshi
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge tenshi
Dependencies
tenshi have the following dependencies:
References
Summary
In this tutorial we learn how to install tenshi
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.