Page 1 of 1

Check clamav

Posted: Fri Oct 05, 2018 1:49 am
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

Re: Check clamav

Posted: Fri Oct 05, 2018 11:25 am
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

Re: Check clamav

Posted: Wed Oct 10, 2018 5:25 am
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

Re: Check clamav

Posted: Wed Oct 10, 2018 4:15 pm
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