Use Case:
Consider a Java process being monitored by our server monitoring agent. Every time the process is restarted, the process arguments might change. During this scenario, the process will be marked as Down and it wont be changed to the Up status even after the process being restarted successfully.
Problem Statement:
The user has to delete the existing Java process and add the same process again with the newly discovered arguments in order to mark it up for monitoring.
Solution:
With an update to the latest version of the Linux agent 16.4.0, we have extended support for providing Regular Expressions (RegEx) to match a set of process arguments.
For the above case, let's assume the initial argument for the Java process was like:
/usr/bin/java -Dosgi.requiredJavaVersion=1.8 -start_time 1504249532
On restarting the process, it gets altered to the following:
/usr/bin/java -Dosgi.requiredJavaVersion=1.8 -start_time 124830290
A sample Regex that can be used for this case is as follows:
(.*)start_time\s?([0-9]{1,10})
where,
(.*) - matches anything
\s - matches white space
0-9 - a single character in the range between 0 and 9
1,10 - matches between 1 and 10 as many times as possible
Once RegEx is enabled, the Linux monitoring agent will match the running process argument with the configured RegEx and determine the status of the process.
RegEx is supported for Windows Process also. Please ensure the Windows agent version is 19.5.0 and above.
Related Articles
Steps to install Linux monitoring agent in custom platforms/distributions
If you want to install the Site24x7 Server Monitoring agent in platforms/flavors other than Debian, Ubuntu, CentOS, RedHat, Madriva, Fedora, Suse, Amazon Linux, Gentoo, CoreOS, Raspberry Pi (requires Python 3 and above), ARM Processor (requires ...
Site24x7 Linux Agent modifications to "/etc/passwd" and "/etc/shadow" files - FIM Events
Scenario You may see the Site24x7 Linux agent modifying files associated with the operating system. Reason The /etc/passwd and /etc/shadow files are critical operating system files that store user account information on a server. The Site24x7 Linux ...
How to fix a SSL connection error when downloading the Site24x7 Linux server monitoring agent installer
In a few scenarios, when you try to download the Site24x7 Linux server monitoring agent installer, an SSL connection failure error message will display. Follow the instructions below based on your use case to fix this error. Prerequisite: For ...
Silent installation of Linux On-Premise Poller
You can perform a silent installation of an On-Premise Poller on a Linux server. Additionally, proxy configuration can also be set during this process. Execute the following commands in your terminal 64 bit OS: sudo wget ...
FAQs related to Windows Service monitoring
After installing APM Insight Windows service monitoring agent , if you don't see data in the Site24x7 console, or if you are unable to add monitors, kindly follow the below given steps to troubleshoot. If few monitors are not getting added: Check for ...