RE: [Nagios-users] Authentication Issues

2006-03-09 Thread Jody Noscov

Awesome thanks for your help :-)
I'm In!!




Please always post on-list so that your experience will be available in
the archives for the benefit of future users.

> -Original Message-
> From: Jody Noscov [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 09, 2006 6:50 PM
> To: Marc Powell
> Subject: RE: [Nagios-users] Authentication Issues
>
> This is what I have
>
> [EMAIL PROTECTED] root]# ls -l /usr/local/nagios/etc/htpasswd.users
> -rw---1 root root   26 Mar 10 09:57
> /usr/local/nagios/etc/htpasswd.users

[chop]

> [EMAIL PROTECTED] root]# grep apache /etc/group
> apache:x:48:nagios
> nagcmd:x:501:apache,nagios

htpasswd.users is only readable by root. To fix, run as root --

chmod 640 /usr/local/nagios/etc/htpasswd.users
chown nagios:nagcmd /usr/local/nagios/etc/htpasswd.users

When you add new users or edit the file, do so as the nagios user or
verify permissions afterward.

--
Marc




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live 
webcast

and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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


_
New year, new job – there's more than 100,00 jobs at SEEK 
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau&_t=752315885&_r=Jan05_tagline&_m=EXT




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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] event_handlers macro contactemail

2006-03-09 Thread Carlos de Sousa

Thanx again for your answer, I think things are getting clearer now!

Actually, it is not a fire-and-forget kind of thing.

I started with Nagios V1 a long time ago, and are using
the eventhandler to send snmptraps to a TEMIP console.

I have developed our own "NAGIOS-MIB" that is integrated into
TEMIP (remember this was long before V2 was announced)

to Keep the TRAP and TRAP_CLEAR in SYNC, the eventhandler
uses a sequence number for the alarm, and the eventhandler
keeps a STATE database with seq number, so for example, when I get
a UP or OK from Nagios, I lookup the host/service pair in
the local DB and send off a CLEAR/RESET trap with the same SEQ number
as when SERVICE/HOST went CRITICAL/DOWN.

So it's imperative that I always have a matching UP/OK
for each DOWN/CRITICAL, that is basically the only
states I bother to handle.

One of the many MIB variables in the TRAP is a URL, that
contains all kind of info, When the NOC people see the alarm
in TEMIP, we have a modification so that they get a drop-down menu
with the choice to surf to the URL, which will bring up a WEB
browser containing alarm instructions (dynamically generated
by a CGI I have developed that gets the information for the Instruction 
thru the URL in the MIB)


And that is why I would like to send the CONTACT to be able to present
it on the Alarm Inst. WEB page so the NOC knows where to send any 
questions too as we have different TEAM's that manages different

hostgroups

We are also doing HEARTBEAT functionality so that TEMIP gets an alarm
if the NAGIOS processes are not running on the box, but that is another 
story.


Is there a better way of doing this with Nagios V2? I have seen
some references to a NAGIOS MIB for V2, but haven't looked any closer.

Would the notification be sufficient to trig the above mentioned states?

We have around 600 devices around the world that we monitor from 3 
different NAGIOS thats uses my stuff to send all alarms to 1 central TEMIP.


Any suggestions?

Appreciate any input.

Regards
Carlos de Sousa






Marc Powell wrote:

Comments inline...



-Original Message-
From: [EMAIL PROTECTED] [mailto:nagios-users-
[EMAIL PROTECTED] On Behalf Of Carlos de Sousa
Sent: Thursday, March 09, 2006 4:19 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] event_handlers macro contactemail

Hi!

Thanx for the prompt answer, I realize now that
I shouldn't try to fool the system by using obscure
ways.

BUT .

   If I use the suggested "contact"-path, could u
pls explain what is the major difference between
a notification and an event?



An event-handler is run for every non-OK check up to max_check_attempts
(soft and hard states) and once when the service recovers to an OK
state. A notification is launched when non-OK checks reach
max_check_attempts (hard state), when a recovery occurs and whenever you
have repeat notifications scheduled (if at all). I'm excluding
escalations but those could be useful as well.



If I already have in production  a event-handler
script that works fine (except for not using the CONTACTx stuff),
would I then disable "event_handler processing" completely
and use the contactgroup in a host definition to use a contact
that would call the same script as I am using for events?



If you did this then the event_handler would be redundant. I don't know
what you're really trying to accomplish but a notification is the only
way that the CONTACT_* macros are currently available directly from
within Nagios. 
 


The example I gave before is somewhat shortened, here is what
I really use

define command {
command_name   send_snmptrap_host
command_line   /usr/bin/perl
$USER1$/eventhandlers/send_nagiostrap HOST $HOSTSTATE$ $HOSTSTATETYPE$
$HOSTATTEMPT$


$HOSTNAME$#$HOSTADDRESS$#$HOSTALIAS$#$SERVICEDESC$#$USER2$


}

Would I still be able to use the above macros through a notification
command?



I presume you'd be adding $CONTACTEMAIL$ and $CONTACTPAGER$ to the above
but the answer is yes. Again, the chart linked below details where each
macro is valid. Just look for a Yes in the Service Notifications or Host
Notifications column, whichever you are going to use --

http://nagios.sourceforge.net/docs/2_0/macros.html



Would the macros above contain the exact same information if I used
them in a notification command rather than in a event_handler?



Yes, with the caveat that they're only run when the check reaches a HARD
state so $HOSTSTATETYPE$ would always be HARD and $HOSTATTEMPT$ would
always be max_check_attempts for that host (I believe).



So basically, If I understood u right, u say that I could do



[config example removed]

Looks workable to me.



would I loose any functionality at all by not using eventhandlers
in favor of notification commands?



Some, related to when they are executed as noted above. Whether that's
important or not is up to you. From what I've gathered, you're looking
for kind of fire-and-forget functiona

RE: [Nagios-users] Authentication Issues

2006-03-09 Thread Marc Powell
Please always post on-list so that your experience will be available in
the archives for the benefit of future users.

> -Original Message-
> From: Jody Noscov [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 09, 2006 6:50 PM
> To: Marc Powell
> Subject: RE: [Nagios-users] Authentication Issues
> 
> This is what I have
> 
> [EMAIL PROTECTED] root]# ls -l /usr/local/nagios/etc/htpasswd.users
> -rw---1 root root   26 Mar 10 09:57
> /usr/local/nagios/etc/htpasswd.users

[chop]

> [EMAIL PROTECTED] root]# grep apache /etc/group
> apache:x:48:nagios
> nagcmd:x:501:apache,nagios

htpasswd.users is only readable by root. To fix, run as root --

chmod 640 /usr/local/nagios/etc/htpasswd.users
chown nagios:nagcmd /usr/local/nagios/etc/htpasswd.users

When you add new users or edit the file, do so as the nagios user or
verify permissions afterward.

--
Marc




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] event_handlers macro contactemail

2006-03-09 Thread Marc Powell
Comments inline...

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Carlos de Sousa
> Sent: Thursday, March 09, 2006 4:19 PM
> To: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] event_handlers macro contactemail
> 
> Hi!
> 
> Thanx for the prompt answer, I realize now that
> I shouldn't try to fool the system by using obscure
> ways.
> 
> BUT .
> 
> If I use the suggested "contact"-path, could u
> pls explain what is the major difference between
> a notification and an event?

An event-handler is run for every non-OK check up to max_check_attempts
(soft and hard states) and once when the service recovers to an OK
state. A notification is launched when non-OK checks reach
max_check_attempts (hard state), when a recovery occurs and whenever you
have repeat notifications scheduled (if at all). I'm excluding
escalations but those could be useful as well.

> 
> If I already have in production  a event-handler
> script that works fine (except for not using the CONTACTx stuff),
> would I then disable "event_handler processing" completely
> and use the contactgroup in a host definition to use a contact
> that would call the same script as I am using for events?

If you did this then the event_handler would be redundant. I don't know
what you're really trying to accomplish but a notification is the only
way that the CONTACT_* macros are currently available directly from
within Nagios. 
 
> The example I gave before is somewhat shortened, here is what
> I really use
> 
> define command {
> command_name   send_snmptrap_host
> command_line   /usr/bin/perl
> $USER1$/eventhandlers/send_nagiostrap HOST $HOSTSTATE$ $HOSTSTATETYPE$
> $HOSTATTEMPT$
$HOSTNAME$#$HOSTADDRESS$#$HOSTALIAS$#$SERVICEDESC$#$USER2$
> }
> 
> Would I still be able to use the above macros through a notification
> command?

I presume you'd be adding $CONTACTEMAIL$ and $CONTACTPAGER$ to the above
but the answer is yes. Again, the chart linked below details where each
macro is valid. Just look for a Yes in the Service Notifications or Host
Notifications column, whichever you are going to use --

http://nagios.sourceforge.net/docs/2_0/macros.html

> Would the macros above contain the exact same information if I used
> them in a notification command rather than in a event_handler?

Yes, with the caveat that they're only run when the check reaches a HARD
state so $HOSTSTATETYPE$ would always be HARD and $HOSTATTEMPT$ would
always be max_check_attempts for that host (I believe).

> So basically, If I understood u right, u say that I could do
> 
[config example removed]

Looks workable to me.

> would I loose any functionality at all by not using eventhandlers
> in favor of notification commands?

Some, related to when they are executed as noted above. Whether that's
important or not is up to you. From what I've gathered, you're looking
for kind of fire-and-forget functionality which is very similar to a
notification.

--
Marc



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] Authentication Issues

2006-03-09 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Jody Noscov
> Sent: Thursday, March 09, 2006 6:21 PM
> To: Nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Authentication Issues
> 
> Hi There,
> 
> I have been having problems with authenticating my nagiosadmin user.
It
> keeps prompting me. I have gone through the documentation over and
over
> and
> did a complete reinstall of RedHat(8), just in case. I have a fresh
new
> install of nagios, but am still recieving the prompt.
> I checked the error file and recieved this:
> [Fri Mar 10 10:06:38 2006] [error] [client 192.168.49.5]
(13)Permission
> denied: Could not open password file:
/usr/local/nagios/etc/htpasswd.users

^^

Apache can not read this file either due to filesystem permissions on
the file itself or directories above it. The file isn't being accessed
by nagios but rather the user that apache is running as (apache?
nobody?). You will need to allow sufficient permissions for apache to be
able to read the file.

If you do not know how to do that, post back the following -

ls -l /usr/local/nagios/etc/htpasswd.users
ls -l /usr/local | grep nagios
ls -l /usr | grep local
grep ^User /etc/httpd/conf/httpd.conf
grep something /etc/group (where something is the what follows User in
the last grep (i.e. apache or nobody))


--
Marc


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] Authentication Issues

2006-03-09 Thread Jody Noscov

Hi There,

I have been having problems with authenticating my nagiosadmin user. It 
keeps prompting me. I have gone through the documentation over and over and 
did a complete reinstall of RedHat(8), just in case. I have a fresh new 
install of nagios, but am still recieving the prompt.

I checked the error file and recieved this:
[Fri Mar 10 10:06:38 2006] [error] [client 192.168.49.5] (13)Permission 
denied: Could not open password file: /usr/local/nagios/etc/htpasswd.users
[Fri Mar 10 10:06:38 2006] [error] [client 192.168.49.5] user nagiosadmin 
not found: /nagios
The only thing I have changed this time around is the folder in which the 
nagios user owns. It was the owner of /home/nagios even though i followed 
the documentation and used the 'chown nagios.nagios /usr/local/nagios' 
command.
I have also re added the nagiosadmin user again using 'htpasswd -c 
/usr/local/nagios/etc/htpasswd.users nagiosadmin' command.


Also have added the following snippet to the httpd.conf file:

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


   Options ExecCGI
   AllowOverride None
   Order allow,deny
   Allow from all
   AuthName "Nagios Access"
   AuthType Basic
   AuthUserFile /usr/local/nagios/etc/htpasswd.users
   Require valid-user


Alias /nagios /usr/local/nagios/share


   Options None
   AllowOverride None
   Order allow,deny
   Allow from all
   AuthName "Nagios Access"
   AuthType Basic
   AuthUserFile /usr/local/nagios/etc/htpasswd.users
   Require valid-user


I am still recieving this error. (BAH!)

_
Shopping made easy @ tradingpost.com.au 
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fwww%2Etradingpost%2Ecom%2Eau%2F%3Freferrer%3DnmsnHMetagv1&_t=753082530&_r=emailtagline&_m=EXT




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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] scriptalias error

2006-03-09 Thread Dustin
On 3/9/06, Deborah Martin <[EMAIL PROTECTED]> wrote:
> Check that the conf.d/nagios.conf file exists first, then ensure its
> included in the httpd.conf
> (follow other examples that are in there) and then remove any extra nagios
> specific lines from
> httpd.conf and try /etc/init.d/apache2 configtest (thats what i use - amend
> accordingly)
>

Yes, that helps... thanks for the info.  I did in fact find this line
in httpd.conf:

/etc/init.d/apache2 configtest

and verified that the nagios.conf exists in conf.d.

> hope that helps.
>
> But just remember the docs always assume you are building from source (tars
> etc) so RPM installs
> are bound to be slightly different...

Believe it or not, I was not aware that the install method (rpm vs.
source) could change the setup procedure.  Good info.

Thanks!
-Dustin


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] help please - SNMP

2006-03-09 Thread Mike Koponick








Robert,

 

Here is a brief sample of a check_snmp
command that I using to grab the system description.

 

define service {

    use   Sensor-ND

    hostgroup_name    Switches,Routers,Firewalls

    service_description
Check-ND-Show-version

    check_command    check_snmp!sysDescr.0!public

    register    1

    }

 

I do use a template for this one, but it’s
fairly simple (mostly defaults).

 

When I want to find out what an OID is, or
?? I use snmpwalk to “walk” the MIB of the device. It gives enough
information so you will want to start drinking early in the day. ;-)

 

 

I hope that helped.

 

Mike

 

 

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert Stewart
Sent: Thursday, March 09, 2006
12:26 PM
To:
'nagios-users@lists.sourceforge.net'
Subject: [Nagios-users] help
please - SNMP

 

I’m new to setting up SNMP on
nagios.

I need some pointers.

I have downloaded the mibs that I
need but I have never installed them on Suse 10 for nagios 2.0.

Could you all tell me how I would
get the mibs in place to be used by the ./check_snmp command.

 

Could you all send me an example of
the ./check_snmp command that you all use

 

Thank you

 

Robert Stewart

SalesEng.

E&H Integrated Systems

 






---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
___
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] Security in the cgi

2006-03-09 Thread Ton Voon


On 9 Mar 2006, at 15:44, Jim Perrin wrote:


On 3/9/06, Rafael Bandeira da Costa <[EMAIL PROTECTED]> wrote:

 Alan Maxwell escreveu:

Is it possible to setup the security to allow a login to be able  
acknowledge

alerts but not be able to disable services and hosts?
Using nagios 2.0




There is a patch at
http://altinity.blogs.com/dotorg/patches/issue_commands_1.patch that
allows users to view items, but not issue any changes. It seems to
work rather well. Hopefully it or something like it will make it in
the next 2.x update. It looks much nicer than the .htaccess denial
from a user perspective. See the 26 Feb article here
http://altinity.blogs.com/dotorg/nagios/index.html


Jim, glad you like the patch. Ethan has committed it into Nagios 3.x,  
but has not chosen to put it into the 2.x branch. Make sure you let  
Ethan know if it should be in - if there's a lot of users, then I'm  
sure he'll reconsider.


I'll try and make sure it always applies cleanly to 2.x.

However, Alan's request won't work with this patch. He wants a user  
to be able to acknowledge an alert (which would involve submitting a  
command) but not disable services/hosts (which is submitting a  
different command). The patch only says whether a user can submit or  
not. There's no granularity in the types of commands in Nagios yet.


Ton

http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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] event_handlers macro contactemail

2006-03-09 Thread Carlos de Sousa

Hi!

Thanx for the prompt answer, I realize now that
I shouldn't try to fool the system by using obscure
ways.

BUT .

   If I use the suggested "contact"-path, could u
pls explain what is the major difference between
a notification and an event?

If I already have in production  a event-handler
script that works fine (except for not using the CONTACTx stuff),
would I then disable "event_handler processing" completely
and use the contactgroup in a host definition to use a contact
that would call the same script as I am using for events?

The example I gave before is somewhat shortened, here is what
I really use

define command {
command_name   send_snmptrap_host
command_line   /usr/bin/perl
$USER1$/eventhandlers/send_nagiostrap HOST $HOSTSTATE$ $HOSTSTATETYPE$
$HOSTATTEMPT$ $HOSTNAME$#$HOSTADDRESS$#$HOSTALIAS$#$SERVICEDESC$#$USER2$
}

Would I still be able to use the above macros through a notification
command?
Would the macros above contain the exact same information if I used
them in a notification command rather than in a event_handler?

So basically, If I understood u right, u say that I could do

define host {
  name   NOC-MAIN

  event_handler_enabled  0
  register   0
  notifications_enabled  1
  contact_groups NOC_TRAP
}

define host {
 name  host1
 use   NOC-MAIN
 alias my host1
 address   xxx.xxx.xxx.xxx
 check_command check-host-alive
}

define contactgroup {
contactgroup_name  NOC_TRAP
alias  noc trap contact
membersnoc_trap
}


define contact {
   contact_name   noc_trap
   alias  contact for running traps
   service_notification_period24x7
   host_notification_period   24x7
   service_notification_options   w,u,c,r
   host_notification_options  d,u,r
   service_notification_commands  send_snmptrap_svc
   host_notification_commands send_snmptrap_host
   email  [EMAIL PROTECTED]
   pager  some number
   address1   text1
   #address2   Network Security
   #address3   Network Security
   #address4   Network Security
   #address5   Network Security
   #address6   Network Security
}

would I loose any functionality at all by not using eventhandlers
in favor of notification commands?


would appreciate your help

Regards
Carlos de Sousa



Marc Powell wrote:



-Original Message-
From: [EMAIL PROTECTED] [mailto:nagios-users-
[EMAIL PROTECTED] On Behalf Of Carlos de Sousa
Sent: Thursday, March 09, 2006 1:02 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] event_handlers macro contactemail

Hi!

I am in real need for having access to the $CONTACTx$ macros in my
eventhandlers. I am running Nagios V2.

Would I get it to work if I did the following?


define command {
command_name   send_snmptrap_host
command_line   /usr/bin/perl
$USER1$/eventhandlers/send_nagiostrap $ARG1$ $ARG2$

}

define host {
 name   NOC-MAIN

 event_handler_enabled  1  ; Host event handler is


enabled



 register   0  ; DONT REGISTER THIS


DEFINITION


 notifications_enabled  0
 event_handler
send_snmptrap_host!$CONTACTEMAIL$!$CONTACTPAGER$
 contact_groups NOC
}




No, the $CONTACT*$ macros are not available to event handlers. See the
chart at --

http://nagios.sourceforge.net/docs/2_0/macros.html




Any other suggestion?



Why not make a contact whose notification command runs
send_nagiostrap_host and associate them with that host? You could also
build in logic into send_nagiostrap_host to gather that information from
some other source or the nagios config files themselves if the contact
route isn't acceptable to you.



would it work if I put the event_handler keyword in the host
definition for the host instead of in a template?



No, they're just not available to the event_handler subsystem at all.
 
--
Marc 



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


-

RE: [Nagios-users] check_http -a Question

2006-03-09 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Jonathan Gourd
> Sent: Thursday, March 09, 2006 3:59 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] check_http -a Question
> 
> I am defining a service and I am getting stuck. When I define the
check
> command as 'check_http -a foo:bar' I get the following output when
> starting:
> 
> 
> -BEGIN QUITE---
> Checking services...
> Error: Service check command 'check_http -a foo:bar' specified in
service
> 'HTTP' for host 'syndb-b' not defined anywhere!
> -END QUOTE
> 

The check_command for a host or service definition is a reference to a
command{} definitions command_name, not the direct command line that is
run. You either need to hard-code your '-a foo:bar' to the actual
command{} definition itself like 

define command{
command_namecheck_http
command_line$USER1$/check_http $HOSTADDRESS$ -t 45 -a
foo:bar
}

Or pass it as an argument from your service{} definition to a properly
configured command{} definition like

define command{
command_namecheck_http
command_line$USER1$/check_http $HOSTADDRESS$ -t 45 -a $ARG1$
}

define service{
use generic-service
host_name   somehost
service_description MY_HTTP_CHECK
retry_check_interval3
contact_groups  whoever
check_command   check_http!foo:bar
}

In the above example, 'foo:bar' becomes $ARG1$ and is substituted into
the command_line for the command_name check_http.

--
Marc 



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] Data File Storage

2006-03-09 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Richard Hobbs
> Sent: Thursday, March 09, 2006 3:45 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Data File Storage
> 
> Hello,
> 
> Assuming I have not changed any default paths, where would the Nagios
data
> files be held?
> 
> Basically, I'm looking to add directories into our backup, and so far
I've
> just included "/usr/local/nagios/". Should I include anywhere else, or
is
> the historical data kept in this directory as well?

If you've installed from source, that will be sufficient. To be sure,
look at the values for cfg_file, log_file, status_file, comment_file,
downtime_file and log_archive_path in nagios.cfg.

--
Marc


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] check_http -a Question

2006-03-09 Thread Jonathan Gourd
I am defining a service and I am getting stuck. When I define the check command as 'check_http -a foo:bar' I get the following output when starting:-BEGIN QUITE---Checking services...
Error: Service check command 'check_http -a foo:bar'
specified in service 'HTTP' for host 'syndb-b' not defined anywhere!-END QUOTEWhere am I supposed to define this?Thanks,Jonathan Gourd
PACS SAThe Lahey Clinic


Re: [Nagios-users] Modifying the TAC.cgi file

2006-03-09 Thread Jason Martin
On Thu, Mar 09, 2006 at 04:13:14PM -0500, Hathaway, Adam B. wrote:
> I was wondering how I would go about modifying the tac.cgi file.  What I
> want to do is create a network bandwidth monitor that displays on the
> tac.cgi file itself.  I searched around but all I really found was how
> to change colors.  Any help would be greatly appreciated.
tac.cgi is built from cgi/tac.c. If you just need to import an image
from some other system, then edit the file and modify the HTML
portion to do the IMG SRC in the desired location. What you want
is probably in the display_tac_overview function.  Edit that
then recompile.

If you want Nagios to create that BW monitoring image for
you,well, that is a much larger task.

-Jason Martin
-- 
This message is PGP/MIME signed.


pgpE20jcUpIkA.pgp
Description: PGP signature


[Nagios-users] Data File Storage

2006-03-09 Thread Richard Hobbs
Hello,

Assuming I have not changed any default paths, where would the Nagios data
files be held?

Basically, I'm looking to add directories into our backup, and so far I've
just included "/usr/local/nagios/". Should I include anywhere else, or is
the historical data kept in this directory as well?

Thanks in advance,
Richard.

-- 
Richard Hobbs (Systems Administrator)
Toshiba Research Europe Ltd. - Speech Technology Group
Web: http://www.toshiba-europe.com/research/
Normal Email: [EMAIL PROTECTED]
Mobile Email: [EMAIL PROTECTED]
Tel: +44 1223 376964Mobile: +44 7811 803377



_
This e-mail has been scanned for viruses by Verizon Business Internet Managed 
Scanning Services - powered by MessageLabs. For further information visit 
http://www.mci.com


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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] Modifying the TAC.cgi file

2006-03-09 Thread Hathaway, Adam B.








I was wondering how I would go about modifying the tac.cgi
file.  What I want to do is create a network bandwidth monitor that displays on
the tac.cgi file itself.  I searched around but all I really found was how to
change colors.  Any help would be greatly appreciated.

 

Adam 

 








Re: [Nagios-users] help please - SNMP

2006-03-09 Thread Eli Stair




I think those all came through OK.

Check the docs for {net|ucd}-snmp, and the help for check_snmp.*  For 
instance, find out what version of what plugin you're using, what 
mechanism it uses to read the MIB and access SNMP (bash/perl exec of the 
binaries, perl module, direct binary implementation compiled-in, etc).


Sounds also like you'll want to determine what it is you actually want 
to poll via SNMP, and whether it's a static value (temp/PS/FAN/link 
state) or time-dependent (network traffic, IOps/sec, etc).


If you don't have those questions answered, you might want to start with 
installing your MIBs in the net-snmp search path (try the net-snmp FAQ ; 
'export MIBS=all'), and saving the output to peruse vs. the MIB while 
you're reading it.  In the situation it sounds like you want, you'll 
have to understand not just Nagios but SNMP as well.




/eli

Robert Stewart wrote:

I’m new to setting up SNMP on nagios.

I need some pointers.

I have downloaded the mibs that I need but I have never installed them 
on Suse 10 for nagios 2.0.


Could you all tell me how I would get the mibs in place to be used by 
the ./check_snmp command.


 

Could you all send me an example of the ./check_snmp command that you 
all use


 


Thank you

 


Robert Stewart

SalesEng.

E&H Integrated Systems

 

--- This SF.Net 
email is sponsored by xPML, a groundbreaking scripting language that 
extends applications into web and mobile media. Attend the live webcast 
and join the prime developer group breaking into this new coding 
territory! 
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 
___ 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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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] help please - SNMP

2006-03-09 Thread Robert Stewart








I’m new to setting up SNMP on nagios.

I need some pointers.

I have downloaded the mibs that I need but I have never
installed them on Suse 10 for nagios 2.0.

Could you all tell me how I would get the mibs in place to
be used by the ./check_snmp command.

 

Could you all send me an example of the ./check_snmp command
that you all use

 

Thank you

 

Robert Stewart

SalesEng.

E&H Integrated Systems

 










---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] FW: help please - SNMP

2006-03-09 Thread Robert Stewart








I’m new to setting up SNMP on nagios.

I need some pointers.

I have downloaded the mibs that I need but I have never
installed them on Suse 10 for nagios 2.0.

Could you all tell me how I would get the mibs in place to
be used by the ./check_snmp command.

 

Could you all send me an example of the ./check_snmp command
that you all use

 

Thank you

 

Robert Stewart

SalesEng.

E&H Integrated Systems

 










---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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 2.0 and cgi

2006-03-09 Thread John Duraiswamy
My bad, although gd and png were installed I had not installed gd-devel
and libpng-devel stuff, after installing those stuff the compile worked
fine. I only had to do ./configure   it picked up everything
automatically.


Thanks everyone.
-john




>>> "Alan Maxwell" <[EMAIL PROTECTED]> 3/9/2006 10:08:02 AM >>>
Run configure --help
Find the options, run configure --whatyouneed , make clean, make all

Also make sure during configure, it actually found the JPG, zlib, and
png stuff.

 

-Original Message-
From: John Duraiswamy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 09, 2006 8:57 AM
To: Alan Maxwell
Subject: RE: [Nagios-users] Nagios 2.0 and cgi

nope I did not, is there a way I can just recompile that manually ?


>>> "Alan Maxwell" <[EMAIL PROTECTED]> 3/9/2006 9:52:16 AM >>>
Did you give the configure command the options to enable
statusmap..etc?
I don't think it tries to compile them by default.
 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of John
Duraiswamy
Sent: Thursday, March 09, 2006 8:45 AM
To: nagios-users@lists.sourceforge.net 
Subject: [Nagios-users] Nagios 2.0 and cgi

Hello everyone,
I am migrating stuff from 1.1. to 2.0, I did a fresh install of 2.0 on
sles 9 and everything worked fine except for "statusmap.cgi trends.cgi
histogram.cgi " did not get compiled. I have all the
requirements(gd,zlib and png) on the server to compile cgi stuff. If
anyone have any workaround on this please let me know.

Thanks


John Duraiswamy, CCNP
Network Engineer
Academy for Educational Development
Washington, DC
Tel. 202-884-8116
Fax. 202-884-8464



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language that extends applications into web and mobile media. Attend
the
live webcast and join the prime developer group breaking into this new
coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642


___
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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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] event_handlers macro contactemail

2006-03-09 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Carlos de Sousa
> Sent: Thursday, March 09, 2006 1:02 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] event_handlers macro contactemail
> 
> Hi!
> 
> I am in real need for having access to the $CONTACTx$ macros in my
> eventhandlers. I am running Nagios V2.
> 
> Would I get it to work if I did the following?
> 
> 
> define command {
>  command_name   send_snmptrap_host
>  command_line   /usr/bin/perl
> $USER1$/eventhandlers/send_nagiostrap $ARG1$ $ARG2$
> 
> }
> 
> define host {
>   name   NOC-MAIN
> 
>   event_handler_enabled  1  ; Host event handler is
enabled
> 
> 
>   register   0  ; DONT REGISTER THIS
DEFINITION
> 
>   notifications_enabled  0
>   event_handler
> send_snmptrap_host!$CONTACTEMAIL$!$CONTACTPAGER$
>   contact_groups NOC
> }
> 

No, the $CONTACT*$ macros are not available to event handlers. See the
chart at --

http://nagios.sourceforge.net/docs/2_0/macros.html


> Any other suggestion?

Why not make a contact whose notification command runs
send_nagiostrap_host and associate them with that host? You could also
build in logic into send_nagiostrap_host to gather that information from
some other source or the nagios config files themselves if the contact
route isn't acceptable to you.

> 
> would it work if I put the event_handler keyword in the host
> definition for the host instead of in a template?

No, they're just not available to the event_handler subsystem at all.
 
--
Marc 


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] Sms message

2006-03-09 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Daniel Tran
> Sent: Thursday, March 09, 2006 12:56 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Sms message
> 
> I have a scenario like this:
> 
> Currently we are monitoring devices and send notification as an email
> message.
> 
> I understand that you can send text messages to cell phone by sending
an
> email such as (phone number)@vtext.com.
> 
> If the main internet connection is down, we want to be able to send
the
> message via a modem connection.  I guess at this point, the modem
needs
> to dial up to some sort of sms gateway and send out the string of
text.
> 
> Are  there anything like this?
> Does any cell phone provider (eg: tmobile, verizon...) has this
support.

Yes, there's are specific FAQ entries on sending SMS messages and lots
of discussion in the list archives. Search for SMS in those resources.
Basically you configure an SMS sending program (yaps, sms-client, etc)
and set it as your notification command. 

--
Marc


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] FW: help please - SNMP

2006-03-09 Thread Robert Stewart








 

I’m new to setting up SNMP on nagios.

I need some pointers.

I have downloaded the mibs that I need but I have never
installed them on Suse 10 for nagios 2.0.

Could you all tell me how I would get the mibs in place to
be used by the ./check_snmp command.

 

Could you all send me an example of the ./check_snmp command
that you all use

 

Thank you

 

Robert Stewart

SalesEng.

E&H Integrated Systems

 










---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] help please - SNMP

2006-03-09 Thread Robert Stewart








I’m new to setting up SNMP on nagios.

I need some pointers.

I have downloaded the mibs that I need but I have never
installed them on Suse 10 for nagios 2.0.

Could you all tell me how I would get the mibs in place to
be used by the ./check_snmp command.

 

Could you all send me an example of the ./check_snmp command
that you all use

 

Thank you

 

Robert Stewart

SalesEng.

E&H Integrated Systems

 










---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] event_handlers macro contactemail

2006-03-09 Thread Carlos de Sousa

Hi!

I am in real need for having access to the $CONTACTx$ macros in my
eventhandlers. I am running Nagios V2.

Would I get it to work if I did the following?


define command {
command_name   send_snmptrap_host
command_line   /usr/bin/perl 
$USER1$/eventhandlers/send_nagiostrap $ARG1$ $ARG2$


}

define host {
 name   NOC-MAIN

 event_handler_enabled  1  ; Host event handler is enabled 



 register   0  ; DONT REGISTER THIS DEFINITION

 notifications_enabled  0
 event_handler 
send_snmptrap_host!$CONTACTEMAIL$!$CONTACTPAGER$

 contact_groups NOC
}

define host {
 use   NOC-MAIN
 host_name host1
 alias my host1
 address   xxx.xxx.xxx.xxx
 check_command check-host-alive
}

Any other suggestion?

would it work if I put the event_handler keyword in the host
definition for the host instead of in a template?

I have seen the mailing list archives, and there are other
people that have asked for the same thing, but they where
running Nagios V1 I think, so I wonder if this is duable
for Nagios V2.

Really greatfull for a solution, and no, I am not going to use the
CONTACTEMAIL information to send out notifications from my event handler.

Regards
Carlos

--
Carlos de Sousa

Ericsson AB
Phone: +46 8 56860605
Mail: [EMAIL PROTECTED]

Disclaimer

This communication is confidential and intended solely for the 
addressee(s). Any unauthorized review, use, disclosure or distribution 
is prohibited. If you believe this message has been sent to you in 
error, please notify the sender by replying to this transmission and 
delete the message without disclosing it. Thank you.


E-mail including attachments is susceptible to data 
corruption,interruption, unauthorized amendment, tampering and viruses, 
and we only send and receive e-mails on the basis that we are not liable 
for any such corruption, interception, amendment, tampering or viruses 
or any consequences thereof.
begin:vcard
fn:Carlos de Sousa
n:de Sousa;Carlos
email;internet:[EMAIL PROTECTED]
tel;work:+46 8 56860605
x-mozilla-html:FALSE
version:2.1
end:vcard



[Nagios-users] Sms message

2006-03-09 Thread Daniel Tran
I have a scenario like this:

Currently we are monitoring devices and send notification as an email
message.

I understand that you can send text messages to cell phone by sending an
email such as (phone number)@vtext.com.

If the main internet connection is down, we want to be able to send the
message via a modem connection.  I guess at this point, the modem needs
to dial up to some sort of sms gateway and send out the string of text.

Are  there anything like this?
Does any cell phone provider (eg: tmobile, verizon...) has this support.

Thanks
Daniel


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] JMS Plugin

2006-03-09 Thread Mike Maruffi
Does anyone know of any nagios plugins that can be used to monitor
 JMS queues and topics?



Thanks,



- Mike Maruffi (mmaruffi)



---

The mailing list archive is found here:

http://www.nagiosexchange.org/nagios-users.34.0.html




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] Multiple notifications for Host DOWN

2006-03-09 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Richard Hobbs
> Sent: Thursday, March 09, 2006 11:43 AM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Multiple notifications for Host DOWN
> 
> Hello,
> 
> If I am monitoring several services on a host, and the host goes DOWN,
> will
> I get a single notification stating that the host is down, or will I
get
> several alerts (one for the host and one for each service)?

First section of
http://nagios.sourceforge.net/docs/1_0/networkreachability.html. Nagios
will suppress notification for services on DOWN or UNREACHABLE hosts.

> 
> If this is a configurable setting, could you let me know which option
I
> need
> to change in the config files?

I don't use host checks myself but I believe that this is not
configurable. You'd have to add your service contacts to the
contact_group for the host.

--
Marc


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] Multiple notifications for Host DOWN

2006-03-09 Thread Richard Hobbs
Hello,

If I am monitoring several services on a host, and the host goes DOWN, will
I get a single notification stating that the host is down, or will I get
several alerts (one for the host and one for each service)?

If this is a configurable setting, could you let me know which option I need
to change in the config files?

Thanks in advance to anyone who can help! :-)

Richard.

-- 
Richard Hobbs (Systems Administrator)
Toshiba Research Europe Ltd. - Speech Technology Group
Web: http://www.toshiba-europe.com/research/
Normal Email: [EMAIL PROTECTED]
Mobile Email: [EMAIL PROTECTED]
Tel: +44 1223 376964Mobile: +44 7811 803377



_
This e-mail has been scanned for viruses by Verizon Business Internet Managed 
Scanning Services - powered by MessageLabs. For further information visit 
http://www.mci.com


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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 escalations not working

2006-03-09 Thread Pavel Santos
Hugo, 
 
this is my escalations.cfg file:  for now
 
 
define serviceescalation{
host_name   server1
service_description HTTP
first_notification  3
last_notification   5
notification_interval   60
contact_groups  system-manager
}
define serviceescalation{
host_name   server1
service_description HTTP
first_notification  6
last_notification   10
notification_interval   90
contact_groups  system-manager
}




From: [EMAIL PROTECTED] on behalf of Hugo van der Kooij
Sent: Thu 3/9/2006 9:48 AM
To: Nagios Users Mailinglist
Subject: RE: [Nagios-users] Nagios escalations not working



On Thu, 9 Mar 2006, Pavel Santos wrote:

> Hugo,
>
> I'm running Nagios 2.0 on Red Hat version 4 and the client machine is windows 
> 2003 for now, but I could be another Linux or windows 2000 box.

We do not care what your client machine is. But we do care about your
definitions in nagios config files. You have not shown a bit of that
config so there is still very little to go on.

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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] scriptalias error

2006-03-09 Thread Marc Powell
The document is written for the source install, the primary method of
installation. RPM installs can vary widely and any package specific
changes made should be documented by the package maintainer. Ethan does
not directly manage, maintain or host RPM installations of Nagios.

--
Marc 

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Dustin
> Sent: Thursday, March 09, 2006 10:51 AM
> To: Nagios Users Mailinglist
> Subject: Re: [Nagios-users] scriptalias error
> 
> Thanks for the reply, but how am I supposed to know this?  The setup
> docs here say to add those lines to my httpd.conf:
> 
> http://nagios.sourceforge.net/docs/2_0/installweb.html
> 
> Is this outdated documentation that I'm following?
> 
> 
> 
> On 3/8/06, Hugo van der Kooij <[EMAIL PROTECTED]> wrote:
> > On Wed, 8 Mar 2006, Dustin wrote:
> >
> > > New user here, just following the documentation to setup on RHEL4.
> > > Installed vi RPM's, getting an error when I restart httpd after
I've
> > > added the configuration (modified for my system) to httpd.conf.
> >
> > You should not have added these lines to httpd.conf. Beacause you
> allready
> > have a valid new config part in ../conf.d/nagios.conf
> >
> > Please familiarize yourself a bit more with the config setup of your
> > apache installation and read the other config files in conf.d as
well to
> > see if you have no further duplication.
> >
> > 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 xPML, a groundbreaking scripting
> language
> > that extends applications into web and mobile media. Attend the live
> webcast
> > and join the prime developer group breaking into this new coding
> territory!
> >
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> > ___
> > 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 xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the live
> webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
> ___
> 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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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 doesn't send mail!

2006-03-09 Thread Marc Powell
http://nagios.sourceforge.net/docs/1_0/configmain.html#enable_notificati
ons

http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#host
(notification_* settings)

http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service
(notification_* settings)

http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#contact
(notification settings)

--
Marc

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> Sent: Thursday, March 09, 2006 9:29 AM
> To: Frank, Jason
> Cc: nagios-users@lists.sourceforge.net
> Subject: RE: [Nagios-users] Nagios doesn't send mail!
> 
> Hello Frank,
> 
> > Do you seeing it trying to send a notification in the log file?
> No, the log file (nagios.log) doesn't show any notification, I can see
> other info like service alert but nothing about email send
notification.
> 
> > Perhaps you've configured it not to send emails.
> How/where can I check for this?
> 
> Gerhard,
> 
> > Do you seeing it trying to send a notification in the log file?
Perhaps
> > you've configured it not to send emails.
> >
> > Jason
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > [EMAIL PROTECTED]
> > Sent: Thursday, March 09, 2006 9:16 AM
> > To: nagios-users@lists.sourceforge.net
> > Subject: [Nagios-users] Nagios doesn't send mail!
> >
> > Hello list,
> >
> > I'm using nagios 1.2 and it's working fine except the fact that it
> > doens't send mail when servicegoes down! I can see on the web
interface
> > that the service is down (red) but I don't get emailed on my phone
or
> > email address.
> >
> > The mail program is working on the server, I can use command like
> > "sendmail [EMAIL PROTECTED] < /tmp/testmail.txt" and receive the
email, I
> > can also use /bin/mail -s to send mail via the terminal and I
receive
> > it, therefore /bin/mail and /usr/sbin/sendmail work. I know that
Nagios
> > use /bin/mail to send alert because that is what is used and
configured
> > inside the misscommand.cfg file. So I don't understand why Nagios
> > doesn't alert me when hosts or service goes down.
> >
> > Somebody has an idea? Thanks.
> >



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] Security in the cgi

2006-03-09 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Rafael Bandeira da Costa
> Sent: Thursday, March 09, 2006 9:06 AM
> To: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Security in the cgi
> 
> Alan Maxwell escreveu:
> 
>   Is it possible to setup the security to allow a login to be able
> acknowledge alerts but not be able to disable services and hosts?
>   Using nagios 2.0
> 
> 
> 
> You can secure it within apache. I just use the following in my
> /etc/httpd/conf.d/nagios.conf (maybe you use another file to that)
> 
> 
> Require user nagios
> 
> 
> Hope that helps you.


This is incorrect information. The level of granularity requested is not
possible with apache security or within Nagios itself. It's all or
nothing unfortunately unless you edit the source to include that
functionality.

--
Marc


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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 2.0 and cgi

2006-03-09 Thread Marc Powell
cgi's being missing is different than an Apache Internal Server Error.
Nagios was not able to automagically locate the required libraries you
correctly noted below at compile time. They're probably located in
non-standard locations. You'll need to pass the following flags to
./configure --

--with-gd-lib=DIR sets location of the gd library
--with-gd-inc=DIR sets location of the gd include files

--
Marc

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of John Duraiswamy
> Sent: Thursday, March 09, 2006 9:07 AM
> To: nagios-users@lists.sourceforge.net; Gordon Stewart
> Subject: Re: [Nagios-users] Nagios 2.0 and cgi
> 
> Gordon,
> Yep I am getting the same errors. "The requested URL
> /nagios/cgi-bin/trends.cgi was not found on this server"
> 
> under /sbin I find the following but not the statusmap.cgi,
trends.cgi
> and histogram.cgi
> 
> .  cmd.cgi  history.cgioutages.cgi  statuswml.cgi
> tac.cgi
> .. config.cgi   .htaccess  showlog.cgi  statuswrl.cgi
> avail.cgi  extinfo.cgi  notifications.cgi  status.cgi   summary.cgi
> 
> >>> Gordon Stewart <[EMAIL PROTECTED]> 3/9/2006 10:01:00 AM >>>
> John
> 
> Are you getting an Internal Server error when to click on the links?
> 
> I am having the same issues.
> 
> Thanks
> 
> Gordon
> 
> 
> >
> > From: "John Duraiswamy" <[EMAIL PROTECTED]>
> > Date: 2006/03/09 Thu PM 02:44:49 GMT
> > To: 
> > Subject: [Nagios-users] Nagios 2.0 and cgi
> >
> > Hello everyone,
> > I am migrating stuff from 1.1. to 2.0, I did a fresh install of 2.0
> on
> > sles 9 and everything worked fine except for "statusmap.cgi
> trends.cgi
> > histogram.cgi " did not get compiled. I have all the
> > requirements(gd,zlib and png) on the server to compile cgi stuff. If
> > anyone have any workaround on this please let me know.



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] scriptalias error

2006-03-09 Thread Dustin
Thanks for the reply, but how am I supposed to know this?  The setup
docs here say to add those lines to my httpd.conf:

http://nagios.sourceforge.net/docs/2_0/installweb.html

Is this outdated documentation that I'm following?



On 3/8/06, Hugo van der Kooij <[EMAIL PROTECTED]> wrote:
> On Wed, 8 Mar 2006, Dustin wrote:
>
> > New user here, just following the documentation to setup on RHEL4.
> > Installed vi RPM's, getting an error when I restart httpd after I've
> > added the configuration (modified for my system) to httpd.conf.
>
> You should not have added these lines to httpd.conf. Beacause you allready
> have a valid new config part in ../conf.d/nagios.conf
>
> Please familiarize yourself a bit more with the config setup of your
> apache installation and read the other config files in conf.d as well to
> see if you have no further duplication.
>
> 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 xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> ___
> 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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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 doesn't send mail!

2006-03-09 Thread gmourani
Hello Frank,

> Do you seeing it trying to send a notification in the log file?
No, the log file (nagios.log) doesn't show any notification, I can see
other info like service alert but nothing about email send notification.

> Perhaps you've configured it not to send emails.
How/where can I check for this?

Gerhard,

> Do you seeing it trying to send a notification in the log file?  Perhaps
> you've configured it not to send emails.
>
> Jason
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> [EMAIL PROTECTED]
> Sent: Thursday, March 09, 2006 9:16 AM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Nagios doesn't send mail!
>
> Hello list,
>
> I'm using nagios 1.2 and it's working fine except the fact that it
> doens't send mail when servicegoes down! I can see on the web interface
> that the service is down (red) but I don't get emailed on my phone or
> email address.
>
> The mail program is working on the server, I can use command like
> "sendmail [EMAIL PROTECTED] < /tmp/testmail.txt" and receive the email, I
> can also use /bin/mail -s to send mail via the terminal and I receive
> it, therefore /bin/mail and /usr/sbin/sendmail work. I know that Nagios
> use /bin/mail to send alert because that is what is used and configured
> inside the misscommand.cfg file. So I don't understand why Nagios
> doesn't alert me when hosts or service goes down.
>
> Somebody has an idea? Thanks.
>
> Gerhard,
>
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language that extends applications into web and mobile media. Attend the
> live webcast and join the prime developer group breaking into this new
> coding territory!
> http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
> ___
> 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 message (including any attachments) may
> contain confidential or otherwise privileged information and is intended
> only for the individual(s) to which it is addressed. If you are not the
> named addressee you should not disseminate, distribute or copy this
> e-mail. Please notify the sender immediately by e-mail if you have
> received this e-mail by mistake and delete this e-mail from your system.
> E-mail transmission cannot be guaranteed to be secured or error-free as
> information could be intercepted, corrupted, lost, destroyed, arrive late
> or incomplete, or contain viruses. The sender therefore does not accept
> liability for any errors or omissions in the contents of this message or
> that arise as a result of e-mail transmission. If verification is required
> please request a hard-copy version from the sender.
>
> SOURCECORP, Incorporated
> www.srcp.com
> 
>




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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 doesn't send mail!

2006-03-09 Thread Frank, Jason

Do you seeing it trying to send a notification in the log file?  Perhaps
you've configured it not to send emails.

Jason

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, March 09, 2006 9:16 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagios doesn't send mail!

Hello list,

I'm using nagios 1.2 and it's working fine except the fact that it
doens't send mail when servicegoes down! I can see on the web interface
that the service is down (red) but I don't get emailed on my phone or
email address.

The mail program is working on the server, I can use command like
"sendmail [EMAIL PROTECTED] < /tmp/testmail.txt" and receive the email, I
can also use /bin/mail -s to send mail via the terminal and I receive
it, therefore /bin/mail and /usr/sbin/sendmail work. I know that Nagios
use /bin/mail to send alert because that is what is used and configured
inside the misscommand.cfg file. So I don't understand why Nagios
doesn't alert me when hosts or service goes down.

Somebody has an idea? Thanks.

Gerhard,



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language that extends applications into web and mobile media. Attend the
live webcast and join the prime developer group breaking into this new
coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
___
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 message (including any attachments) may 
contain confidential or otherwise privileged information and is intended only 
for the individual(s) to which it is addressed. If you are not the named 
addressee you should not disseminate, distribute or copy this e-mail. Please 
notify the sender immediately by e-mail if you have received this e-mail by 
mistake and delete this e-mail from your system. E-mail transmission cannot be 
guaranteed to be secured or error-free as information could be intercepted, 
corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The 
sender therefore does not accept liability for any errors or omissions in the 
contents of this message or that arise as a result of e-mail transmission. If 
verification is required please request a hard-copy version from the sender.

SOURCECORP, Incorporated
www.srcp.com



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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 doesn't send mail!

2006-03-09 Thread gmourani
Hello list,

I'm using nagios 1.2 and it's working fine except the fact that it doens't
send mail when servicegoes down! I can see on the web interface that the
service is down (red) but I don't get emailed on my phone or email
address.

The mail program is working on the server, I can use command like
"sendmail [EMAIL PROTECTED] < /tmp/testmail.txt" and receive the email, I
can also use /bin/mail -s to send mail via the terminal and I receive it,
therefore /bin/mail and /usr/sbin/sendmail work. I know that Nagios use
/bin/mail to send alert because that is what is used and configured inside
the misscommand.cfg file. So I don't understand why Nagios doesn't alert
me when hosts or service goes down.

Somebody has an idea? Thanks.

Gerhard,



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] defunct process / more than one nagios "root" process...

2006-03-09 Thread Matthias Eble

hi list,



I am facing problems for a few days with my Nagios server (2.0b4).
I often have more than one nagios "root" process (launched by the root 
process), and sometimes have a "defunct" nagios process.  

It is really anoying, as it can leads to Nagios not working any more, or, at 
best, only doing half of the checks it should perform,... 
Often, it also stops recording the results of the checks, or "forget" latest 
informations after a restart, rolling back to the status data of hours ago.


I don't remember doing any big change lately, so I can't find why I am facing 
all those problems right now... 

Does any of you know what can cause those defunct processes, or the multiple 
nagios "root" processes?  Or best do you know how I could avoid it :)




we are ocassionaly experiencing the some of your problems, too. I have 
thought, that this was a special issue in our Environment.


I am about to update to 2.0 stable because of the changelog entry
Fix for segfault in timed event queue

I don't know what this fix does, but I think, it sounds related.

Anyone experiencing similar behavior?

matthias





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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] escalation procedures?

2006-03-09 Thread Tom Cruickshank
I seem to need a visit to the eye doctor.Apparnantly my eye sight is just not what it used to be. Now if only I could remove my original email from the mailing list :PTom
On 3/9/06, Werner Flamme <[EMAIL PROTECTED]> wrote:
-BEGIN PGP SIGNED MESSAGE-Hash: SHA1Tom Cruickshank schrieb am 09.03.2006 15:56:> Hello,>I was wondering if it was possible to configure Nagios in a way that> if it detects something going down or unreachable, it sends an email to one
> person, but if it detects it again on the 2nd time, it sends an email to a> different person? Kind of like escalation procedures.>> I tried looking in the manual but could not find anything of that nature.
>> Would anyone happen to know?>> Thanks for any assistance.>> Tom Cruickshank>Tom,are you kidding? ;-)Search the mailing list archive for "escalation" or "service escalation",
you will find a lot about it. And maybe you read even where to look in themanual ;-)For Release 2.0, look at http://nagios.sourceforge.net/docs/2_0/toc.html
.You will find "Notification escalations" under the heading "AdvancedTopics". And when you want the documentation of Version 1.x, just change/2_0/ to /1_0/ in the URL.Took me 3 minutes to find out.
HTH,Werner- --Werner Flamme, Abt. WKDVUFZ Umweltforschungszentrum Leipzig-Halle GmbH,Permoserstr. 15 - 04318 LeipzigTel.: (0341) 235-3921 - Fax (0341) 235-453921
http://www.ufz.de - eMail: [EMAIL PROTECTED]-BEGIN PGP SIGNATURE-Version: GnuPG v1.4.2 (GNU/Linux)Comment: Using GnuPG with Mozilla - 
http://enigmail.mozdev.orgiD8DBQFEEEuSk33Krq8b42MRArsCAJ9N9op1X/IHFjS0JTAtNWedSd/XdQCffmn5QtzJ+Uc2ERFtN1EmtIFqn20==gmUl-END PGP SIGNATURE
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___
Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://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] Security in the cgi

2006-03-09 Thread Jim Perrin
On 3/9/06, Rafael Bandeira da Costa <[EMAIL PROTECTED]> wrote:
>  Alan Maxwell escreveu:
>
> Is it possible to setup the security to allow a login to be able acknowledge
> alerts but not be able to disable services and hosts?
> Using nagios 2.0
>
>

There is a patch at
http://altinity.blogs.com/dotorg/patches/issue_commands_1.patch that
allows users to view items, but not issue any changes. It seems to
work rather well. Hopefully it or something like it will make it in
the next 2.x update. It looks much nicer than the .htaccess denial
from a user perspective. See the 26 Feb article here
http://altinity.blogs.com/dotorg/nagios/index.html




--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety''
Benjamin Franklin 1775


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] Providing configuration Reports

2006-03-09 Thread nuffers

I'm looking for a way to send reports
on what is currently being monitored to different functional areas.  I
currently have subdirectories for each of the functional areas.  Each
has their  own hosts.cfg, hostgroups.cfg, services.cfg etc.  Not
all individuals receiving the reports will have access to Nagios.

I would like to pull it directly from
Nagios but I don't currently see a way that will provide that.

The report would be in column format.

Type        host_name
       alias        
       address
host        myhostname
     myhostname        xxx.xxx.xxx.xxx

Does anyone have a script/programs that
would assist with this from the command line?

Steve
Nagios 2.X
FedoraCore3



Re: [Nagios-users] escalation procedures?

2006-03-09 Thread Werner Flamme
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tom Cruickshank schrieb am 09.03.2006 15:56:
> Hello,
>I was wondering if it was possible to configure Nagios in a way that
> if it detects something going down or unreachable, it sends an email to one
> person, but if it detects it again on the 2nd time, it sends an email to a
> different person? Kind of like escalation procedures.
> 
> I tried looking in the manual but could not find anything of that nature.
> 
> Would anyone happen to know?
> 
> Thanks for any assistance.
> 
> Tom Cruickshank
> 
Tom,

are you kidding? ;-)

Search the mailing list archive for "escalation" or "service escalation",
you will find a lot about it. And maybe you read even where to look in the
manual ;-)

For Release 2.0, look at http://nagios.sourceforge.net/docs/2_0/toc.html.
You will find "Notification escalations" under the heading "Advanced
Topics". And when you want the documentation of Version 1.x, just change
/2_0/ to /1_0/ in the URL.

Took me 3 minutes to find out.

HTH,
Werner

- --
Werner Flamme, Abt. WKDV
UFZ Umweltforschungszentrum Leipzig-Halle GmbH,
Permoserstr. 15 - 04318 Leipzig
Tel.: (0341) 235-3921 - Fax (0341) 235-453921
http://www.ufz.de - eMail: [EMAIL PROTECTED]




-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEEEuSk33Krq8b42MRArsCAJ9N9op1X/IHFjS0JTAtNWedSd/XdQCffmn5
QtzJ+Uc2ERFtN1EmtIFqn20=
=gmUl
-END PGP SIGNATURE-


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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 escalations not working

2006-03-09 Thread Rafael Bandeira da Costa




Hugo van der Kooij escreveu:

  Hold on. This one is configured to send notifications every 90 minutes
(assuming 60 seconds is the default time measurement) But it should only
trigger after 6 * 90 = 540 minutes (9 hours). But it should stop at 0
notifications which, I think, is not valid.
  


Hugo, actually setting last_notification to 0 is valid, and it means
nagios will use this escalation ad infinitum (in case there
are no other escalation "overwriting" these settings - in which case
nagios send notifications in the smallest time frame defined), as we
can see on manual
(http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#serviceescalation):

last_notification:
This directive is a number that identifies the last
notification for which this escalation is effective. For instance, if
you set this value to 5, this escalation will not be used if more than
five notifications are sent out for the service. Setting this value to
0 means to keep using this escalation entry forever (no matter how many
notifications go out).

 

 
Pavel Santos escreveu:

  
  
  
  
  I’m running Nagios 2.0 on
Red Hat version 4.  I
recently configured escalations in some of the services but it is not
working. 
When Nagios sends a notification for a service any issue, it send the
alert to
the main contact group (sysadmins) and the defined escalated group at
the same time,
even though they are not be notified until 60 and 90 minutes
respectively.  Below
is a sample of my escalations.cfg file. Thanks in advance.
  


Pavel, I haven't understood your problem: does nagios send
notifications for both groups since the first notification?

And as Hugo has said, you are misinterpretting the docs for
escalations: they are not defined to be sent notifications to
system-group after 60 and 90 minutes, they mean they are going to be
sent every 60 minutes from notifications number 3 to 5, and every 90
minutes from the sixth notification on.


-- 
Rafael Costa
[EMAIL PROTECTED]
Curitiba - Paraná - Brasil





[Nagios-users] escalation procedures?

2006-03-09 Thread Tom Cruickshank
Hello,     I was wondering if it was possible to configure Nagios in a way that if it detects something going down or unreachable, it sends an email to one person, but if it detects it again on the 2nd time, it sends an email to a different person? Kind of like escalation procedures.
I tried looking in the manual but could not find anything of that nature.Would anyone happen to know?Thanks for any assistance.Tom Cruickshank


Re: [Nagios-users] Nagios 2.0 and cgi

2006-03-09 Thread John Duraiswamy
Gordon,
Yep I am getting the same errors. "The requested URL
/nagios/cgi-bin/trends.cgi was not found on this server"

under /sbin I find the following but not the statusmap.cgi,  trends.cgi
and histogram.cgi 

.  cmd.cgi  history.cgioutages.cgi  statuswml.cgi 
tac.cgi
.. config.cgi   .htaccess  showlog.cgi  statuswrl.cgi
avail.cgi  extinfo.cgi  notifications.cgi  status.cgi   summary.cgi

>>> Gordon Stewart <[EMAIL PROTECTED]> 3/9/2006 10:01:00 AM >>>
John

Are you getting an Internal Server error when to click on the links?

I am having the same issues.

Thanks

Gordon 


> 
> From: "John Duraiswamy" <[EMAIL PROTECTED]>
> Date: 2006/03/09 Thu PM 02:44:49 GMT
> To: 
> Subject: [Nagios-users] Nagios 2.0 and cgi
> 
> Hello everyone,
> I am migrating stuff from 1.1. to 2.0, I did a fresh install of 2.0
on
> sles 9 and everything worked fine except for "statusmap.cgi 
trends.cgi 
> histogram.cgi " did not get compiled. I have all the
> requirements(gd,zlib and png) on the server to compile cgi stuff. If
> anyone have any workaround on this please let me know.
> 
> Thanks
> 
> 
> John Duraiswamy, CCNP
> Network Engineer
> Academy for Educational Development
> Washington, DC
> Tel. 202-884-8116  
> Fax. 202-884-8464
> 
> 
> 
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
> that extends applications into web and mobile media. Attend the live
webcast
> and join the prime developer group breaking into this new coding
territory!
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

> ___
> 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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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] Problems with RPM install

2006-03-09 Thread Minkov, Ross

Thanks Jim. I was going to reply, but you beat me to it... :)  I totally
agree with you. 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim
Perrin
Sent: Thursday, March 09, 2006 7:30 AM
To: [EMAIL PROTECTED]
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Problems with RPM install

> Better go for Binary installation and it will be good in working
> without error and you can install in few setps.
>

>
> unzip
> ./configure
>
> ./make
>
> ./make install

I'm not sure what you're definition of binary is, but what you just
described isn't it. That's building from source to install. In some
shops where rpm based distros are mandated, this is a no-no. Your
method doesn't allow for any system-wide software auditing system to
know what is installed. Also, your command above will fail because it
looks for the 'make' command in the current directory where it won't
be. For rpm based systems, it's best to work with the tools of the
system and use rpms. In doing that you have to know how to salt the
general provided directions to taste. There are guides for working
with nagios rpms out there. Basically, understand the theory behind
the directions, and the platform becomes irrelevant.


> and you can see installation way when you unzip tar file.

Nope, you can see the source files. The only binaries in the nagios
tarball are the images.

--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety''
Benjamin Franklin 1775


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
___
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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] Security in the cgi

2006-03-09 Thread Rafael Bandeira da Costa




Alan Maxwell escreveu:

  
  
  Is
it possible to setup the security to allow a login to be able
acknowledge alerts but not be able to disable services and hosts?
  Using
nagios 2.0
   


You can secure it within apache. I just use the following in my
/etc/httpd/conf.d/nagios.conf (maybe you use another file to that)


    Require user nagios


Hope that helps you.

-- 
Rafael Costa
[EMAIL PROTECTED]
Curitiba - Paraná - Brasil




Re: [Nagios-users] Nagios 2.0 and cgi

2006-03-09 Thread Gordon Stewart
John

Are you getting an Internal Server error when to click on the links?

I am having the same issues.

Thanks

Gordon 


> 
> From: "John Duraiswamy" <[EMAIL PROTECTED]>
> Date: 2006/03/09 Thu PM 02:44:49 GMT
> To: 
> Subject: [Nagios-users] Nagios 2.0 and cgi
> 
> Hello everyone,
> I am migrating stuff from 1.1. to 2.0, I did a fresh install of 2.0 on
> sles 9 and everything worked fine except for "statusmap.cgi  trends.cgi 
> histogram.cgi " did not get compiled. I have all the
> requirements(gd,zlib and png) on the server to compile cgi stuff. If
> anyone have any workaround on this please let me know.
> 
> Thanks
> 
> 
> John Duraiswamy, CCNP
> Network Engineer
> Academy for Educational Development
> Washington, DC
> Tel. 202-884-8116  
> Fax. 202-884-8464
> 
> 
> 
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> ___
> 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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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] Security in the cgi

2006-03-09 Thread Alan Maxwell



Is it possible to 
setup the security to allow a login to be able acknowledge alerts but not be 
able to disable services and hosts?
Using nagios 
2.0
 


RE: [Nagios-users] Nagios escalations not working

2006-03-09 Thread Hugo van der Kooij
On Thu, 9 Mar 2006, Pavel Santos wrote:

> Hugo,
>
> I'm running Nagios 2.0 on Red Hat version 4 and the client machine is windows 
> 2003 for now, but I could be another Linux or windows 2000 box.

We do not care what your client machine is. But we do care about your
definitions in nagios config files. You have not shown a bit of that
config so there is still very little to go on.

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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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 2.0 and cgi

2006-03-09 Thread John Duraiswamy
Hello everyone,
I am migrating stuff from 1.1. to 2.0, I did a fresh install of 2.0 on
sles 9 and everything worked fine except for "statusmap.cgi  trends.cgi 
histogram.cgi " did not get compiled. I have all the
requirements(gd,zlib and png) on the server to compile cgi stuff. If
anyone have any workaround on this please let me know.

Thanks


John Duraiswamy, CCNP
Network Engineer
Academy for Educational Development
Washington, DC
Tel. 202-884-8116  
Fax. 202-884-8464



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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] Host checks not working on certain hosts

2006-03-09 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Wouter Mignon
> Sent: Thursday, March 09, 2006 8:10 AM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Host checks not working on certain hosts
> 
> Hello,
> 
> I have a few switches that don't have any services attached, some of
> them do their host-check and i receive mail/sms when they have are
> unreachable but a few stay in PENDING state and don't seem to do any
> checks. What could be wrong?
> 

Nagios is first-and-foremost a service monitor. With few exceptions*,
host checks are never executed unless a service on that host returns a
non-OK state. You need to have at least one service defined per host if
you want it to be checked regularly. That service could be just another
ping check. As to why some show OK and others show PENDING, I would
speculate that they are listed as the parent for a device that has
failed in the past. Nagios will check the host status of parents to
determine if a child is down or unreachable due to higher level outages.

* Starting with Nagios 2.0 you _can_ have regularly scheduled host
checks but they affect performance and are discouraged. The parent
checks are another case where a host check may be executed without a
failure of a service on the device.

--
Marc 


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] Host checks not working on certain hosts

2006-03-09 Thread Cook, Garry
What could be wrong is that you have a few switches that don't have any
services attached. 

Please read the fine manual at:
http://nagios.sourceforge.net/docs/1_0/
Specifically, the Network Reachability portion of the Theory of
Operations section:
http://nagios.sourceforge.net/docs/1_0/networkreachability.html
And the FAQ at: http://www.nagios.org/faqs/viewfaq.php?faq_id=39  

Thanks,
Garry

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wouter
Mignon
Sent: Thursday, March 09, 2006 7:10 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Host checks not working on certain hosts

Hello,

I have a few switches that don't have any services attached, some of
them do their host-check and i receive mail/sms when they have are
unreachable but a few stay in PENDING state and don't seem to do any
checks. What could be wrong?

[snip]

greets,
Wouter Mignon


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] Host checks not working on certain hosts

2006-03-09 Thread Wouter Mignon

Hello,

I have a few switches that don't have any services attached, some of 
them do their host-check and i receive mail/sms when they have are 
unreachable but a few stay in PENDING state and don't seem to do any 
checks. What could be wrong?


-- snip ---
switch_cd
   UP
No matching services View Extended Information For This Host View 
Service Details For This Host

switch_dlod
   UP
No matching services View Extended Information For This Host View 
Service Details For This Host

switch_dloh
   UP
No matching services View Extended Information For This Host View 
Service Details For This Host

switch_echo
   UP
No matching services View Extended Information For This Host View 
Service Details For This Host

switch_ludit
   UP
No matching services View Extended Information For This Host View 
Service Details For This Host

switch_ludit_servers
   PENDING
No matching services View Extended Information For This Host View 
Service Details For This Host

switch_rega
   UP
No matching services View Extended Information For This Host View 
Service Details For This Host

switch_rega_gigabit
   UP
No matching services View Extended Information For This Host View 
Service Details For This Host

switch_rega_ilwb
   UP
No matching services View Extended Information For This Host View 
Service Details For This Host

switch_ssh
   UP
No matching services View Extended Information For This Host View 
Service Details For This Host

switch_vv
   PENDING
No matching services View Extended Information For This Host View 
Service Details For This Host

switch_vv_straf
   PENDING
No matching services View Extended Information For This Host View 
Service Details For This Host

-- snip ---


greets,
Wouter Mignon


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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 escalations not working

2006-03-09 Thread Pavel Santos
Hugo, 
 
I'm running Nagios 2.0 on Red Hat version 4 and the client machine is windows 
2003 for now, but I could be another Linux or windows 2000 box.
 
Pavel  



From: [EMAIL PROTECTED] on behalf of Hugo van der Kooij
Sent: Thu 3/9/2006 2:36 AM
To: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Nagios escalations not working



On Wed, 8 Mar 2006, Pavel Santos wrote:

> define serviceescalation{
>
> host_name   computername
>
> service_description HTTP
>
> first_notification  6
>
> last_notification   0
>
> notification_interval   90
>
> contact_groups  system-group
>
> }

Hold on. This one is configured to send notifications every 90 minutes
(assuming 60 seconds is the default time measurement) But it should only
trigger after 6 * 90 = 540 minutes (9 hours). But it should stop at 0
notifications which, I think, is not valid.

If you remove the escalation do you get alerts to the escalation group(s)
as well?

Please provide relevant details like host + service definitions, nagios
version .

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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] Problems with RPM install

2006-03-09 Thread Jim Perrin
> Better go for Binary installation and it will be good in working
> without error and you can install in few setps.
>

>
> unzip
> ./configure
>
> ./make
>
> ./make install

I'm not sure what you're definition of binary is, but what you just
described isn't it. That's building from source to install. In some
shops where rpm based distros are mandated, this is a no-no. Your
method doesn't allow for any system-wide software auditing system to
know what is installed. Also, your command above will fail because it
looks for the 'make' command in the current directory where it won't
be. For rpm based systems, it's best to work with the tools of the
system and use rpms. In doing that you have to know how to salt the
general provided directions to taste. There are guides for working
with nagios rpms out there. Basically, understand the theory behind
the directions, and the platform becomes irrelevant.


> and you can see installation way when you unzip tar file.

Nope, you can see the source files. The only binaries in the nagios
tarball are the images.

--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety''
Benjamin Franklin 1775


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] defunct process / more than one nagios "root" process...

2006-03-09 Thread Johan Corsini
Hello everyone.

I am facing problems for a few days with my Nagios server (2.0b4).
I often have more than one nagios "root" process (launched by the root 
process), and sometimes have a "defunct" nagios process.  

It is really anoying, as it can leads to Nagios not working any more, or, at 
best, only doing half of the checks it should perform,... 
Often, it also stops recording the results of the checks, or "forget" latest 
informations after a restart, rolling back to the status data of hours ago.

I don't remember doing any big change lately, so I can't find why I am facing 
all those problems right now... 

Does any of you know what can cause those defunct processes, or the multiple 
nagios "root" processes?  Or best do you know how I could avoid it :)

Thanks a lot for your help,

Johan.



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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] nrpe arguments

2006-03-09 Thread Toto Capuccino
Hi,I want to launch event hancler on a remote windows host. The active nagios checks are checking exchange IS, MTA and SA and i want services to be restarted if they stop.Event handlers are enabled.I see in eventlog [09-03-2006 10:43:28] SERVICE EVENT HANDLER: ussfrsv02;Exchange 
IS;CRITICAL;SOFT;3;restart_exchangeI put a service eventhandler in nagios 
services.cfg fileevent_handler   restart_exchangeand put a definition in miscommands.cfg fileEvent-Handlers#define command {    command_name restart_exchange


    command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c restart_exchange $SERVICESTATE$ $STATETYPE$ $SERVICEATTEMPT$    }I am wondering if the concept is ok. On the windows side the nrpe.cfg file got a definition for restart_exchange:
# Values: 0=do not allow arguments, 1=allow command argumentsdont_blame_nrpe=1command[restart_exchange]=C:\nrpe\bin\RestartExchangeServices.cmd $ARG1$ $ARG2$ $ARG3$
And my RestartExchangeServices.cmd file contains this and at least it works in command line@ECHO offIF %1 == 'HARD' GOTO :1 ELSE GOTO :999:1IF %2 == 'SOFT' GOTO :2 ELSE GOTO :999:2
IF %3 == '3' GOTO :3:3  net start MSExchangeISnet start MSExchangeMTAnet start MSExchangeSAECHO "Services Exchange IS, MTA ans SA have been started"REM EXIT exitCode 0GOTO :999
I commented the Exitcode because it dont see the need for eventhandler.Anyway it is not working at all :( I would greatly appreciate some thoughts, comments, help or solutions. -- Le bon sens est la chose du monde la mieux partagée.