Re: [Nagios-users] Host object redefinition

2007-11-19 Thread Josh
As an alternative, you could create an ssh tunnel to each of the machines (if
they support it.) If not, maybe create an ssh tunnel to one machine and forward
ports to other machines. Even though NRPE communication may be encrypted, it may
be more secure to keep only one port open. my 2cents




-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 object redefinition

2007-11-19 Thread Marc Powell

On Nov 19, 2007, at 9:34 PM, Daniel Bareiro wrote:

> Hi all!
>
> This is my first post in the list/newsgroup.
>
> I've several hosts behind a firewall and I'd like to monitoring they
> with Nagios. These host haven't a public IP. Then, mi idea was to
> configure the firewall to redirect the Nagios server conection at
> specific port in the firewall ---one per host without public IP behind
> the firewall--- to remote NRPE listen port from the remote host.
>
> Then, I'd like to redefine the host object to include a port variable
> for call it in a general service definition. Example:
>
> define host {
>  use linux-server-intranet
>  host_name sdptest
>  alias oracle server
>  address a.b.c.d
>  port 5000
>  parents beta
>  icon_image base/debian.gif
>  statusmap_image base/debian.gd2
> }

With nagios-3, yes, but not with nagios-2. With nagios-2, you could  
pass it as a $ARGx$ macro from each service definition or create an  
nrpe command{} definition per host.

--
Marc

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Service notifications for a down host?

2007-11-19 Thread Marc Powell

On Nov 19, 2007, at 8:36 PM, Aidan Anderson wrote:

> Doug Tabb wrote:
>>
>>
>> top parent host is down and suppresses notifications for that site. I
>> then receive the one host recovery along with the 2 dozen or so
>> service recovery messages. I had hoped to not receive any service
>> notifications in this scenario. Is this expected behavior?
>>
>> Thank you very much!
>>
>> Doug Tabb
>>
> You shouldn't be seeing this behavior. The only time your should see
> this is if your services enter a hard state before the hosts. How does
> your host retry attempts compare to your service retry attempts?

You should never see this if you have a host check that properly  
determines the state of the host. When the service returns a non-OK  
state, the host is checked immediately up to max_check_attempts. No  
service checks occur during this time. If the host is found to be  
down, all service notifications are suppressed until the host  
recovers. The Notifications documentation is more thorough on this.

Are you sure that you have your parents directives set up properly?  
Are the service notifications for the services on the host that is  
down or child hosts?

--
Marc

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 object redefinition

2007-11-19 Thread Daniel Bareiro
Hi all!

This is my first post in the list/newsgroup.

I've several hosts behind a firewall and I'd like to monitoring they
with Nagios. These host haven't a public IP. Then, mi idea was to
configure the firewall to redirect the Nagios server conection at
specific port in the firewall ---one per host without public IP behind
the firewall--- to remote NRPE listen port from the remote host.

Then, I'd like to redefine the host object to include a port variable
for call it in a general service definition. Example:

define host {
  use linux-server-intranet
  host_name sdptest
  alias oracle server
  address a.b.c.d
  port 5000
  parents beta
  icon_image base/debian.gif
  statusmap_image base/debian.gd2
}

define service {
  use linux-server-intranet
  host_name apstest
  alias application server
  address x.y.z.t
  port 5001
  parents beta
  icon_image base/debian.gif
  statusmap_image base/debian.gd2
}

# 'check_nrpe-intranet' command definition
define command{
  command_namecheck_nrpe-intranet
  command_line$USER1$/check_nrpe -H ip.of.the.fw -p $PORT$ -c $ARG2$
}

define service {
  use generic-service
  host_name apstest,sdptest
  service_description Disk usage
  check_command check_nrpe!check_disk
  check_period  24x7
  normal_check_interval 5
  retry_check_interval  1
  max_check_attempts3
}


Is it possible?

Thanks in advance.

Regards,
Daniel
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Etch - Linux user #188.598


signature.asc
Description: Digital signature
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Service notifications for a down host?

2007-11-19 Thread Aidan Anderson
Doug Tabb wrote:
>
> I’m looking for a little behavior confirmation here, please. It’s my 
> understanding that a failed service check is one way a host check is 
> initiated. If Nagios determines the host is down, further service 
> problem notifications are suppressed. However, I still get one or more 
> notifications for the initial service problems. Wouldn’t Nagios 
> suppress those initial service checks until at least one host check 
> has been made?
>
> For illustration, I have a remote site with host parent/child 
> relationships configured. If the site goes down, I get about 2 dozen 
> service notifications from various child hosts before it realizes the 
> top parent host is down and suppresses notifications for that site. I 
> then receive the one host recovery along with the 2 dozen or so 
> service recovery messages. I had hoped to not receive any service 
> notifications in this scenario. Is this expected behavior?
>
> Thank you very much!
>
> Doug Tabb
>
You shouldn't be seeing this behavior. The only time your should see 
this is if your services enter a hard state before the hosts. How does 
your host retry attempts compare to your service retry attempts?

Aidan


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] how to get the current temp in a warning messagesent

2007-11-19 Thread Aaron Devey
Instead of $DATETIME try $SHORTDATETIME$

-Aaron

Randy Paries wrote:
>
> Andreas
> changing $OUTPUT$ to $SERVICEOUTPUT$ worked!!
> thanks
>
> currently it is set to Date/Time: $DATETIME
> and this always is blank
> Thanks
>
>
>
> On Nov 19, 2007 3:46 PM, Andreas Ericsson <[EMAIL PROTECTED]> wrote:
> >
> > Randy Paries wrote:
> > > Hello,
> > > I have the following service:
> > > 
> > > define service{
> > > usegeneric-service
> > > host_name  bart
> > > service_description   Probe #1 Temperature
> > > is_volatile0
> > > check_period   24x7
> > > max_check_attempts   2
> > > normal_check_interval  5
> > > retry_check_interval 1
> > > contact_groupsall_admins
> > > notification_interval   120
> > > notification_period 24x7
> > > notification_options   w,u,c,r
> > > check_command  check_temptraxf!/dev/ttyS0!1!74!78
> > > }
> > > 
> > >
> > > when i get a warning i get the message below. Is there a way to
> > > include the current temp in the warning?
> > > thanks for any help
> > >
> > > 
> > > * Nagios  *
> > >
> > > Notification Type: PROBLEM
> > >
> > > Service: Probe #1 Temperature
> > > Host: Bart #1
> > > Address: 192.168.0.214
> > > State: WARNING
> > >
> > > Date/Time: $
> > >
> > > Additional Info:
> > >
> > > $
> > > 
> > >
> >
> > You're using the wrong macros. Try changing $OUTPUT$ to
> $SERVICEOUTPUT$ in
> > your service notification macro. I don't know which one you want for
> > date/time, but a glance at the documentation will tell you.
> >
> > --
> > Andreas Ericsson   [EMAIL PROTECTED]
> > OP5 AB www.op5.se
> > Tel: +46 8-230225  Fax: +46 8-230231
> >
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> 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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] how to get the current temp in a warning message sent

2007-11-19 Thread Randy Paries
Andreas
changing $OUTPUT$ to $SERVICEOUTPUT$ worked!!
thanks

currently it is set to Date/Time: $DATETIME
and this always is blank
Thanks



On Nov 19, 2007 3:46 PM, Andreas Ericsson <[EMAIL PROTECTED]> wrote:
>
> Randy Paries wrote:
> > Hello,
> > I have the following service:
> > 
> > define service{
> > usegeneric-service
> > host_name  bart
> > service_description   Probe #1 Temperature
> > is_volatile0
> > check_period   24x7
> > max_check_attempts   2
> > normal_check_interval  5
> > retry_check_interval 1
> > contact_groupsall_admins
> > notification_interval   120
> > notification_period 24x7
> > notification_options   w,u,c,r
> > check_command  check_temptraxf!/dev/ttyS0!1!74!78
> > }
> > 
> >
> > when i get a warning i get the message below. Is there a way to
> > include the current temp in the warning?
> > thanks for any help
> >
> > 
> > * Nagios  *
> >
> > Notification Type: PROBLEM
> >
> > Service: Probe #1 Temperature
> > Host: Bart #1
> > Address: 192.168.0.214
> > State: WARNING
> >
> > Date/Time: $
> >
> > Additional Info:
> >
> > $
> > 
> >
>
> You're using the wrong macros. Try changing $OUTPUT$ to $SERVICEOUTPUT$ in
> your service notification macro. I don't know which one you want for
> date/time, but a glance at the documentation will tell you.
>
> --
> Andreas Ericsson   [EMAIL PROTECTED]
> OP5 AB www.op5.se
> Tel: +46 8-230225  Fax: +46 8-230231
>

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Non-support/Interface question

2007-11-19 Thread mark . potter
I have been tasked with creating an easy to view frontend for our 
helpdesk. I was using NagVis for their frontend but their latest request 
seems both a little basic and sort of complex for NagVis. I am hoping 
someone will be able to recommend a method of doing this that is easy to 
maintain. What they, essentially, want is a table with three columns. The 
first column will be the name of the hostgroup, the second would be the 
applications for the hostgroup (A single indicator for all apps that goes 
red if a single app fails), and the third would be the actual hosts. The 
second two columns are simply a red/yellow/green indicator with some 
fourth option for acknowledged problems while the first will be text large 
enough to read on their wall mount plasma screens. I could do this in 
NagVis with a background image for the columns/rows but it seems it would 
be much simpler and easier to maintain as php, html, perl etc. I could 
code such a page but do not have the in depth knowledge of Nagios to hook 
in and get the status information needed for the page. Does anyone know of 
a tool that will accomplish this without much trouble or an easy guide to 
developing such a thing? Thanks to all in advance for an replies.

Best Regards,

Mark L. Potter
Systems Engineer
Academy Sports & Outdoors
1800 N. Mason Rd
Katy, Texas 77449
Office: 281-646-5857
Cell: 281-734-6965
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] notification_interval seems to be ignored

2007-11-19 Thread Andreas Ericsson
Zembower, Kevin wrote:
> Just a follow-up: Setting 'is_volatile 0' explicitly in the service
> definition didn't seem to affect this behavior; it still sent me 3
> notifications, seemingly when the temperature changed.
> 

Right, this is fairly weird. Escalations aren't in effect, is_volatile
is set to zero. notification_interval is 0 and no other nagios install
has this problem.

Can you stop Nagios, make really sure it isn't running and start it
again?

Also verify that absolutely nothing else is sending notifications.
You can do that by replacing the notification script with a home-
hacked version that logs something somewhere every time it sends
a notification and then cross-check that log with your notifications.

If it still sends multiple notifications, It'll be quite hard to
fix without enabling debugging in nagios, and that's quite tedious :-/

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Notifications

2007-11-19 Thread Jerad Riggin
I found out via nagios.  It said the duration was 6 hours for the
outage, and I couldn't match it up with any alerts that were sent to
my mailbox.

Thanks for the tips

On Nov 19, 2007 3:48 PM, Aaron Devey <[EMAIL PROTECTED]> wrote:
> I don't see any obvious problems with your service definitions.  Did you
> find out TrendMicro was down for 6 hours by reviewing the nagios logs?
> If so, that means nagios at least saw the service had a problem.  If you
> found out it was down by some other means, perhaps you can check the
> nagios logs to make sure nagios saw a "critical" or "warning" problem
> with the service.
>
> Also, If you have log_notifications turned on, try examining the logs of
> the timeperiod it was down.  If you don't see any attempts to send a
> notification for TrendMicro on lg03, then it's likely a configuration
> problem somewhere.
>
> Finding it is the hard part. :)  The first places I would check are the
> service_notification_period, service_notification_options, and
> service_notification_commands for the contacts in the 'mis' group.
> Follow the service_notification_commands to make sure the command it
> points to is set up correctly as well.  If there are no problems there,
> I'd make sure there are no service escalations for that service.
>
> If that doesn't help, I have no idea what the problem could be. :)
>
> Good luck,
>
> -Aaron
>
>
>
> Jerad Riggin wrote:
> >
> > define service{
> > namegeneric-service ; Generic
> > service name
> > active_checks_enabled   1   ; Active
> > service checks are enabled
> > passive_checks_enabled  1   ; Passive
> > service checks are enabled/accepted
> > parallelize_check   1   ; Active
> > service checks should be parallelized (Don't disable)
> > obsess_over_service 1   ; We should
> > obsess over this service (if necessary)
> > check_freshness 0   ; Default is
> > to NOT check service 'freshness'
> > notifications_enabled   1   ; Service
> > notifications are enabled
> > event_handler_enabled   1   ; Service
> > event handler is enabled
> > flap_detection_enabled  1   ; Flap
> > detection is enabled
> > process_perf_data   1   ; Process
> > performance data
> > retain_status_information   1   ; Retain
> > status information across program restarts
> > retain_nonstatus_information1   ; Retain
> > non-status information across program restarts
> > register0   ; DONT
> > REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A TEMPLATE!
> > }
> >
> >
> > define service{
> > use generic-service
> > namewindows-service
> > is_volatile 0
> > check_period24x7
> > max_check_attempts  5
> > normal_check_interval   3
> > retry_check_interval1
> > notification_interval   15
> > notification_period 24x7
> > register0
> > }
> >
> > define service{
> > use windows-service
> > namecheck-trend
> > notification_optionsw,u,c,r
> > check_command   check_nt!SERVICESTATE!-d
> > SHOWALL -l ofcservice
> > register0
> > }
> >
> > define service{
> > use check-trend
> > service_description TrendMicro
> > contact_groups  mis
> > # hostgroup_namewindows-clients
> > host_name   lg03
> > }
> >
> >
>
>

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Notifications

2007-11-19 Thread Aaron Devey
Forgot to include the list in the CC.

Aaron Devey wrote:
> I don't see any obvious problems with your service definitions.  Did you
> find out TrendMicro was down for 6 hours by reviewing the nagios logs? 
> If so, that means nagios at least saw the service had a problem.  If you
> found out it was down by some other means, perhaps you can check the
> nagios logs to make sure nagios saw a "critical" or "warning" problem
> with the service.
>
> Also, If you have log_notifications turned on, try examining the logs of
> the timeperiod it was down.  If you don't see any attempts to send a
> notification for TrendMicro on lg03, then it's likely a configuration
> problem somewhere. 
>
> Finding it is the hard part. :)  The first places I would check are the
> service_notification_period, service_notification_options, and
> service_notification_commands for the contacts in the 'mis' group. 
> Follow the service_notification_commands to make sure the command it
> points to is set up correctly as well.  If there are no problems there,
> I'd make sure there are no service escalations for that service.
>
> If that doesn't help, I have no idea what the problem could be. :)
>
> Good luck,
>
> -Aaron
>
>
> Jerad Riggin wrote:
>   
>> define service{
>> namegeneric-service ; Generic
>> service name
>> active_checks_enabled   1   ; Active
>> service checks are enabled
>> passive_checks_enabled  1   ; Passive
>> service checks are enabled/accepted
>> parallelize_check   1   ; Active
>> service checks should be parallelized (Don't disable)
>> obsess_over_service 1   ; We should
>> obsess over this service (if necessary)
>> check_freshness 0   ; Default is
>> to NOT check service 'freshness'
>> notifications_enabled   1   ; Service
>> notifications are enabled
>> event_handler_enabled   1   ; Service
>> event handler is enabled
>> flap_detection_enabled  1   ; Flap
>> detection is enabled
>> process_perf_data   1   ; Process
>> performance data
>> retain_status_information   1   ; Retain
>> status information across program restarts
>> retain_nonstatus_information1   ; Retain
>> non-status information across program restarts
>> register0   ; DONT
>> REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A TEMPLATE!
>> }
>>
>>
>> define service{
>> use generic-service
>> namewindows-service
>> is_volatile 0
>> check_period24x7
>> max_check_attempts  5
>> normal_check_interval   3
>> retry_check_interval1
>> notification_interval   15
>> notification_period 24x7
>> register0
>> }
>>
>> define service{
>> use windows-service
>> namecheck-trend
>> notification_optionsw,u,c,r
>> check_command   check_nt!SERVICESTATE!-d
>> SHOWALL -l ofcservice
>> register0
>> }
>>
>> define service{
>> use check-trend
>> service_description TrendMicro
>> contact_groups  mis
>> # hostgroup_namewindows-clients
>> host_name   lg03
>> }
>>
>>
>> 
>
>
>   


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] how to get the current temp in a warning message sent

2007-11-19 Thread Andreas Ericsson
Randy Paries wrote:
> Hello,
> I have the following service:
> 
> define service{
> usegeneric-service
> host_name  bart
> service_description   Probe #1 Temperature
> is_volatile0
> check_period   24x7
> max_check_attempts   2
> normal_check_interval  5
> retry_check_interval 1
> contact_groupsall_admins
> notification_interval   120
> notification_period 24x7
> notification_options   w,u,c,r
> check_command  check_temptraxf!/dev/ttyS0!1!74!78
> }
> 
> 
> when i get a warning i get the message below. Is there a way to
> include the current temp in the warning?
> thanks for any help
> 
> 
> * Nagios  *
> 
> Notification Type: PROBLEM
> 
> Service: Probe #1 Temperature
> Host: Bart #1
> Address: 192.168.0.214
> State: WARNING
> 
> Date/Time: $
> 
> Additional Info:
> 
> $
> 
> 

You're using the wrong macros. Try changing $OUTPUT$ to $SERVICEOUTPUT$ in
your service notification macro. I don't know which one you want for
date/time, but a glance at the documentation will tell you.

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] CheckNT

2007-11-19 Thread Andreas Ericsson
Jerad Riggin wrote:
> I am monitoring the CPU load with NSClient on a host.  Here is the
> service definition
> 
> define service{
> use windows-service
> namecheck-cpu
> notification_optionsw,u,c,r
> check_command   check_nt!CPULOAD!-l 5, 80, 90
> register0
> }
> 
> Here is the actual call to that service
> 
> define service{
>   use check-cpu
>   service_description CPU
>   contact_groups  mis
>   hostgroup_name  windows-clients
> }
> 
> Here is what I see in the nagios interface
> 
> CPU OK 11-19-2007 14:56:07 122d 2h 7m 2s 1/5 not enough values for -l
> parameters
> 
> Any ideas?
> 

Off the top of my head, you're not passing enough values for the -l
parameter.

On a more serious note, arguments are split by spaces when parsed by the
shell. Remove the ones that are trailing the commas in the check_command
line and it'll work just fine.

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] how to get the current temp in a warning message sent

2007-11-19 Thread Zembower, Kevin
Randy, the only way I was able to do this was to write the return
temperature value in the message that the plug-in sent. Below, find my
plug-in code, if this would help.

-Kevin
===
[EMAIL PROTECTED]:/etc/nagios2/conf.d$ cat
/usr/lib/nagios/plugins/check_ambtempF
#! /usr/bin/perl -w

# check_ambtempF is a perl wrapper around the Nagios check_snmp plugin
#  to check the ambient temperature sensor in Dell PowerEdge servers.

# Written by Kevin Zembower, 13-Sep-2007

use strict;
use Getopt::Std;

my %opts;
getopts('dhc:w:H:',\%opts);

# Use this line below to dump the environment variables for debugging
system "env|sort >/tmp/plugins_env.$$" if defined($opts{d});

my %NAGIOS_ENV = map { $_ => $ENV{$_} } grep /^NAGIOS_/, keys %ENV;

if ( defined($opts{h}) ) {
  print = $crit ) {
 $output .= "CRITICAL: CCP server room temperature of ${tempF}F
exceeds critical temperature of $crit\n";
 $output .= "Probable air conditioning failure.\n";
 print $output;
 exit 2;
   } elsif ( defined $warn && $tempF >= $warn ) {
 $output .= "WARNING: CCP server room temperature of ${tempF}F
exceeds warning temperature of $warn\n";
 $output .= "Probable air conditioning failure.\n";
 print $output;
 exit 1;
   } else {
 $output .= "OK: CCP server room temperature is ${tempF}F\n";
 print $output;
 exit 0;
   }

sub c2f { my $c = shift; return (9/5*$c +32); }
sub f2c { my $f = shift; return (($f-32)*5/9); }

[EMAIL PROTECTED]:/etc/nagios2/conf.d$

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] question about NDOUtils

2007-11-19 Thread Andreas Ericsson
Andrey Dmitriev wrote:
> I understand you can do an initial load of config into the db.
> 
> How does it 'trap' all changes to config?

Every time Nagios restarts the module is loaded anew as well. Each time
Nagios is sent a sighup all modules are reloaded.

> I would guess it can trap changes made though Nagios interface.
> What if such changes were made to the config file and nagios restarted?
> 

The module would be reloaded too, so the config would be purged from the
database and then added to it again.

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] notification_interval seems to be ignored

2007-11-19 Thread Zembower, Kevin
Just a follow-up: Setting 'is_volatile 0' explicitly in the service
definition didn't seem to affect this behavior; it still sent me 3
notifications, seemingly when the temperature changed.

Thanks for any additional suggestions and advice.

-Kevin

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Zembower, Kevin
Sent: Monday, November 19, 2007 2:11 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] notification_interval seems to be ignored

Andreas, thanks for your response. My notification_interval is set to 0,
so theoretically it should send me either no repeated notifications, or
a notification every 5 minutes, my normal_check_interval. I triggered an
ambient temperature warning and let it run for an hour and 42 minutes.
The time between notifications was 10, 26, 5, 12, 5, 5 and 25 minutes.
In each case, the temperature had changed from the previous
notification.

The only definition of is_volatile was in the
generic-service_nagios2.cfg files, where it's set to 0. I've now
included it explicitly in the service definition for my ambient
temperature monitor. I'll let you know if this makes a difference.

Thanks, again, for your help.

-Kevin



iginal Message-
From: Andreas Ericsson [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 1:02 PM
To: Zembower, Kevin
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] notification_interval seems to be ignored

Zembower, Kevin wrote:
> Still trying to investigate why the notification_interval seems to be
> ignored on my alert based on the ambient temperature in my server
room.
> 

It's not, but nagios only attempts to send notifications when it has
performed a check, afair. If you set notification_interval to lower
than your normal_check_interval, will it then send notifications with
intervals matching normal_check_interval?

> One thought that I had was that the temperature was changing between
> alerts, even though it was still in the critical or warning state.
Would
> this cause repeated notifications to be sent out?

Only if is_volatile is set for the service.

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] how to get the current temp in a warning message sent

2007-11-19 Thread Randy Paries
Hello,
I have the following service:

define service{
usegeneric-service
host_name  bart
service_description   Probe #1 Temperature
is_volatile0
check_period   24x7
max_check_attempts   2
normal_check_interval  5
retry_check_interval 1
contact_groupsall_admins
notification_interval   120
notification_period 24x7
notification_options   w,u,c,r
check_command  check_temptraxf!/dev/ttyS0!1!74!78
}


when i get a warning i get the message below. Is there a way to
include the current temp in the warning?
thanks for any help


* Nagios  *

Notification Type: PROBLEM

Service: Probe #1 Temperature
Host: Bart #1
Address: 192.168.0.214
State: WARNING

Date/Time: $

Additional Info:

$


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Notifications

2007-11-19 Thread Jerad Riggin
define service{
namegeneric-service ; Generic service name
active_checks_enabled   1   ; Active
service checks are enabled
passive_checks_enabled  1   ; Passive
service checks are enabled/accepted
parallelize_check   1   ; Active
service checks should be parallelized (Don't disable)
obsess_over_service 1   ; We should
obsess over this service (if necessary)
check_freshness 0   ; Default is
to NOT check service 'freshness'
notifications_enabled   1   ; Service
notifications are enabled
event_handler_enabled   1   ; Service
event handler is enabled
flap_detection_enabled  1   ; Flap
detection is enabled
process_perf_data   1   ; Process
performance data
retain_status_information   1   ; Retain
status information across program restarts
retain_nonstatus_information1   ; Retain
non-status information across program restarts
register0   ; DONT
REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A TEMPLATE!
}


define service{
use generic-service
namewindows-service
is_volatile 0
check_period24x7
max_check_attempts  5
normal_check_interval   3
retry_check_interval1
notification_interval   15
notification_period 24x7
register0
}

define service{
use windows-service
namecheck-trend
notification_optionsw,u,c,r
check_command   check_nt!SERVICESTATE!-d
SHOWALL -l ofcservice
register0
}

define service{
use check-trend
service_description TrendMicro
contact_groups  mis
# hostgroup_namewindows-clients
host_name   lg03
}



On Nov 19, 2007 3:11 PM, Aaron Devey <[EMAIL PROTECTED]> wrote:
> What are your notification options set to?  In 2.9 the default is "none"
> so if you didn't specify them for that service, it won't alert.  If
> that's not the answer, perhaps you can paste your the definitions for
> your service, contact, and notification command?
>
> -Aaron
>
>
>
> Jerad Riggin wrote:
> >
> > I have a nagios 2.9 install.  I have one host with multiple services
> > being monitored.  On the 16th the host didn't respond to a ping (the
> > server rebooted), and recovered within 3 minutes.  I received an
> > e-mail for both the failure and recovery.  I am also monitoring some
> > windows services on the same box using NsClient++.  It shows on the
> > same day that after it recovered the TrendMicro virus process was down
> > for 6 hours.  I didn't receive an e-mail during this entire time.  It
> > is set at 5 max attempts, 3 normal check, and 1 retry with a
> > notification interval of 15 minutes.  It should have at least notified
> > once but it didn't.  Any ideas?
> >
> > -
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> > ___
> > 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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Notifications

2007-11-19 Thread Aaron Devey
What are your notification options set to?  In 2.9 the default is "none"
so if you didn't specify them for that service, it won't alert.  If
that's not the answer, perhaps you can paste your the definitions for
your service, contact, and notification command?

-Aaron


Jerad Riggin wrote:
>
> I have a nagios 2.9 install.  I have one host with multiple services
> being monitored.  On the 16th the host didn't respond to a ping (the
> server rebooted), and recovered within 3 minutes.  I received an
> e-mail for both the failure and recovery.  I am also monitoring some
> windows services on the same box using NsClient++.  It shows on the
> same day that after it recovered the TrendMicro virus process was down
> for 6 hours.  I didn't receive an e-mail during this entire time.  It
> is set at 5 max attempts, 3 normal check, and 1 retry with a
> notification interval of 15 minutes.  It should have at least notified
> once but it didn't.  Any ideas?
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> 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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] CheckNT

2007-11-19 Thread Jerad Riggin
I am monitoring the CPU load with NSClient on a host.  Here is the
service definition

define service{
use windows-service
namecheck-cpu
notification_optionsw,u,c,r
check_command   check_nt!CPULOAD!-l 5, 80, 90
register0
}

Here is the actual call to that service

define service{
use check-cpu
service_description CPU
contact_groups  mis
hostgroup_name  windows-clients
}

Here is what I see in the nagios interface

CPU OK 11-19-2007 14:56:07 122d 2h 7m 2s 1/5 not enough values for -l
parameters

Any ideas?

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Notifications

2007-11-19 Thread Jerad Riggin
I have a nagios 2.9 install.  I have one host with multiple services
being monitored.  On the 16th the host didn't respond to a ping (the
server rebooted), and recovered within 3 minutes.  I received an
e-mail for both the failure and recovery.  I am also monitoring some
windows services on the same box using NsClient++.  It shows on the
same day that after it recovered the TrendMicro virus process was down
for 6 hours.  I didn't receive an e-mail during this entire time.  It
is set at 5 max attempts, 3 normal check, and 1 retry with a
notification interval of 15 minutes.  It should have at least notified
once but it didn't.  Any ideas?

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Monitoring hosts and DHCP

2007-11-19 Thread Matt Lozier
Hi Benny,

Yes, I'm using WINS.  We have a simple LAN here, nothing fancy.

I think that my best bet is having my DCHP daemon reserve a given IP for
each host.

Thanks for your help and suggestions -- much appreciated!

---
Matt Lozier
Network Administrator
972.644.2581, ext. 248
972.661.2701  fax
 

 
The information contained in this message or any attached document is
confidential and intended only for the individual(s) or entity to which it
is addressed.   The information should be considered privileged and
confidential.  If you are not the intended recipient, you are hereby
notified that any unauthorized use of the information contained in or
transmitted with the communication, or dissemination, distribution, or
copying of this communication is strictly prohibited by law.  If you have
received this communication in error, please inform the sender by
immediately returning this communication to the sender and then deleting the
original message and any copy of it in your possession.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of C. Bensend
Sent: Monday, November 19, 2007 2:40 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Monitoring hosts and DHCP


> Thank you for the reply, but unfortunately I'm not using DNS, and I don't
> want to have to :-)
>
> Just want to know if there is a way to monitor hosts that obtain their IP
> address via DHCP.
>
> I'll continue to see what I can do with this, and will reply to the list
> if
> I find a solution.

Umm...  So how do you access the hosts, if they're switching
IPs on you and you're not using DNS?  Do you just rely on WINS or
something?

You could set up passive checks, and have the DHCPized machines
*send* you the test results, that way Nagios wouldn't have to have
some way of addressing them.  I *think* that would work?  I've
never tried it.

Benny


-- 
"If it's true that our species is alone in the universe, then I'd
have to say that the universe aimed rather low and settled for
very little."-- George Carlin



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] question about NDOUtils

2007-11-19 Thread Andrey Dmitriev
anyone :)?

-Original Message-
From: Andrey Dmitriev 
Sent: Friday, November 16, 2007 5:00 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] question about NDOUtils

I understand you can do an initial load of config into the db.

How does it 'trap' all changes to config?
I would guess it can trap changes made though Nagios interface.
What if such changes were made to the config file and nagios restarted?

Thanks,
Andrey



-
This SF.net email is sponsored by: Microsoft Defy all challenges. 
Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Monitoring hosts and DHCP

2007-11-19 Thread Matt Lozier
Sorry, I meant to hit "reply to all."  My apologies.

Thanks,

---
Matt Lozier
IT Analyst
972.644.2581, ext. 248
972.661.2701  fax
 

 
The information contained in this message or any attached document is
confidential and intended only for the individual(s) or entity to which it
is addressed.   The information should be considered privileged and
confidential.  If you are not the intended recipient, you are hereby
notified that any unauthorized use of the information contained in or
transmitted with the communication, or dissemination, distribution, or
copying of this communication is strictly prohibited by law.  If you have
received this communication in error, please inform the sender by
immediately returning this communication to the sender and then deleting the
original message and any copy of it in your possession.

-Original Message-
From: Aaron M. Segura [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 2:09 PM
To: Matt Lozier
Cc: 'C. Bensend'; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Monitoring hosts and DHCP

Hard code the MAC -> IP assignment through your dhcp daemon.

??

On Mon, 2007-11-19 at 14:03 -0600, Matt Lozier wrote:
> Hi Benny,
> 
> Thank you for the reply, but unfortunately I'm not using DNS, and I don't
> want to have to :-)
> 
> Just want to know if there is a way to monitor hosts that obtain their IP
> address via DHCP.
> 
> I'll continue to see what I can do with this, and will reply to the list
if
> I find a solution.
> 
> Thanks again,
>  
> 
> ---
> Matt Lozier
> Network Administrator
> 972.644.2581, ext. 248
> 972.661.2701  fax
>  
> 
> 
> The information contained in this message or any attached document is
> confidential and intended only for the individual(s) or entity to which it
> is addressed.   The information should be considered privileged and
> confidential.  If you are not the intended recipient, you are hereby
> notified that any unauthorized use of the information contained in or
> transmitted with the communication, or dissemination, distribution, or
> copying of this communication is strictly prohibited by law.  If you have
> received this communication in error, please inform the sender by
> immediately returning this communication to the sender and then deleting
the
> original message and any copy of it in your possession.
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of C.
Bensend
> Sent: Monday, November 19, 2007 9:45 AM
> To: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Monitoring hosts and DHCP
> 
> 
> > I'm monitoring about 30 machines using Nagios with SNMP checks.  I also
> > have
> > a DHCP server casting each machine on the network their IP address on
> > start-up.  Some machines stay on the majority of the time, others for
only
> > 4-8 hours a day.  The machines generally maintain their same IP address
> > over
> > time as DHCP is designed to try and give a machine back it's same IP, so
> > long as it's available.  However, there have been times when a machine
has
> > changed its IP addresses as a result of using DHCP on this LAN.
> 
> http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host
> 
> Pay particular attention to the address section...  You can use
> the hostname in place of the IP address, at the cost of doing a
> DNS lookup when the host is checked.
> 
> Benny
> 
> 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Monitoring hosts and DHCP

2007-11-19 Thread C. Bensend

> Thank you for the reply, but unfortunately I'm not using DNS, and I don't
> want to have to :-)
>
> Just want to know if there is a way to monitor hosts that obtain their IP
> address via DHCP.
>
> I'll continue to see what I can do with this, and will reply to the list
> if
> I find a solution.

Umm...  So how do you access the hosts, if they're switching
IPs on you and you're not using DNS?  Do you just rely on WINS or
something?

You could set up passive checks, and have the DHCPized machines
*send* you the test results, that way Nagios wouldn't have to have
some way of addressing them.  I *think* that would work?  I've
never tried it.

Benny


-- 
"If it's true that our species is alone in the universe, then I'd
have to say that the universe aimed rather low and settled for
very little."-- George Carlin



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Staggering epager notifications

2007-11-19 Thread Karl Katzke
We're having a problem with Sprint's email-to-pager gateway will refuse 
connections and defer messages with the response "Too many connections from 
host" when Nagios is trying to alert all of us at once that something has 
failed. Obviously, since we don't know it's happening unless we're in the 
office, this isn't necessarily a good thing -- the person who really needs to 
respond might not get their notification for minutes or hours, and in the 
meantime, the service is down. 

We've found that if we send messages with a 5-second gap, Sprint doesn't 
complain about us spamming their gateway. Is there a way to get Nagios (or 
alternately the MTA, which I realize would be off-topic, but I'm not a MTA guy) 
to stagger out the notifications --without some arcane hack like using 
escalations?

Thanks,
Karl Katzke
TAMU RGS


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Monitoring hosts and DHCP

2007-11-19 Thread Aaron M. Segura
Hard code the MAC -> IP assignment through your dhcp daemon.

??

On Mon, 2007-11-19 at 14:03 -0600, Matt Lozier wrote:
> Hi Benny,
> 
> Thank you for the reply, but unfortunately I'm not using DNS, and I don't
> want to have to :-)
> 
> Just want to know if there is a way to monitor hosts that obtain their IP
> address via DHCP.
> 
> I'll continue to see what I can do with this, and will reply to the list if
> I find a solution.
> 
> Thanks again,
>  
> 
> ---
> Matt Lozier
> Network Administrator
> 972.644.2581, ext. 248
> 972.661.2701  fax
>  
> 
> 
> The information contained in this message or any attached document is
> confidential and intended only for the individual(s) or entity to which it
> is addressed.   The information should be considered privileged and
> confidential.  If you are not the intended recipient, you are hereby
> notified that any unauthorized use of the information contained in or
> transmitted with the communication, or dissemination, distribution, or
> copying of this communication is strictly prohibited by law.  If you have
> received this communication in error, please inform the sender by
> immediately returning this communication to the sender and then deleting the
> original message and any copy of it in your possession.
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of C. Bensend
> Sent: Monday, November 19, 2007 9:45 AM
> To: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Monitoring hosts and DHCP
> 
> 
> > I'm monitoring about 30 machines using Nagios with SNMP checks.  I also
> > have
> > a DHCP server casting each machine on the network their IP address on
> > start-up.  Some machines stay on the majority of the time, others for only
> > 4-8 hours a day.  The machines generally maintain their same IP address
> > over
> > time as DHCP is designed to try and give a machine back it's same IP, so
> > long as it's available.  However, there have been times when a machine has
> > changed its IP addresses as a result of using DHCP on this LAN.
> 
> http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host
> 
> Pay particular attention to the address section...  You can use
> the hostname in place of the IP address, at the cost of doing a
> DNS lookup when the host is checked.
> 
> Benny
> 
> 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Monitoring hosts and DHCP

2007-11-19 Thread Matt Lozier
Hi Benny,

Thank you for the reply, but unfortunately I'm not using DNS, and I don't
want to have to :-)

Just want to know if there is a way to monitor hosts that obtain their IP
address via DHCP.

I'll continue to see what I can do with this, and will reply to the list if
I find a solution.

Thanks again,
 

---
Matt Lozier
Network Administrator
972.644.2581, ext. 248
972.661.2701  fax
 

 
The information contained in this message or any attached document is
confidential and intended only for the individual(s) or entity to which it
is addressed.   The information should be considered privileged and
confidential.  If you are not the intended recipient, you are hereby
notified that any unauthorized use of the information contained in or
transmitted with the communication, or dissemination, distribution, or
copying of this communication is strictly prohibited by law.  If you have
received this communication in error, please inform the sender by
immediately returning this communication to the sender and then deleting the
original message and any copy of it in your possession.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of C. Bensend
Sent: Monday, November 19, 2007 9:45 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Monitoring hosts and DHCP


> I'm monitoring about 30 machines using Nagios with SNMP checks.  I also
> have
> a DHCP server casting each machine on the network their IP address on
> start-up.  Some machines stay on the majority of the time, others for only
> 4-8 hours a day.  The machines generally maintain their same IP address
> over
> time as DHCP is designed to try and give a machine back it's same IP, so
> long as it's available.  However, there have been times when a machine has
> changed its IP addresses as a result of using DHCP on this LAN.

http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host

Pay particular attention to the address section...  You can use
the hostname in place of the IP address, at the cost of doing a
DNS lookup when the host is checked.

Benny


-- 
"If it's true that our species is alone in the universe, then I'd
have to say that the universe aimed rather low and settled for
very little."-- George Carlin



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Service notifications for a down host?

2007-11-19 Thread Doug Tabb
I'm looking for a little behavior confirmation here, please. It's my
understanding that a failed service check is one way a host check is
initiated. If Nagios determines the host is down, further service
problem notifications are suppressed. However, I still get one or more
notifications for the initial service problems. Wouldn't Nagios suppress
those initial service checks until at least one host check has been
made? 

 

For illustration, I have a remote site with host parent/child
relationships configured. If the site goes down, I get about 2 dozen
service notifications from various child hosts before it realizes the
top parent host is down and suppresses notifications for that site. I
then receive the one host recovery along with the 2 dozen or so service
recovery messages. I had hoped to not receive any service notifications
in this scenario. Is this expected behavior?

 

Thank you very much! 

 

 

Doug Tabb

 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] notification_interval seems to be ignored

2007-11-19 Thread Zembower, Kevin
Andreas, thanks for your response. My notification_interval is set to 0,
so theoretically it should send me either no repeated notifications, or
a notification every 5 minutes, my normal_check_interval. I triggered an
ambient temperature warning and let it run for an hour and 42 minutes.
The time between notifications was 10, 26, 5, 12, 5, 5 and 25 minutes.
In each case, the temperature had changed from the previous
notification.

The only definition of is_volatile was in the
generic-service_nagios2.cfg files, where it's set to 0. I've now
included it explicitly in the service definition for my ambient
temperature monitor. I'll let you know if this makes a difference.

Thanks, again, for your help.

-Kevin



iginal Message-
From: Andreas Ericsson [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 1:02 PM
To: Zembower, Kevin
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] notification_interval seems to be ignored

Zembower, Kevin wrote:
> Still trying to investigate why the notification_interval seems to be
> ignored on my alert based on the ambient temperature in my server
room.
> 

It's not, but nagios only attempts to send notifications when it has
performed a check, afair. If you set notification_interval to lower
than your normal_check_interval, will it then send notifications with
intervals matching normal_check_interval?

> One thought that I had was that the temperature was changing between
> alerts, even though it was still in the critical or warning state.
Would
> this cause repeated notifications to be sent out?

Only if is_volatile is set for the service.

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] nsca PROCESS_HOST_CHECK_RESULT problem

2007-11-19 Thread Brian A. Seklecki

Bratislav:

Did you ever resolve these bizaare PROCESS_HOST_CHECK_RESULT / 
PROCESS_SERVICE_CHECK_RESULT errors?

I'm having trouble debugging them as well

~BAS


> If I simulate host down I got HOST_CHECK from nagios.log on remote host:

> EXTERNAL COMMAND: PROCESS_HOST_CHECK_RESULT;server1;1;PING CRITICAL - 
> Packet loss = 100%

> but regularly, it is triggered like it is service check, and 
> PROCESS_HOST_CHECK_RESULT is not performed at all.

> [1175605177] EXTERNAL COMMAND:
>  PROCESS_SERVICE_CHECK_RESULT;server1;0;0; RTA = 0.18 ms [1175605177] 
> Warning:  Passive check result was received for service '0' on host 
> 'server1', but the service could not be found!


l8*
-lava (Brian A. Seklecki - Pittsburgh, PA, USA)
   http://www.spiritual-machines.org/

 "Guilty? Yeah. But he knows it. I mean, you're guilty.
 You just don't know it. So who's really in jail?"
 ~Maynard James Keenan


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Using Nagios to Monitor RDP **** SOLVED ****

2007-11-19 Thread Andreas Ericsson
Hari Sekhon wrote:
> On the topic of this RDP test, I'd love to know if anyone has a better 
> test to actually use the protocol, since anything could theoretically 
> take port 3389 and this test wouldn't catch it.
> 
> I currently also check_tcp as my RDP test but it feels cheap... with VNC 
> I actually wrote a plugin to log in to VNC, pull one image to know it's 
> all working and then give the OK once it has done that, which seemed 
> much better. It would be great if I could have such a thing for RDP too...
> 

rdesktop is fairly well written, afair. It shouldn't be too difficult to
extract the protocol details from that project.

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Using Nagios to Monitor RDP **** SOLVED ****

2007-11-19 Thread Hari Sekhon
On the topic of this RDP test, I'd love to know if anyone has a better 
test to actually use the protocol, since anything could theoretically 
take port 3389 and this test wouldn't catch it.

I currently also check_tcp as my RDP test but it feels cheap... with VNC 
I actually wrote a plugin to log in to VNC, pull one image to know it's 
all working and then give the OK once it has done that, which seemed 
much better. It would be great if I could have such a thing for RDP too...

-h

Hari Sekhon



Joel Roberts wrote:
>
> Can’t stress the importance of accurate typing enough, I had a typo in 
> the line “service_description”
>
> Working now.
>
> 
>
> *From:* [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] *On Behalf Of 
> *Joel Roberts
> *Sent:* Monday, November 19, 2007 10:27 AM
> *To:* nagios-users@lists.sourceforge.net
> *Subject:* [Nagios-users] Using Nagios to Monitor RDP
>
> Want to use Nagios to monitor RDP availability on a Windows 2k3 server 
> (port 3389). Have put the following in my windows.cfg file:
>
> define service{
>
> use generic-service
>
> host_name SERVERNAME
>
> service_description RDP
>
> check_command check_tcp!3389
>
> }
>
> But get an error when I try to verify the config files. Anyone else 
> using check_tcp and see what I’m doing wrong here? I know the host is 
> configured correctly in the file, I’m using it to monitor other 
> services (HTTP and Ping) with no problem.
>
> Thanks in advance.
>
> 
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> 
>
> ___
> 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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] notification_interval seems to be ignored

2007-11-19 Thread Andreas Ericsson
Zembower, Kevin wrote:
> Still trying to investigate why the notification_interval seems to be
> ignored on my alert based on the ambient temperature in my server room.
> 

It's not, but nagios only attempts to send notifications when it has
performed a check, afair. If you set notification_interval to lower
than your normal_check_interval, will it then send notifications with
intervals matching normal_check_interval?

> One thought that I had was that the temperature was changing between
> alerts, even though it was still in the critical or warning state. Would
> this cause repeated notifications to be sent out?

Only if is_volatile is set for the service.

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Notifications

2007-11-19 Thread Andreas Ericsson
Jerad Riggin wrote:
> I have a quick question.  I have a host template that disables
> notifications and I have about 53 hosts using it.  If the
> notifications are disabled, why then does it still require that I have
> values for notification_interval, _period, and _options?
> 

Because you can dynamically enable notifications by an external command.
That wouldn't be possible for hosts with none of those options.

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Using Nagios to Monitor RDP

2007-11-19 Thread Philipp Geschke
Joel Roberts schrieb:
> Want to use Nagios to monitor RDP availability on a Windows 2k3 server
> (port 3389). Have put the following in my windows.cfg file:
> 
>  
> 
> define service{
> 
> use   generic-service
> 
> host_nameSERVERNAME
> 
> service_description   RDP
> 
> check_command   check_tcp!3389
> 
> }
> 
>  
> 
> But get an error when I try to verify the config files. Anyone else
> using check_tcp and see what I’m doing wrong here? I know the host is
> configured correctly in the file, I’m using it to monitor other services
> (HTTP and Ping) with no problem.
> 
>  
> 
> Thanks in advance.
> 
>

That doesn't look wrong.
Make sure the template generic-service defines all obligatory values.

What does the error say in detail? (nagios -v output).

This is the way my RDP monitoring is set up:

define service {
use default-service
host_name   SERVERNAME
service_description RDP
check_command   check_tcp!3389
}

define service{
namedefault-service
active_checks_enabled   1
passive_checks_enabled  0
parallelize_check   1
obsess_over_service 1
check_freshness 0
notifications_enabled   1
event_handler_enabled   0
flap_detection_enabled  0
process_perf_data   1
retain_status_information   1
retain_nonstatus_information1
register0

is_volatile 0
check_period24x7
max_check_attempts  5
normal_check_interval   5
retry_check_interval1
contact_groups  contacts
notification_interval   30
notification_period 24x7
notification_optionsc,r
}

define command{
command_namecheck_tcp
command_line$USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$
}

Also make sure, check_tcp is really located under $USER1$.



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Using Nagios to Monitor RDP **** SOLVED ****

2007-11-19 Thread Joel Roberts
Can't stress the importance of accurate typing enough, I had a typo in
the line "service_description"

 

Working now.

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Joel
Roberts
Sent: Monday, November 19, 2007 10:27 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Using Nagios to Monitor RDP

 

Want to use Nagios to monitor RDP availability on a Windows 2k3 server
(port 3389). Have put the following in my windows.cfg file:

 

define service{

use   generic-service

host_nameSERVERNAME

service_description   RDP

check_command   check_tcp!3389

}

 

But get an error when I try to verify the config files. Anyone else
using check_tcp and see what I'm doing wrong here? I know the host is
configured correctly in the file, I'm using it to monitor other services
(HTTP and Ping) with no problem.

 

Thanks in advance.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Using Nagios to Monitor RDP

2007-11-19 Thread Aaron M. Segura
On Mon, 2007-11-19 at 10:27 -0700, Joel Roberts wrote:
> Want to use Nagios to monitor RDP availability on a Windows 2k3 server
> (port 3389). Have put the following in my windows.cfg file:
> 
>  
> 
> define service{
> 
> use   generic-service
> 
> host_nameSERVERNAME
> 
> service_description   RDP
> 
> check_command   check_tcp!3389
> 
> }
> 
>  
> 
> But get an error when I try to verify the config files. Anyone else
> using check_tcp and see what I’m doing wrong here? I know the host is
> configured correctly in the file, I’m using it to monitor other
> services (HTTP and Ping) with no problem.
> 
>  
> 
> Thanks in advance.

It would be useful to see your command definition for 'check_tcp'.
Also, it would be helpful to know what the error said, not just that you
received an error of some sort.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Using Nagios to Monitor RDP

2007-11-19 Thread Joel Roberts
Want to use Nagios to monitor RDP availability on a Windows 2k3 server
(port 3389). Have put the following in my windows.cfg file:

 

define service{

use   generic-service

host_nameSERVERNAME

service_description   RDP

check_command   check_tcp!3389

}

 

But get an error when I try to verify the config files. Anyone else
using check_tcp and see what I'm doing wrong here? I know the host is
configured correctly in the file, I'm using it to monitor other services
(HTTP and Ping) with no problem.

 

Thanks in advance.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] Newbie installation question

2007-11-19 Thread Scott Ackerman
I am looking to implement Nagios for monitoring a dedicated remote web
server that I have. I currently have a local Linux server that I could
install Nagios on, however my internet connectivity can be flaky at
times and if I monitor a remote server I may get more "failure warnings"
than I care to. The quick start seems to assume that Nagios would be
installed on a local server, or at least one in which you had local
x-windows access to, can this be installed without having "localhost"
access? and why would or would I not want to do this? Thanks.

-- 
Scott Ackerman
1212 Baker Street
Fort Collins, Colorado 80524
970-689-3999
Cell 970-231-9035
Fax 888-290-2131

"Every improvement in the standard of work men do is followed swiftly and 
inevitably by an improvement in the men who do it" - William Morris


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] notification_interval seems to be ignored

2007-11-19 Thread Zembower, Kevin
Still trying to investigate why the notification_interval seems to be
ignored on my alert based on the ambient temperature in my server room.

One thought that I had was that the temperature was changing between
alerts, even though it was still in the critical or warning state. Would
this cause repeated notifications to be sent out? I've pasted in the
last notification I received at the end of this message. Note that the
duration is just 6 seconds, even though it arrived 10 minutes after the
first notification.

I also just received a third alert, 40 minutes after the first one. On
this one, the temperature was also different from the second one. The
duration was again 6 seconds. So, it does seem as if if the service
message changes (the temperature value changes), the alert is sent
again. Anyway to stop this feature, and only send alerts when the state
changes?

Thanks for your continued advice and suggestions.

-Kevin

* Nagios  *

Notification Type: PROBLEM

Service: Ambient Temperature
Host: www.jhuccp.org
State: WARNING for 0d 0h 0m 6s
Address: 10.253.192.204

Info:

Temperature WARNING: CCP server room temperature of 69.8F exceeds
warning temperature of 60

Date/Time: Mon Nov 19 11:36:28 EST 2007

ACK by: 
Comment:

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Notifications

2007-11-19 Thread Jerad Riggin
I have a quick question.  I have a host template that disables
notifications and I have about 53 hosts using it.  If the
notifications are disabled, why then does it still require that I have
values for notification_interval, _period, and _options?

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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_by_ssh failing on commands that work via remote ssh as the nagios user

2007-11-19 Thread mark . potter
> 
> Nagios: 2.10 
> Plugins: 1.4.9 
> OS: SLES 9.3 
> 
> I am having some trouble figuring out how to make check_by_ssh work 
> properly. I think I have done all of the usual troubleshooting and I
> have googled the issue to no avail: 
> 
> Command as nagios user on the remote server: 
> 
> /usr/local/nagios/libexec/check_load -w 7,7,7 -c 10,10,10 
> OK - load average: 0.01, 0.04, 0.03|load1=0.010;7.000;10.000;0; 
> load5=0.040;7.000;10.000;0; load15=0.030;7.000;10.000;0; 
> 
> Command as nagios user via ssh on Nagios server: 
> 
> ssh ulwswas01 "/usr/local/nagios/libexec/check_load -w 7,7,7 -c 
10,10,10" 
>  
> OK - load average: 0.05, 0.07, 0.04|load1=0.050;7.000;10.000;0; 
> load5=0.070;7.000;10.000;0; load15=0.040;7.000;10.000;0; 
> 
> check_by_ssh attempt as nagios user on Nagios server: 
> ./check_by_ssh -H ulwswas01 -C "/usr/local/nagios/libexec/check_load
> -w 7,7,7 -c 10,10,10" 
> Remote command execution failed: 
> 
> I get nothing in the log files concerning this and it makes little 
> sense. I have tried everything I need to have working, to the best 
> of my knowledge, as the nagios use and it works. Thanks in advance 
> for any help! 
> 

Please disregard the above request. Further research showed the -S option 
was all that was needed. Would be nice if this was documented to show it 
is needed on all systems with banners as it is currently a little harder 
to find. If it were mentioned in the -h, the banner part, I would not have 
sent the request for help initially.  I now return you to your regularly 
scheduled madness...-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] Monitoring hosts and DHCP

2007-11-19 Thread C. Bensend

> I'm monitoring about 30 machines using Nagios with SNMP checks.  I also
> have
> a DHCP server casting each machine on the network their IP address on
> start-up.  Some machines stay on the majority of the time, others for only
> 4-8 hours a day.  The machines generally maintain their same IP address
> over
> time as DHCP is designed to try and give a machine back it's same IP, so
> long as it's available.  However, there have been times when a machine has
> changed its IP addresses as a result of using DHCP on this LAN.

http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host

Pay particular attention to the address section...  You can use
the hostname in place of the IP address, at the cost of doing a
DNS lookup when the host is checked.

Benny


-- 
"If it's true that our species is alone in the universe, then I'd
have to say that the universe aimed rather low and settled for
very little."-- George Carlin



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] SELinux problem at startup

2007-11-19 Thread Jiann-Ming Su
On Nov 19, 2007 10:02 AM, Micha Silver <[EMAIL PROTECTED]> wrote:
> Hello:
>
> I just finished installing version 2.10 from rpms from the rpmforge
> repository on  a CentOS 5 machine. (I've used nagios for some years now
> both compiled and from binaries).
>

This link helped me with CentOS 4 and SELinux issues related to Nagios:
http://article.gmane.org/gmane.network.nagios.user/33586/match=selinux

I know in CentOS 5, SELinux configs are handled differently than in
CentOS 4, but I think the ideas are the same.

>
> If I did setenforce=0 (putting selinux into "permissive" mode) then the
> init script worked.
>

When in permissive mode, run "audit2allow" to see what SELinux errors
are logged.
i.e. audit2allow -d -l
-- 
Jiann-Ming Su
"I have to decide between two equally frightening options.
 If I wanted to do that, I'd vote." --Duckman
"The system's broke, Hank.  The election baby has peed in
the bath water.  You got to throw 'em both out."  --Dale Gribble
"Those who vote decide nothing.
Those who count the votes decide everything."  --Joseph Stalin

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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_by_ssh failing on commands that work via remote ssh as the nagios user

2007-11-19 Thread mark . potter
Nagios: 2.10
Plugins: 1.4.9
OS: SLES 9.3

I am having some trouble figuring out how to make check_by_ssh work 
properly. I think I have done all of the usual troubleshooting and I have 
googled the issue to no avail:

Command as nagios user on the remote server:

/usr/local/nagios/libexec/check_load -w 7,7,7 -c 10,10,10
OK - load average: 0.01, 0.04, 0.03|load1=0.010;7.000;10.000;0; 
load5=0.040;7.000;10.000;0; load15=0.030;7.000;10.000;0;

Command as nagios user via ssh on Nagios server:

ssh ulwswas01 "/usr/local/nagios/libexec/check_load -w 7,7,7 -c 10,10,10"

OK - load average: 0.05, 0.07, 0.04|load1=0.050;7.000;10.000;0; 
load5=0.070;7.000;10.000;0; load15=0.040;7.000;10.000;0;

check_by_ssh attempt as nagios user on Nagios server:
/check_by_ssh -H ulwswas01 -C "/usr/local/nagios/libexec/check_load -w 
7,7,7 -c 10,10,10"
Remote command execution failed: 

I get nothing in the log files concerning this and it makes little sense. 
I have tried everything I need to have working, to the best of my 
knowledge, as the nagios use and it works. Thanks in advance for any help!

Best Regards,

Mark L. Potter
Systems Engineer
Academy Sports & Outdoors
1800 N. Mason Rd
Katy, Texas 77449
Office: 281-646-5857
Cell: 281-734-6965
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Monitoring hosts and DHCP

2007-11-19 Thread Matt Lozier
Hello,

 

I'm monitoring about 30 machines using Nagios with SNMP checks.  I also have
a DHCP server casting each machine on the network their IP address on
start-up.  Some machines stay on the majority of the time, others for only
4-8 hours a day.  The machines generally maintain their same IP address over
time as DHCP is designed to try and give a machine back it's same IP, so
long as it's available.  However, there have been times when a machine has
changed its IP addresses as a result of using DHCP on this LAN.

 

Question:

 

When I write the host macro for a given machine, e.g:

 

define host{
host_name  random_machine 
address192.168.1.100
check_command  check_ping
}
 
Is there a way to have nagios use a variable to read its address rather than
keep the address static?  This would allow me to have a script scan the
network, and assign IPs to a given variable which is then read by the host's
*.cfg file in the /etc/objects directory.
 
Any and all advice is appreciated.
 
Thank you,

 

 

---

Matt Lozier

Network Administrator

972.644.2581, ext. 248

972.661.2701  fax

 

  

 

The information contained in this message or any attached document is
confidential and intended only for the individual(s) or entity to which it
is addressed.   The information should be considered privileged and
confidential.  If you are not the intended recipient, you are hereby
notified that any unauthorized use of the information contained in or
transmitted with the communication, or dissemination, distribution, or
copying of this communication is strictly prohibited by law.  If you have
received this communication in error, please inform the sender by
immediately returning this communication to the sender and then deleting the
original message and any copy of it in your possession.

 

<>-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] SELinux problem at startup

2007-11-19 Thread Micha Silver
Hello:

I just finished installing version 2.10 from rpms from the rpmforge 
repository on  a CentOS 5 machine. (I've used nagios for some years now 
both compiled and from binaries).

This time I couldn't get the init.d script to successfully start because 
of some SELinux limitation. Running the string of commands from the 
command line worked fine. i.e.:


[EMAIL PROTECTED] ~]# touch /var/run/nagios.pid
[EMAIL PROTECTED] ~]# chown nagios:nagios /var/run/nagios.pid
[EMAIL PROTECTED] ~]# /usr/bin/nagios -d /etc/nagios/nagios.cfg
[EMAIL PROTECTED] ~]# /etc/init.d/nagios status
nagios (pid 25170) is running...


left me with a running nagios daemon. However:


[EMAIL PROTECTED] ~]# /etc/init.d/nagios restart

Running configuration check...done
Stopping nagios: done.
Starting nagios: done.


 always failed. In the nagios.log I saw:

[1195481305] Nagios 2.10 starting... (PID=23272)
[1195481305] LOG VERSION: 2.0
[1195481305] You do not have permission to write to /var/run/nagios.pid
[1195481305] Bailing out due to errors encountered while attempting to 
daemonize... (PID=23272)


If I did setenforce=0 (putting selinux into "permissive" mode) then the 
init script worked.


What I did to overcome this was a chcon on the nagios binary, as follows:

[EMAIL PROTECTED] ~]# chcon -t bin_t /usr/bin/nagios
[EMAIL PROTECTED] ~]# ll -Z /usr/bin/nagios
-rwxrwxr--  root root system_u:object_r:bin_t  /usr/bin/nagios

And now the init script works fine. Not sure this is the best way to 
overcome the problem. If anyone more versed in selinux can help, I'd 
like to hear...


Cheers,

Micha



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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