Ad Widget

Collapse

Zabbix External check

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Harry Han
    Junior Member
    • Sep 2015
    • 8

    #1

    Zabbix External check

    Hi Guys.

    I need your help. Thanks in advance!
    I have installed zabbix 2.4.6, and is monitoring a linux host via SNMP. I didn't install any agents on the linux host. Now I'm trying to monitor the "top" status on the linux server using external check.
    my script is quite simple:
    [root@localhost externalscripts]# cat check_top_status.sh
    #/bin/bash
    ps aux |grep top |wc -l

    The script is under the right path and is executable.

    Then I set the following external check configuration in the zabbix GUI.
    Name check_top_status
    Type External check
    Host interface 192.168.1.199:161
    type of information Numeric
    Data type Decimal

    My problem is my zabbix only can get the top status from zabbix server, not the linux server which I want to monitor. I don't know where is wrong as I didn't find any detailed document for external check. Hope you can point out help me resovle the problem. Thanks again!
  • Harry Han
    Junior Member
    • Sep 2015
    • 8

    #2
    oops! missing one:

    key check_top_status.sh

    Comment

    • Firm
      Senior Member
      • Dec 2009
      • 342

      #3
      Feel your script with {HOST.CONN}, {HOST.DNS} or {HOST.IP} macro and run command on this host remotely with ssh.
      Last edited by Firm; 04-03-2016, 02:29.

      Comment

      Working...