LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-18-2012, 05:27 PM   #1
dave0821
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Rep: Reputation: Disabled
Nagios check_nrpe returns no output but works in the terminal


Good day,
I am looking for a little help in configuring NAGIOS for NRPE. I am quite new at Linux and seem to be having some trouble getting this working.
I am running Ubuntu 11.10 with the Nagios 3.3.1 core and Nagios plugins 1.4.15 running nrpe2.13
Currently I am trying to get the Nagios Exchange plugin check_be.exe to work with Nagios. I followed the check_be.txt for the setup on my nagios server and windows backup exec server.

Currently if I run root@PERSES:/usr/local/nagios/libexec# ./check_nrpe -H 192.168.1.10 -t200 -c check_be I will get
Job: Daily Backup, Success, Date:17/4/2012

From Nagios all I get is no output returned from plugin.

Windows.cfg has the following entry

# Service for Backup Exec agent
define service {
use template-backupexec
service_description BackupExec - Daily DAT backup ; specific display name, if you need
host_name remote.server
}

Templates.cfg has this entry – I have tried to modify it to avoid the socket timeout

define service{
name template-backupexec
use generic-service
service_description BackupExec Job Check ; default display name in Nagios
check_command check_nrpe! -t 240 -c check_be ; same name as in the nsclient++ nsc.ini command defini$
normal_check_interval 60 ; your check intervals here
retry_check_interval 60
register 0 ; this is a template
}

Commands.cfg

# 'check_nrpe' command definition
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDESS$ -p 5666 -v $ARG1$
}


Any ideas would be greatly appreciated



Dave
 
Old 04-19-2012, 12:46 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

One thing pops out instantly. You're running it as root! Thus it might be a permission problem since Nagios does not run as root. Change to the nagios user and try to run the plugin.

Kind regards,

Eric
 
Old 05-02-2012, 12:17 AM   #3
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello Dave,

Are you still looking for a solution to your problem or did you find an answer to your questions? Can you give us an update?

Kind regards,

Eric
 
Old 05-02-2012, 10:06 AM   #4
dave0821
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Seem the issue was with the time out on my command. completely reinstalled everything from scratch - ubuntu up and went thru with a fine tooth comb.. It's working now with the command in commands.cfg
# 'check_bex' command definition
define command {
command_name check_bex
command_line $USER1$/check_nrpe -H 192.168.1.10 -t240 -c check_be
}

a template setup like this in template.cfg
define service{
name template-backupexec
use generic-service
service_description BackupExec Job Check ; default display name in Nagios
check_command check_bex ; same name as in the nsclient++ nsc.ini command definiti$
contact_groups admins
normal_check_interval 60 ; your check intervals here
retry_check_interval 60
register 0 ; this is a template
}

and the service set up in windows.cfg
# Backup Exec

define service {
use template-backupexec,graph
service_description BackupExec - Daily DAT backup ; specific display name, if you need
host_name server.domain
contact_groups admins
}


but its working now so thats all that really amtters in the end

Thanks
 
  


Reply



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
Nagios: CHECK_NRPE: Error - Could not complete SSL handshake jonaskellens Linux - Newbie 8 08-23-2014 01:56 PM
[SOLVED] [NAGIOS] can't find check_nrpe after 'yum install check_nrpe' di11rod Linux - Software 4 06-29-2011 01:52 PM
Touchpad works, 'synclient -m 100' returns one line of zeros stani Linux - Desktop 0 01-18-2010 03:57 PM
Grep on output of command returns all output traigo Linux - Newbie 2 02-24-2009 05:15 PM
C shell $? status returns output dayalan_cse Programming 6 09-22-2007 09:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:35 PM.

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
Open Source Consulting | Domain Registration