Check file string and show the output
Posted: Mon Dec 09, 2019 3:45 am
Hi,
I have a bash script that runs every minute and creating a TXT file with the output.
I trying to figure how i can display the output of the TXT file on Nagios GUI and alert according to the output.
for an example, if the TXT file says "OK" - show the output on Nagios GUI and the status will be OK.
If the TXT file says "Problem" - show the output on Nagios GUI and the status will be critical
Appreciate your help.
Thanks
I have a bash script that runs every minute and creating a TXT file with the output.
I trying to figure how i can display the output of the TXT file on Nagios GUI and alert according to the output.
for an example, if the TXT file says "OK" - show the output on Nagios GUI and the status will be OK.
If the TXT file says "Problem" - show the output on Nagios GUI and the status will be critical
Appreciate your help.
Thanks