Ad Widget

Collapse

Multi Threaded Script on Agent ??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Umair
    Member
    • Feb 2007
    • 86

    #1

    Multi Threaded Script on Agent ??

    Hello,
    I have a general question.
    I have a Perl script which works dynamically on different files by accepting file names as parameters.
    Now, after i assign an Item (thereby passing filename) and the corresponding trigger to it.
    Can i assign more Items to the same script with passing different filenames as parameters.

    I already tried this thing and the agent was giving me the following error :

    GOT SIGPIPE. Where it came From ?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    UserParameter=flexible[*],script.sh $1

    flexible[/etc/passwd], 'script.sh /etc/passwd' will be executed
    flexible[/var/log/something], 'script.sh /var/log/something' will be executed
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • Umair
      Member
      • Feb 2007
      • 86

      #3
      Thank you Alexei,
      Its working perfectly.!

      Comment

      Working...