Re: [Nagios-users] Advice on Plugin Development

2005-12-19 Thread Nick Weisser

Thanks for you input.

Regards
Nick



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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] nagios giving problem

2005-12-19 Thread Askar Ali

hi list


i recently migrated the nagios from one machine to another. the previous 
were running 2.0b2 and the new one is running 2.0b6.


i copied all the configuration files and custom plugins from the old to 
new machine,


now i'm getting problem with nagios on the new machine.

1) when i start nagios with "nagios start" srcipt it gives me an error

/usr/local/nagios# /etc/rc.d/rc.nagios start
Starting network monitor: nagios
No directory, logging in with HOME=/

okay i thinks its working but i'm can access the web its gives me error..

2)
It appears as though you do not have permission to view information for 
any of the hosts you requested...
If you believe this is an error, check the HTTP server authentication 
requirements for accessing this CGI

and check the authorization options in your CGI configuration file.

3) when i gives command /etc/rc.d/rc.nagios stop its sometime gives me ...

can't find /usr/local/nagios/var/nagios.lock ... and long screen to 
nagios usages.


nagios -v nagios.cfg , gives no error or warning.

I can successfully logged in to web interface but can't able to view any 
host info.



any help in this regards will be greatly appreciated


regards,

askar




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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] Nagios Hypergraph 3D view

2005-12-19 Thread Sébastien Barbereau
Hello list,
I've made a simple script to transform a Nagios configuration tree into a strutuctured XML document readable by hypergraph (http://hypergraph.sourceforge.net/).

This enables you to have an alerternate 3D view of the parent relationship between host in your configuration.
A demo is running here: http://barbich.net/hypergraph_demo/
Screenshot: http://barbich.net/hypergraph_demo/sample_hypergraph.png
Script sources and sample files are in the same place.
 
Merry christmas to everyone,
Seb.Barbereau
 
 


[Nagios-users] nagios starting problem

2005-12-19 Thread Askar Ali
I have installed nagios 2.0b6 on OS slackware, when I starts it, it 
gives error...

(actaully migrated from one machine to another which were running 2.0b2)

/etc/rc.d/rc.nagios start
Starting network monitor: nagios
No directory, logging in with HOME=/


however its working, secondly *sometime* when I stop nagios by 
/etc/rc.d/rc.nagios stop it gives error no nagios.lock file find and 
show me the long listing of Usage.



I even replaced the init script of 2.0b6 with 2.0b2 but still the same 
error.


any idea where i'm making some mistake?

regards

Askar Ali



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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] Monitoring Oracle DB running on Windows

2005-12-19 Thread Pavel Santos
Hello List,
 
Is there a way to monitor an Oracle Database running on a Windows Server using 
Nagios?  
 
Thanks, 
 
Pavel   


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
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 starting problem

2005-12-19 Thread Marco Ramos

What's the homedir of the user nagios? Is this the directory under which
Nagios is installed?

HTH,
Marco Ramos

On Mon, 2005-12-19 at 19:12 +0500, Askar Ali wrote:
> I have installed nagios 2.0b6 on OS slackware, when I starts it, it 
> gives error...
> (actaully migrated from one machine to another which were running 2.0b2)
> 
> /etc/rc.d/rc.nagios start
> Starting network monitor: nagios
> No directory, logging in with HOME=/
> 
> 
> however its working, secondly *sometime* when I stop nagios by 
> /etc/rc.d/rc.nagios stop it gives error no nagios.lock file find and 
> show me the long listing of Usage.
> 
> 
> I even replaced the init script of 2.0b6 with 2.0b2 but still the same 
> error.
> 
> any idea where i'm making some mistake?
> 
> regards
> 
> Askar Ali
> 
> 
> 
> ---
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> ___
> 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: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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 starting problem

2005-12-19 Thread Askar Ali




Marco Ramos wrote:

  What's the homedir of the user nagios? Is this the directory under which
Nagios is installed?

HTH,
Marco Ramos

On Mon, 2005-12-19 at 19:12 +0500, Askar Ali wrote:
  
  
I have installed nagios 2.0b6 on OS slackware, when I starts it, it 
gives error...
(actaully migrated from one machine to another which were running 2.0b2)

/etc/rc.d/rc.nagios start
Starting network monitor: nagios
No directory, logging in with HOME=/


however its working, secondly *sometime* when I stop nagios by 
/etc/rc.d/rc.nagios stop it gives error no nagios.lock file find and 
show me the long listing of Usage.


I even replaced the init script of 2.0b6 with 2.0b2 but still the same 
error.

any idea where i'm making some mistake?

regards

Askar Ali



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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


  

Hi Marco,

 Thanks for the tip :) homedir for nagios user was /home/nagios. so i
changed it to /usr/local/nagios and now its starting without any error.


thanks regards

Askar Ali








Re: [Nagios-users] JMX notifications->snmptrapd->snmptt->Nagios Configuation

2005-12-19 Thread Karan uk
Thanx Soumya for ur reply.
    Yes what all u said was done.
The case happening here is that the configured nagios is not executing
the entries in the nagios.cmd,though the respective conf in nagios.cfg
is---
check_external_commands=1
command_check_interval=1
command_file=/usr/local/nagios/var/rw/nagios.cmd
--- 
looking fwd for ur thoughts,
nKaranUkOn 12/16/05, Soumya Nambiar <[EMAIL PROTECTED]> wrote:







  Hello,
  

  The 
is_volatile should be set to 1.
 
  
By the way did u convert the mib file u require using snmpttconvertmib.If so 
that line should be added to ur snmptt.ini file.
 
  
Soumya Nambiar

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Karan 
  ukSent: Friday, December 16, 2005 10:26 AMTo: 
  nagios-users@lists.sourceforge.netSubject: [Nagios-users] JMX 
  notifications->snmptrapd->snmptt->Nagios 
  ConfiguationHello, I was looking to configure Nagios 
  so that it can accept SNMP traps(JMX notification thru snmptrapd->snmptt) 
  and send e-mail. As per the doc's i've got snmptrapd writing the 
  nagios.cmd file.But configured Nagios seems to not react to the 
  PROCESS_SERVICE_CHECK_RESULT entries in the command file. The 
  configuration files i'm using are as bellow.Do let me know if i'm missing 
  something in the conf. or the way to make nagios execute nagios.cmd entries. 
  Nagios Version 1.3 nagios.cmd-- 1 PROCESS_SERVICE_CHECK_RESULT 
  :winnt_host:TRAP:1:Trap received Respective conf in nagios.cfg--- 
  check_external_commands=1 command_check_interval=1 
  command_file=/usr/local/nagios/var/rw/nagios.cmd --- 
  services.cfg-- define service{ use generic-service e template 
  to use host_name winnt_host service_description TRAP 
  is_volatile 0 check_period 24x7 max_check_attempts 3 
  normal_check_interval 5 retry_check_interval 1 
  active_checks_enabled 0 passive_checks_enabled 1 contact_groups 
  nt-admins notification_interval 120 notification_period 24x7 
  notification_options w,u,c,r check_command check-host-alive } 
  -- snmptt.ini--- dns_enable = 0 strip_domain = 0 
  net_snmp_perl_enable = 0 translate_value_oids = 0 
  translate_enterprise_oid_format = 1 -- 
  snmptrapd.conf--- traphandle default /usr/sbin/snmptt 
  - thanks in advance, nkaranuk 





Re: [Nagios-users] nagios starting problem

2005-12-19 Thread Askar Ali




Marco Ramos wrote:

  What's the homedir of the user nagios? Is this the directory under which
Nagios is installed?

HTH,
Marco Ramos

On Mon, 2005-12-19 at 19:12 +0500, Askar Ali wrote:
  
  
I have installed nagios 2.0b6 on OS slackware, when I starts it, it 
gives error...
(actaully migrated from one machine to another which were running 2.0b2)

/etc/rc.d/rc.nagios start
Starting network monitor: nagios
No directory, logging in with HOME=/


however its working, secondly *sometime* when I stop nagios by 
/etc/rc.d/rc.nagios stop it gives error no nagios.lock file find and 
show me the long listing of Usage.


I even replaced the init script of 2.0b6 with 2.0b2 but still the same 
error.

any idea where i'm making some mistake?

regards

Askar Ali



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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


  
  


  

however I still *sometime* (not every time) error when stopping nagios.

/etc/rc.d/rc.nagios stop
Stopping network monitor: nagios
Waiting for nagios to exit .head: cannot open
`/usr/local/nagios/var/nagios.lock' for reading: No such file or
directory
ERROR: List of process IDs must follow -p.
* simple selection *  * selection by list
*
-A all processes  -C by command name
-N negate selection   -G by real group ID (supports
names)
-a all w/ tty except session leaders  -U by real user ID (supports
names)
-d all except session leaders -g by session OR by effective
group name
-e all processes  -p by process ID
T  all processes on this terminal -s processes in the sessions given
a  all w/ tty, including other users  -t by tty
g  OBSOLETE -- DO NOT USE -u by effective user ID (supports
names)
r  only running processes U  processes for specified users
x  processes w/o controlling ttys t  by tty
.
.

any idea what i'm missing here?

regards


Askar Ali




Re: [Nagios-users] nagios starting problem

2005-12-19 Thread Marco Ramos
On Mon, 2005-12-19 at 19:32 +0500, Askar Ali wrote:

> >   
> however I still *sometime* (not every time) error when stopping
> nagios.
> 
> /etc/rc.d/rc.nagios stop
> Stopping network monitor: nagios
> Waiting for nagios to exit .head: cannot open
> `/usr/local/nagios/var/nagios.lock' for reading: No such file or
> directory

Does this directory have read/write permissions for the user nagios?

HTH,
Marco Ramos



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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 starting problem

2005-12-19 Thread Askar Ali




Marco Ramos wrote:

  On Mon, 2005-12-19 at 19:32 +0500, Askar Ali wrote:

  
  


  

however I still *sometime* (not every time) error when stopping
nagios.

/etc/rc.d/rc.nagios stop
Stopping network monitor: nagios
Waiting for nagios to exit .head: cannot open
`/usr/local/nagios/var/nagios.lock' for reading: No such file or
directory

  
  
Does this directory have read/write permissions for the user nagios?

HTH,
Marco Ramos



  

yep,

ls -l 
drwxr-xr-x  3 nagios nagios  328 2005-12-19 19:43 var

and ls -l var

rwxr-xr-x  2 nagios nagios  11528 2005-12-19 14:19 archives
-rw-r--r--  1 nagios nagios    240 2005-12-19 14:19 comments.dat
-rw-r--r--  1 nagios nagios    241 2005-12-19 14:19 downtime.dat
-rw-r--r--  1 nagios nagios  6 2005-12-19 19:41 nagios.lock
-rw-r--r--  1 nagios nagios 144777 2005-12-19 19:41 nagios.log
-rw-r--r--  1 nagios nagios 205500 2005-12-19 19:41 objects.cache
-rw-r--r--  1 nagios nagios 310521 2005-12-19 19:41 retention.dat
-rw-rw-r--  1 nagios nagios 295578 2005-12-19 19:43 status.dat


however even though it gives error on stopping but its do kill the
nagios process.


regards

askar





Re: [Nagios-users] Monitoring Oracle DB running on Windows

2005-12-19 Thread Ben O'Hara
contribs/check_oracle.sh should do what you need.

Ben

On 12/19/05, Pavel Santos <[EMAIL PROTECTED]> wrote:
> Hello List,
>
> Is there a way to monitor an Oracle Database running on a Windows Server 
> using Nagios?
>
> Thanks,
>
> Pavel
>
>
> ---
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
> ___
> 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
>


--
"A Scientist will earn a living by taking a really difficult problem
and spends many years solving it, an engineer earns a living by
finding really difficult problems and side stepping them"


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
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] NRPE 2.0 arguments question

2005-12-19 Thread Rafael Bandeira da Costa




Hello
Jeremy


   There is no problem about it... I have my checkcommands.cfg's
check_nrpe configured like check_nrpe -t 30 -H $HOSTADDRESS$ -c $ARG1$
-a $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$ $ARG10$
$ARG11$, just in case I need lots of arguments.


   The only point you have to pay attention is passing no arguments at
all... There may be - as far as I'm concerned - two problems:


1. Passing no arguments at service configuration will cause a blank -a
execution of check_nrpe, causing and error (check_nrpe: option requires
and argument -- a).


In this case, you can use just a dummy argument, like check_command
check_nrpe!check_cpu!1. No real function to the "1" argument, but
solves your problem!


2. If the NRPE host was not compiled with --enable-command-args, you
will receive an unkown status with the message "CHECK_NRPE output
error" (or something like that).


For both cases, another way to solve those problems would be creating
two different check commands, i.e. check_nrpe_args and
check_nrpe_noargs.


   I hope that helps you!


Cheers,

Rafael Costa

[EMAIL PROTECTED]

Curitiba / PR / Brasil



Pavleck, Jeremy D. escreveu:


Greetings,
  
If I setup an nrpe.cfg check of something like check_procs -w $ARG1$ -c
  
$ARG2$ -a $ARG3$ $ARG4$ and don't supply an $ARG4$, will it error or
  
simple just carry on with the check? I'm trying to make some overly
  
generic remote checks here, and something like this would be great.
  
Thanks.
  
  
Jeremy D. Pavleck
  
Network Engineer
  
System Management
  

  
Direct Line: 612-977-5881
  
Toll Free: 1-888-CAPELLA ext. 5881
  
Fax: 612-977-5060
  
E-mail: [EMAIL PROTECTED]
  

  
Capella University
  
225 South 6th Street, 9th Floor
  
Minneapolis, MN 55402
  
  
  www.capella.edu
  






RE: [Nagios-users] 1.3: Cannot ping a host, so how do I tell if i t is "up"?

2005-12-19 Thread Tedman Eng
Keep in mind that you can't pass arguments to a hostcheck command.
(see Marcos page in docs)
What I do is create a few alternative hostcheck commands using check_tcp.

check-host-alive-22
check-host-alive-80



> -Original Message-
> From: fire-eyes [mailto:[EMAIL PROTECTED]
> Sent: Sunday, December 18, 2005 12:20 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] 1.3: Cannot ping a host, so how do I 
> tell if it
> is "up"?
> 
> 
> I'm using 1.3.
> 
> When I define a host, the only command defined which I see I 
> can use is
> check-host-alive. This uses ping to determine if it is "UP". 
> What could
> I do to determine if it is up, if I can't ping it, since the 
> host drops
> those?
> 
> I figure I could fall back to a tcp port, however I tried
> check_tcp!someport but nagios doesn't like the "!someport" in 
> hosts.cfg.
> 
> Any ideas?
> 
> 
> ---
> This SF.net email is sponsored by: Splunk Inc. Do you grep 
> through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  
> DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> ___
> 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: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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] Re: How to use newline in config files

2005-12-19 Thread Jason Bodnar
On Sun, 18 Dec 2005 10:08:37 +0100, Sebastian Kayser wrote
> * Jason Bodnar <[EMAIL PROTECTED]> wrote:
> > I need to have a newline as an arguement for a check_command. \n doesn't 
> > work.
> > ^J does work. Hitting Enter and putting the rest on a separate line causes
> > nagios to choke on the config file. How do you put include a newline in an
> > arguement?
> 
> You could try to write a wrapper (with bash/perl/...) for your check
> script which calls the relevant command with a newline. Thereafter 
> you would define a check_command for your wrapper instead of the relevant
> command itself.
> 
> But post some details on which command you want to be called on how you
> have tried it 'til now, maybe there are other ways.

I have a service defined as so:

define service {
 use generic-service
 host_name   db
 service_description AppServer
 is_volatile 0
 check_period24x7
 max_check_attempts  4
 normal_check_interval   5
 retry_check_interval1
 contact_groups  admins
 notification_interval   60
 notification_period 24x7
 check_command   check_tcp!db.foo.com!3737!PING\n!ACK
}

But that doesn't work even when using the command line like so:

$ /usr/lib/nagios/plugins/check_tcp -H db.foo.com -p 3737 -s 'PING\n' -e 'ACK'

What does work is putting actuall newlines but you can't do that in the config
file. I remember reading about a character sequence you're supposed to use for
newlines in the config files but I can't find it anywhere.

--
Jason Bodnar
[EMAIL PROTECTED]
http://www.shakabuku.org

UnWired Buyer. The best way to win on eBay. Period.
http://www.unwiredbuyer.com



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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] Service notifications tied to host_groups?

2005-12-19 Thread Ben Beuchler
>From my understanding of the manual, who gets notified for a service
problem is separate from who gets notified for a host problem.  Is
there a way to configure things so that a service-related notification
is sent to the host_group's contact group instead?

For example:

HostA is managed by Bob.
HostB is managed by Bill.

Both HostA and HostB run Apache, so in my nagios config there is an
HTTP service with "HostA,HostB" in the "host_name" field.  If HTTP
dies on either HostA or HostB, it appears the notification would be
sent to the contact_groups listed in the HTTP service definition. 
What I would like to have happen is that if HTTP dies on HostA, the
notification goes to "Bob" and, of course, to "Bill" if it does on
HostB.

Is the only way around this to create a unique HTTP service for both
HostA and HostB?

Thanks!

-Ben


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
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 giving problem

2005-12-19 Thread Dean Pentcheff
Taking a stab at it, based on the first error message (no directory,
taking HOME=/), I think you may not have a "nagios" user on the new
system (or whatever username you chose for nagios).  That's the sort of
error I'd expect when there is no /etc/passwd entry for a user, since
that's where the users' HOME directory would normally be discovered by
the login procedure.

I wonder if the CGI errors similarly stem from something missing in the
user at the system level, so the CGI validation goes bad.

Hope that helps.

-Dean

On Mon, 2005-12-19 at 13:56 +0500, Askar Ali wrote:
> hi list
> 
> 
> i recently migrated the nagios from one machine to another. the previous 
> were running 2.0b2 and the new one is running 2.0b6.
> 
> i copied all the configuration files and custom plugins from the old to 
> new machine,
> 
> now i'm getting problem with nagios on the new machine.
> 
> 1) when i start nagios with "nagios start" srcipt it gives me an error
> 
> /usr/local/nagios# /etc/rc.d/rc.nagios start
> Starting network monitor: nagios
> No directory, logging in with HOME=/
> 
> okay i thinks its working but i'm can access the web its gives me error..
> 
> 2)
> It appears as though you do not have permission to view information for 
> any of the hosts you requested...
> If you believe this is an error, check the HTTP server authentication 
> requirements for accessing this CGI
> and check the authorization options in your CGI configuration file.
> 
> 3) when i gives command /etc/rc.d/rc.nagios stop its sometime gives me ...
> 
> can't find /usr/local/nagios/var/nagios.lock ... and long screen to 
> nagios usages.
> 
> nagios -v nagios.cfg , gives no error or warning.
> 
> I can successfully logged in to web interface but can't able to view any 
> host info.
> 
> 
> any help in this regards will be greatly appreciated
> 
> 
> regards,
> 
> askar
> 
> 
> 
> 
> ---
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> ___
> 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
-- 
N. Dean Pentcheff
[EMAIL PROTECTED]



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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] Nagios stops working at around midnight

2005-12-19 Thread Nain, Sandeep
Title: Nagios stops working at around midnight






Hi,


I am running Nagios on a host to monitor bunch of services. I have setup 2 mins as frequency for some of the services. The issue I am facing is that Nagios stops running in timely fashion at around midnight daily (12:00 AM to 02:00 AM) and I do not get timely data for the services I am monitoring.

I added a Nagios plugin to take backup for status.log every 5 mins. I found that there is only one copy of status.log saved during 12:00 AM to 01:00 AM, and 2-3 copies between 01:00 am to 2:00 AM . It's behaving correctly as it should for rest of the time and it saves around 12 different copies for status.log each hour. 

I have setup timeperiod to be 24 Hours A Day, 7 Days A Week. Here is my timeperiod definition:


# '24x7' timeperiod definition

define timeperiod{

    timeperiod_name    24x7

    alias   24 Hours A Day, 7 Days A Week

    sunday  00:00-24:00

    monday  00:00-24:00

    tuesday 00:00-24:00

    wednesday   00:00-24:00

    thursday    00:00-24:00

    friday  00:00-24:00

    saturday    00:00-24:00

    }

 

I have no idea what's going on.

Any pointers will be highly appreciated!


Thanks,

Sandeep





[Nagios-users] SQL Server monitoring

2005-12-19 Thread Jason



Northern Valley CommuRecently, we had a server issue with one of MSSQL 
servers.  It never went down, but it did reject any type of connection 
that would be sent to it. All websites that tried to conenct to a database 
on that server failed. They all showed RunTime errors.  We have nagios 
set up to monitor if the SQl servers are physically down, but is there a way 
to have nagios check the connectivity of a server that is up to see if it is 
still accepting connections?Thanks for your 
help.ThanksJason B.Hosting TechnicianPortal Web 
HostingNorthern Valley Communications 
nications


RE: [Nagios-users] SQL Server monitoring

2005-12-19 Thread Dennis Hopp



You could either use a plugin that connects to the MSSQL server port 
(1433 by default) and check the response.
 
Or 
 
There are a few plugins that check to see if a result can be obtained 
from an actual query against mysql, you could adapt that for 
MSSQL
 
Or
 
You could use a plugin that will check your website (a page that uses a 
database lookup) and check to see if the page returns ok or 
not.
 
--Dennis

  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  JasonSent: Monday, December 19, 2005 1:10 PMTo: 
  Nagios ListSubject: [Nagios-users] SQL Server 
  monitoring
  
  Northern Valley CommuRecently, we had a server issue with one of 
  MSSQL servers.  It never went down, but it did reject any type of 
  connection that would be sent to it. All websites that tried to conenct to 
  a database on that server failed. They all showed RunTime errors.  We 
  have nagios set up to monitor if the SQl servers are physically down, but 
  is there a way to have nagios check the connectivity of a server that is 
  up to see if it is still accepting connections?Thanks for your 
  help.ThanksJason B.Hosting TechnicianPortal Web 
  HostingNorthern Valley Communications 
nications


Re: [Nagios-users] nagios starting problem

2005-12-19 Thread Bill Fears
I have noticed that if nagios is not running and you try to stop ie you thought is was running you will get the errorNo lock file found in /usr/local/nagios/var/nagios.lockas if the shutdown script is looking for the lock which would not be there if not running
maybe the shutdown script should test if running firstOn 12/19/05, Askar Ali <[EMAIL PROTECTED]
> wrote:


  
  


Marco Ramos wrote:

  On Mon, 2005-12-19 at 19:32 +0500, Askar Ali wrote:  
  

  

however I still *sometime* (not every time) error when stoppingnagios./etc/rc.d/rc.nagios stopStopping network monitor: nagiosWaiting for nagios to exit .head: cannot open`/usr/local/nagios/var/nagios.lock' for reading: No such file or
directory
  
  Does this directory have read/write permissions for the user nagios?HTH,Marco Ramos  

yep,

ls -l 
drwxr-xr-x  3 nagios nagios  328 2005-12-19 19:43 var

and ls -l var

rwxr-xr-x  2 nagios nagios  11528 2005-12-19 14:19 archives
-rw-r--r--  1 nagios nagios    240 2005-12-19 14:19 comments.dat
-rw-r--r--  1 nagios nagios    241 2005-12-19 14:19 downtime.dat
-rw-r--r--  1 nagios nagios  6 2005-12-19 19:41 nagios.lock
-rw-r--r--  1 nagios nagios 144777 2005-12-19 19:41 nagios.log
-rw-r--r--  1 nagios nagios 205500 2005-12-19 19:41 objects.cache
-rw-r--r--  1 nagios nagios 310521 2005-12-19 19:41 retention.dat
-rw-rw-r--  1 nagios nagios 295578 2005-12-19 19:43 status.dat


however even though it gives error on stopping but its do kill the
nagios process.


regards

askar




-- -- william fears williamfears.com o(-_-)o--


RE: [Nagios-users] NRPE 2.0 arguments question

2005-12-19 Thread Steve Shipway
>  There is no problem about it... I have my 
>checkcommands.cfg's check_nrpe configured like 
>check_nrpe -t 30 -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$ 
>$ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$ 
>$ARG10$ $ARG11$, just in case I need lots of arguments. 
>   The only point you have to pay attention is passing 
>no arguments at all... There may be - as far as I'm 
>concerned - two problems: 

You also want to watch out for arguments containing spaces or shell
metacharacters.  For this reason, I define multiple check_nrpe commands as
appropriate with the arguments quoted, to avoid issues where the argument
contains special characters or spaces.

Steve




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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] SQL Server monitoring

2005-12-19 Thread Claudio Elauterio

Dennis Hopp escreveu:

You could either use a plugin that connects to the MSSQL server port 
(1433 by default) and check the response.
 
Or
 
There are a few plugins that check to see if a result can be obtained 
from an actual query against mysql, you could adapt that for MSSQL
 
Or
 
You could use a plugin that will check your website (a page that uses 
a database lookup) and check to see if the page returns ok or not.
 
--Dennis



*From:* [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] *On Behalf Of *Jason
*Sent:* Monday, December 19, 2005 1:10 PM
*To:* Nagios List
*Subject:* [Nagios-users] SQL Server monitoring


Northern Valley CommuRecently, we had a server issue with one of
MSSQL servers.  It never went
down, but it did reject any type of connection that would be sent
to it.
All websites that tried to conenct to a database on that server
failed.
They all showed RunTime errors.  We have nagios set up to monitor
if the SQl
servers are physically down, but is there a way to have nagios
check the
connectivity of a server that is up to see if it is still accepting
connections?

Thanks for your help.

Thanks
Jason B.
Hosting Technician
Portal Web Hosting
Northern Valley Communications nications


I´m use this  plugin for MSSQL server...

--
_
Cláudio Elautério
Analista de T.I
ICQ: 77872215
MSN: [EMAIL PROTECTED]
Fone: 550656172339
Celular: 06599570277
O homem é feito para a luta, não para o repouso.

(Ralph Emerson)

#!/usr/bin/perl

# $Id: check_mssql.pl,v 1.1 2003/08/29 05:36:49 knitterb Exp $

use DBI;
use Data::Dumper;
use Time::HiRes qw(usleep ualarm gettimeofday tv_interval);
use Getopt::Long;
use strict;

my $server="";
my $uid="";
my $pwd="";

GetOptions ('server|s=s'=>\$server, 'user|u=s'=>\$uid, 'password|p=s'=>\$pwd);
if (check_vars()) {
exit(-1);
}

my $start_time=[gettimeofday];

my $rc=0;
eval {
$rc=test();
};
my $duration=tv_interval($start_time);
$duration=($duration*1000);
if (!$rc || $@) {
print "CRITICAL - [EMAIL PROTECTED] $duration ms [EMAIL PROTECTED]";
exit(2);
} elsif ($rc) {
print "OK - [EMAIL PROTECTED] $duration ms\n";
exit(0);
} 

print "UNKNOWN - rc is $rc\n";
exit(-1);

sub test {
my $dbh;
$dbh=DBI->connect("dbi:Sybase:server=$server;".
"loginTimeout=15;scriptName=nagios",
$uid, $pwd, {PrintError=>0}) || die "Can't connect 
$DBI::errstr";
my @row_ary = $dbh->selectrow_array("select 1")
|| die "Can't select";
#print Dumper([EMAIL PROTECTED]);
if ($row_ary[0] == 1) {
return(1);
} else {
die "Select test did not return 1";
}
}

sub check_vars {
if (length($server)<=0) {
print_usage("Server variable missing");
return(1);
}
if (length($uid)<=0) {
print_usage("User variable missing");
return(1);
}
if (length($pwd)<=0) {
print_usage("Password variable missing");
return(1);
}
}

sub print_usage {
my ($msg)[EMAIL PROTECTED];
if ($msg) {
print "Error: $msg\n";
}
print "\n";
print "--server -s\t\tServer to connect to\n";
print "--user -u\t\tUser to connect as\n";
print "--password -p\t\tPassword for user\n";
print "\n";
print "\n";
}



Re: [Nagios-users] nagios starting problem

2005-12-19 Thread Hugo van der Kooij
On Mon, 19 Dec 2005, Askar Ali wrote:

> I have installed nagios 2.0b6 on OS slackware, when I starts it, it
> gives error...
> (actaully migrated from one machine to another which were running 2.0b2)
>
> /etc/rc.d/rc.nagios start
> Starting network monitor: nagios
> No directory, logging in with HOME=/

Sounds like you need to improve the settings for your nagios user. Give it
a home directory. (Like the RPM's do with /var/log/nagios as $HOME for
our friend nagios.)

And I bet you got other issues which you did not setup correctly either.

Hugo.

-- 
I hate duplicates. Just reply to the relevant mailinglist.
[EMAIL PROTECTED]   http://hvdkooij.xs4all.nl/
Don't meddle in the affairs of magicians,
for they are subtle and quick to anger.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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 stops working at around midnight

2005-12-19 Thread Hugo van der Kooij
On Mon, 19 Dec 2005, Nain, Sandeep wrote:

> I am running Nagios on a host to monitor bunch of services. I have setup 2 
> mins as frequency for some of the services. The issue I am facing is that 
> Nagios stops running in timely fashion at around midnight daily (12:00 AM to 
> 02:00 AM) and I do not get timely data for the services I am monitoring.

What else is running from 00:00 to 02:00 ?
Sounds like your system is busy with other things.

Put up a crontab entry to run the following script every 10 minutes from
00:00 to 02:00

#/bin/sh
vmstat 5 5
ps ax


Something like this might tell you why your system is busy at night.

Hugo.

-- 
I hate duplicates. Just reply to the relevant mailinglist.
[EMAIL PROTECTED]   http://hvdkooij.xs4all.nl/
Don't meddle in the affairs of magicians,
for they are subtle and quick to anger.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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] SQL Server monitoring

2005-12-19 Thread Alex Moore
On Mon, 19 Dec 2005 13:10:20 -0600
"Jason" <[EMAIL PROTECTED]> wrote:

> 
> Northern Valley CommuRecently, we had a server issue with one of
> MSSQL servers.  It never went down, but it did reject any type of
> connection that would be sent to it. All websites that tried to
> conenct to a database on that server failed. They all showed RunTime
> errors.  We have nagios set up to monitor if the SQl servers are
> physically down, but is there a way to have nagios check the
> connectivity of a server that is up to see if it is still accepting
> connections?

I use the check_mssql plugin from the source contrib directory for
this.  It returns the number of users connected with a pid > 50.  I did
have to make a few slight modifications, but that was probably because
I use Solaris and not Linux.

Alex


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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] SQL Server monitoring

2005-12-19 Thread Az

This Nagios FAQ entry might be of some help...

http://www.nagios.org/faqs/viewfaq.php?faq_id=156

We've used this to create a basic connectivity check, as well as a 
generic 'stored procedure' check. The home grown plugin expects results 
in a given format (1 row, 2 columns), thus this allows the DBAs to write 
whatever checks they need without having to change the plugin code all 
the time. The same plugin was altered slightly to do the same for Oracle.


Cheers.




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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 do I show some users some sets of hosts?

2005-12-19 Thread Pete Siemsen
I have Nagios running nicely, but I'm a relative newbie.  This is a "how 
do I organize it" question.


How do I configure Nagios so that when a user logs in to Nagios, they 
see only the subset of the hosts, not all of them?


Our security guys want to know the status of about 20 machines.  Some of 
these machines are down for days at a time, for testing.  The security 
guys don't care about the rest of the machines that I monitor with 
Nagios.  They just want to see a screen that shows them an overview of 
the status of their machines.  These guys can be satisfied with a 
hostgroup named "security".  Great.


Our operations staff doesn't want to see the security hostgroup.  Like 
the security guys, the operations staff wants to see a screen that's 
"all green", so the "security" hostgroup just represents non-green 
clutter.  These guys don't want to see the "security" hostgroup at all, 
but they want to see the other 15 hostgroups that I've defined.


How can I satisfy the security guys and the operations guys?

-- Pete


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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] how do I show some users some sets of hosts?

2005-12-19 Thread Az

Pete Siemsen wrote:

How do I configure Nagios so that when a user logs in to Nagios, they 
see only the subset of the hosts, not all of them?


Have a look at 
http://nagios.sourceforge.net/download/contrib/documentation/misc/config_diagrams/nagios-config.png 
to understand how each piece of the Nagios puzzle relates.


Then read the doco on hosts, hostgroups, contacts and contact groups, 
and the 'setting up the web interface' doc and the 'CGI authorization' doc.


Cheers.




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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] paging / email

2005-12-19 Thread pak9
Hello,

sorry if this is simple. But I cant seem to figure this out. 

how can I have nagios only send emails for warnings and pages for critical

I am using nagios 1.2

Thx. 




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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 starting problem

2005-12-19 Thread Askar Ali




Hugo van der Kooij wrote:

  On Mon, 19 Dec 2005, Askar Ali wrote:

  
  
I have installed nagios 2.0b6 on OS slackware, when I starts it, it
gives error...
(actaully migrated from one machine to another which were running 2.0b2)

/etc/rc.d/rc.nagios start
Starting network monitor: nagios
No directory, logging in with HOME=/

  
  
Sounds like you need to improve the settings for your nagios user. Give it
a home directory. (Like the RPM's do with /var/log/nagios as $HOME for
our friend nagios.)

And I bet you got other issues which you did not setup correctly either.

Hugo.

  

Thanks all for the help, nagios is now running and web interface
working fine :), for fixing the web interface i just copy paste the ..


ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin


Options ExecCGI
AllowOverride None
.
.
again from the nagios docs into httpd.conf and wola web issues fixed. onely one issue remains and ie is something
when i stop nagios it gives me error saying...


/etc/rc.d/rc.nagios stop
Stopping network monitor: nagios
Waiting for nagios to exit .head: cannot open
`/usr/local/nagios/var/nagios.lock' for reading: No such file or
directory
.
.
when even though it stops the nagios process, why the hell sometime the
stopping script can't find nagios.lock file.
Before stopping I do confirmed that there is a
/usr/local/nagios/var/nagios.lock file but still it something can't
find it.

Does things changed from 2.0b2 to 2.0b6, on b2 i had hmm three
processes of nagios running at a time and now on b6 its a single
process.

Secondly nagios logs all the activities in /var/log/message is there a
way to tell nagios to use separate file for logging?

Thanks and Regards,

Askar Ali





[Nagios-users] Different monitoring times/escalations, same services

2005-12-19 Thread Guy Knights
I've set up nagios 2.0 with a number of hosts, hostgroups, services, 
servicegroups and service escalations. However, I'm having trouble 
working out how I can go about configuring some of these services so 
that the notification/escalation pattern is different at different times.


For example, we have this service:

define service{
  name 
generic-template-library-high-priority-service

  servicegroupsweekday-high-priority-services
  max_check_attempts   2
  normal_check_interval1
  retry_check_interval 1
  check_period libsys-operating-hours
  notification_interval2
  notification_period  libsys-operating-hours
  notification_options w,u,c
  contact_groups   libsys-DEC
  register 0
}

define service{
  host_namejasper
  service_description  Check process [httpd]
  check_commandlibrary_check_nrpe-check_procs_name!1:99!1:149!httpd
  use  generic-template-library-high-priority-service
}

The servicegroup that this service is a member of follows a particular 
escalation pattern during our operating hours. However, on the weekend, 
we'd like the notification/escalation pattern to be completely 
different, as we don't want the person on call to be bombarded with text 
messages if they can't get to a PC to acknowledge the service problem.


The number of services we want to monitor on the weekend is also much 
smaller than during the week. I can't, at the moment, see any other way 
to set up the notification schedule for on-call monitoring without 
creating multiple copies of services marked as "Check process [httpd] - 
weekday" and "Check process [httpd] - weekend" (for example).


Does anyone have any suggestions as to how I can set this up? If I could 
just override notification timings in servicegroup descriptions, I think 
this would be the answer, but I'm almost certain that isn't possible.


Any help would be greatly appreciated!

Thanks,
Guy





--
Guy Knights
Computer Systems Officer
Queensland University of Technology
Victoria Park Road
Kelvin Grove, QLD
Ph: (07) 3864 3350
Fax: (07) 3864 5890
Email: [EMAIL PROTECTED]





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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] Different monitoring times/escalations, same services

2005-12-19 Thread Greg Vickers

Ah, grasshopper, you ask all the hard questions...

Guy Knights wrote:



The servicegroup that this service is a member of follows a particular 
escalation pattern during our operating hours. However, on the weekend, 
we'd like the notification/escalation pattern to be completely 
different, as we don't want the person on call to be bombarded with text 
messages if they can't get to a PC to acknowledge the service problem.


The number of services we want to monitor on the weekend is also much 
smaller than during the week. I can't, at the moment, see any other way 
to set up the notification schedule for on-call monitoring without 
creating multiple copies of services marked as "Check process [httpd] - 
weekday" and "Check process [httpd] - weekend" (for example).


Does anyone have any suggestions as to how I can set this up? If I could 
just override notification timings in servicegroup descriptions, I think 
this would be the answer, but I'm almost certain that isn't possible.


I think the answer you seek can be found here:
http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#serviceescalation

You would only have one service definition, but different copies of the 
service escalation. The different copies of the service escalation would 
have different escalation_period directives, i.e.:


$ cat libsys-escalation01.cfg
define serviceescalation{
   hostgroup_name   redhat-servers
   service_description  Check process [httpd]
   contact_groups   libsys-DEC
   first_notification   3
   last_notification6
   notification_interval5
>>>   escalation_periodlibsys-weekdays
   escalation_options   w,u,c
}

$ cat libsys-escalation02.cfg
define serviceescalation{
   hostgroup_name   redhat-servers
   service_description  Check process [httpd]
   contact_groups   libsys-DEC
   first_notification   2
   last_notification2
   notification_interval0
>>>   escalation_periodlibsys-weekend
   escalation_options   w,u,c
}

So the above configuration would give you normal notifications until the 
3rd notification, during weekdays, (or whatever) then on weekends give 
you only one additional notification after the first.


So you would wind up with two copies of each service escalation - is 
that less than doubling the number of services?


And if you have multiple different escalations per service (I know you 
do, don't hold out on us) then copy all escalations and apply the 
appropriate time period. (Then you wind up with '2 x total number of 
service escalations' - is that still less than your number of services?? 
lol)


Good luck!

p.s. you must realise these truths before you can leave the temple, 
grasshopper... yes, it's been a slow day


--
Greg Vickers
Project Manager, IT Security
Information Technology Services
Queensland University of Technology
L12, 126 Margaret St, Brisbane

Phone: (07) 3864 9536
Mobile: 0410 434 734
Email: [EMAIL PROTECTED]
IT Security web site: http://www.its.qut.edu.au/itsecurity/

CRICOS No. 00213J


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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