LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 11-18-2012, 10:17 PM   #1
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,356

Rep: Reputation: 135Reputation: 135
Unhappy multipe nrpe commands in nagios


I have configured nrpe in 2 linux hosts. One is configured with SSL Handshake enabled and another is with SSL disabled.

Now in my server commands.cfg is configured like this which by default use SSL handshake, but for which ssl is disable one extra agument is requied (-n) with check_nrpe command i.e.

Code:
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -n -c $ARG1$
Code:
define command{
        command_name check_nrpe
        command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
        }
How will I add both types of nrpe commands in commands.cfg for different hosts.
I added both in different lines and it throws error;
Code:
CHECK_NRPE: Error receiving data from daemon.
 
Old 11-18-2012, 11:26 PM   #2
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,356

Original Poster
Rep: Reputation: 135Reputation: 135
In command line manually running nrpe commands for both remote hosts is working fine from nagios server.
 
Old 11-19-2012, 12:09 AM   #3
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,356

Original Poster
Rep: Reputation: 135Reputation: 135
Yes, I did it using on-demand macros in commands.cfg.

Last edited by divyashree; 11-19-2012 at 12:11 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Nagios/NRPE jrb328 Linux - Software 3 05-30-2012 09:57 AM
[SOLVED] Nagios NRPE problem babaqga Linux - Software 5 09-08-2010 05:08 AM
Installing Nagios agent nrpe, problems following nrpe install steps rfreiberger Linux - Newbie 3 04-19-2010 09:43 AM
Nagios--- NRPE lazylark Linux - Software 1 04-11-2007 02:57 PM
Nagios NRPE twantrd Linux - Software 1 10-20-2004 09:24 AM


All times are GMT -5. The time now is 10:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration