Ad Widget

Collapse

How to pull information(command o/p) from the hosts that are been monitored

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vshah
    Junior Member
    • Nov 2016
    • 7

    #1

    How to pull information(command o/p) from the hosts that are been monitored

    Hello,

    We are using Zabbix3.2 as our primary monitoring tool extensively in our company.

    I have 100s of hosts been monitored (customer's prod+sbox environment)
    I am trying to pull out information of max open files and current open files from tomcat process that's been running in each system.

    I am actively trying to pull out that information, but not sure what should be the right approach.

    cat /proc/[tomcat pid]/limits | grep "Max open files" | awk '{print $5}'ps -ef | grep tomcat
    cat /proc/[tomcat pid]/limits | grep "Max open files" | awk '{print $5}'

    I need to push the o/p of these commands to Zabbix in an custom item.

    Using zabbix-get, remote script, or something else?
    Please advice.
Working...