LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 09:17 PM   #1
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,347

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, 10:26 PM   #2
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,347

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-18-2012, 11:09 PM   #3
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,347

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

Last edited by divyashree; 11-18-2012 at 11:11 PM.
 
  


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 08:57 AM
[SOLVED] Nagios NRPE problem babaqga Linux - Software 5 09-08-2010 04:08 AM
Installing Nagios agent nrpe, problems following nrpe install steps rfreiberger Linux - Newbie 3 04-19-2010 08:43 AM
Nagios--- NRPE lazylark Linux - Software 1 04-11-2007 01:57 PM
Nagios NRPE twantrd Linux - Software 1 10-20-2004 08:24 AM


All times are GMT -5. The time now is 04:20 AM.

Main Menu
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