Setup Nagios check_clamd

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.
Post Reply
TuqueroIMK852
Posts: 9
Joined: Tue Feb 15, 2022 6:44 am

Setup Nagios check_clamd

Post by TuqueroIMK852 »

I'm getting a (No output returned from plugin) from a host and cannot understand why:

Service on monitor server:

# Check Clamd availability
define service {
hostgroup_name clamd-servers
service_description ClamAV Daemon
check_command check_nrpe!check_clamd
use generic-service
notification_interval 0 ; set > 0 if you want to be renotified
}
Hosts on monitor:

# Clamd Servers
define hostgroup {
hostgroup_name clamd-servers
alias ClamAV servers
members fsmvps
}
nrpe_local.fcfg on host fsmvps

command[check_clamd]=/usr/lib/nagios/plugins/check_clamd -H /var/run/clamav/clamd.ctl
Running the command /usr/lib/nagios/plugins/check_clamd -H /var/run/clamav/clamd.ctl on the host will produce the following output as clam is up and running:

CLAMD OK - 0.000 second response time on socket /var/run/clamav/clamd.ctl [PONG]|time=0.000219s;;;0.000000;10.000000
Clueless at the moment as to why no output is echatspin echatrandom returned as I'm a beginner on Nagios.
Last edited by TuqueroIMK852 on Mon Nov 28, 2022 11:51 pm, edited 1 time in total.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Setup Nagios check_clamd

Post by gormank »

Are you testing as the nagios user?
Post Reply