[ nagiosplug-Patches-3573821 ] Please add "use sudo" option to check_mailq
SourceForge.net <[email protected]>
| Newsgroups | gmane.network.nagios.plugins.devel |
|---|---|
| Message-ID | <[email protected]> |
Patches item #3573821, was opened at 2012-10-02 08:11 Message generated for change (Tracker Item Submitted) made by chris_schultz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3573821&group_id=29880 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Christopher Schultz (chris_schultz) Assigned to: Nobody/Anonymous (nobody) Summary: Please add "use sudo" option to check_mailq Initial Comment: Using check_mailq 1.4.15. The check_mailq plug-in calls /usr/bin/mailq which, in my environments, requires root access. This is easily accomplished by giving nagios sudo access to /usr/bin/mailq but check_mailq needs to call sudo in order to use those privileges. I have made a small patch that accomplishes this goal with an additional parameter (-s or --sudo). The user still needs to edit /etc/sudoers to give the nagios user permissions to execute /usr/bin/mailq without a password. I attached my patch to my original issue report over at the old Nagios plugins tracker here: http://tracker.nagios.org/view.php?id=368 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3573821&group_id=29880 ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________________ Nagios Plugin Development Mailing List Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null