Check clamav

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Check clamav

Postby JBL » Fri Oct 05, 2018 1:49 am

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

Re: Check clamav

Postby npolovenko » Fri Oct 05, 2018 11:25 am

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/Plugins/Anti-2DVirus/ClamAV/check_clamav_scan/details
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
npolovenko
Support Tech
 
Posts: 2105
Joined: Mon May 15, 2017 5:00 pm

Re: Check clamav

Postby JBL » Wed Oct 10, 2018 5:25 am

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

Re: Check clamav

Postby scottwilkerson » Wed Oct 10, 2018 4:15 pm

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12048
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 20 guests