Page 1 of 1

Nagios Configuration

Posted: Wed Jan 14, 2009 6:18 pm
by cedross
Hi there,

I am running Scalix 11.3 and I have installed Nagios 3 on a separate server. I have set it up but I am getting errors on a lot of the checks. For most of them the status says:

CHECK_NRPE:Socket timeout after 10 seconds.

Can anyone give me an idea how to fix this? Thanks in advance.

Chirvan

Posted: Fri Jan 16, 2009 7:18 am
by stephan.klein
Hi,

there seems to be a problem, when nagios executes the check-command. Try to execute he command on the command line and check the output. Maybe, there is just a 'sudo' missing.

Here is a working example copied out of my nrpe.cfg

Code: Select all

command[check_scalix_d]=sudo /usr/lib/nagios/plugins/check_daemons.py -d
command[check_scalix_s]=sudo /usr/lib/nagios/plugins/check_daemons.py -s
command[check_clamd]=sudo /usr/lib/nagios/plugins/check_clamd -H /var/run/clamav/clamd.ctl -w 2 -c 5
command[check_mailq]=/usr/lib/nagios/plugins/check_postfix -w 25 -c 80
command[check_spamc]=/usr/lib/nagios/plugins/check_spamc
command[check_scalix_queues]=sudo /usr/lib/nagios/plugins/check_queues.py -c $ARG1$ -w $ARG2$ -q $ARG3$


Regards
Stephan

Command Line Output

Posted: Mon Jan 19, 2009 1:37 pm
by cedross
I am tried using it on the command line and get :

OK - Scalix daemons running.

OK - Scalix services running.

cedross

Command Line Output

Posted: Mon Jan 19, 2009 2:54 pm
by cedross
I am using NRPE and I have run the commands in my nrpe.cfg file from the command line and they all seem to work.