Ad Widget

Collapse

Read files to validate the data?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mariag
    Junior Member
    • Jun 2010
    • 6

    #1

    Read files to validate the data?

    Hello, i try read files on system, i have the agent on zabbix server. I am currently using the follow item that read the file and found the expression:

    vfs.file.regexp[/sdcard/hola,error]

    This is fine, but i need read the file all along, without search any string. too i need read file and separate the data (value of a variable for a graphic) with ",".

    I not found the way for make. I looked at the functions but is complicated understand . ¿how to read the file and separate several datas?

    thanks
  • ghoz
    Senior Member
    • May 2011
    • 204

    #2
    You have to create scripts on the host that do what you need, an use a UserParameter in the agent's config ...
    no built in function that I know of ...

    (you can also use remote commands, basicaly sending shell commands to the agent, not wise if you care about security.)

    Comment

    Working...