LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-19-2012, 07:16 AM   #1
ripprapp
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Rep: Reputation: Disabled
NRPE: Monitor network connectivity from host?


Hi,
I have a Linuxserver with an NRPE client installed. I want that NRPE client being able to ping serveral other IP-adresses.

This to check that the network connectivity is ok from the actual host.

Maybe this is really easy, but I am new to the monitor world so...

Any ideas?
 
Old 06-20-2012, 03:54 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
it IS really easy, yes. You just configure the nagios server to run the check_ping command (or whatever you want) with check_npre instead of directly from the box. so as much as any old nrpe example will run check_disk or such, you just run something else. there's a example of the dog leg check you want in here... http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf
 
1 members found this post helpful.
Old 06-20-2012, 06:57 AM   #3
ripprapp
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi!
Thanks for the direction.

As nrpeuser I can execute for instance the check_ntp as below.

nrpeuser@suse-server:/<path>/plugins> ./check_ntp -H 127.0.0.1
NTP OK: Offset -1.311302185e-06 secs|offset=-0.000001s;60.000000;120.000000;

But I am not allowed to to do the check_icmp command.

nrpeuser@suse-server:/opt/op5/plugins> ./check_icmp -H 127.0.0.1

Warning: This plugin must be either run as root or setuid root.
To run as root, you can use a tool like sudo.
To set the setuid permissions, use the command:
chmod u+s yourpluginfile
check_icmp: Failed to obtain ICMP socket: Operation not permitted


I played around trying to give nrpeuser rights to use the command using sudoers but did not succeed...

And how should that be specified when running it using check_nrpe?
 
  


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] check_log nrpe error: Connection refused by host sekreto Linux - Software 3 07-07-2011 02:53 AM
using nsclient++ with nrpe to monitor event logs centosboy Linux - Software 2 10-06-2010 03:18 AM
Installing Nagios agent nrpe, problems following nrpe install steps rfreiberger Linux - Newbie 3 04-19-2010 09:43 AM
Monitor current network traffic to a give host ulver Linux - Networking 1 10-29-2009 06:41 AM
Network connectivity from Centos VM under XP host tulsi Linux - Newbie 7 08-22-2009 05:43 PM

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

All times are GMT -5. The time now is 10:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration