Re: [Nagios-users] Execute program on remote host

2010-10-23 Thread Jonas Kellens
On 10/23/2010 11:49 AM, Andreas Ericsson wrote: > On 10/23/2010 11:38 AM, Jonas Kellens wrote: >> I want Nagios to activate the backup server (host C), when the >> production server (host B) has problems. >> >> > Look through the docs for eventhandlers.

[Nagios-users] Execute program on remote host

2010-10-23 Thread Jonas Kellens
Hello list, is the following setup possible : host A : Nagios Server host B : server being monitored host C : backup server If Nagios (host A) can not ping host B (or any other check via nrpe), can Nagios then execute a command on host C ?? I want Nagios to activate the backup server (host

[Nagios-users] RE CHECK_NRPE: Error - Could not complete SSL handshake.

2009-11-09 Thread jonas kellens
As rpm -qa shows, I have the openssl-devel package installed : [nag...@itcenter1 ~]$ rpm -qa | grep ssl openssl-devel-0.9.8e-12.el5 app-ssl-5.0-10 openssl-0.9.8e-12.el5 What would then be my ??? /usr/bin/openssl /usr/include/openssl /usr/include/openssl/aes.h /usr/include/openssl/asn1.h /usr/in

[Nagios-users] CHECK_NRPE: Error - Could not complete SSL handshake.

2009-11-09 Thread jonas kellens
Probably one of the most asked questions. I don't know why in my case things aren't working. [nag...@itcenter1 ~]$ ps aux |grep nrpe nagios9194 0.0 0.1 8220 1712 ?Ss 08:39 0:00 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d nagios 12480 0.0 0.0 3936 748

[Nagios-users] Print only one line of text

2009-11-07 Thread jonas kellens
I read the following on http://nagiosplug.sourceforge.net/developer-guidelines.html#PLUGOUTPUT : 2.1. Print only one line of text Nagios will only grab the first line of text from STDOUT when it notifies contacts about potential problems. If you print multiple lines, you're out of luck (though thi

[Nagios-users] Need help with configuration of NRPE !

2009-11-06 Thread jonas kellens
I'm having a lot of difficulty with a plugin that monitors SIP peers on my Asterisk-server. I've been breaking my head for about a week now... This is the configuration of NRPE : [nag...@vps ~]$ vi /etc/xinetd.d/nrpe # default: on # description: NRPE (Nagios Remote Plugin Executor) service nrpe

Re: [Nagios-users] nrpe[6183]: [ID 813741 daemon.error] Error: Could not complete SSL handshake. 1

2009-11-02 Thread jonas kellens
I am running the nrpe-plugin as part of xinetd. I had the same issue till I made the following setting in /etc/xinetd.d/nrpe : service nrpe { flags = REUSE socket_type = stream port= 5666 wait= no user= nagio

[Nagios-users] Nagios check_asterisk_peers needs rights to question the Asterisk-server

2009-11-02 Thread jonas kellens
When executing the following command : [r...@nagios ~]# /usr/local/nagios/libexec/check_nrpe -H ip_address -c check_asterisk_peers I get the following output : NRPE: Unable to read output Somewhere Nagios does not have enough rights to question Asterisk about the sip peers. These are the right

Re: [Nagios-users] MySQL-plugin : how to use it ??

2009-11-02 Thread jonas kellens
export PERL5LIB=/usr/local/nagios/libexec/ solved the problem. Jonas. > > The file is already there : > > > > bash-3.2# locate utils.pm > > /usr/local/nagios/libexec/utils.pm > > /usr/src/nagios-plugins-1.4.14/contrib/packet_utils.pm > > /usr/src/nagios-plugins-1.4.14/plugins-scripts/utils.pm >

Re: [Nagios-users] MySQL-plugin : how to use it ??

2009-10-31 Thread jonas kellens
This is the output when placing the perl-files in /usr/local/nagios/libexec/ : bash-3.2# /usr/local/nagios/libexec/check_mysql_threads --help bash: /usr/local/nagios/libexec/check_mysql_threads: No such file or directory bash-3.2# /usr/local/nagios/libexec/check_mysql_threads.pl Can't locate uti

[Nagios-users] MySQL-plugin : how to use it ??

2009-10-31 Thread jonas kellens
I have found the following Nagios plugin to monitor MySQL : bash-3.2# wget http://oss.isg.inf.ethz.ch/nagiosplug/download/MySQL-1.3.tgz bash-3.2# ls AUTHORS ChangeLog check_mysql.pl check_mysql_slow.pl COPYING VERSION build.sh check_mysql_bytes.pl check_mysql_queries

Re: [Nagios-users] CONFIG ERROR! Reload aborted. Check your Nagios configuration.

2009-10-31 Thread jonas kellens
This helped indeed. Good advice. Thanks. Jonas. > On Sat, 2009-10-31 at 13:40 +0100, Natxo Asenjo wrote: > > > hi, > > > > > > have you done this: > > > > > > http://nagios.sourceforge.net/docs/3_0/verifyconfig.html > > > > > > it usually tells you where the error are in your configuratio

[Nagios-users] CONFIG ERROR! Reload aborted. Check your Nagios configuration.

2009-10-31 Thread jonas kellens
In /usr/local/nagios/etc/objects I have created a new asterisk.cfg : [r...@nagios objects]# ls -al -rw-r--r-- 1 nagios nagios 1483 Oct 31 12:03 asterisk.cfg -rw-rw-r-- 1 nagios nagios 7714 Oct 30 19:30 commands.cfg -rw-rw-r-- 1 nagios nagios 2166 Oct 30 19:30 contacts.cfg -rw-rw-r-- 1 nagios na

Re: [Nagios-users] You don't have permission to access /nagios/ on this server

2009-10-30 Thread jonas kellens
Thanks for your reply, Mark. PHP is not installed. I did not know that PHP was necessary for Nagios. I followed this guide : http://www.thegeekstuff.com/2008/05/nagios-30-jumpstart-guide-for-red-hat-overview-installation-and-configuration and http://nagios.sourceforge.net/docs/2_0/installing.html

[Nagios-users] You don't have permission to access /nagios/ on this server

2009-10-30 Thread jonas kellens
Dear list, I have installed nagios from source. Then executed the following commands : [r...@nagios nagios-3.2.0]# chown nagios.nagios /usr/local/nagios/ [r...@nagios nagios-3.2.0]# make install-webconf [r...@nagios ~]# htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin In my /us

Re: [Nagios-users] /etc/xinetd.d/nrpe "only_from"-param for check_nrpe based on hostname

2009-10-30 Thread jonas kellens
ing a VPN-connection. My Nagios-server @ home will then always have the IP 10.10.8.2 or something like that... Would that sound safer to you ? Greetingz, Jonas. On Fri, 2009-10-30 at 11:03 -0500, Marc Powell wrote: > On Oct 30, 2009, at 9:12 AM, jonas kellens wrote: > > > Hello th

[Nagios-users] /etc/xinetd.d/nrpe "only_from"-param for check_nrpe based on hostname

2009-10-30 Thread jonas kellens
Hello there ! I'm new to the list and rather new to Nagios also... I have the following question : I have the NRPE-plugin for Nagios running as part of the Xinetd-service on a remote server, this is its config : bash-3.2# cat /etc/xinetd.d/nrpe # default: on # description: NRPE (Nagios Remote P