Ad Widget

Collapse

Create a new item based on file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fernandino
    Junior Member
    • Dec 2010
    • 2

    #1

    Create a new item based on file

    Hello everyone. I'm trying to create a graph for my windows server based on a new item that is supposed to read data from a file generated by s software I created.

    I that even possible? I tried to read somethings in the forum and search things on the web but couldn't find anything. I even saw some posts here that said things like how to capture comments on scripts or graph item with multiple values, but this is not the case. What I need is to read some data on a text file and after that, create a new graph based on it. Does Zabbix does this kind of thing?
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    Sorry to hear your searches did not yield good information.

    This should likely do what you need.
    http://www.zabbix.com/documentation/...ser_parameters

    As for how to write a small script on windows to read the file, sorry I can't offer much help, I'm a Linux guy... ;-) Hopefully that points you in the right direction.
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    • fernandino
      Junior Member
      • Dec 2010
      • 2

      #3
      Here we go

      Hey man TKS A LOT for the answer but i thing I might have lead you to missunderstand 1 thing. I already have s windows script that generates a file with data in it...Like zeros(0) and ones(1).

      I'd like zabbix to read this file as an item so I can generate a graph later, got it?

      Also, the user parameter you sent me are great, but, I didn't really got it... like "UserParameter=wc[*],grep "$2" $1|wc -l" is suppose to match what file to run the wc command? The one passed as a paramenter? If so, can I pass it as a file instead of a variable?

      Tks already

      Comment

      • harishgupta111
        Member
        • Nov 2011
        • 41

        #4
        Please share the solution

        Hi fernandino,

        I am also looking for the same thing. But I didn't get any solution till now. So if you have any solution then please share with me. Thanks in advance.

        Comment

        Working...