Ad Widget

Collapse

increasing the timeout value beyond 30 seconds in zabbix_server.conf

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • viks_a
    Junior Member
    • Mar 2012
    • 3

    #1

    increasing the timeout value beyond 30 seconds in zabbix_server.conf

    Can we increase the timeout value in zabbix_server.conf beyond 30 seconds. My perl scripts are taking between 2 - 3 minutes


    Thanks,
    Vikram
  • eskytthe
    Senior Member
    Zabbix Certified Specialist
    • May 2011
    • 363

    #2
    Use item trapper types like here:

    /Erik

    Comment

    • viks_a
      Junior Member
      • Mar 2012
      • 3

      #3
      I have decided to output the value ( 0 for success and 1 for failure ) to a file and then configure the item and trigger which reads the value from the file.

      However the trigger is always getting a value of 0 even though the file contains 1

      Here is the perl code: ( even though i am taking the input from user for $host, I am not using that for processing in the code ),


      my $host="$ARGV[0]";

      GetOptions('file=s' => \$input);

      my $val = `cat $input`;

      if ( $val == 0 ){
      print "0\n";
      exit 0;
      }
      else {
      print "1\n";
      exit 1;
      }



      and here is the expression used in the trigger

      {srx-240-node0:read_file.pl[--file 1.1.1.1.NTP].last(0)}#0

      no matter what's in the file , only 0 is being returned

      Comment

      • ZaBeast
        Member
        • Sep 2019
        • 42

        #4
        You can increase timeout over 30 sec by changing “Timeout” in source file src/zabbix_server/server.c and
        recompiling Zabbix server - follow this step by step tutorial https://bestmonitoringtools.com/incr...rver-or-agent/
        Last edited by ZaBeast; 01-10-2019, 20:03.

        Comment

        • dimir
          Zabbix developer
          • Apr 2011
          • 1080

          #5
          Per-item timeout with a 10 minutes limit is available in 7.0.0alpha5: https://support.zabbix.com/browse/ZBXNEXT-1096

          Comment

          Working...