Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Monitor JAVA Process with JPS

Automatic Monitor JAVA Process and Add Alarm In Zabbix

Created By.Farid Arjmand

Update in Server

ansible-playbook PID.yaml --extra-vars "chmod=0755 owner=zabbix" -K

Default Variable

  - chmod : 0755
  - owner : zabbix
  - srcsh : /root/PID/PID.sh
  - srcconf : /root/PID/PID.conf
  - destsh : /etc/zabbix/scripts/
  - destconf : /etc/zabbix/zabbix_agent.conf.d/

Zabbix template installation

This guide will step you through the import of the PID.xml monitoring template.

Import the template

  1. Save the XML template file to a convenient location
  2. Open the Zabbix console
  3. Navigate to Configuration > Templates
  4. Click the Import button
  5. Select the downloaded PID.xml file
  6. Tick the Create new / Screens checkbox
  7. Click Import

Zabbix User Parameter

run multi parameter and switch with zabbix

UserParameter=PID[*],$HOME/zabbix_agent/scripts/PID.sh $1

PID.sh Script

- json                    # Show New Json Process as json for zabbix
- reload                  # cache jps -ml for Fast Runing and Better Performance
- uniq                    # Find Uniq Verb in Process for Monitoring
- all                     # Show Number of All Process
- app                     # Show Number of appuser Process

or use Process Name In First parameter for Show PID

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published

Languages