Page 1 of 1

check_file_sha256.pl - How to

Posted: Tue Aug 03, 2021 2:59 am
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 !

Re: check_file_sha256.pl - How to

Posted: Tue Aug 03, 2021 8:05 am
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/

Re: check_file_sha256.pl - How to

Posted: Tue Aug 03, 2021 9:37 am
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

Re: check_file_sha256.pl - How to

Posted: Fri Aug 06, 2021 1:38 am
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