Ad Widget

Collapse

UserCommand timeout

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • martin_d
    Junior Member
    • Aug 2007
    • 1

    #1

    UserCommand timeout

    I execute rkhunter (rootkit detector) as a UserCommand. When testing with "zabbix_agentd -p" is usually takes about 5 minutes to complete the scan and to eveluate the result correctly (I use grep & wc -l to return 0 or 1).
    But when testing with "zabbix_get -s Hostname -k rkhunter.warn", the result is always 0, even if it should be 1.

    Is there a timeout for UserCommands or some other reason?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    It is very bad idea to run long scripts in such way. It will be timeouted after 3 or 5 seconds be default, yet the process will continue.

    It slows down ZABBIX server as well.

    Please use combination of crontab and zabbix_sender instead.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    Working...