Nagios Error Nrpe Unable To Read Output
Contents |
Start here for a quick overview of the site Help Center Detailed answers to any questions nrpe unable to read output centos you might have Meta Discuss the workings and policies of this
Nrpe Unable To Read Output Check_disk
site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers nrpe unable to read output sudo or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network
Nrpe: Unable To Read Output Check_mem
administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Nagios: NRPE: Unable to read output, Can't find the reason, can you? up vote 5 down vote favorite 1 I have nrpe unable to read output python a Nagios server and a monitored server. On the monitored server: [root@Monitored ~]# netstat -an |grep :5666 tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN [root@Monitored ~]# locate check_kvm /usr/lib64/nagios/plugins/check_kvm [root@Monitored ~]# /usr/lib64/nagios/plugins/check_kvm -H localhost hosts:3 OK:3 WARN:0 CRIT:0 - ab2c7:running alpweb5:running istaweb5:running [root@Monitored ~]# /usr/lib64/nagios/plugins/check_nrpe -H localhost -c check_kvm NRPE: Unable to read output [root@Monitored ~]# /usr/lib64/nagios/plugins/check_nrpe -H localhost NRPE v2.14 [root@Monitored ~]# ps -ef |grep nrpe nagios 21178 1 0 16:11 ? 00:00:00 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d [root@Monitored ~]# On the Nagios server: [root@Nagios ~]# /usr/lib64/nagios/plugins/check_nrpe -H 1.1.1.159 -c check_kvm NRPE: Unable to read output [root@Nagios ~]# /usr/lib64/nagios/plugins/check_nrpe -H 1.1.1.159 NRPE v2.14 [root@Nagios ~]# When I check another server in the network using the same command it works: [root@Nagios ~]# /usr/lib64/nagios/plugins/check_nrpe -H 1.1.1.80 -c check_kvm hosts:4 OK:4 WARN:0 CRIT:0 - karmisoft:running ab2c4:running kidumim1:running travel2gether1:running [root@Nagios ~]# Running the check locally using Nagios account: [root@Monitored ~]# su - nagios -bash-4.1$ /usr/lib64/nagios/plugins/check_kvm hosts:3 OK:3 WARN:0 CRIT:0 - ab2c7:running alpweb5:running istaweb5:running -bash-4.1$ Running th
• All times are UTC - 6 hours [ DST ] Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss http://stackoverflow.com/questions/19569350/nrpe-unable-to-run-custom-perl-script-return-code-1-output-nrpe-unable-to-r the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow http://www.linuxquestions.org/questions/linux-server-73/nrpe-unable-to-read-output-with-a-twist-4175456513/ Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping unable to each other. Join them; it only takes a minute: Sign up nrpe unable to run custom perl script: Return Code: 1, Output: NRPE: Unable to read output up vote 1 down vote favorite 1 I'm trying to implement a custom perl nagios script to check for rogue dhcp servers remotely with nrpe. On the central server when i unable to read run: /usr/local/nagios/libexec/check_nrpe -H 10.9.0.25 -c check_roguedhcp In my debugging logs i'm seeing this: Host is asking for command 'check_roguedhcp' to be run... Running command: sudo /usr/lib64/nagios/plugins/check_roguedhcp.pl Command completed with return code 1 and output: Return Code: 1, Output: NRPE: Unable to read output Locally if i run the script (even as the nrpe user) I get the expected output. On the local server my /etc/nagios/nrpe.cfg has the following settings: command[check_roguedhcp]=sudo /usr/lib64/nagios/plugins/check_roguedhcp.pl command[check_dhcp]=sudo /usr/lib64/nagios/plugins/check_dhcp -v nrpe_user=nrpe nrpe_group=nagios ps aux shows nrpe is running as user nrpe (nrpe is in group nagios) nrpe 5941 0.0 0.1 52804 2384 ? Ss 08:25 0:00 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d I've added the command to /etc/sudoers %nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios64/plugins/check_dhcp, /usr/lib64/nagios/plugins/check_roguedhcp.pl on my central server that does the nrpe calls, i have the following service groups and configurations: define servicegroup{ servicegroup_name rogue_dhcp alias All dhcp monitors } define service{ name security-service servicegroups rogue_dhcp register 0 max_check_attempts 1 } Nagios can run any other check_users etc script via nrpe on this server. Here's the perl script itself, though we
Tutorials/Articles Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Server [SOLVED] NRPE: Unable to read output (With a twist) User Name Remember Me? Password Linux - Server This forum is for the discussion of Linux Software used in a server related context. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out thin