Ad Widget

Collapse

Simulate a nodata for external scripts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #1

    Simulate a nodata for external scripts

    Hi,

    I'd like to simulate in an external scripst (bash) the NODATA condition ... So zabbix notice the nodata and save it in the Database

    I don't know the value to return and if it's possible ?

    I've read the source code ... but i dont know more

    any idea please ?

    I'v tested :
    - return nothing => item unsupported
    - return a null string => value save by zabbix was 0
    - return FAIL => value save by zabbix was 0
    - return TIMEOUT_ERROR => value save by zabbix was 0
    - kill the process himself => item unsupported
    - A hugly sleep of 50s => intem unsupported

    Thnk in advance,

    alx
    http://www.alixen.fr/zabbix.html
  • bashman
    Senior Member
    • Dec 2009
    • 432

    #2
    May be you could have an agent on your zabbix server to execute a query every ten minutes to check if there is updated data.
    978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

    Comment

    Working...