Re: [Nagios-users] A question on nagios group nagcmd

2011-03-10 Thread Marc Powell
On Thu, Mar 10, 2011 at 1:19 PM, steve f  wrote:

My question is, the docs say to create the group nagcmd and add nagios &
> wwwrun to the group in order to allow external commands to be submitted thru
> the web interface.
>
> What external commands are we talking about here?  Are we talking about the
> service commands from the check screen ( disable checks, schedule downtime,
> etc)  .
>

Yes, you will not be able to use those. It's a straightforward unix
permissions thing.

Is is safe to assume that if wwwrun was not in the nagcmd group baaa
> things will happen in the web console?  Not anywhere near my system so I
> cant try to see what would happen.
>

I wouldn't say entirely bad. You'll have a complete view-only interface; you
just won't be able to schedule downtime, etc...

Any thoughts before I rewrite the central password system to put both a
> regular user & a daemon user in the same file  ?
>

Can you manually edit the group file or will that bork your system? You
*could* chmod 777 the command pipe but since it gets removed and recreated
every restart, you'd want to make that part of the init script.

--
Marc
--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
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] A question on nagios group nagcmd

2011-03-10 Thread C. Bensend

> My question is, the docs say to create the group nagcmd and add nagios &
> wwwrun to the group in order to allow external commands to be submitted
> thru the web interface.
>
> What external commands are we talking about here?  Are we talking about
> the service commands from the check screen ( disable checks, schedule
> downtime, etc)  .
>
> Is is safe to assume that if wwwrun was not in the nagcmd group baaa
> things will happen in the web console?  Not anywhere near my system so I
> cant try to see what would happen.
>
> Any thoughts before I rewrite the central password system to put both a
> regular user & a daemon user in the same file  ?

What "regular" user?  nagios?

Because really, from your description above, both "nagios" and
"wwwrun" users should be daemon users, so you should be able to
have them in the same file and avoid the problem.

After all, the nagios user is the one that Nagios daemon will be
running as...

Benny


-- 
"Hairy ape nads."-- Colleen, playing Neverwinter Nights



--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
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] A question on nagios group nagcmd

2011-03-10 Thread steve f

I am finally getting my production nagios build.

One of our production configurations in Linux is a central password system.  no 
accounts can be created locally.  They have to be build in the cent pword and 
are created on the box locally.

Due to the way the system is build, the wwwrun & nagios accounts are in 2 
different files on the cent pword system.  As such, the system will not allow 2 
accounts from different files to be in the same group.

My question is, the docs say to create the group nagcmd and add nagios & wwwrun 
to the group in order to allow external commands to be submitted thru the web 
interface.

What external commands are we talking about here?  Are we talking about the 
service commands from the check screen ( disable checks, schedule downtime, 
etc)  .

Is is safe to assume that if wwwrun was not in the nagcmd group baaa things 
will happen in the web console?  Not anywhere near my system so I cant try to 
see what would happen.

Any thoughts before I rewrite the central password system to put both a regular 
user & a daemon user in the same file  ?

Thanks,

Steve
  --
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
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] ServiceGroup Best Practices Question

2011-03-10 Thread steve f

hello David,

Not saying its the best way but I have a separate file in my objects dir called 
servicegroup.cfg  where I set up as follows :

define servicegroup{

servicegroup_name   Legacy Checks
alias   Store Legacy Checks
}

then in my services.cfg file, I have a line added as follows :

define service{
   use generic-service
   servicegroups  Legacy Checks


I have multiple checks that I wanted to group together under a single service 
group heading.  This is the only (?) way I found to do it.  You can add the 
members ( hosts)  to the servicegroup file and the checks but I found this way 
to be easier.

if you create a separate file, dont forget to be sure its identified in your 
nagios .cfg file.

If anyone has a better way to do this,  would love to hear about it.  This way 
does work for my config your mileage may vary.

Good Luck,

Steve

From: d...@cayuga-cc.edu
To: nagios-users@lists.sourceforge.net
Date: Thu, 10 Mar 2011 15:25:32 -0500
Subject: [Nagios-users] ServiceGroup Best Practices Question



I’m new to Nagios.  Running Nagios 3.2.3. I want to start using Service Groups, 
but I’m not sure of the best place to put the service group definitions. What 
is making me question the location is eventually I will want to create a 
service group that contains services hosted on both Linux and Windows machines, 
so I’m thinking of creating a new config file to hold the service groups, then 
in nagios.cfg use cfg_file= to load it in after the Windows and Linux machines 
are loaded. Where do you create service groups?  
--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
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  
  --
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
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] ServiceGroup Best Practices Question

2011-03-10 Thread Mike Lindsey

On 3/10/11 12:25 PM, David Harbaugh wrote:


I'm new to Nagios.  Running Nagios 3.2.3.

I want to start using Service Groups, but I'm not sure of the best 
place to put the service group definitions.


What is making me question the location is eventually I will want to 
create a service group that contains services hosted on both Linux and 
Windows machines, so I'm thinking of creating a new config file to 
hold the service groups, then in nagios.cfg use cfg_file= to load it 
in after the Windows and Linux machines are loaded.


Where do you create service groups?

I put all my service groups in 'service_groups.cfg'.  The order in which 
you specify them in nagios.cfg does not matter.


--
Mike Lindsey

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
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] ServiceGroup Best Practices Question

2011-03-10 Thread David Harbaugh
I'm new to Nagios.  Running Nagios 3.2.3.

I want to start using Service Groups, but I'm not sure of the best place to put 
the service group definitions.

What is making me question the location is eventually I will want to create a 
service group that contains services hosted on both Linux and Windows machines, 
so I'm thinking of creating a new config file to hold the service groups, then 
in nagios.cfg use cfg_file= to load it in after the Windows and Linux machines 
are loaded.

Where do you create service groups?
--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
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] Fwd: Availability Report

2011-03-10 Thread Aravind M D
 On Thu, 10 Mar 2011 10:43:47 -0600, "C. Bensend" 
  wrote:
>>  Its ignoring my timeperiod and generating availability record. I 
>> want
>>  to generate availability for timeperiod 06:00 to 22:00 so i created 
>> the
>>  below timeperiod
>>
>>  define timeperiod {
>>  timeperiod_name 16x7
>>  alias   For avialability report
>>  sunday  06:00-22:00
>>  monday  06:00-22:00
>>  tuesday 06:00-22:00
>>  wednesday   06:00-22:00
>>  thursday06:00-22:00
>>  friday  06:00-22:00
>>  saturday06:00-22:00
>>  }
>>
>>   While generating availability report i am selecting this 
>> timeperiod in
>>  Report time period option but availability report is ignoring this.
>
> If indeed it's ignoring your timeperiod and calculating the
> availability on a 24x7 basis, it sounds like a flaw in the
> availability report.
>
> If you're versed in C, you might check avail.c in the cgi/ directory
> of the source distribution.  Perhaps you can find the flaw and
> submit a patch!
>
>

 Hi

 Is anyone successfull in generating report like above scenario. Can 
 anyone help me to solve the issue.

 Rgds,
 Aravind


--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
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] Fwd: Availability Report

2011-03-10 Thread C. Bensend

>  Its ignoring my timeperiod and generating availability record. I want
>  to generate availability for timeperiod 06:00 to 22:00 so i created the
>  below timeperiod
>
>  define timeperiod {
>  timeperiod_name 16x7
>  alias   For avialability report
>  sunday  06:00-22:00
>  monday  06:00-22:00
>  tuesday 06:00-22:00
>  wednesday   06:00-22:00
>  thursday06:00-22:00
>  friday  06:00-22:00
>  saturday06:00-22:00
>  }
>
>   While generating availability report i am selecting this timeperiod in
>  Report time period option but availability report is ignoring this.

If indeed it's ignoring your timeperiod and calculating the
availability on a 24x7 basis, it sounds like a flaw in the
availability report.

If you're versed in C, you might check avail.c in the cgi/ directory
of the source distribution.  Perhaps you can find the flaw and
submit a patch!

Benny


-- 
"Hairy ape nads."-- Colleen, playing Neverwinter Nights



--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
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] service notification logged but not done

2011-03-10 Thread Paul M. Dubuc
Could it be that your scripts are stored on an NFS mounted filesystem or other 
networked storage? (What is $USER1$ defined to be?)  If so, maybe you're 
having intermittent problems with access.  Using local storage for the scripts 
will solve this problem.  You might find some evidence of the problem by 
turning on debugging in Nagios and looking at it's debug output (see 
debug_file, debug_level and debug_verbosity parameters in nagios.cfg.

Hope this helps,
Paul Dubuc

MAYER Hans wrote:
> Dear Chad
>
> Ø Have you recently upgraded Nagios?
>
> Yes, I am running Core 3.2.3 since Feb 24^th
>
> Ø When did you start noticing that it was missing execution runs?
>
> I noticed the problem month ago. even with version 3.2.1 - therefore I
> made an upgrade to the latest version, to see, if this would fix the
> problem.
>
> Ø Do you have enough disk space free?
>
> As I said: 91 % free, only 9 % used
>
> Ø What are the permissions of the script set to?
>
> -rwxr-xr-x   1 nagios   nagios  1035 Feb 18 10:17 rshsendsms
>
> I said, it happens only sometimes. Wrong permissions would result in a
> never working situation.
>
> Ø Were they recently changed?
>
> No.
>
> Ø Have you done any type of software changes with any type of supporting
> packages (i.e. Perl) that could have brought up this issue?
>
> No, this server is running since Jun 2010 unchanged.
>
> What happens within Nagios between writing the log-file and executing
> the script ? Something permits to execute the script, but only sometimes.
>
>
> Kind regards
>
> Hans
>
> *From:* Chad Rhyner [mailto:crhy...@box.net]
> *Sent:* Wednesday, March 09, 2011 6:32 PM
> *To:* Nagios Users List
> *Cc:* MAYER Hans
> *Subject:* Re: [Nagios-users] service notification logged but not done
>
> Have you recently upgraded Nagios? When did you start noticing that it
> was missing execution runs? Do you have enough disk space free? What are
> the permissions of the script set to? Were they recently changed? Have
> you done any type of software changes with any type of supporting
> packages (i.e. Perl) that could have brought up this issue?
>
> Here are some thoughts on where I would start looking. Anything that you
> can dig up we can look at more closely to identify a potential cause for
> this issue.
>
> ~Chad
>
> On Wed, Mar 9, 2011 at 1:29 AM, MAYER Hans  > wrote:
>
> Dear all
>
> Using Nagios since a lot of years, I was starting with one of the first
> versions of “netsaint”, and more than 25 years of experience with UNIX,
> I have now a strange problem I never had before.
>
> I am running Nagios Core 3.2.3 on Solaris 10 OS. Hardware is M3000 with
> SPARC V9 architecture.
>
> My problem is, I see sometimes – not always – a service notification in
> the log, but it is not really done.
>
> Here an example, the entry in the log
>
> [03-09-2011 09:13:25] SERVICE NOTIFICATION:
> sms_mayer;amazon;DISK/p14amazon;OK;notify-service-by-sms;DISK OK - free
> space: /p14amazon 4531 MB (6% inode=99%):
>
> Here is the definition for notify-service-by-sms
>
> # 'notify-service-by-sms' command definition
>
> define command{
>
> command_name notify-service-by-sms
>
> command_line $USER1$/rshsendsms $CONTACTPAGER$ \"Info:
> $HOSTALIAS$/$SERVICEDESC$ $SERVICEOUTPUT$ \"
>
> }
>
> As you see I execute a command named “rshsendsms”. And this are the
> first lines of the shell script:
>
> :
>
> # Wed Jan 19 10:12:15 MET 2011 - mayer initial
>
> # Wed Feb 16 10:11:54 MET 2011 - mayer logging the UID
>
> # usage:
>
> # rshsendsms 0043664xxx '"hello world - how are you "'
>
> # info: both types of apostrophes are important
>
> export PATH LOG NUMBER TEXT ID UID NOTSENT RUNLOG
>
> PATH=/usr/bin:$PATH
>
> LOG=/var/adm/rshsendsms.log
>
> RUNLOG=/var/adm/rshsendsms_run.log
>
> date '+%y%m%d %H:%M' >> $RUNLOG
>
> The first action I do, I write a log-entry. (91% of the disk is free)
> But in this case I cannot find the entry. The last one is dated with
> 110309 06:39, where I received a SMS really. I also switched on the
> process accounting weeks ago. But there is no entry to be found, that
> the shell script was executed.
>
> I also switched on the debug facility of “syslog”. I can find an
> equivalent entry like in the Nagios log. But there are no other
> messages, that something could be wrong.
>
> But on other hand I was informed at 06:39 and nothing was changed in the
> meantime. This is not the first time this problem happens. Most of the
> time notification works fine, but sometimes not. This is of course a
> pain as notification is one central functionality of Nagios.
>
> Any idea where I can start searching for the error ?
>
> Kind regards
>
> Hans
>
>
> --
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> ___
> Na

Re: [Nagios-users] Fwd: Availability Report

2011-03-10 Thread Aravind M D
 On Thu, 10 Mar 2011 07:25:43 -0600, "C. Bensend" 
  wrote:
>> I am
>> selecting custom time period only but the availability report is not
>> taking the Report time period option it always go for 00:00 to
>> 24:00.
>
> Ah, yes, I see that in your original message, sorry.
>
> H, I don't use the custom reporting...  Is it just *displaying*
> the 00:00 - 24:00 time and is actually generating availability
> data taking your timeperiod into account, or is it *ignoring* your
> timeperiod and generating availability for 00:00 - 24:00?

 Its ignoring my timeperiod and generating availability record. I want 
 to generate availability for timeperiod 06:00 to 22:00 so i created the 
 below timeperiod

 define timeperiod {
 timeperiod_name 16x7
 alias   For avialability report
 sunday  06:00-22:00
 monday  06:00-22:00
 tuesday 06:00-22:00
 wednesday   06:00-22:00
 thursday06:00-22:00
 friday  06:00-22:00
 saturday06:00-22:00
 }

  While generating availability report i am selecting this timeperiod in 
 Report time period option but availability report is ignoring this.

 Rgds,
 Aravind


--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
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] Fwd: Availability Report

2011-03-10 Thread C. Bensend

> I am
> selecting custom time period only but the availability report is not
> taking the Report time period option it always go for 00:00 to
> 24:00.

Ah, yes, I see that in your original message, sorry.

H, I don't use the custom reporting...  Is it just *displaying*
the 00:00 - 24:00 time and is actually generating availability
data taking your timeperiod into account, or is it *ignoring* your
timeperiod and generating availability for 00:00 - 24:00?

Benny


-- 
"Hairy ape nads."-- Colleen, playing Neverwinter Nights



--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
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] Fwd: Availability Report

2011-03-10 Thread Aravind M D


Hi Benny, 

> If you select a custom report period, you can select
not only the
> days you want included, but the timeperiod.

I am
selecting custom time period only but the availability report is not
taking the Report time period option it always go for 00:00 to
24:00.

Rgds,
Aravind M D

 --
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
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] Availability Report

2011-03-10 Thread C. Bensend

> I need to generate availability for a service in a
> particular timeperiod. I have created one timeperiod in nagios from
> 06:00 to 22:00 every day. While creating availability report in report
> time period i am selecting that timeperiod but the report always
> generating from 00:00 to 24:00. Can anyone please help me on this.

If you select a custom report period, you can select not only the
days you want included, but the timeperiod.

Benny


-- 
"Hairy ape nads."-- Colleen, playing Neverwinter Nights



--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
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] how to send passive checks with send_nsca

2011-03-10 Thread Marco Borsani
Hi all

 

I am reading many and many information regarding NSCA and send_nsca.

I have configured a server with nsca demon running and a client within
send_nsca.

 

1)

If I use this simple command, everything will go in the right way:

/opt/nagios/bin/send_nsca -H SERVER_NAME -d ';' -c
/opt/nagios/etc/send_nsca.cfg < /opt/nagios/etc/objects/passive.txt

 

The file “passive.txt” is something like this:

host_cliente;CurrentLoad;0;TEST

 

In the server I have configured a passive_check  that run the “check_dummy”
command.

 

2)

I tried also a script that writes info into Nagios.cmd file like this :

#!/bin/sh

CLOCK=$(date +%s)

HOST=$1

STATUS=$2

OUTPUT=$3

SVC=$4

echo "[$CLOCK] PROCESS_SERVICE_CHECK_RESULT;$HOST;$SVC;$STATUS;$OUTPUT" >>
/opt/nagios/var/rw/nagios.cmd

 

I see information in the client syslog and nagios.log file , but nothing
arrives to the Nagios server … probably because nothing send them to it ! J

 

3)

Moreover, how can I use the output from a REAL command that is running on my
client (check_tcp , check_http, etc.) ?

Perhaps I have to implement something more in the server (specific service,
…)  and/or in the client

 

 

Please, any idea ?

regards

 

Marco Borsani

Unix and Monitoring Sysadmin

Technical Operations Dpt.

tel: +39 010 4310115

fax: +39 02 30130311

cell: +39 329 5953944

ITnet Srl

Società con socio unico

Direzione e Coordinamento di WIND TELECOM S.p.A.

 

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
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] service notification logged but not done

2011-03-10 Thread MAYER Hans

Dear Chad


Ø  Have you recently upgraded Nagios?
Yes, I am running Core 3.2.3 since Feb 24th


Ø  When did you start noticing that it was missing execution runs?
I noticed the problem month ago. even with version 3.2.1 - therefore I made an 
upgrade to the latest version, to see, if this would fix the problem.


Ø  Do you have enough disk space free?
As I said: 91 % free, only 9 % used


Ø  What are the permissions of the script set to?
-rwxr-xr-x   1 nagios   nagios  1035 Feb 18 10:17 rshsendsms
I said, it happens only sometimes. Wrong permissions would result in a never 
working situation.


Ø  Were they recently changed?
No.


Ø  Have you done any type of software changes with any type of supporting 
packages (i.e. Perl) that could have brought up this issue?
No, this server is running since Jun 2010 unchanged.

What happens within Nagios between writing the log-file and executing the 
script ? Something permits to execute the script, but only sometimes.


Kind regards
Hans


From: Chad Rhyner [mailto:crhy...@box.net]
Sent: Wednesday, March 09, 2011 6:32 PM
To: Nagios Users List
Cc: MAYER Hans
Subject: Re: [Nagios-users] service notification logged but not done

Have you recently upgraded Nagios?  When did you start noticing that it was 
missing execution runs?  Do you have enough disk space free?  What are the 
permissions of the script set to?  Were they recently changed?  Have you done 
any type of software changes with any type of supporting packages (i.e. Perl) 
that could have brought up this issue?

Here are some thoughts on where I would start looking.  Anything that you can 
dig up we can look at more closely to identify a potential cause for this issue.

~Chad
On Wed, Mar 9, 2011 at 1:29 AM, MAYER Hans 
mailto:ma...@iiasa.ac.at>> wrote:


Dear all

Using Nagios since a lot of years, I was starting with one of the first 
versions of "netsaint", and more than 25 years of experience with UNIX, I have 
now a strange problem I never had before.
I am running Nagios Core 3.2.3 on Solaris 10 OS. Hardware is M3000 with SPARC 
V9 architecture.

My problem is, I see sometimes - not always - a service notification in the 
log, but it is not really done.

Here an example, the entry in the log

[03-09-2011 09:13:25] SERVICE NOTIFICATION: 
sms_mayer;amazon;DISK/p14amazon;OK;notify-service-by-sms;DISK OK - free space: 
/p14amazon 4531 MB (6% inode=99%):

Here is the definition for notify-service-by-sms

# 'notify-service-by-sms' command definition
define command{
command_namenotify-service-by-sms
command_line$USER1$/rshsendsms $CONTACTPAGER$ \"Info: 
$HOSTALIAS$/$SERVICEDESC$ $SERVICEOUTPUT$ \"
}


As you see I execute a command named "rshsendsms". And this are the first lines 
of the shell script:

:

# Wed Jan 19 10:12:15 MET 2011 - mayer initial
# Wed Feb 16 10:11:54 MET 2011 - mayer logging the UID

# usage:
# rshsendsms 0043664xxx  '"hello world - how are you "'
# info: both types of apostrophes are important

export PATH LOG NUMBER TEXT ID UID NOTSENT RUNLOG

PATH=/usr/bin:$PATH

LOG=/var/adm/rshsendsms.log
RUNLOG=/var/adm/rshsendsms_run.log

date '+%y%m%d %H:%M' >> $RUNLOG

The first action I do, I write a log-entry. (91% of the disk is free) But in 
this case I cannot find the entry. The last one is dated with  110309 06:39, 
where I received a SMS really. I also switched on the process accounting weeks 
ago. But there is no entry to be found, that the shell script was executed.
I also switched on the debug facility of "syslog". I can find an equivalent 
entry like in the Nagios log. But there are no other messages, that something 
could be wrong.
But on other hand I was informed at 06:39 and nothing was changed in the 
meantime. This is not the first time this problem happens. Most of the time 
notification works fine, but sometimes not. This is of course a pain as 
notification is one central functionality of Nagios.

Any idea where I can start searching for the error ?

Kind regards
Hans




--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
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

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https