Ad Widget

Collapse

External Check Type

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pr0d1gy
    Member
    • Jun 2016
    • 31

    #1

    External Check Type

    Hi ,

    I am trying to run a script that checks of mounted volume on host .
    the code :
    Code:
    #!/bin/bash
    $(mount | grep "/Volumes/Work" >/dev/null 2>&1) ; echo $?
    the item:


    the problem is wherever I run the script , on host with mounted(need t get 0) Work volume and on host with unmounted(need t get 1) Work volume I receive the value 1 .
    what is zabbix actually checks then? the ability to run the script and then get the value 1?
    I am little bit confused .

    thanks 4 the helpers
    pr0d
  • pr0d1gy
    Member
    • Jun 2016
    • 31

    #2
    Got it working by UserParameter on host conf file .

    Thanks anyway
    Last edited by pr0d1gy; 03-08-2016, 15:57.

    Comment

    Working...