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.)
I created an item called SSL Check using the following key vfs.file.contents[/tmp/SSLResults.txt,ANSI]
I then created a plain text widget on the dashboard and called the item to be displayed in the window.
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
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.)
I created an item called SSL Check using the following key vfs.file.contents[/tmp/SSLResults.txt,ANSI]
I then created a plain text widget on the dashboard and called the item to be displayed in the window.
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
Comment