Ad Widget

Collapse

I have a code, but also not supported zabbix, How can we use?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • karzer
    Member
    • Mar 2010
    • 61

    #1

    I have a code, but also not supported zabbix, How can we use?

    I have a code, but also not supported zabbix, How can we use?
    Important, needed. Waiting for your help

    Main batch file
    Code:
    for /f %%f in ('dir /b /o-d /tc d:\*.txt') do type %%~ff | find /c "aborted" & goto :quitLoop
    :quitLoop
  • MTWiley
    Junior Member
    • Jul 2011
    • 16

    #2
    Originally posted by karzer
    I have a code, but also not supported zabbix, How can we use?
    Important, needed. Waiting for your help

    Main batch file
    Code:
    for /f %%f in ('dir /b /o-d /tc d:\*.txt') do type %%~ff | find /c "aborted" & goto :quitLoop
    :quitLoop
    I think using the zabbix sender is probably what you're looking for. Since it looks like you're writing that script for windows if I'm not mistaken, you'd need to create a batch file that executes your code and puts that into a variable. then you'd add a line that sends that variable to the zabbix server using the zabbix sender. something along the lines of C:\Path to Zabbix Sender\zabbix_sender.exe -z [Zabbix Server IP] -p [Server port 10051 by default] -s [hostname] -k [key(makeup a unique key in the zabbix front end when creating the item)] -o [your variable]

    If you're confused or have any questions feel free to ask and I'll try to point you in the right direction.

    Comment

    Working...