Page 1 of 1

Check value in a file

Posted: Wed Oct 27, 2021 8:44 am
by fabrossi
Hello everyone!
I need help with this problem. I need to check a value in a file.
From this value I need to create an alarm with this threshold: over 60 is a warning, over 100 is critical.
I searched in the nagios exchange but I only find check_file_content but I don't need this.
Please help me?
Thanks!

Re: Check value in a file

Posted: Mon Nov 08, 2021 4:48 pm
by benjaminsmith
Hi,

Can you post a sample of the contents of the file with the value to check? What is the structure of the file (text, XML, json...etc.).

Thanks,
Benjamin