Check clamav

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
JBL
Posts: 2
Joined: Fri Oct 05, 2018 1:36 am

Check clamav

Post by JBL »

Hello,

I need check from clamav, the result of diary scan and result of download signatures , I download two scripts but I don't know , how integrate in
the servers, someone can help me ?

Thanks
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Check clamav

Post by npolovenko »

Hello, @JBL. What plugins are you trying to use? Can you provide a link? Usually, plugins on the Nagios exchange have instructions on how to use them in the description. Such as this one:
https://exchange.nagios.org/directory/P ... an/details
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
JBL
Posts: 2
Joined: Fri Oct 05, 2018 1:36 am

Re: Check clamav

Post by JBL »

Hello,

I got this scripts:

https://exchange.nagios.org/directory/P ... in/details
https://exchange.nagios.org/directory/P ... 1539165033

I copied the scripts in /usr/lib64/nagios/plugins

I have edited the file commands.cfg and I have added:

define command {
command_name check_update_clamav
command_line /usr/lib/nagios/plugins/check_clamav $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$
}

But I don't know hot to configure in the server this new command

A greeting , thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check clamav

Post by scottwilkerson »

The example in the exchange listing just shows this running locally, so the command would look something like this

Code: Select all

/usr/local/libexec/nagios/check_clamav -w 3 -c 4 
or

Code: Select all

define command {
command_name check_update_clamav
command_line /usr/lib/nagios/plugins/check_clamav $ARG1$
}
and then you can use the following as $ARG1$ on the service

Code: Select all

 -w 3 -c 4
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked