Nagios-users Digest, Vol 53, Issue 3

moses neah mssneah at yahoo.com
Mon Oct 4 19:03:55 CEST 2010


Below are my configuration examples:

# Check NRPE
define command{
        command_name check_nrpe
        command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}

# 'check_nt_uptime' command definition
define command{
        command_name check_nt_uptime
        command_line $USER1$/check_nt -H $HOSTADDRESS$ -v UPTIME
}


service definition:

 define service{
        use                             servers
        host_name                       vmsserver 
        service_description             UPTIME 
        check_command                   check_nt_uptime
        }

define service{
        use                             servers
        host_name                       vmsserver
       service_description             CPU 
       check_command                   check_nt_cpuload!2,70,90,10,70,80
       check_command           check_nt!CPULOAD!-l 5,80,90
        }

NSClient++ config


[modules]
;# NSCLIENT++ MODULES
;# A list with DLLs to load at startup.
;  You will need to enable some of these for NSClient++ to work.
; ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
; *                                                               *
; * N O T I C E ! ! ! - Y O U   H A V E   T O   E D I T   T H I S *
; *                                                               *
; ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
FileLogger.dll
CheckSystem.dll
CheckDisk.dll
NSClientListener.dll
NRPEListener.dll
SysTray.dll
CheckEventLog.dll
CheckHelpers.dll
;CheckWMI.dll
;
; Script to check external scripts and/or internal aliases.
;CheckExternalScripts.dll
;
; NSCA Agent if you enable this NSClient++ will talk to NSCA hosts repeatedly (so dont enable unless you want to use NSCA)
NSCAAgent.dll
;
; LUA script module used to write your own "check deamon".
LUAScript.dll
;
; RemoteConfiguration IS AN EXTREM EARLY IDEA SO DONT USE FOR PRODUCTION ENVIROMNEMTS!
;RemoteConfiguration.dll
; Check other hosts through NRPE extreme beta and probably a bit dangerous! :)
NRPEClient.dll
; Extreamly early beta of a task-schedule checker
;CheckTaskSched.dll



[Settings]
;# OBFUSCATED PASSWORD
;  This is the same as the password option but here you can store the password in an obfuscated manner.
;  *NOTICE* obfuscation is *NOT* the same as encryption, someone with access to this file can still figure out the 
;  password. Its just a bit harder to do it at first glance.
;obfuscated_password=Jw0KAUUdXlAAUwASDAAB
;
;# PASSWORD
;  This is the password (-s) that is required to access NSClient remotely. If you leave this blank everyone will be able to access the daemon remotly.
;password=secret-password
;
;# ALLOWED HOST ADDRESSES
;  This is a comma-delimited list of IP address of hosts that are allowed to talk to the all daemons.
;  If leave this blank anyone can access the deamon remotly (NSClient still requires a valid password).
;  The syntax is host or ip/mask so 192.168.0.0/24 will allow anyone on that subnet access
;allowed_hosts=127.0.0.1/32
;
;# USE THIS FILE
;  Use the INI file as opposed to the registry if this is 0 and the use_reg in the registry is set to 1 
;  the registry will be used instead.
use_file=1
allowed_hosts=41.211.0.16 41.211.5.110
;
; # USE SHARED MEMORY CHANNELS
;  This is the "new" way for using the system tray based on an IPC framework on top shared memmory channels and events.
;  It is brand new and (probably has bugs) so dont enable this unless for testing!
;  If set to 1 shared channels will be created and system tray icons created and such and such...
;shared_session=0


[log]
;# LOG DEBUG
;  Set to 1 if you want debug message printed in the log file (debug messages are always printed to stdout when run with -test)
;debug=1
;
;# LOG FILE
;  The file to print log statements to
;file=nsclient.log
;
;# LOG DATE MASK
;  The format to for the date/time part of the log entry written to file.
;date_mask=%Y-%m-%d %H:%M:%S
;
;# LOG ROOT FOLDER
;  The root folder to use for logging.
;  exe = the folder where the executable is located
;  local-app-data = local application data (probably a better choice then the old default)
;root_folder=exe


[NSClient]
;# ALLOWED HOST ADDRESSES
;  This is a comma-delimited list of IP address of hosts that are allowed to talk to NSClient deamon.
;  If you leave this blank the global version will be used instead.
;allowed_hosts=
;
;# NSCLIENT PORT NUMBER
;  This is the port the NSClientListener.dll will listen to.
port=12489
;
;# BIND TO ADDRESS
;  Allows you to bind server to a specific local address. This has to be a dotted ip adress not a hostname.
;  Leaving this blank will bind to all avalible IP adresses.
;bind_to_address=
;
;# SOCKET TIMEOUT
;  Timeout when reading packets on incoming sockets. If the data has not arrived withint this time we will bail out.
;socket_timeout=30

[NRPE]
;# NRPE PORT NUMBER
;  This is the port the NRPEListener.dll will listen to.
;port=5666
;
;# COMMAND TIMEOUT
;  This specifies the maximum number of seconds that the NRPE daemon will allow plug-ins to finish executing before killing them off.
;command_timeout=60
;
;# COMMAND ARGUMENT PROCESSING
;  This option determines whether or not the NRPE daemon will allow clients to specify arguments to commands that are executed.
;allow_arguments=0
;
;# COMMAND ALLOW NASTY META CHARS
;  This option determines whether or not the NRPE daemon will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.
;allow_nasty_meta_chars=0
;
;# USE SSL SOCKET
;  This option controls if SSL should be used on the socket.
;use_ssl=1
;
;# BIND TO ADDRESS
;  Allows you to bind server to a specific local address. This has to be a dotted ip adress not a hostname.
;  Leaving this blank will bind to all avalible IP adresses.
; bind_to_address=
;
;# ALLOWED HOST ADDRESSES
;  This is a comma-delimited list of IP address of hosts that are allowed to talk to NRPE deamon.
;  If you leave this blank the global version will be used instead.
;allowed_hosts=
;
;# SCRIPT DIRECTORY
;  All files in this directory will become check commands.
;  *WARNING* This is undoubtedly dangerous so use with care!
;script_dir=scripts\
;
;# SOCKET TIMEOUT
;  Timeout when reading packets on incoming sockets. If the data has not arrived withint this time we will bail out.
;socket_timeout=30

[Check System]
;# CPU BUFFER SIZE
;  Can be anything ranging from 1s (for 1 second) to 10w for 10 weeks. Notice that a larger buffer will waste memory 
;  so don't use a larger buffer then you need (ie. the longest check you do +1).
;CPUBufferSize=1h
;
;# CHECK RESOLUTION
;  The resolution to check values (currently only CPU).
;  The value is entered in 1/10:th of a second and the default is 10 (which means ones every second)
;CheckResolution=10
;
;# CHECK ALL SERVICES
;  Configure how to check services when a CheckAll is performed.
;  ...=started means services in that class *has* to be running.
;  ...=stopped means services in that class has to be stopped.
;  ...=ignored means services in this class will be ignored.
;check_all_services[SERVICE_BOOT_START]=ignored
;check_all_services[SERVICE_SYSTEM_START]=ignored
;check_all_services[SERVICE_AUTO_START]=started
;check_all_services[SERVICE_DEMAND_START]=ignored
;check_all_services[SERVICE_DISABLED]=stopped

[External Script]
;# COMMAND TIMEOUT
;  This specifies the maximum number of seconds that the NRPE daemon will allow plug-ins to finish executing before killing them off.
;command_timeout=60
;
;# COMMAND ARGUMENT PROCESSING
;  This option determines whether or not the NRPE daemon will allow clients to specify arguments to commands that are executed.
;allow_arguments=0
;
;# COMMAND ALLOW NASTY META CHARS
;  This option determines whether or not the NRPE daemon will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.
;allow_nasty_meta_chars=0
;
;# SCRIPT DIRECTORY
;  All files in this directory will become check commands.
;  *WARNING* This is undoubtedly dangerous so use with care!
;script_dir=c:\my\script\dir

[Script Wrappings]
vbs=cscript.exe //T:30 //NoLogo scripts\lib\wrapper.vbs %SCRIPT% %ARGS%
ps1=cmd /c echo scripts\%SCRIPT% %ARGS%; exit($lastexitcode) | powershell.exe -command -
bat=scripts\%SCRIPT% %ARGS%

[External Scripts]
;check_es_long=scripts\long.bat
;check_es_ok=scripts\ok.bat
;check_es_nok=scripts\nok.bat
;check_vbs_sample=cscript.exe //T:30 //NoLogo scripts\check_vb.vbs
;check_powershell_warn=cmd /c echo scripts\powershell.ps1 | powershell.exe -command -

[External Alias]
alias_cpu=checkCPU warn=80 crit=90 time=5m time=1m time=30s
alias_cpu_ex=checkCPU warn=$ARG1$ crit=$ARG2$ time=5m time=1m time=30s
alias_disk=CheckDriveSize MinWarn=10% MinCrit=5% CheckAll FilterType=FIXED
alias_service=checkServiceState CheckAll
alias_process=checkProcState $ARG1$=started
alias_mem=checkMem MaxWarn=80% MaxCrit=90% ShowAll type=physical
alias_up=checkUpTime MinWarn=1d MinWarn=1h
alias_file_age=checkFile2 filter=out "file=$ARG1$" filter-written=>1d MaxWarn=1 MaxCrit=1 "syntax=%filename% %write%"
alias_file_size=checkFile2 filter=out "file=$ARG1$" filter-size=>$ARG2$ MaxWarn=1 MaxCrit=1 "syntax=%filename% %size%"
alias_file_size_in_dir=checkFile2 filter=out pattern=*.txt "file=$ARG1$" filter-size=>$ARG2$ MaxWarn=1 MaxCrit=1 "syntax=%filename% %size%"
alias_event_log_old=CheckEventLog file=application file=system filter=new filter=out MaxWarn=1 MaxCrit=1 filter-generated=>2d filter-severity==success filter-severity==informational truncate=800 unique descriptions  "syntax=%severity%: %source%: %message% (%count%)"
alias_event_log_new=CheckEventLog file=application file=system MaxWarn=1 MaxCrit=1 "filter=generated gt -2d AND severity NOT IN ('success', 'informational')" truncate=800 unique descriptions "syntax=%severity%: %source%: %message% (%count%)"
alias_event_log=alias_event_log_new

check_ok=CheckOK Everything is fine!

[Wrapped Scripts]
;check_test_vbs=check_test.vbs /arg1:1 /arg2:1 /variable:1
;check_test_ps1=check_test.ps1 arg1 arg2
;check_test_bat=check_test.bat arg1 arg2
;check_battery=check_battery.vbs
;check_printer=check_printer.vbs


; [includes]
;# The order when used is "reversed" thus the last included file will be "first"
;# Included files can include other files (be carefull only do basic recursive checking)
;
; myotherfile.ini
; real.ini


[NSCA Agent]
;# CHECK INTERVALL (in seconds)
;   How often we should run the checks and submit the results.
;interval=5
;
;# ENCRYPTION METHOD
;   This option determines the method by which the send_nsca client will encrypt the packets it sends 
;   to the nsca daemon. The encryption method you choose will be a balance between security and 
;   performance, as strong encryption methods consume more processor resources.
;   You should evaluate your security needs when choosing an encryption method.
;
; Note: The encryption method you specify here must match the decryption method the nsca daemon uses 
;       (as specified in the nsca.cfg file)!!
; Values:
;    0 = None    (Do NOT use this option)
;    1 = Simple XOR  (No security, just obfuscation, but very fast)
;   2 = DES
;   3 = 3DES (Triple DES)
;    4 = CAST-128
;    6 = xTEA
;    8 = BLOWFISH
;    9 = TWOFISH
;    11 = RC2
;    14 = RIJNDAEL-128 (AES)
;    20 = SERPENT
;encryption_method=14
;
;# ENCRYPTION PASSWORD
;  This is the password/passphrase that should be used to encrypt the sent packets. 
;password=
;
;# BIND TO ADDRESS
;  Allows you to bind server to a specific local address. This has to be a dotted ip adress not a hostname.
;  Leaving this blank will bind to "one" local interface.
; -- not supported as of now -- 
;bind_to_address=
;
;# LOCAL HOST NAME
;  The name of this host (if empty "computername" will be used.
;hostname=
;
;# NAGIOS SERVER ADDRESS
;  The address to the nagios server to submit results to.
;nsca_host=192.168.0.1
;
;# NAGIOS SERVER PORT
;  The port to the nagios server to submit results to.
;nsca_port=5667
;

;# CHECK COMMAND LIST
;  The checks to run everytime we submit results back to nagios
;  Any command(alias/key) starting with a host_ is sent as HOST_COMMAND others are sent as SERVICE_COMMANDS
;  where the alias/key is used as service name.
;
[NSCA Commands]
;my_cpu_check=checkCPU warn=80 crit=90 time=20m time=10s time=4
;my_mem_check=checkMem MaxWarn=80% MaxCrit=90% ShowAll type=page
;my_svc_check=checkServiceState CheckAll exclude=wampmysqld exclude=MpfService
;host_check=check_ok

;# REMOTE NRPE PROXY COMMANDS
;  A list of commands that check other hosts.
;  Used by the NRPECLient module
[NRPE Client Handlers]
check_other=-H 192.168.0.1 -p 5666 -c remote_command -a arguments

;# LUA SCRIPT SECTION
;  A list of all Lua scripts to load.
;[LUA Scripts]
;scripts\test.lua








--- On Mon, 10/4/10, nagios-users-request at lists.sourceforge.net <nagios-users-request at lists.sourceforge.net> wrote:

From: nagios-users-request at lists.sourceforge.net <nagios-users-request at lists.sourceforge.net>
Subject: Nagios-users Digest, Vol 53, Issue 3
To: nagios-users at lists.sourceforge.net
Date: Monday, October 4, 2010, 11:32 AM

Send Nagios-users mailing list submissions to
    nagios-users at lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
    https://lists.sourceforge.net/lists/listinfo/nagios-users
or, via email, send a message with subject or body 'help' to
    nagios-users-request at lists.sourceforge.net

You can reach the person managing the list at
    nagios-users-owner at lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Nagios-users digest..."


Today's Topics:

   1. Re: nagios.cmd permission issue (Ilan Berkner)
   2. Re: nagios.cmd permission issue (Charlie R)
   3. Re: nagios.cmd permission issue (Rutger Blom)
   4. Re: nagios.cmd permission issue (Robert Wolfe)
   5. Re: nagios.cmd permission issue (frank)
   6. Re: nagios.cmd permission issue (Rutger Blom)
   7. Re: nagios.cmd permission issue (Ilan Berkner)
   8. want to configure nrpe for windows (moses neah)
   9. Nagios notifications by voice call ? (Bob Sauvage)
  10. Re: Nagios notifications by voice call ? (Matthew J. Salerno)
  11. Re: want to configure nrpe for windows (Assaf Flatto)
  12. Re: Nagios notifications by voice call ? (Assaf Flatto)
  13. Re: Nagios notifications by voice call ? (Terry)
  14. Re: Nagios notifications by voice call ? (Robert Wolfe)
  15. Re: want to configure nrpe for windows (Robert Wolfe)


----------------------------------------------------------------------

Message: 1
Date: Sun, 3 Oct 2010 13:35:07 -0400
From: Ilan Berkner <iberkner at gmail.com>
Subject: Re: [Nagios-users] nagios.cmd permission issue
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID:
    <AANLkTimowLCy4ibm9eb5Ac5j=ChCQaGQZgopmtYE7-Nc at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

I've reconfigured nagios to run as the same user and group as that of the
web server.  Still getting this command file issue.

Any other suggestions?

Many thanks...

On Sun, Oct 3, 2010 at 1:25 PM, Ilan Berkner <iberkner at gmail.com> wrote:

> Yep, there's no question that's what it is, but I've set it up so that the
> webserver user is part of the group that owns the rw directory with the
> sticky bit set, but no luck (yet)
>
>
> On Sun, Oct 3, 2010 at 10:37 AM, Marc Powell <lists at xodus.org> wrote:
>
>>
>> On Oct 3, 2010, at 8:48 AM, Ilan Berkner wrote:
>>
>> > Did not work, probably b/c I'm restarting the service as root?
>> >
>> > Is there a way to tell under which user nagios is trying to access the
>> nagios.cmd file?
>>
>> Your web server is trying to write to the pipe so it's whatever user your
>> web server is configured to run as.
>>
>> --
>> Marc
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Start uncovering the many advantages of virtual appliances
>> and start using them to simplify application deployment and
>> accelerate your shift to cloud computing.
>> http://p.sf.net/sfu/novell-sfdev2dev
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Sun, 3 Oct 2010 12:48:41 -0500
From: Charlie R <charlie.reddington at gmail.com>
Subject: Re: [Nagios-users] nagios.cmd permission issue
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID: <6219829A-8FDA-4A5D-8E30-A592979FE503 at gmail.com>
Content-Type: text/plain; charset="us-ascii"

Lets start here...

What is your nginx server running as? You can specify it or it takes  
the owner that starts it depending how  you have it configured. So if  
it's not specified, do a 'ps aux|grep nginx' and check it there.

What is your nagios server running as? I am going to guess  
'nagios:nagios' but please confirm.

Can you give us the 'ls -la' of your rw directory?

Thanks,

Charlie

On Oct 3, 2010, at 12:35 PM, Ilan Berkner wrote:

> I've reconfigured nagios to run as the same user and group as that  
> of the web server.  Still getting this command file issue.
>
> Any other suggestions?
>
> Many thanks...
>
> On Sun, Oct 3, 2010 at 1:25 PM, Ilan Berkner <iberkner at gmail.com> wrote:
> Yep, there's no question that's what it is, but I've set it up so  
> that the webserver user is part of the group that owns the rw  
> directory with the sticky bit set, but no luck (yet)
>
>
> On Sun, Oct 3, 2010 at 10:37 AM, Marc Powell <lists at xodus.org> wrote:
>
> On Oct 3, 2010, at 8:48 AM, Ilan Berkner wrote:
>
> > Did not work, probably b/c I'm restarting the service as root?
> >
> > Is there a way to tell under which user nagios is trying to access  
> the nagios.cmd file?
>
> Your web server is trying to write to the pipe so it's whatever user  
> your web server is configured to run as.
>
> --
> Marc
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev_______________________________________________
> Nagios-users mailing list
> Nagios-users at 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

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 3
Date: Sun, 3 Oct 2010 20:08:28 +0200
From: Rutger Blom <rutger at blokje.net>
Subject: Re: [Nagios-users] nagios.cmd permission issue
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID: <-6893002525334416135 at unknownmsgid>
Content-Type: text/plain; charset="utf-8"

Who's the owner of the pipe?

On 3 okt 2010, at 19.25, Ilan Berkner <iberkner at gmail.com> wrote:

Yep, there's no question that's what it is, but I've set it up so that the
webserver user is part of the group that owns the rw directory with the
sticky bit set, but no luck (yet)

On Sun, Oct 3, 2010 at 10:37 AM, Marc Powell <lists at xodus.org> wrote:

>
> On Oct 3, 2010, at 8:48 AM, Ilan Berkner wrote:
>
> > Did not work, probably b/c I'm restarting the service as root?
> >
> > Is there a way to tell under which user nagios is trying to access the
> nagios.cmd file?
>
> Your web server is trying to write to the pipe so it's whatever user your
> web server is configured to run as.
>
> --
> Marc
>
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
>

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev

_______________________________________________
Nagios-users mailing list
Nagios-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 4
Date: Sun, 3 Oct 2010 15:25:24 -0400
From: "Robert Wolfe" <robert.wolfe at robertwolfe.org>
Subject: Re: [Nagios-users] nagios.cmd permission issue
To: "Nagios Users List" <nagios-users at lists.sourceforge.net>
Message-ID: <50BE9C7135A64147819E42376C136B2675E4 at dc1.wolfe.local>
Content-Type: text/plain; charset="us-ascii"

Unfortunately, I did the same and am still getting the same error.

 

From: Ilan Berkner [mailto:iberkner at gmail.com] 
Sent: Sunday, October 03, 2010 1:35 PM
To: Nagios Users List
Subject: Re: [Nagios-users] nagios.cmd permission issue

 

I've reconfigured nagios to run as the same user and group as that of
the web server.  Still getting this command file issue.

 

Any other suggestions?

 

Many thanks...

On Sun, Oct 3, 2010 at 1:25 PM, Ilan Berkner <iberkner at gmail.com> wrote:

Yep, there's no question that's what it is, but I've set it up so that
the webserver user is part of the group that owns the rw directory with
the sticky bit set, but no luck (yet)

 

On Sun, Oct 3, 2010 at 10:37 AM, Marc Powell <lists at xodus.org> wrote:


On Oct 3, 2010, at 8:48 AM, Ilan Berkner wrote:

> Did not work, probably b/c I'm restarting the service as root?
>
> Is there a way to tell under which user nagios is trying to access the
nagios.cmd file?

Your web server is trying to write to the pipe so it's whatever user
your web server is configured to run as.

--
Marc



------------------------------------------------------------------------
------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Nagios-users mailing list
Nagios-users at 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

 

 

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 5
Date: Sun, 3 Oct 2010 12:07:26 -0700 (PDT)
From: frank <ratty at they.org>
Subject: Re: [Nagios-users] nagios.cmd permission issue
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID: <alpine.LRH.2.00.1010031158130.17739 at mulva3.they.org>
Content-Type: text/plain; charset="iso-8859-1"

I have a fairly complicated setup at work where I don't have the option of 
changing groups around system-wide so what I do is edit the startup file 
instead.

You could edit the "start()" function to have an explicit "chgrp" on the 
command-pipe to whatever group you need for your setup (after the daemon 
has been started of course so the command-pipe file exists). We use "chgrp 
apache /var/log/nagios/rw/nagios.cmd". It's a bit of a kludge but it 
works!

Another possibility is that your setup is just fine but the nagcmd group 
(of which both the apache and nagios users should be a member) was created 
after your apache process was already running. In this case you just need 
to restart apache so it can pick up its new group permissions.

-f

On Sun, 3 Oct 2010, Ilan Berkner wrote:

> Date: Sun, 3 Oct 2010 02:55:25 -0400
> From: Ilan Berkner <iberkner at gmail.com>
> Reply-To: Nagios Users List <nagios-users at lists.sourceforge.net>
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] nagios.cmd permission issue
> 
> Hi,
> New to Nagios...
> 
> Got everything pretty much running, except when I try to modify things using the web interface,
> I get this error:
> 
> Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update!
> 
> The permissions on the external command file and/or directory may be incorrect. Read the FAQs on
> how to setup proper permissions.
> 
> An error occurred while attempting to commit your command for processing.
> 
> 
> This is clearly a permission issue as when I manually change the permissions of the
> /rw/nagios.cmd to 777 for example, it works fine. ?When the service is restarted and the pipe is
> recreated though, the permissions are re-set.
> 
> I am running the nginx web server, not apache.
> 
> SELinux is disabled.
> 
> The rw directory has 777 permissions and is owned by the nagios user and group.
> 
> The Nginx server runs under a different user / group and this could be the issue. ?However, I
> tried to set up the rw directory with that user and group and still no luck.
> 
> Help?
> 
>

------------------------------

Message: 6
Date: Sun, 3 Oct 2010 22:30:19 +0200
From: Rutger Blom <rutger at blokje.net>
Subject: Re: [Nagios-users] nagios.cmd permission issue
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID: <2508279084960867279 at unknownmsgid>
Content-Type: text/plain; charset="utf-8"

Have you verified that the user you log in with into the Nagios CGI has
permission to execute commands?

Rutger

On 3 okt 2010, at 21.25, Robert Wolfe <robert.wolfe at robertwolfe.org> wrote:

Unfortunately, I did the same and am still getting the same error.



*From:* Ilan Berkner [mailto:iberkner at gmail.com]
*Sent:* Sunday, October 03, 2010 1:35 PM
*To:* Nagios Users List
*Subject:* Re: [Nagios-users] nagios.cmd permission issue



I've reconfigured nagios to run as the same user and group as that of the
web server.  Still getting this command file issue.



Any other suggestions?



Many thanks...

On Sun, Oct 3, 2010 at 1:25 PM, Ilan Berkner <iberkner at gmail.com> wrote:

Yep, there's no question that's what it is, but I've set it up so that the
webserver user is part of the group that owns the rw directory with the
sticky bit set, but no luck (yet)



On Sun, Oct 3, 2010 at 10:37 AM, Marc Powell <lists at xodus.org> wrote:


On Oct 3, 2010, at 8:48 AM, Ilan Berkner wrote:

> Did not work, probably b/c I'm restarting the service as root?
>
> Is there a way to tell under which user nagios is trying to access the
nagios.cmd file?

Your web server is trying to write to the pipe so it's whatever user your
web server is configured to run as.

--
Marc



------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security
easier or more difficult to achieve? Read this whitepaper to separate the
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d

_______________________________________________
Nagios-users mailing list
Nagios-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 7
Date: Sun, 3 Oct 2010 19:05:27 -0400
From: Ilan Berkner <iberkner at gmail.com>
Subject: Re: [Nagios-users] nagios.cmd permission issue
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID:
    <AANLkTi=i-Aj7Uc4JzkkiCHLrm2YUnzb9EEy6rqNTuO2f at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi All,

Turns out that the FCGI wrapper process was running under a different user
than both the web server and nagios and although CGI scripts were running,
that may have contributed to the problem.

I also noticed that there were other nagios processes running at the same
time that should have been previously killed but were not so that may also
have been a contributing factor.

I've now normalized all of the web processes with the same user:

1. Nginx
2. PHP
3. FCGIWrapper
4. Nagios service

and the problem seems to be resolved.

Thanks to everyone for their support, suggestions and help.



On Sun, Oct 3, 2010 at 4:30 PM, Rutger Blom <rutger at blokje.net> wrote:

> Have you verified that the user you log in with into the Nagios CGI has
> permission to execute commands?
>
> Rutger
>
> On 3 okt 2010, at 21.25, Robert Wolfe <robert.wolfe at robertwolfe.org>
> wrote:
>
> Unfortunately, I did the same and am still getting the same error.
>
>
>
> *From:* Ilan Berkner [mailto:iberkner at gmail.com]
> *Sent:* Sunday, October 03, 2010 1:35 PM
> *To:* Nagios Users List
> *Subject:* Re: [Nagios-users] nagios.cmd permission issue
>
>
>
> I've reconfigured nagios to run as the same user and group as that of the
> web server.  Still getting this command file issue.
>
>
>
> Any other suggestions?
>
>
>
> Many thanks...
>
> On Sun, Oct 3, 2010 at 1:25 PM, Ilan Berkner < <iberkner at gmail.com>
> iberkner at gmail.com> wrote:
>
> Yep, there's no question that's what it is, but I've set it up so that the
> webserver user is part of the group that owns the rw directory with the
> sticky bit set, but no luck (yet)
>
>
>
> On Sun, Oct 3, 2010 at 10:37 AM, Marc Powell < <lists at xodus.org>
> lists at xodus.org> wrote:
>
>
> On Oct 3, 2010, at 8:48 AM, Ilan Berkner wrote:
>
> > Did not work, probably b/c I'm restarting the service as root?
> >
> > Is there a way to tell under which user nagios is trying to access the
> nagios.cmd file?
>
> Your web server is trying to write to the pipe so it's whatever user your
> web server is configured to run as.
>
> --
> Marc
>
>
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
>  <http://p.sf.net/sfu/novell-sfdev2dev>
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Nagios-users mailing list
>  <Nagios-users at lists.sourceforge.net>Nagios-users at lists.sourceforge.net
> <https://lists.sourceforge.net/lists/listinfo/nagios-users>
> 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
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Virtualization is moving to the mainstream and overtaking non-virtualized
> environment for deploying applications. Does it make network security
> easier or more difficult to achieve? Read this whitepaper to separate the
> two and get a better understanding.
> http://p.sf.net/sfu/hp-phase2-d2d
>
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
>
>
>
> ------------------------------------------------------------------------------
> Virtualization is moving to the mainstream and overtaking non-virtualized
> environment for deploying applications. Does it make network security
> easier or more difficult to achieve? Read this whitepaper to separate the
> two and get a better understanding.
> http://p.sf.net/sfu/hp-phase2-d2d
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 8
Date: Mon, 4 Oct 2010 03:00:34 -0700 (PDT)
From: moses neah <mssneah at yahoo.com>
Subject: [Nagios-users] want to configure nrpe for windows
To: nagios-users at lists.sourceforge.net
Message-ID: <872522.87516.qm at web45214.mail.sp1.yahoo.com>
Content-Type: text/plain; charset="us-ascii"

Hill,
This a newbie to nagios. I have taken over to manage a nagios server. Everything is working fine. I want to monitor the resources on the windows servers (windows 2000,2003 and 2008) I google and install nsclient++. I am running nagios 2.9. I get the following error "
wrong -l parameter". Can any body show me the proper steps?
Thanks in advance.



      
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 9
Date: Mon, 04 Oct 2010 13:45:39 +0200
From: Bob Sauvage <bob.sauvage at gmx.fr>
Subject: [Nagios-users] Nagios notifications by voice call ?
To: nagios-users at lists.sourceforge.net
Message-ID: <4CA9BE63.8010703 at gmx.fr>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

  Hello * ,

I want to relay my nagios notifications by voice call and by SMS. The 
night the call ringtone is more audible...
I found many SMS providers but none to relay my notifications by voice 
call !

I have a limitation, I do not want to install a GSM modem or other 
things like that...

Thanks in advance !



------------------------------

Message: 10
Date: Mon, 04 Oct 2010 08:07:08 -0400
From: "Matthew J. Salerno" <vagabond_king at yahoo.com>
Subject: Re: [Nagios-users] Nagios notifications by voice call ?
To: Nagios Users List <nagios-users at lists.sourceforge.net>,
    nagios-users at lists.sourceforge.net
Message-ID: <4b556512-4f9b-4469-a39a-0928687ad5f6 at email.android.com>
Content-Type: text/plain; charset=utf-8

What about Google voice?

"Bob Sauvage" <bob.sauvage at gmx.fr> wrote:

>  Hello * ,
>
>I want to relay my nagios notifications by voice call and by SMS. The 
>night the call ringtone is more audible...
>I found many SMS providers but none to relay my notifications by voice 
>call !
>
>I have a limitation, I do not want to install a GSM modem or other 
>things like that...
>
>Thanks in advance !
>
>------------------------------------------------------------------------------
>Virtualization is moving to the mainstream and overtaking non-virtualized
>environment for deploying applications. Does it make network security 
>easier or more difficult to achieve? Read this whitepaper to separate the 
>two and get a better understanding.
>http://p.sf.net/sfu/hp-phase2-d2d
>_______________________________________________
>Nagios-users mailing list
>Nagios-users at 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

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.



------------------------------

Message: 11
Date: Mon, 04 Oct 2010 15:26:47 +0100
From: Assaf Flatto <nagios at flatto.net>
Subject: Re: [Nagios-users] want to configure nrpe for windows
To: nagios-users at lists.sourceforge.net
Message-ID: <4CA9E427.2010905 at flatto.net>
Content-Type: text/plain; charset="iso-8859-1"

  On 04/10/10 11:00, moses neah wrote:
> Hill,
> This a newbie to nagios. I have taken over to manage a nagios server. 
> Everything is working fine. I want to monitor the resources on the 
> windows servers (windows 2000,2003 and 2008) I google and install 
> nsclient++. I am running nagios 2.9. I get the following error " wrong 
> -l parameter". Can any body show me the proper steps?
> Thanks in advance.
>
>
>
can you provide us with a little more information , like the check 
command definition , what are you trying to query , how did you set up 
the NSclient++ ?

You know , trivial things that might shed light on your issue .


-- 
Never,Ever Cut A Deal With a Dragon


Next year I will be doing the London to Paris bike ride to
raise money for the DogTrust (www.dogstrust.co.uk) .
Please Sponsor me at http://www.justgiving.com/Assaf-Flatto

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 12
Date: Mon, 04 Oct 2010 15:28:10 +0100
From: Assaf Flatto <nagios at flatto.net>
Subject: Re: [Nagios-users] Nagios notifications by voice call ?
To: nagios-users at lists.sourceforge.net
Message-ID: <4CA9E47A.1000703 at flatto.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

  If you have access to an Astertisk server there are plugins that will 
send the alert to the asterisk and that will initiate a phone call.




On 04/10/10 12:45, Bob Sauvage wrote:
>    Hello * ,
>
> I want to relay my nagios notifications by voice call and by SMS. The
> night the call ringtone is more audible...
> I found many SMS providers but none to relay my notifications by voice
> call !
>
> I have a limitation, I do not want to install a GSM modem or other
> things like that...
>
> Thanks in advance !
>
> ------------------------------------------------------------------------------
> Virtualization is moving to the mainstream and overtaking non-virtualized
> environment for deploying applications. Does it make network security
> easier or more difficult to achieve? Read this whitepaper to separate the
> two and get a better understanding.
> http://p.sf.net/sfu/hp-phase2-d2d
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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


-- 
Never,Ever Cut A Deal With a Dragon


Next year I will be doing the London to Paris bike ride to
raise money for the DogTrust (www.dogstrust.co.uk) .
Please Sponsor me at http://www.justgiving.com/Assaf-Flatto




------------------------------

Message: 13
Date: Mon, 4 Oct 2010 09:43:24 -0500
From: Terry <td3201 at gmail.com>
Subject: Re: [Nagios-users] Nagios notifications by voice call ?
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID:
    <AANLkTin2wJnFa62EbwpTNOzJkvPTtC2AOdTbFpNnmieB at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Mon, Oct 4, 2010 at 6:45 AM, Bob Sauvage <bob.sauvage at gmx.fr> wrote:
> ?Hello * ,
>
> I want to relay my nagios notifications by voice call and by SMS. The
> night the call ringtone is more audible...
> I found many SMS providers but none to relay my notifications by voice
> call !
>
> I have a limitation, I do not want to install a GSM modem or other
> things like that...
>
> Thanks in advance !
>
> ------------------------------------------------------------------------------

Several years back when these guys got started, they offered an email
-> voice solution.  It would call any number configured and read the
email to you.  I don't think they offer it anymore but something to
get you started:
http://www.esaonline.com/



------------------------------

Message: 14
Date: Mon, 4 Oct 2010 11:31:07 -0400
From: "Robert Wolfe" <robert.wolfe at robertwolfe.org>
Subject: Re: [Nagios-users] Nagios notifications by voice call ?
To: <nagios-users at lists.sourceforge.net>
Message-ID: <50BE9C7135A64147819E42376C136B2675EB at dc1.wolfe.local>
Content-Type: text/plain;    charset="us-ascii"

Or if you have access to PHP4AGI, then you could write one yourself.  A
coworker and I wrote a plugin using that and PHP to make regular
callouts through the Asterisk server to see if it can indeed make
outgoing calls.

-----Original Message-----
From: Assaf Flatto [mailto:nagios at flatto.net] 
Sent: Monday, October 04, 2010 10:28 AM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios notifications by voice call ?

  If you have access to an Astertisk server there are plugins that will
send the alert to the asterisk and that will initiate a phone call.




On 04/10/10 12:45, Bob Sauvage wrote:
>    Hello * ,
>
> I want to relay my nagios notifications by voice call and by SMS. The
> night the call ringtone is more audible...
> I found many SMS providers but none to relay my notifications by voice
> call !
>
> I have a limitation, I do not want to install a GSM modem or other
> things like that...
>
> Thanks in advance !
>
>
------------------------------------------------------------------------
------
> Virtualization is moving to the mainstream and overtaking
non-virtualized
> environment for deploying applications. Does it make network security
> easier or more difficult to achieve? Read this whitepaper to separate
the
> two and get a better understanding.
> http://p.sf.net/sfu/hp-phase2-d2d
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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


-- 
Never,Ever Cut A Deal With a Dragon


Next year I will be doing the London to Paris bike ride to
raise money for the DogTrust (www.dogstrust.co.uk) .
Please Sponsor me at http://www.justgiving.com/Assaf-Flatto


------------------------------------------------------------------------
------
Virtualization is moving to the mainstream and overtaking
non-virtualized
environment for deploying applications. Does it make network security 
easier or more difficult to achieve? Read this whitepaper to separate
the 
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
_______________________________________________
Nagios-users mailing list
Nagios-users at 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



------------------------------

Message: 15
Date: Mon, 4 Oct 2010 11:31:59 -0400
From: "Robert Wolfe" <robert.wolfe at robertwolfe.org>
Subject: Re: [Nagios-users] want to configure nrpe for windows
To: "Nagios Users List" <nagios-users at lists.sourceforge.net>
Message-ID: <50BE9C7135A64147819E42376C136B2675EC at dc1.wolfe.local>
Content-Type: text/plain; charset="us-ascii"

It might also be a good idea if he upgrades the Nagios software as well.

 

From: Assaf Flatto [mailto:nagios at flatto.net] 
Sent: Monday, October 04, 2010 10:27 AM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] want to configure nrpe for windows

 

On 04/10/10 11:00, moses neah wrote: 

Hill,
This a newbie to nagios. I have taken over to manage a nagios server.
Everything is working fine. I want to monitor the resources on the
windows servers (windows 2000,2003 and 2008) I google and install
nsclient++. I am running nagios 2.9. I get the following error " wrong
-l parameter". Can any body show me the proper steps?
Thanks in advance.

 

can you provide us with a little more information , like the check
command definition , what are you trying to query , how did you set up
the NSclient++ ?

You know , trivial things that might shed light on your issue .
 




-- 
Never,Ever Cut A Deal With a Dragon 
 
 
Next year I will be doing the London to Paris bike ride to 
raise money for the DogTrust (www.dogstrust.co.uk) .
Please Sponsor me at http://www.justgiving.com/Assaf-Flatto
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security 
easier or more difficult to achieve? Read this whitepaper to separate the 
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d

------------------------------

_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users


End of Nagios-users Digest, Vol 53, Issue 3
*******************************************



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20101004/e9c19423/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security 
easier or more difficult to achieve? Read this whitepaper to separate the 
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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


More information about the Users mailing list