Ad Widget

Collapse

UserParameter, Windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MarkusL
    Member
    • Nov 2008
    • 41

    #1

    UserParameter, Windows

    Hi All!

    The last hour I was on getting UserParameter to run without using any parameter in my command-line-string.

    Now, I finished and finally got it to work :-)
    So I want to share my experience.

    My System:
    Zabbix 1.6.1 (Ubuntu Srv 8.10 64bit) with Windows-Agent 1.6.1 (Win 2003 Srv Standard)


    Item-Key: myinfo[]
    zabbix_agentd.conf: UserParameter=myinfo[*],type C:\windows\myfile.ini | grep MyInfo | cut -f2 -d"="

    The point is to give the Item-Key the empty [] and also give the UserParameter the[*]. So no parameter is added.
    Without these [] and[*], I was not successful, no matter what I tried,...


    I would be interested in your experience.


    Kind regards,

    Markus.
    Last edited by MarkusL; 03-01-2009, 16:28.
  • FrankTM
    Junior Member
    • Jun 2007
    • 10

    #2
    grep and cut in Windows? kinda cool

    Anyhoo..
    I've used php to create userparameters on windows (and linux/freebsd)

    It's easy and quick to write, and honestly... I wouldn't know what else to use on Windows, as .bat files are capable of pretty much nothing.

    Comment

    • MarkusL
      Member
      • Nov 2008
      • 41

      #3
      Hi FrankTM,

      yeah, the linux-tools for Windows are a great help for me :-)
      Here they are for download:
      Download UnxUtils for free. Port of the most important GNU utilities to Windows

      You have to select another mirror, the first one is down at the moment.

      Well, the only reason why I use batch / cmd is, it´s the only language I can handle,...
      But, I am pretty good and everything I wanted up to now was working fine. RAID-Controller-parameters with cli-tools, read / grep and cut infos out of log-files from Backup Exec or Acronis True Image to get daily result of the backups, same for monitoring download-version of virusscan and so on.

      It works great :-)


      Kind regards,

      Markus.

      Comment

      • Hotzenwalder
        Junior Member
        • Apr 2008
        • 11

        #4
        Markus,

        Is is possible to post your items, triggers, templates etc for Back-up Exec and VirusScan so we can learn from it?

        Comment

        • MarkusL
          Member
          • Nov 2008
          • 41

          #5
          Hi Hotzenwalder,

          I will start a new thread for that. It´s not part of the discussion here.


          Kind regards,

          Markus.

          Comment

          Working...