LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-17-2015, 04:21 AM   #1
janve
LQ Newbie
 
Registered: Aug 2003
Distribution: Slackware
Posts: 16

Rep: Reputation: 1
sudo settings for nagios / nrpe check_mailq


Have been googling around for a solution to make check_mailq work (on Slackware64 14.1).
Finally found it at https://www.cyberz.org/blog/2009/01/...o-read-output/. This is finally my configuration:

nrpe.cfg:
command[check_mailq]=sudo /usr/libexec/nagios/check_mailq -w 6 -c 50

and /etc/sudoers:
nagios ALL=(ALL) NOPASSWD:/usr/libexec/nagios/check_mailq

Hope it saves someone's time.

Jan
 
Old 08-18-2015, 03:22 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
TY.
Posted to take this Q off the "0 replies" list.
 
  


Reply

Tags
nagios, nrpe, sudo



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 NRPE : local host to/from server Nagios bcostacurta Linux - Server 2 07-29-2015 02:53 PM
[SOLVED] Nagios/NRPE jrb328 Linux - Software 3 05-30-2012 08:57 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:00 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