Re: [Nagios-users] Postqueue monitoring

2011-06-22 Thread quanta
Try to write a plugin for yourself. You can do it with a simple shell
script.

On 01/13/2011 09:29 PM, Luc MAIGNAN wrote:
 Hi,

 I'm looking for a postqueue (postfix) plugin that alerts me if there are 
 blocked messages in a postfix queue.

 I didn't find any WORKABLE plugin.

 Does anyone know a good one ?


 BR

 --
 Protect Your Site and Customers from Malware Attacks
 Learn about various malware tactics and how to avoid them. Understand 
 malware threats, the impact they can have on your business, and how you 
 can protect your company and customers by using code signing.
 http://p.sf.net/sfu/oracle-sfdevnl
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue. 
 ::: Messages without supporting info will risk being sent to /dev/null

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Checking multiple TCP ports for a single status?

2011-05-30 Thread quanta
Take a look at this:
http://www.theillien.com/Sys_Admin_v12/html/v14/i12/a6_l2.htm

On 12/30/2010 01:56 AM, Daniel Wittenberg wrote:
 Write a simple script that does both checks and returns results?

 Dan

 -Original Message-
 From: stan [mailto:st...@panix.com] 
 Sent: Wednesday, December 29, 2010 12:39 PM
 To: nagios List
 Subject: [Nagios-users] Checking multiple TCP ports for a single status?


 I think I need to verify that both port 135, and 445 are avaialble on
 some
 Windows amchines. As I understand it, both of these need to be up. I'd
 like
 to make this a single check. Looks like check_tcp will only accept a
 single
 -p argument. Is this correct? If so, is there a way I can AND to
 different
 check_tcp runs, and report a single status back to Nagios?



--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Check timeout value question

2011-05-29 Thread quanta
This maybe help:
http://www.cyberciti.biz/faq/shell-scripting-run-command-under-alarmclock/

On 11/30/2010 10:42 PM, steve f wrote:
 I am running a homemade check to check about 8 core processes. 
 Occasionally the check times out after 10 seconds.

 All this check does is run /etc/init.d/ status and use either the
 0 or 1 exit code to report that the process is OK or Critical.

 I verified in my nagios.cfg file the timeoout setting is set to 60
 secs and the utils.pm variable for timeout is set to 15 seconds.

 I have no timeout setting in this script but figured I need one. 
 Where is the check getting the 10 sec value from?  I assume its a
 default for a nagios check.

 If I rewrite the script in perl ( its a simple bash now) and use the
 utils.pm, does that automatically give me the -t option where I could
 set any timeout value or will it only set the timeout to 15 seconds as
 in the utils.pm?

 Is there a simple way to add a timeout for this check only ?

 Thanks,

 Steve




 --
 Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
 Tap into the largest installed PC base  get more eyes on your game by
 optimizing for Intel(R) Graphics Technology. Get started today with the
 Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
 http://p.sf.net/sfu/intelisp-dev2dev


 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue. 
 ::: Messages without supporting info will risk being sent to /dev/null
--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] check_memcached and hits/misses

2011-05-29 Thread quanta
In my opinion, you shouldn't check the sudden increase in misses.
You should check the get_misses value and alert when it is greater than
a threshold.

$ echo stats | nc -w 1 host port | awk '/get_misses/ { print $3 }'

On 12/09/2010 11:55 PM, Pär Åslund wrote:
 Hi,

 I'm searching for a nagios check that looks at hits and misses.

 Been using check_memcached for checking memcached status and right now
 I will continue to do that checking that memcached is answering and
 got free memory.

 However, the issue with check_memcached is that it's looking at the
 hits/misses ratio since start up of the memcached-process.
 Whereas I need to know if a sudden increase in misses instead between
 polls has occured.

 Is anyone familiar with a such check for Nagios?

 Best regards,
 -p

 --
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue. 
 ::: Messages without supporting info will risk being sent to /dev/null

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] CPU monitor for a single Linux user space process ?

2011-05-29 Thread quanta
You can wrote a plugin (shell script) for yourself, something like this:

# ps --no-headers -p `pidof process_name` -o pcpu


On 12/16/2010 08:05 AM, Bruce Edge wrote:
 Rookie question here. Trying to determine nagios suitability for an
 embedded app.

 Can I monitor the CPU utilization for a single user space process on a
 Linux box with nagios?
 And, can I define an action if it exceeds a threshold?

 Thanks

 -Bruce

 --
 Lotusphere 2011
 Register now for Lotusphere 2011 and learn how
 to connect the dots, take your collaborative environment
 to the next level, and enter the era of Social Business.
 http://p.sf.net/sfu/lotusphere-d2d
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue. 
 ::: Messages without supporting info will risk being sent to /dev/null

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Web UI support description for service and host dependencies?

2011-05-05 Thread quanta
Hi,

As some people submit to Nagios ideas, I want to know which
services/hosts depends on a service/host:
http://ideas.nagios.org/a/dtd/2289-3955
http://ideas.nagios.org/a/dtd/9078-3955

It let me know when a service/host down, which services/hosts will be
effect?
Is there any Web UI support this?


--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] debugging eventhandler via nrpe

2010-11-15 Thread quanta
 Check your nagios.log file. Why didn't you put the argument (-t 200) to
the remote host, in nrpe.cfg?


On 11/12/2010 01:21 PM, Assaf Flatto wrote:
   Hello all

 I am trying to implement an event handler on a remote machine , and 
 having a problem with the way the status arguments are transferred over 
 the NRPE channel .

 My config is as such :

 define service{
 snip
   max_check_attempts  3
   event_handler   
 check_nrpe_nonssl!solr-restart!$SERVICESTATE$ $SERVICESTATETYPE$ 
 $SERVICEATTEMPT$!-t 200

 snip
 }

 On the remote server the nrpe was compiled with --allow-command-args  
 ,and in  the nrpe.cfg i have the following parameters ?

 dont_blame_nrpe=1
 debug=1
 command_timeout=300
 # Event Handler
 command[solr-restart]=/usr/local/nagios/libexec/eventhandlers/restart-solr.sh


 the event handler script is :
 #!/bin/bash
 #
 # Event handler script for restarting the web server on the local machine
 #
 # Note: This script will only restart the web server if the service is
 # retried 3 times (in a soft state) or if the web service somehow
 # manages to fall into a hard error state.
 #

 case $1 in
 OK)
   # The service just came back up, so don't do anything...
   ;;
 WARNING)
   ;;
 UNKNOWN)
   ;;
 CRITICAL)
   case $2 in
   SOFT)

   case $3 in
   2)
   echo Too early - not restarting yet
   exit 0
   ;;
  esac

   case $3 in
   3)
   echo Too early - not restarting yet
   exit 0
   ;;
   esac
   ;;
   HARD)
 cd /usr/local/nagios/libexec/eventhandlers/
 curl -s -v -u *:*** --request PUT -d @solr7down.xml http://LB
 sleep 5
 sudo /etc/init.d/jboss stop

 sleep 60
 sudo /etc/init.d/jboss start
 sleep 15
 curl -s -v -u *:** --request PUT -d @solr7up.xml http://LB
 sleep 3
 echo  Event handler restarted the solr service
   ;;
   esac
   ;;
 esac
 echo Event handler restarted the solr service
 exit 0

 I can see in the syslog that the script is initiated :
 Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Host address is in allowed_hosts
 Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Handling the connection...
 Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Host is asking for command 
 'solr-restart' to be run...
 Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Running command: 
 /usr/local/nagios/libexec/eventhandlers/restart-solr.sh
 Nov 11 18:15:44 gbc1-solr-07 nrpe[29687]: Command completed with return 
 code 0 and output:

 But the event handler is not preforming the tasks it is meant to .


 when i initiate the command manually

 ~/libexec/check_nrpe -H host -n -c solr-restart -a  Critical HARD 3 
 -t 200
 it is running fine .
 I know it is an issue with the transfer of the arguments to the nrpe - 
 but i am missing something to make sure they are parsed and sent properly .

 Anyone can point me to the sign in front of me i am blindingly missing ?

 Thanks



--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Check_http_Multipple_port

2010-10-29 Thread quanta
 Try to write a wrapper of check_http for yourself: 
http://www.theillien.com/Sys_Admin_v12/html/v14/i12/a6_l2.htm


On 10/27/2010 05:03 PM, Rajesh Kumar wrote:

Hi Sir
   I need to define multiple port in check_http. I defined 
the command.cfg as follows, in my environment different port tomcat 
are running how can i find the tomcat status

define command{
 command_namecheck_http_args
 command_line$USER1$/check_http -H $ARG1$ -p $ARG2$
 }
for example
http://testingserver:8082 http://testingserver:8082/
http://tomcatserver:8084 http://tomcatserver:8084/
Please help me.
Thanks  Regards
B.Rajeshkumar


--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev


___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue.
::: Messages without supporting info will risk being sent to /dev/null
--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagvis 1.5.1 installation question

2010-10-12 Thread quanta
 Make sure you install check_mk successfully and the socket file was 
created:


# file /usr/local/nagios/var/rw/live
/usr/local/nagios/var/rw/live: socket

On 07/30/2010 07:38 PM, Kaplan, Andrew H. wrote:


Hi there --

I am going through the motions of installing NagVis 1.5.1 onto our 
Nagios 3.1.2 server. I have completed the installation of the


check_mk 1.1.6p1 software, and made sure to select the default 
settings for it. When I run the install script for NagVis, all


prerequisites are found, and I make sure to select mklivestatus as the 
Backend. However, when the installer gets to the


Livestatus Socket, it looks for it in the /usr/local/nagios/rw/live 
directory, but says it is missing.


The installer lists the valid socket formats, and asks me to enter the 
MKLivestatus socket. I am not familiar with what that


would be, and whether or not check_mk should be started in daemon mode 
or in some other way.


Can someone provide some insight into this? Thanks.


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm


___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue.
::: Messages without supporting info will risk being sent to /dev/null
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios supervising nagios?

2010-10-12 Thread quanta
  Have a look at: http://nagios.sourceforge.net/docs/3_0/distributed.html

On 08/07/2010 06:00 PM, Linus Gasser wrote:
 Le 05.08.10 23:08, Herb J. a écrit :
 Hmm, in fact, do you have to configure the central collector to let him
 know what the other collectors are doing?


 All collectors are configured with the same check commands and
 templates, but the remote collectors only know about their specific list
 of hosts and services to monitor. The central collector knows about all
 hosts, services, service check commands, etc. (Since Nagios ignores
 passive data for hosts and services it doesn't recognize, it has to know
 about everything being monitored.) However, the central collector is
 configured to not run any active checks (except for monitoring the other
 collectors) and is configured to accept passive check data. The remote
 collectors are configured to run active service checks on their list of
 servers (ignoring passive data since they don't receive any) and does
 not generate any alerts or notifications. All of this is done by having
 the central collector use slightly modified host and service templates.
 Too bad - I'll continue playing with NagiosCentral then, I don't want to
 configure all services twice... Thank you very much for your
 explanations, you spared me quite some headaches - now I know it's not
 what I'm looking for ;)

 Linus

 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue.
 ::: Messages without supporting info will risk being sent to /dev/null

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Using two nagios servers...

2010-10-12 Thread quanta

 Try something like this:

#!/bin/sh

RETURN_STATUS=`/usr/local/nagios/libexec/check_nrpe -H primary_host -c 
check_nagios | awk -F: '{ print $1 }' | awk '{ print $2 }'`

if [ $RETURN_STATUS != OK ]; then
sed -i 's/enable_notifications=0/enable_notifications=1/' 
/usr/local/nagios/etc/nagios.cfg
sed -i 's/execute_service_checks=0/execute_service_checks=1/' 
/usr/local/nagios/etc/nagios.cfg

else
sed -i 's/enable_notifications=1/enable_notifications=0/' 
/usr/local/nagios/etc/nagios.cfg
sed -i 's/execute_service_checks=1/execute_service_checks=0/' 
/usr/local/nagios/etc/nagios.cfg

fi
sudo /etc/init.d/nagios reload

Note: you must add nagios user to sudoers group (without password prompt).


On 08/16/2010 02:44 PM, ravishankar.gundlap...@wipro.com wrote:


Hi,

Even I run Nagios on Virtual machines.

Please let me know where can I get the support for running cron job on 
my secondary Nagios server to monitor the Nagios service on primary 
Nagios server?


Thanks,

Ravi G

*From:* Chris Beattie [mailto:cbeat...@geninfo.com]
*Sent:* Monday, August 16, 2010 6:51 PM
*To:* Nagios Users List
*Subject:* Re: [Nagios-users] Using two nagios servers...

Your servers will probably be fine servicing the extra Nagios polling, 
unless they are overloaded already.


Since I run Nagios on virtual machines, however, I tried to keep the 
load on my failover Nagios server minimized.  My failover Nagios 
server runs a cron job that uses the check_nagios plugin to monitor 
the state of the primary Nagios server.  If the primary server is up 
and running, the failover server will just rsync the state and 
configuration files from the primary.  If the primary server becomes 
unavailable, the cron job will start the Nagios service on the 
failover server and keep it running until it detects the primary has 
recovered.


*From:* ravishankar.gundlap...@wipro.com 
[mailto:ravishankar.gundlap...@wipro.com]

*Sent:* Monday, August 16, 2010 7:45 AM
*To:* nagios-users@lists.sourceforge.net
*Subject:* [Nagios-users] Using two nagios servers...

Hi All,

I am planning to configure all the servers in my client environment in 
two Nagios servers(in two different locations) in order to create Back up.


Please let me know whether there will be any overload on the servers 
as two Nagios servers will be polling them.


Thanks,

Ravi G


--
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev


___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue.
::: Messages without supporting info will risk being sent to /dev/null
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Only Nagios doesn't works with sendmail?

2010-07-25 Thread quanta

On 07/25/2010 09:17 PM, Marc Powell wrote:
 On Jul 25, 2010, at 12:11 AM, quanta wrote:

   
 Hi,

 I am using sendmail 8.13.8-8 with Gmail SMTP. 
 sendmail works fine with OSSEC or test from command line, but it has problem 
 with Nagios:

 sendmail[9026]: NOQUEUE: SYSERR(nagios): can not 
 chdir(/var/spool/clientmqueue/): Permission denied 

 Add the smmsp user to nagios group, I get the another error:
 
 If you were going to try this, it would be the other way around (nagios in 
 the smmsp group), but that's the wrong thing to do either way.
   
I alse tried but nothing changes:

/etc/group:smmsp:x:51:apache,nagios
/etc/group:nagios:x:503:apache,smmsp

   
 sendmail[26435]: NOQUEUE: SYSERR(nagios): can not write to queue directory 
 /var/spool/clientmqueue/ (RunAsGid=0, required=51): Permission denied 
   
 The permissions of related files:

  
 -rwxr-sr-x 1 root root 775064 Jun 29 23:46 /usr/sbin/sendmail
 
 You appear to have a broken sendmail on this machine. What's different 
 between the two? Shouldn't this be group 'smmsp'? Is sendmail's confRunAsUser 
 the same on both machines?


 --
 Marc
   
Why does it still work with OSSEC or even from command line? There is no
difference between two: both of them run as smmsp user:

# grep -i runasuser /etc/mail/submit.cf
O RunAsUser=smmsp


 --
 This SF.net email is sponsored by Sprint
 What will you do first with EVO, the first 4G phone?
 Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue. 
 ::: Messages without supporting info will risk being sent to /dev/null
   

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Only Nagios doesn't works with sendmail?

2010-07-24 Thread quanta
Hi,

I am using sendmail 8.13.8-8 with Gmail SMTP.
sendmail works fine with OSSEC or test from command line, but it has
problem with Nagios:

sendmail[9026]: NOQUEUE: SYSERR(nagios): can not
chdir(/var/spool/clientmqueue/): Permission denied

Add the *smmsp* user to *nagios* group, I get the another error:

sendmail[26435]: NOQUEUE: SYSERR(nagios): can not write to queue
directory /var/spool/clientmqueue/ (RunAsGid=0, required=51): Permission
denied
 
The permissions of related files:

-rwxr-sr-x 1 root root 775064 Jun 29 23:46 /usr/sbin/sendmail
 -rw-r--r-- 1 root root 59061 Jun 30 11:23 sendmail.cf
 -rw-r--r-- 1 root root 40336 Jun 30 12:18 submit.cf
 drwxrwx--- 2 smmsp smmsp 114688 Jul 22 22:00 /var/spool/clientmqueue/
 drwx-- 2 root mail 4096 Jul 22 22:24 /var/spool/mqueue/

Nagios only send mail if I changed the permission of
*/var/spool/clientmqueue* to 777, but it is a dirty solution and I got
the warning:

sendmail[30462]: dangerous permissions=40777 on queue directory
/var/spool/clientmqueue/

PS: Nagios on the another server works fine with 770 permission of
/var/spool/clientmqueue.

Can anyone help me?
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null