Ad Widget

Collapse

Direstory Size sending with script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gergelyk3
    Member
    • Oct 2010
    • 32

    #1

    Direstory Size sending with script

    Hi Im monitoring the server's directories size with script. The script send information in one txt file which contains this parameters

    SERVER_NAME directory.name size

    zabbix_sender.exe" -vv -z xxx.xxx.xxx.xxx -p 10051 -i "c:\data.txt"



    on the server I have some trap items with this data
    Type : Zabbix Trapper
    key: directory.name
    units: bytes

    Every ports opened. I tested it with telnet.

    Last month I got a responsible to this server. Im a new administrator and I cant connect the latest. Im alone with this problem
    Last edited by gergelyk3; 27-10-2010, 11:23.
  • MrKen
    Senior Member
    • Oct 2008
    • 652

    #2
    Originally posted by gergelyk3

    on the server I have some trap items with this data
    Type : Zabbix Trapper
    key: directory.name
    units: bytes
    In your Item configuration, what do you have for 'Type of Information'? Numeric (unsigned)?

    Using zabbix_sender with -vv should produce some output in the zabbix_agent.log. Is there anything in the log?

    MrKen
    Disclaimer: All of the above is pure speculation.

    Comment

    • gergelyk3
      Member
      • Oct 2010
      • 32

      #3
      hi MrKen

      1. The 'Type of Information' is 'Numeric (unsigned)'

      2. vith -vv the sender not make a log file, but in the .conf I set this.

      Comment

      • MrKen
        Senior Member
        • Oct 2008
        • 652

        #4
        What you could try is to send a single piece of data by zabbix_sender for testing. Something like:

        zabbix_sender.exe -vv -z xxx.xxx.xxx.xxx -p 10051 -s SERVER_NAME -k directory.name -i 12345

        If that works, then that means zabbix_sender is working.

        Maybe you have a permissions problem with c:\data.txt. Is Zabbix able to read this file?

        MrKen
        Disclaimer: All of the above is pure speculation.

        Comment

        • gergelyk3
          Member
          • Oct 2010
          • 32

          #5
          After I collect this command with real parameters I get this message:

          zabbix_sender.exe [5648] Warning: Cannot open [12345] [No such file or directory]

          If I write other numbers to 12345 the sender write this message with the numbers.

          why?

          Comment

          • MrKen
            Senior Member
            • Oct 2008
            • 652

            #6
            That doesn't make any sense!

            You are using Command Prompt to send the command? Yes?

            c:\zabbix_sender.exe -vv -z xxx.xxx.xxx.xxx -p 10051 -s SERVER_NAME -k directory.name -i 12345

            where SERVER_NAME is replaced with a real Zabbix Hostname
            and directory.name is replaced with a real Item name of type Zabbix Trapper


            So, what happens when you type zabbix_sender.exe --help

            MrKen
            Disclaimer: All of the above is pure speculation.

            Comment

            • gergelyk3
              Member
              • Oct 2010
              • 32

              #7
              I found the problem.
              In my Zabbix hostname not equal the hostname which contains the script.

              In zabbix : WSRV - SERVER
              In script: SERVER

              this cause the problem

              Thank you the help.
              Best regards

              Gergely
              from
              Hungary

              Comment

              Working...