check_file_sha256.pl - How to

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
Hij4ck
Posts: 9
Joined: Fri Jul 09, 2021 4:27 am

check_file_sha256.pl - How to

Post by Hij4ck »

Hello everybody,
For my project, i need to install a plugins/scripts who can check the signature of the file (SHA 256).

I'm using Nagios Core 4, on a centOs 8.

I have found this "check_file_sha256.pl" who seems to be perfect for my need, but i'm a trainee and i don't understand how this plugin work.

Can someone explain me how to use it ? My goal is to compare file's checksum against an expected value.

Thanks in advance !
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: check_file_sha256.pl - How to

Post by mcapra »

It would be helpful to know where you got that script from.

This is a pretty comprehensive tutorial for how to leverage custom plugins/scripts in Nagios Core:
https://www.howtoforge.com/tutorial/wri ... ck-plugin/
Former Nagios employee
https://www.mcapra.com/
Hij4ck
Posts: 9
Joined: Fri Jul 09, 2021 4:27 am

Re: check_file_sha256.pl - How to

Post by Hij4ck »

Hello, thanks for your answer.

I get this plugins from https://exchange.nagios.org/directory/P ... 29/details

Then, i follow this installation guide (at the bottom) https://github.com/harisekhon/nagios-plugins.

I managed to install it, i can now execute the plugin and it's working perfectly.

Now my question is : How do i define a command to use this check ?

thanks
Hij4ck
Posts: 9
Joined: Fri Jul 09, 2021 4:27 am

Re: check_file_sha256.pl - How to

Post by Hij4ck »

Hello everyone, if someone already used a plugins like this (check_files, check_file_sha256), can you help me for defining my command.cfg ?

Thanks
Locked