Ad Widget

Collapse

vfs.file.contents not displaying on Dashboard

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dunnsland
    Member
    • Dec 2021
    • 81

    #1

    vfs.file.contents not displaying on Dashboard

    I created a a check on my Dashboard to display the expiry date of my SSL certificates on my domains. It is a simple bash script that drops the results into a text file.
    This has been working for the last 3 some years and then the other day I noticed that it was an empty display.

    The script that I have drops a text file into the /tmp dir.

    The contents of the file is below.
    cat /tmp/SSLResults.txt

    22-10-2023 = e2snail.com (61 days)
    28-10-2023 = dunnsland.com (67 days)
    22-10-2023 = dawnsdays.com (61 days)
    22-10-2023 = icanevents.net (61 days)
    22-10-2023 = hockeysticks4clubs.com (61 days)

    All I did was created a plain text widget and used vfs.file.contents[file,type] image attached zabbix1.png (error uploading or pasting images to this ticket.)

    Click image for larger version

Name:	image.png
Views:	570
Size:	8.7 KB
ID:	469252

    I created an item called SSL Check using the following key vfs.file.contents[/tmp/SSLResults.txt,ANSI]

    Click image for larger version

Name:	image.png
Views:	510
Size:	34.1 KB
ID:	469253
    I then created a plain text widget on the dashboard and called the item to be displayed in the window.
    Click image for larger version

Name:	image.png
Views:	504
Size:	24.5 KB
ID:	469254
    Looking at the logs I see no errors.

    4124741:20230822:220725.590 In substitute_key_macros_impl() data:'vfs.file.contents[/tmp/SSLResults.txt,ANSI]'
    4124741:20230822:220725.590 End of substitute_key_macros_impl():SUCCEED data:'vfs.file.contents[/tmp/SSLResults.txt,ANSI]'
    4124741:20230822:220725.590 In get_value() key:'vfs.file.contents[/tmp/SSLResults.txt,ANSI]'
    4124741:20230822:220725.590 In get_value_agent() host:'Zabbix server' addr:'127.0.0.1' key:'vfs.file.contents[/tmp/SSLResults.txt,ANSI]' conn:'unencrypted'
    4124741:20230822:220725.591 Sending [vfs.file.contents[/tmp/SSLResults.txt,ANSI]

    Can anyone please tell me why the text has stopped being displayed on my dashboard.

    Thanks
    Lawrence​
    Last edited by dunnsland; 22-08-2023, 22:14.
  • Answer selected by dunnsland at 29-08-2023, 00:15.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    You have "do not keep history" set. no history, no values to display...

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #2
      You have "do not keep history" set. no history, no values to display...

      Comment

      Working...