Hi ,
I am trying to run a script that checks of mounted volume on host .
the code :
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
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 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
Comment