Check value in a file

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
fabrossi
Posts: 2
Joined: Mon Apr 29, 2019 7:48 am

Check value in a file

Post 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!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Check value in a file

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked