z

Commercial Support Clients: Clients with support contracts can get escalated support assistance by visiting Nagios Answer Hub. These forums are for community support services. Although we at Nagios try our best to help out on the forums here, we always give priority support to our support clients.

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.

check_file_sha256.pl - How to

Postby Hij4ck » Tue Aug 03, 2021 2:59 am

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

Re: check_file_sha256.pl - How to

Postby mcapra » Tue Aug 03, 2021 8:05 am

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/
User avatar
mcapra
 
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: check_file_sha256.pl - How to

Postby Hij4ck » Tue Aug 03, 2021 9:37 am

Hello, thanks for your answer.

I get this plugins from https://exchange.nagios.org/directory/Plugins/Others/check_file_sha256-2Epl-%28Advanced-Nagios-Plugins-Collection%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

Postby Hij4ck » Fri Aug 06, 2021 1:38 am

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


Return to Open Source Nagios Projects

Who is online

Users browsing this forum: Google [Bot] and 17 guests