Re: [Nagios-users] Alternate Email address.

2007-04-27 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Lacayo, Luis F
 Sent: Friday, April 27, 2007 8:57 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Alternate Email address.
 
 HI All,
 
 I was wondering if itwould be possible to have nagios send a message
to
 TWO (2) different email addresses for the same contact.  I remember
 reading about email2 to email6 but I can's seem to find how this is
 accomplished.   Any help is greatly appriciated.

If you're using /bin/mail(x) as your notification command you can just
specify a comma separated list of e-mail addresses since it accepts that
format.

define contact{
contact_namesomename
alias   Multi-Contact
service_notification_period 24x7
host_notification_period24x7
service_notification_optionsc,r
host_notification_options   d,r
service_notification_commands   service-notify-by-email
host_notification_commands  host-notify-by-email
email
[EMAIL PROTECTED],[EMAIL PROTECTED],...
}

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Weird State Issue

2007-04-27 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Anthony Mendoza
 Sent: Friday, April 27, 2007 11:50 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Weird State Issue
 
 My nagios install has just gone into a weird state.  I lost some files
 from my /var/log/nagios directory due to running out of disk space...
 In any case, now my service checks or status is in some weird state.

Sounds like you have multiple nagios processes running.

--
Marc 

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Monitor host

2007-04-30 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of sujith h
 Sent: Monday, April 30, 2007 3:46 AM
 To: Nagios Users mailinglist
 Subject: Re: [Nagios-users] Monitor host
 
 
 
   Hi Hugo,
 
 
   This is a known design issue in Nagios 1.x and 2.x
   It is somewhat better with 3.x but the fast suggestion is you
always
   define a service for a host.
 
 
 Hey thanks for your reply. Well I am using 2.0 nagios.
 So in this version I cannnot monitor a client host alone??

Nagios is a service monitoring program. Every host must have at least
one service defined. If the device you're monitoring offers no other
interesting services than ICMP then you must define a check_ping service
for it if you wish it to be monitored regularly.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Browser showing old check results

2007-04-30 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Gary Every
 Sent: Monday, April 30, 2007 4:08 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Browser showing old check results
 
 
 I'm using SNMP to execute scripts remotely, and passing the results
back
 to nagios. The scripts work great, as does the snmp portion, but when
I
 watch the browser, it occasionally does a flip-flop on which result it
 displays. For example, if I see a check executed at 13:31 PM and wait
for
 the auto-refresh, sometimes it show the results from 13:16 instead -
Not
 good, especially if I need to keep up-to-date info on my screen.
 
 Anybody else experience something like this?

It's in the FAQ. Multiple nagios processes running.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] New install of Nagios 3.0a3

2007-05-01 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Rusty Hall
 Sent: Tuesday, May 01, 2007 9:53 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] New install of Nagios 3.0a3
 
 I installed the latest version of nagios Nagios 3.0a3, with only a
 server build issue.  Once that was fixed and I was able to log into
 nagios, everything  work except the statusmap.  I noticed in the
 /usr/local/nagios/sbin/ directory there is not a statusmap.cgi file.
Just
 curious if anyone else has run into this issue, and if so how do I fix
it?

Yes, it's a FAQ, in the FAQ.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Passive monitoring is running slow?

2007-05-02 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Jonathan Call
 Sent: Wednesday, May 02, 2007 10:07 AM
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Passive monitoring is running slow?
 
 
 
  -Original Message-
  From: Thomas Guyot-Sionnest [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, May 01, 2007 4:29 PM
  To: Jonathan Call
  Cc: nagios-users@lists.sourceforge.net
  Subject: Re: [Nagios-users] Passive monitoring is running slow?
 
  On 01/05/07 05:15 PM, Jonathan Call wrote:
   I have set up a distributed monitoring system per the Nagios
  documentation.
  
   I initially tested it out by having the distributed server monitor
 only
  24 or so services on about 8 hosts. There didn't seem to be any
 problems.
  
   I then cranked it up to 427 services on 81 hosts. I'm watching the
  distributed server right now and there is hardly any system load but
 the
  Service Check Latency seems extremely high:
  
   MetricMin.Max.Average
   Check Execution Time: 0.05 sec1.67 sec0.701
 sec
   Check Latency:60.40 sec   287.36 sec  184.514
 sec
   Percent State Change: 0.00%   0.00%   0.00%
  
   This is resulting in 50% or less of the service checks completing
in
 the
  5 minutes or less timeframe.
  


 So this is a know design failure in Nagios then? I'm fairly new to

Absolutely not.

 Nagios and I am completely dumbfounded at this. If you can't service
 even a quarter (and probably even a tenth) of the amount of hosts and
 services on a distributed server than you can on a regular active
server
 then what is the point of having a distributed model at all?

I have 5 data collector machines running nagios 
-and- cricket for thousands of services each with nagios reporting all
results back to two central hosts as documented. Average latency is
0.689 seconds and Max of 3.65 seconds right now. The distributed server
should be performing exactly like a regular active server as far as
latency stats are concerned. You're either starving nagios for resources
needed to run its active checks (run ~nagios/bin/nagios -s
~nagios/etc/nagios.cfg to see recommended settings) or, less likely,
something is wrong with your submit-check-result. If you submit a result
from the command line, does it complete in a timely manner? If you
disable OCSP does the latency go away? Basic troubleshooting dictates
you should try methodically enabling features on your distributed
machine to turn it from an active-only server to active submitting check
results via OCSP.

Disable OCSP program-wide (nagios.cfg)
Test
Enable OCSP but have your OCSP script do everything except call
send_nsca
Test
Enable send_nsca in your OCSP script.
Test
...


Do you have regular host checks enabled? Post the output of nagios -v
and nagios -s.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Config Issues

2007-05-03 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of James Emerson
 Sent: Thursday, May 03, 2007 9:29 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Config Issues
 
 I am running nagios 2.9 with centos 5.0
 
 I am having some troubles with getting things configured properly. I
have
 normal_check_interval set to 300 in my services.cfg file. However some
of
 the hosts still have not done their pings at all today even though I
have
 them all configured the same way.

This is like asking a mechanic why your car won't start even though it
looks like all the other cars on the road and without telling him
anything more about your car. If you don't give details about the
symptoms, specific configurations for an affected host/service and what
you've done to troubleshoot, we can't really help other than to tell you
to re-check your work. Hosts are never checked unless a service on the
host fails. Do you have services configured for those hosts? Have those
services failed?

 
 Also I was wondering if anyone could point me to the way to setup snmp
 traps?

Yes, it's in the Nagios Documentation conveniently titled 'SNMP Traps'.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Config Issues

2007-05-03 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Valdinger, Stephen (DOV,
MSX)
 Sent: Thursday, May 03, 2007 9:42 AM
 To: Hari Sekhon
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Config Issues
 


 
 Would you rather him use a windows solution? haha

Generally speaking, if that is better suited to the task or the
operator, then yes. We really don't care if you use OSS software or not.
It's not for everyone. ;)

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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_local_disk plugin

2007-05-03 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of grace Ingabire
 Sent: Thursday, May 03, 2007 10:00 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Check_local_disk plugin
 
 I'm using Nagios 2.0 FreeBSD 6.0 plugin version 1.4
 
 I want to monitor some servers using the plugin check_local_disk. The
 configuration have been made properly as you can see it: check_command
 :check_local_disk!20%!10%!/
 
 But when I go on my web interface I just see a critical status on all
 devices that I have added.

Status Info is...? Service configuration is...?

 My question do we use check_local_disk or check_disk plugin on other
 devices ,.

Yes, but you'll need to run the plugin on the remote machine. Just
guessing, it sounds like you have nagios configured to run it on your
nagios machine only, multiple times. That can be accomplished by
installing the plugin on the machine you want to check and using NRPE or
check-by-ssh from your nagios machine to execute it.

An alternative is to use an SNMP check if you have an SNMP daemon
configured/running on the remote hosts.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Config Issues

2007-05-03 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of James Emerson
 Sent: Thursday, May 03, 2007 10:50 AM
 To: [EMAIL PROTECTED]
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Config Issues {Disarmed} {Fraud?}
 
 Here is the information that you requested, again I thank you so much
for
 your help.
 
 Services:
 define service{
 use generic-service
 name basic-service
 is_volatile 0
 check_period 24x7
 max_check_attempts 15
 normal_check_interval 60
 retry_check_interval 2
 notification_interval 0
 notification_period none
 register 0
 }
 
 define service{
 use basic-service
 name ping-service
 notification_options n
 check_command check_ping!1000.0,20%!2000.0,60%
 register 0
 }
 
 define service{
 use ping-service
 service_description PING
 contact_groups networking
 hostgroup_name Grossley Hall
 }

Is this level of nesting really necessary? I'm sure it works but it does
make your config un-necessarily difficult to follow/troubleshoot.

 Hosts:
 define host{
 host_name 172.16.1.3
 address 172.16.1.3
 check_command check-host-alive
 max_check_attempts 5
 check_period 24x7
 process_perf_data 0
 retain_nonstatus_information 0
 contact_groups networking
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }

The ping-service is only applied to hosts in the Grossley 
Hall hostgroup. Are these hosts in that hostgroup? Since you don't
specify it in the host definition you must have a hostgroup{} definition
for Grossley Hall that includes them. Alternately, these hosts could be
added to a new hostgroup that is included in the ping-service above.
Alternately, you could have a specific service{} definition for these
specific hosts that uses the ping-service. 

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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_local_disk plugin

2007-05-03 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of grace Ingabire
 Sent: Thursday, May 03, 2007 10:51 AM
 To: Marc Powell; nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Check_local_disk plugin
 


 As per other plugin like: check_ping, or check_dns
 
 I did not configure the plugin on the remote machine to execute it.

That's because those plugins check things that are externally exposed to
the Internet (or your network) for remote hosts by default or by
necessity. Systems don't (usually) make their disk info available to
external hosts for obvious reasons. It's a key distinction that should
help you understand how to monitor remote hosts.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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+gnokii

2007-05-08 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of jjcooljay
 Sent: Tuesday, May 08, 2007 4:44 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] nagios+gnokii
 
 
 Hi guys, im new to nagios, I have already installed nagios and
gnokii...I
 dont
 have enought information on how to enable gnokii on nagios...pls help
me
 on its
 command.cfg and contacts.cfg

I've done some searching for you. These archive posts look relevant,
particularly the first one --

http://search.gmane.org/?query=gnokiigroup=gmane.network.nagios.user

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] managing users via cgi.cfg

2007-05-08 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of G Bit
 Sent: Monday, May 07, 2007 5:44 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] managing users via cgi.cfg
 
 Hi,
 
 Can I include other files in cgi.cfg. I have multiple instances (not

No, you can't.

 hostgroups) of nagios running
 on same mnode. I would like to apply the same kind of user access
settings
 on all the instances.
 Right now I modify the cgi.cfg in each instance. It would be nice if I
 could include another file
 and have all user config in that file. Is it possible in 2.x.

Would be nice but not possible. This can easily be accomplished with a
short external script. Create a head file that contains options that are
different for each. Create a tail file with the authorization
information that you edit frequently. Concatenate them together when you
make a change. In pseudo-code - 

for each nagios instance
cat /path/to/instance/etc/cgi.head
/path/to/common/etc/authorization.tail  /path/to/instance/etc/cgi.cfg
done

--
Marc



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 service check

2007-05-08 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Danilo Perdomo
 Sent: Tuesday, May 08, 2007 10:59 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Problems with service check
 


 should be 20 minutes of backup, but i want the Nagios to send me a
 warning when the value decreases
 to 15 minutes, and a critical when it goes down to 10. I understand
that
 the check_snmp command
 only checks increasing values when you set the threshold. How can i do
 to check decreasing values??

check_snmp checks ranges. It has no concept of increasing or decreasing
since it has no idea what the previous value was.

From check_snmp --help --

- Ranges are inclusive and are indicated with colons. When specified as
  'min:max' a STATE_OK will be returned if the result is within the
indicated range or is equal to the upper or lower bound. A non-OK state
will be returned if the result is outside the specified range.
- If specified in the order 'max:min' a non-OK state will be returned if
the
  result is within the (inclusive) range.

Sooo.. you can see that your warning will be a range from 15 to 11 and
critical will be a range from 10 to 0.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] insure check interval

2007-05-08 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Jeff Chapin
 Sent: Tuesday, May 08, 2007 1:57 PM
 To: nagios-users@lists.sourceforge.net; [EMAIL PROTECTED]
 Subject: [Nagios-users] insure check interval
 
 Hi list
 
 Hello, I have a fairly small nagios setup (107 hosts, 134 services).
On
 one of my hosts, I have 12 services that need to be monitored as often
as
 possible. Ideally, the services would each be checked once a minute.
To do
 this, I have set the check_interval to 1 as well as the
 retry_check_interval to 1. Under normal circumstances this does a
check
 approximatly once a minute, give or take. However, every 24 hours a
slew
 of once every  24 hours checks start, and pushes the checks to more
than
 20-30 minute intervals. I would love to set the priority on the
once-per-
 minute check, and let the once-per-day checks fill in as needed,
rather
 than hammer out all at once.
 
 Any advice as to how to achieve this?

You can't prioritize one check over another as nagios automagically
figures out when they should run. I would expect though that if you have
an appropriate number set for max_concurrent_checks that nagios will run
both sets when expected in a timely manner. Do you have that value set
at a high enough level to cover both your 1 minute checks and your 24
hour checks?

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Limit Service Check

2007-05-09 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of adi yesaya
 Sent: Wednesday, May 09, 2007 5:58 AM
 To: Nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Limit Service Check
 
 Hi all,
 
 I have 15 hosts and around 100 services running on each host. Is it
 possible to limit the service check of Nagios that it will only run 2
 service checks on one host in one point of time? If it is possible,
how is
 it done?

You don't really have that level of control over scheduling. You can
approximate it with service_interleave_factor but you aren't really
guaranteed a max number of concurrent checks per host...

http://nagios.sourceforge.net/docs/2_0/configmain.html#service_interleav
e_factor


 Another question is:
 If, for example, 1 service check fails, it will try out 4 times again
 before it announce the service as warning. In this 4 time retry
period,
 will Nagios finish this retry check first then run the next scheduled
 service check or will nagios run the retry check and the next service
 check in parallel?

If you're talking about checks of the same service, nagios will not
return to normal check intervals for that service until
max_check_attempts is reached or the service returns an OK state. During
this time nagios will continue to process other service checks at their
normal_check_interval in parallel.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Limit Service Check

2007-05-09 Thread Marc Powell
Please always respond on-list and not to me directly.

 -Original Message-
 From: adi yesaya [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 09, 2007 10:44 AM
 To: Marc Powell
 Subject: Re: [Nagios-users] Limit Service Check
 
 Hello Marc,
 
 Thanks for your answer.
 It's quite hard for me, since my project requires me to only have a
 maximum 2 connections (service check) to a host. Do you have other
 suggestions than setting the max_concurrent_checks to 2?

I never suggested changing max_concurrent_check but rather
service_interleave_factor. They're definitely different beasts. As for
other suggestions...

- Create one or more plugins that then run multiple plugins sequentially
and aggregate the results following the plugin guidelines
(http://nagiosplug.sf.net) for reporting back to nagios. These new
plugins would be the service checks you tell nagios to run.
- or, disable parallelization entirely and force nagios to run all
checks sequentially. This is definitely not desirable as it really
limits your scalability and the frequency that you can run checks.
 
 Another question is:
 Is it possible in Nagios to specify on a per-host basis, whether or
not a
 service check can be parallelized?

No, but... http://nagios.sourceforge.net/docs/2_0/parallelization.html
says ...

If all else fails you can effectively prevent service checks from being
parallelized by setting the max_concurrent_checks option to 1. This will
allow only one service to be checked at a time, so it isn't a
spectacular solution. If there is enough demand, I will add an option to
the service definitions which will allow you to specify on a per-service
basis whether or not a service check can be parallelized. If there isn't
enough demand, I won't...

You might want to chime in on nagios-devel to express support for such a
feature.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Failed to Send Notification

2007-05-11 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of adi yesaya
 Sent: Friday, May 11, 2007 6:02 AM
 To: Nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Failed to Send Notification
 
 Dear Nagios-ers,
 
 I tried to send email notifications, some succeed, some not. The ones
 which failed, had this error message:
 
- Transcript of session follows
---
 -
 
 ... while talking to fallback.nl.uu.net.:
 
  550-Verification failed for [EMAIL PROTECTED]
 
  550-Domain localhost.localdomain not found in DNS

chop

Fallback.nl.uu.net is rejecting the e-mail because the MTA on your
nagios box, not nagios itself, is claiming to be called
localhost.localdomain, which is an unverifiable name. It's very
reasonable that they would do that. You need to configure the MTA on
your nagios box to use a real hostname that can be found in the DNS.
This may be as simple as adding the hostname to your DNS and editing
your /etc/hosts file on your nagios box, changing the 127.0.0.1 entry to
something like --

127.0.0.1 yourhost.yourdomain.foo localhost.localdomain

You'd need to restart your MTA if it's running as a daemon after making
that change. If that doesn't work, you'll need to specifically configure
the MTA that you're using to masquerade as that host or domain. You can
do this for Sendmail by setting the MASQUERADE_AS macro. Under Postfix I
believe it's the myorigin variable.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 plugin and a proxy?

2007-05-11 Thread Marc Powell


 -Original Message-
 From: Bill Jacqmein [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 23, 2007 7:55 AM
 To: Marc Powell
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] check_http plugin and a proxy?
 
 The only problem Ive found with this is the https component. It doesnt
 appear to speak connect when talking to the proxy.

That's correct. Fortunately for the OP, he wasn't asking for that
capability.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Strange Return code Error

2007-05-11 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of De Wetenschapper
 Sent: Friday, May 11, 2007 10:19 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Strange Return code Error
 
 mailto:nagios-users@lists.sourceforge.net Hi Guys,
 
 I just installed  configured nagios on a RHEL4 U4 64bit
2.6.9-34.ELsmp
 [EMAIL PROTECTED] dist]# rpm -qa | grep nagios
 nagios-2.9-1.el4.rf
 nagios-plugins-1.4.8-2.el4.rf
 nagios-plugins-nrpe-2.5.2-1.el4.rf
 nagios-nrpe-2.5.2-1.el4.rf
 
 And I get a Return code of 127 for check of service 'n-users' on host
 'fisdb01' was out of bounds Message on all services on all hosts.
 I saw on http://www.nagios.org/faqs/viewfaq.php?faq_id=17 that this
was
 most likely a problem with the path to the executable.
 but if that was so I wouldn't be able to do this:
 [EMAIL PROTECTED] services]# /usr/lib64/nagios/plugins/check_nrpe -H
localhost
 -c check_users
 USERS OK - 3 users currently logged in |users=3;5;10;0
 which proves it executes and in the right place. Right?

Not at all. It just means that root can run a program successfully when
called directly. The question you should be asking is does the command{}
definition for this plugin use that full path? The default configs
typically use the $USER1$ macro for the path which must be properly set
in resource.cfg. Is $USER1$ pointing to the correct path? Is
resource.cfg being loaded by nagios?

Also, as pointed out previously, the plugins are never run as the root
user, always the nagios user. While it's not likely in this case, the
nagios user certainly isn't guaranteed the same access privileges as the
root user. You should always perform plugin tests as the nagios user.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] HTTP WARNING: HTTP/1.1 401 Authorization Required

2007-05-14 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Richard Solid
 Sent: Monday, May 14, 2007 11:43 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] HTTP WARNING: HTTP/1.1 401 Authorization
Required
 
 How can I avoid getting this message?
 
 HTTP WARNING: HTTP/1.1 401 Authorization Required
 
 The page i'm monitoring has a username and password but I have no need
to
 login while monitoring. How can I avoid this?

If this is something you're seeing when checking a site using the
check_http plugin, you need to configure the web server on that machine
not to require AUTH when the request comes from the nagios machine. How
this is done is different for each web server.

Alternately, you could pass the auth info as part of the request by
check_http. See 'check_http --help'.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] plugins check_by_ssh not work {Disarmed}{Fraud?}

2007-05-15 Thread Marc Powell
Please always respond on list.

 -Original Message-
 From: Maged Shaker [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 15, 2007 9:54 AM
 To: Marc Powell
 Subject: Re: [Nagios-users] plugins check_by_ssh not work
 {Disarmed}{Fraud?}
 
 On Tue, 2007-05-15 at 08:39 -0500, Marc Powell wrote:
 
   -Original Message-
   From: [EMAIL PROTECTED]
[mailto:nagios-users-
   [EMAIL PROTECTED] On Behalf Of Maged Mahmoud
   Sent: Tuesday, May 15, 2007 8:16 AM
   To: nagios-users@lists.sourceforge.net
   Subject: [Nagios-users] plugins check_by_ssh not work {Disarmed}
  {Fraud?}
  
 
 
   check_by_ssh http://192.168.0.150/nagios/cgi-
  
 
bin/extinfo.cgi?type=2host=oes-server.valuesys.lanservice=check_by_ssh
  
  
   UNKNOWN 05-15-2007 18:40:37  0d 3h 33m 45s 3/3 Remote command
  execution
   failed: Host key verification failed.
 
  Did you remember to ssh once manually to that host as the user
executing
  the plugin (usually nagios) to accept/save the remote host key?


 i was run the command manually successfully and the nagios user
 accept/save the remote host key first time and after that login
without
 any confirmation

Does this mean that your problem is resolved?

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Able to show perf.data in Nagiosgrapher without SNMP?

2007-05-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Palle Jensen
 Sent: Monday, May 21, 2007 3:04 PM
 To: Nagios Users
 Subject: [Nagios-users] Able to show perf.data in Nagiosgrapher
without
 SNMP?
 
 Hi,
 
 I have enabled performance data in Nagios, and it is saved to host-
 perfdata.out and service-perfdata.out. I want to show this in some
nice
 graphs. After some research I found Nagiosgrapher could be the right
tool,
 and another user told me I could use Nagiosgrapher without SNMP. In
order
 to install NagiosGrapher I need to install RRD tools, and someone told
me
 that RRD only uses SNMP.

RRDTool does not require SNMP or any other particular collection method;
it's just usually the most convenient way to retrieve data. The
collection of the data happens completely outside of RRDTool. All
RRDTool really cares about is that you feed it numbers. It doesn't care
where or how you retrieved those numbers.

 Can I use NagiosGrapher even though we cannot use SNMP to monitor?

I don't use NagiosGrapher but it sounds like you're able to retrieve the
numbers it would need to feed to RRDTool so it sounds like you're OK to
proceed.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 Freshness Checking

2007-05-22 Thread Marc Powell
http://www.nagios.org/developerinfo/externalcommands/commandlist.php
lists all available commands that Nagios recognizes. The only freshness
related commands are Global and not per host or service.

--
Marc 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Jeff Shumard - DefenseWeb
 Technologies
 Sent: Tuesday, May 22, 2007 10:17 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Question about Freshness Checking
 
 I didn't here anything back on my issue or question.  If anyone has
 information on this I would appreciate it.
 
 Thank you
 
 -Original Message-
 From: [EMAIL PROTECTED]
 I am running a Distributed Nagios configuration.  On each of my
passive
 service checks I am also doing freshness checks just encase the
 distributed host goes down and can't run the check.  I am able to log
 into the distributed hosts Web Interface and shut off active checks if
I
 don't want to run checks for a temporary amount of time on a specific
 hosts and it is service with one click to disable active checks for
all
 services.  This works with out any problems but once my freshness
checks
 is hit the Centralized Nagios hosts starts doing the active checks
 because it doesn't receive an update from the Distributed Hosts.  I am
 aware this is what should be happening and it is working great.  Is
 there a way to disable the freshness check for all the services for a
 host just like you can for active checks?  I know if I shut off
 receiving passive checks for one service this disables the freshness
 checks.  Has someone configured a patch or know how to activate this
 feature to disable passive checks for all services on a host through
the
 Nagios cgi.

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 event handler not called on OK event

2007-05-23 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Thomas Hager
 Sent: Wednesday, May 23, 2007 8:29 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] service event handler not called on OK event
 
 hi,
 
 i'm testing event handlers on my nagios box (running 2.9) and ran into
 the following problem today:
 

 well, that's where i'm stuck. all CRITICAL events are logged and
 executed, but the OK event is just logged, not executed.
 
 any hints?

Based on what you've shown, it should be working. I can 100% confirm
that it does work with nagios-2.7. The following is from my own log,
similar to your muh.log --

Wed May 23 01:59:43 CDT 2007 .  winbind service check (CRITICAL) (SOFT)
(1) (redacted)... 
Wed May 23 02:04:52 CDT 2007 .  winbind service check (CRITICAL) (SOFT)
(1) (redacted)... 
Wed May 23 02:06:51 CDT 2007 .  winbind service check (CRITICAL) (SOFT)
(2) (redacted)... 
Wed May 23 02:06:51 CDT 2007 .  Restarting winbind service (2nd soft
critical state) on redacted... 
Shutting down Winbind services: [FAILED]
Starting Winbind services: [  OK  ]
Wed May 23 02:08:51 CDT 2007 .  winbind service check (OK) (SOFT) (3)
(redacted)...

Perhaps someone else can confirm that it's really borked in 2.9 or maybe
you could try downgrading to 2.7 to see if it works.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Missing libraries with nagios 2.8 download

2007-05-24 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Rajagopal, Sam
 Sent: Wednesday, May 23, 2007 10:31 PM
 To: nagios-users@lists.sourceforge.net
 Cc: Choi, Eric
 Subject: [Nagios-users] Missing libraries with nagios 2.8 download
 
 I download nagios2.8 related src rpms and built it. I don't see the
lib
 directory at the end of build and nor in the downloadable files. Where
is
 the src available to build the libraries. ? The following is a list of
 libs in 2.0.x that we currently use.
 

 libpp_storage_gnuplot.a
  libpp_storage_mysql.a
  libpp_storage_stdout.a
  libpp_mysql.a
  libpp_storage_file_output.a
  libpp_storage_print.a
  libpp_storage_socket_output.a
  libnagios_perfdata_parser.a
  libpp_common.a

I not sure where these came from but they're not standard nagios files.
You won't find them in a standard source distribution. It looks like
they might have come from the third-party nagios-perfparse addon. Did
you install that for your 2.0.x installation?

 I also could not get libexec/ either. Appreciate any
suggestions/pointers.

Install nagios-plugins.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Increasing Nagios performance on multiprocessorserver

2007-05-24 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of magic_rooter
 Sent: Thursday, May 24, 2007 3:11 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Increasing Nagios performance on
 multiprocessorserver
 
 Hello everybody!
 I have Nagios installed on 8 processor server with 8 Gb operational
memory
 and 2000 services to check. But server is not loaded even on 2%. I
 want better performance and faster check on such powerful server
 because it does not works in its full power. Often it stands and waits
 for something and there are only 5-10 processes.

Are you experiencing check latency/problems or is this just an exercise?
What are the specifics of where you are now and where you want to be
with regard to performance (x number of y type of checks at z interval;
current latency and execution time information, etc)? What symptoms are
you seeing if you're experiencing problems?  

I'd start with #1, #3, #7 ,#8, #9 and #10 of the Performance Tuning
documentation. Have you done those?

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Increasing Nagios performance

2007-05-25 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Jim Avery
 Sent: Friday, May 25, 2007 6:26 AM
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Increasing Nagios performance
 


  But latency is still not very good:((
 
  Metric  Min.Max.Average
  Check Execution Time:   0.06 sec45.09 sec   3.655 sec
  Check Latency:  40.09 sec   120.19 sec  113.258 sec
  Percent State Change:   0.00%   42.89%  0.95%
 
 Is that host check latency or service check latency?
 
 An average execution time for a plugin of 3.6 seconds is awful!  See
 if you can find which plugin is taking so long and fix whatever that
 problem is.

That's not awful at all and can actually be quite normal. If all of your
checks are 10 pings for example, that would mean a 10 seconds average
execution time for example. That's acceptable and expected.

Latency is more concerning since it means that nagios isn't being
allowed to run checks when it's supposed to. This is most often caused
by a low max_concurrent_checks, regularly scheduled host checks or host
checks happening a lot in general.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Force Hard State with Passive Checks

2007-05-25 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Sapon, Dimitry
 Sent: Friday, May 25, 2007 9:31 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Force Hard State with Passive Checks
 
 Hi there,
 


 
 With passive checks though, I would like to force Nagios into a HARD
state
 right away (so notifications are sent out immediately). I can't figure
out
 how to either by-pass the max_check_attempts, increment it to the max
so
 it switches states right away or force into into a hard state right
away.
 I looked into writing a script but I can't find any way to pass that
info
 back into Nagios either.

There's no way to bypass or modify max_check_attempts on the fly,
whatever you set it to is the requirement. I would approach it by
submitting multiple, sequential passive results sufficient to put it
over max_check_attempts. If you're writing a script to do it, you should
look at the Developer documentation on external commands.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] FW: Too many notifications

2007-05-25 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of DeBattista, Joe
 Sent: Friday, May 25, 2007 3:21 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] FW: Too many notifications
 
 
 
 Greetings,
 
 I'm new to nagios, so I'm still learning the in's and out's of the
 program.  One thing I'm trying to figure out is how to not get so many
 notifications.  When the host goes down, I receive a notice about
that,
 plus that all its services are now unavailable, and then the same
amount
 of notifications when the host is again available.  What I would like
is
 to get a single notification about the host outage and then one for
when
 the host is in service.  Is there an easy way to set this up?

Nagios does this automagically if you have a working host check_command.
See the first section of
http://nagios.sourceforge.net/docs/2_0/networkreachability.html.
Receiving a host down notification and notifications about services on
that host would be very unusual. Can you post a sample host and service
definition that exhibits this behavior? Can you verify that you don't
have multiple nagios daemons running?

--
Marc


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Best Place to Keep Our Plug-ins

2007-05-30 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of adi yesaya
 Sent: Wednesday, May 30, 2007 2:15 PM
 To: Nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Best Place to Keep Our Plug-ins
 
 Hi Nagiosers,
 
 Im curious about this thing:
 Where is the best place to keep our home-made plug-ins ?

In your libexec folder?

--
Marc

p.s. I keep my socks there too. It makes them easy to find and I can
monitor for runaways.
 

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 shown down but not down on Nagios

2007-06-05 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Nedim Bicic
 Sent: Tuesday, June 05, 2007 9:11 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Host shown down but not down on Nagios
 
 Hey everyone i have nagios 2.4 and i am monitoring about 500 services
i
 have a problem with one of my hosts is shown in critical can not ping
 state but it can ping everything else fine its not disconnected i ca
even
 ping the device from my laptop its up but shown in red as down??

Verify that the host check returns the proper state when run as the
nagios user from the command line. Verify that you can ping the host
from the nagios command line. If you need help, provide the status
information, host definition and referenced command definition.
 
 also my harddrive is filling up really quickly and i mean really
quickly
 it writes like 5GB per 1hour to sql database how can i stop this?

Fix or disable whatever is filling up your sql database. A standard
Nagios install doesn't use sql and we can't/won't guess at what might be
filling it up. You know your server better than anyone on this list (or
should). 

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] NRPE weird behavior

2007-06-05 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of MAB-L
 Sent: Tuesday, June 05, 2007 10:07 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] NRPE weird behavior
 
 All the others checks are working fine.
 
 ideas?
 
 [EMAIL PROTECTED] ~]# /usr/local/libexec/nagios/check_disk -w 10% -c 5% -p
 /var/mysql/database
 DISK WARNING - free space: /var/mysql/database 4918 MB (7%
 inode=99%);| /var/mysql/database=65049MB;62970;66468;0;69967

Of course, nagios _isn't_ executing this plugin as root so neither
should you.

 [EMAIL PROTECTED] ~]# /usr/local/libexec/nagios/check_nrpe -n -H 127.0.0.1 -c
 check_disk_mysqldb
 DISK CRITICAL - /var/mysql/database does not exist

Smells like a permissions issue. Does the user '_nrpe' have read
permissions for that mount point? Do you see success if you run your
first test as _nrpe?

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 Scalability Issues

2007-06-05 Thread Marc Powell
Another not-so-random suggestion would be to try disabling notifications
on a program-wide basis and see if there is a change. I assume that
you've already set command_check_interval to -1.

--
Marc

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Harper Mann
 Sent: Tuesday, June 05, 2007 12:22 PM
 To: Andrew Tjang
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Nagios Scalability Issues
 
 Are you running active host checks?
 You might try turning off host checks altogether as an experiment to
see
 if scaling improves.
 1000 hosts and 11,000 services is large.
 Regards,
 - Harper
 


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 Scalability Issues

2007-06-05 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Andrew Tjang
 Sent: Tuesday, June 05, 2007 2:29 PM
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Nagios Scalability Issues
 
 Thank you for your responses! My answers appear below.


  Another not-so-random suggestion would be to try disabling
 notifications on a program-wide basis and see if there is a  change.
I
 assume that you've already set command_check_interval to -1.
 
  --
  Marc
 
 I have already set the command_check_interval to -1
 What does disabling notifications do? I still need to be able to see
 state changes on the gui.

It disables e-mail notififications. For every check result that changes
state, nagios needs to determine if someone should be notified. There's
quite a bit of processing related to that and I suspect that it happens
in a sequential as opposed to parallel fashion. I know that when I have
an outage situation I see the kind of results you do, with check result
processing held up a lot until I disable the notification logic. Once
that's done, the thousands of pending results are almost immediately
processed.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 Notifications - Incomplete Output on HostNotification

2007-06-05 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Stover, Beth
 Sent: Tuesday, June 05, 2007 2:38 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] SMS Notifications - Incomplete Output on
 HostNotification
 
 Hi,
 
 I've fully migrated to Nagios 2.8.  My only problem seems to be that
host
 notifications to my cell using sms_client have incomplete output.
Service
 notifications using sms_client to my cell work just fine.  I'm
guessing
 this is just some kind of formatting problem on my command definition.
 
 Here are my notification command definitions:


 
 # 'notify-by-sms' command definition
 define command{
 command_namenotify-by-sms
 command_line/usr/local/bin/sms_client -q $CONTACTPAGER$
 '$NOTIFICATIONTYPE$: $HOSTNAME$: $SERVICEDESC$ is $SERVICESTATE$
 ($SERVICEOUTPUT$)'
 
 }
 
 #'host-notify-by-sms' command definition
 define command{
command_namehost-notify-by-sms
 command_line/usr/local/bin/sms_client -q $CONTACTPAGER$
 '$NOTIFICATIONTYPE$: $HOSTNAME$: $SERVICEDESC$ is $SERVICESTATE$
 ($HOSTOUTPUT$)'
 
 }

Not really related but $SERVICEDESC$ and $SERVICESTATE$ will always be
null for a host notification. You should remove them.

 Email notifications work fine.  Service notifications via SMS work
fine.
 Only the hsot notifications via SMS do no t work correctly.
 
 Here's the output I do receive from the host notification via SMS:
 
 Recovery:
 Server1: is ()
 
 These command definitions worked fine on my Nagios v 1.3 system.

Not likely since $HOSTOUTPUT$ wasn't valid then ;) In any event, I think
they worked fine under 1.3 and you're seeing your current results
because host-notify-by-sms is never actually used. Do you really have
contact definitions that use host-notify-by-sms? It would seem more
likely that they all use notify-by-sms for both
service_notification_commands and host_notification_commands.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] limit view of specific nodes to specific users

2007-06-06 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Stephen Clark
 Sent: Wednesday, June 06, 2007 7:05 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] limit view of specific nodes to specific users
 
 Hello List,
 
 Can anyone tell me if Nagios has the ability to
 limit the view of a
 specific node or group
 of nodes to specific users?

Yes, configure authorization for the CGI's.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Active Checks Issue - Still run even whendisabled

2007-06-06 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Sapon, Dimitry
 Sent: Wednesday, June 06, 2007 11:50 AM
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Active Checks Issue - Still run even
 whendisabled
 


 It seems like if you globally enable active services checks for a host
 through the Enable notifications on all services for this host
option on
 the host's page, it stores the value somewhere and it always overrides
the
 template definitions. There is no reset to default option on the page,
 only enable/disable which either turn on/off globally.
 
 Anyways, hope this helps future people who run into this.
 
 If anyone could point me to the webpage to log this bug, I'll do so
also.

Documented and configured behavior isn't a bug --

http://nagios.sourceforge.net/docs/2_0/xodtemplate.html, specifically
'Retention Notes'.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Active Checks Issue - Still run even whendisabled

2007-06-06 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Sapon, Dimitry
 Sent: Wednesday, June 06, 2007 12:44 PM
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Active Checks Issue - Still run even
 whendisabled
 
 Marc,
 
 Gotcha, thanks. I missed that part of the documentation when looking
for
 this. One question then is, once you enter into this state where
 notstatus information is retained, how do you get out of it? Do you
have
 to disable/enable the retain_nonstatus_information directive and
restart
 Nagios?

You could change the parameter via the GUI as you've been doing or stop
nagios and remove the retention file if you want to just start retention
from scratch globally.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Problem with nagios mailinglist mailman

2007-06-07 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of chiel
 Sent: Thursday, June 07, 2007 3:27 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Problem with nagios mailinglist mailman
 
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 
 The above url doesn't work anymore (reports some bug). Its for
 (un)subscribing..

Until it's fixed, if you're still interested in unsubscribing, the
instructions are in the headers of every list message. You can
unsubscribe by going to the sourcefourge link or sending an e-mail.

List-Unsubscribe:
https://lists.sourceforge.net/lists/listinfo/nagios-users,
mailto:[EMAIL PROTECTED]

--
marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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/Ping check and Nagios performance.

2007-06-07 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Jonathan Call
 Sent: Thursday, June 07, 2007 10:08 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Host/Ping check and Nagios performance.
 
 Is there any reason why Nagios stops running all service checks while
it
 executes check-host-alive/ping on hosts? Can I change that? I cannot
 find a setting to do it.

You cannot change it with Nagios 2 and its necessary behavior if you
perform host checks. The only alternative is to not perform host checks
at all but the you lose network outage detection, suppression of
multiple notifications of service on down hosts and some other things
that may or may not matter to you. The links below provide some
understanding and suggestions. We do not use host checks here at all.

 
 With the large number of service checks I'm running (1300+) whenever a
 host goes down (or in some cases just stops answering ICMP) it kills
 performance on the Nagios server.
 

The Host Checks section of
http://nagios.sourceforge.net/docs/2_0/checkscheduling.html and 7, 8 and
9 of http://nagios.sourceforge.net/docs/2_0/tuning.html

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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_mrtg

2007-06-07 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Israel Brewster
 Sent: Thursday, June 07, 2007 10:53 AM
 To: Rex Wickham (2020Media.com)
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] check_mrtg
 
 To the best of my knowledge, all such plugins are designed to alert
 only when traffic exceeds a certain threshold, not when it drops

I haven't followed this thread too closely but it sounds like the negate
plugin might be useful. negate changes OK to CRITICAL and vice-versa.
You'll need two separate tests though. For example say normal was
between 4 and 7, critical above 7 or below 4.

check_mrtg -c 8 # CRITICAL if 8 or above, everything else is OK
negate check_mrtg -c 3 # CRITICAL if 3 or below everything else is OK

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 monitoring limits: hosts and services

2007-06-08 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
 Sent: Friday, June 08, 2007 9:38 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Nagios monitoring limits: hosts and services
 
 I'm starting to get complaints from our Operations group that the
Nagios
 web GUI is getting slow.  This is on a version 1.x Nagios server.
The
 server is monitoring 678 hosts and 3481 services organized in 29 host
 groups.  Most checks are done on 5 minutes intervals.  I've gone over
 all of the documented tweaks to improve performance.  The hardware
 seems adequate and isn't starved for CPU; loads seem reasonable;
 although the Check Latency under the Performance Info screen
 continually creeps up - currently at Max. 23 seconds.
 
 Time to load the Status Overview screen: 8,5,6,6 seconds
 Time to load the Status Summary screen: 42,35
 
 I guess my first question is what do your uses expect in terms of
 performance?

This is not unusual for a 1.x installation with large numbers of
hosts/services. I had hostgroup overview pages that were taking up to 5
minutes to generate and I needed to cron them. There were significant
optimizations done in 2.x to correct the way the CGI's internally
traversed host and service entries resulting in the same pages
generating in about 6 _seconds_.

You should upgrade. 1.x is getting very old now.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] checking windows clients for hung state

2007-06-13 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Lalita Drolia
 Sent: Wednesday, June 13, 2007 4:08 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] checking windows clients for hung state
 
 Hi,
 
 I wanted to know how we can check for a situation in which we can ping
the
 machine but still not access it, in windows.
 
 What I mean id that probably the machine is in a hung state and that
is
 why we can ping it but still not access it.
 
 Please tell me what will be the best check for such a situation on
windows
 clients.

I'd start with how you manually determine that it's hung and work from
there. It's a pretty vague scenario. Does it still respond on TCP ports?
Are services still running? Find an external service on the machine that
isn't responding when the hang occurs and add it as a normal check.
Perhaps running NRPE_NT or nsclient++ on the machine and performing a
normal check would be sufficient. I'd prefer some network based test
myself though if I could get away with it, check_tcp for example.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] checking windows clients for hung state

2007-06-13 Thread Marc Powell
Please always respond on list. You'll be giving experience back to the
community and future readers will benefit from it.

 -Original Message-
 From: Lalita Drolia [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 13, 2007 7:46 AM
 To: Marc Powell
 Subject: RE: [Nagios-users] checking windows clients for hung state
 
 That is what I was guessing Marc that you need to check for the
 particular service which is causing the machine to hang.
 I would like to give you an example of solaris servers. They have a
 state called ok promot as I understand and you can ping the machine
in
 that state but its stuck in the boot up process. So I have put a check
 on ssh to overcome this problem because ssh will be working only when
 the machine would have booted up properly and be usable.

Yes, that's the kind of check I'm proposing for your windows machine.

 Similarly, I was wondering that can we put a check on some service on
 windows machines which will definetly be halted in case the machine
 hangs? I hope I have made myself clear and not confused you :)

How can we know? We don't even know what services your windows machine
is running. Is it running IIS? Does IIS respond when the machine hangs?
If not, then use check_http to check IIS. Is it running DNS? Does it
respond to DNS queries when the machine hangs? If not, use check_dns.
Does port 139 respond when the machine hangs? If not, then use check_tcp
to check that port. You'll have to perform tests such as these based on
the services the machine is running to determine what's best to use.
Nmap can help you determine what ports your machine is normally
listening on if you don't know. If the machine is 'hung' but still
responds to network tests properly then you'll need to dig further to
determine what's actually broken when it's in this state and use that as
a basis for your check.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Problem with dependancies and notifications

2007-06-13 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of James Davis
 Sent: Wednesday, June 13, 2007 9:20 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Problem with dependancies and notifications
 
 I've got a number of hosts sitting behind a router. I've configured
the
 hosts in nagios so that they depend upon the router being available.


 Have I configured something incorrectly? Should nagios be checking the
 status of the router after finding that this particular device is
down?

Sounds like you want to use 'parents' in your host definitions as
opposed to dependencies.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 Starting Nagios

2007-06-13 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Danilo Perdomo
 Sent: Wednesday, June 13, 2007 1:58 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Problems Starting Nagios
 
 Hi All!. Im having problems configuring Nagios 2.7, i have all the .cfg
 files ready to get started but when i try to
 initialize the nagios process i get this error message: Error: Could not
 create external command file '/usr/local/nagios/var/rw/nagios.cmd'.
 as named pipe: (13) - Permission denied.  If this file already exists and
 you are sure that another copy of Nagios is not running, you should
 delete this file.
 Any ideas? the nagios.cmd is supposed to be created automatically but that
 isn´t happening.

The error indicates that the user you've configured nagios to run as, usually 
nagios, does not have permission to write to the directory you've configured to 
hold the external command file (/usr/local/nagios/var/rw/). You'll need to --

- verify the directory you've specified exists and is owned by the nagios user
- the nagios user can create files within that directory
- if the file exists and isn't owned by the nagios user, stop nagios, remove 
it, restart nagios.
- if the file exists and nagios isn't running, remove it then restart nagios

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 Starting Nagios

2007-06-13 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Danilo Perdomo
 Sent: Wednesday, June 13, 2007 3:59 PM
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Problems Starting Nagios
 
 I'm still getting an error, even though i have the permissions:
 
 drwxrwxrwx  4 nagios nagios   4096 2007-06-13 16:17 .
 drwxr-xr-x 11 nagios nagios   4096 2007-05-10 11:26 ..
 drwxrwxr-x  2 nagios nagios   4096 2007-05-10 11:24 archives
 -rw-rw-r--  1 nagios nagios238 2007-06-12 17:40 comments.dat
 -rw-rw-r--  1 nagios nagios239 2007-06-12 17:40 downtime.dat
 -rw-r--r--  1 nagios nagios  0 2007-06-13 16:17 nagios.lock
 -rwxrwxrwx  1 nagios nagios  14268 2007-06-13 16:56 nagios.log
 -rwxrwxrwx  1 nagios nagios 118664 2007-06-13 16:56 objects.cache
 -rw---  1 nagios nagios 162982 2007-06-13 16:17 retention.dat
 drwxrwsr-x  2 nagios nagios   4096 2007-06-13 12:08 rw
 
 [EMAIL PROTECTED]:/var/log# /usr/local/nagios/bin/nagios
 /usr/local/nagios/etc/nagios.cfg
 
 Nagios 2.7
 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
 Last Modified: 01-19-2007
 License: GPL
 
 Warning: Could not get passwd entry for 'nagiosadmin'

Where is this coming from? Did you change 'nagios_user' in nagios.cfg
from the default of 'nagios'? That might explain why you don't have
permissions. What are the contents of the 'rw' directory?

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Is it possible to set service_check_timeoutparameter per service?

2007-06-14 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Vitaly Karasik
 Sent: Thursday, June 14, 2007 9:02 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Is it possible to set
 service_check_timeoutparameter per service?
 
 One of my nagios  services  runs ~  one hours, so I have to set
 service_check_timeout   to one hour in the nagios.cfg.

You should probably consider making this a passive check.

 But for other services I'd like to leave timeout = 60 seconds. How I
can
 do it?

Most standard plugins support a -t switch to specify a timeout. You'll
need to modify all your commands to specify that switch for the plugins
that support it. If the plugin doesn't honor the -t switch, ignores it,
fails to timeout or fails to exit for whatever reason, it will continue
to run until nagios aborts it at the 1 hour mark. This should be a rare
case though as plugins should run and end themselves in a timely manner
normally.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 set the sourceaddress for all checks?

2007-06-15 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Michael Silver
 Sent: Thursday, June 14, 2007 5:32 PM
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] How to set the sourceaddress for all
checks?
 
 [EMAIL PROTECTED] wrote:
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of
  Ingo Lantschner
  Sent: Thursday, June 14, 2007 9:31 AM
  To: nagios-users nagios-users
  Subject: [Nagios-users] How to set the sourceaddress for all
checks?
 
  Hi,
  if I  am running Nagios on a host with more than one IP address on
  the same physical network (trough aliases like eth0:1): Can I set
the
  IP-source-address used for running the network-related-checks in
one
  point? If yes, where please :-)
 
  You cannot. Your OS's TCP stack determines what source IP to use;
the
  base IP on the interface used to reach the destination network.
 
 Actually, some versions of ping do allow you to set the source
address.
 The version in iputils package allows you to set the IP via -I
address
 or interface name. I don't have a machine I can test the exact
 situation described, but I believe it will work as desired.

That's nice but that doesn't help with the network based nagios-plugins
any, which was the OP's goal. I didn't say it was impossible to do at
all, just not with the standard nagios plugins. 

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 Groups

2007-06-18 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Petersen, Mark
 Sent: Monday, June 18, 2007 12:36 PM
 To: Nagios Users mailinglist
 Subject: [Nagios-users] Service Groups
 
 I think this is a feature request, but I just to confirm its not in a
 newer version (I'm running 2.5) or I'm missing something else.
 
 I have a number of servicegroups, but users can't view servicegroups
 where they only have access to a limited number of the services in the
 group.  Other than enabling viewing of all services (not desirable) is
 there anyway to show only the services in servicegroups that that user
 is a contact for?

No, it's all or nothing. This would be a nice feature though for both
servicegroups and hostgroups, IMHO

 As a workaround, can the members field of a servicegroup consist of
 multiple servicegroups, documentation doesn't seem to list this as an
 option.

I don't use servicegroups but I believe the answer is going to be no.
It's an easy Try And Find Out question though. If not, you _can_ specify
the (multiple) servicegroups that a service is part of in the service
definition. That would be a way to get the behavior you want.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Getting check_smtp to test send an entire message w/body

2007-06-18 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Kelly Jones
 Sent: Monday, June 18, 2007 10:00 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Getting check_smtp to test send an entire
message
 w/body
 


 
 Short of writing my own plugin, what's the best way to test an SMTP
 server all the way through message delivery/acceptance?

Look at check_email_loop.pl in the plugins contrib. directory.

 
 Related question: the plugins that come w/ nagios are pretty
 sparse. Is there a central free plugin repository somewhere?

http://www.nagiosexchange.org

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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_ldap! not working right in services.cfg

2007-06-19 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of RR
 Sent: Tuesday, June 19, 2007 9:42 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] check_ldap! not working right in services.cfg
 


 define command(
 command_namecheck_ldap
 command_line$USER1$/check_ldap -H $HOSTADDRESS$ -b $ARG1$
 }
 
 After I add the above statement to cmy command.cfg file, I get
 
 Error: Invalid object definition type 'command(' in file
 '/etc/nagios/commands.cfg' on line 64.

You'll want to use a brace { to start the definition, not parenthesis (.

--
Marcvi 

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 Sybase

2007-06-19 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Richard Solid
 Sent: Tuesday, June 19, 2007 9:54 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Monitoring Sybase
 
 Hello,
 
 I found the plugin to monitor sybase at http://www.net-
 man.at/software/check_sybase-LATEST.zip
 
 It doesn't come with a README file. Where can I find information on
how to
 install this thrid party plugin?

At the third party source, running the plugin with -h or --help if they
coded it nicely or by viewing the source code of the plugin. Most
plugins can just be dropped into the libexec directory.

--
Marc


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] (no subject)

2007-06-19 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Lacayo, Luis F
 Sent: Tuesday, June 19, 2007 1:52 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] (no subject)
 
 HI Again,
 
 Twice today,  does anyone know if there is a way to monitor a windows
 event from the event log?

Google says yes with the first hit (and more).

nagios windows event log

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Alerting on a Percentage of Threshold of a groupbeing down

2007-06-20 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Nick
 Sent: Wednesday, June 20, 2007 4:37 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Alerting on a Percentage of Threshold of a
 groupbeing down
 
 Hi,
 
 Was wondering if there is a way with nagios to report on a percentage
or
 below a threshold of group being unavailable?
 
 For example if i have a 100 web servers but i only want to know if
more
 than 30% of them are unreachable or if more than 30 of them are
 unreachable.

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

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] FW: Problems with distributed setup, master overload?

2007-06-20 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Tyler Lund
 Sent: Wednesday, June 20, 2007 11:06 AM
 To: nagios-users@lists.sourceforge.net; [EMAIL PROTECTED]
 Subject: Re: [Nagios-users] FW: Problems with distributed setup,master
 overload?
 
 Hi Jeffrey
 
 I encountered the exact same issue. I've managed to bring it under
control
 with two things, but have not yet found a solution. It seems nagios
just
 stops reading the command pipe every once in a while and will resume
after
 a few minutes.


 
 Has anyone arrived at a permanent solution?

FWIW, I have a fairly large passive-only install with just over 4000
passive checks every 5 minutes. I haven't experienced this problem. It's
a pretty simple, standard install but one difference is I don't perform
any host checks. Perhaps you have host checks that are not optimized or
completing in a timely manner and are holding up processing of other
tasks. Nagios will stop all other processing during host checks until
they complete.

--
Marc 

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 Message Acknowledgment

2007-06-21 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Nedim Bicic
 Sent: Wednesday, June 20, 2007 7:57 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Nagios Message Acknowledgment
 
 Hi all i have nagios 2.4 i was wondering when a user would
acknowledges a
 down host and it sends an email as well i want to include the message
the
 user has input of why the host is down

Add the $HOSTACKCOMMENT$ macro to your notification command like --

define command {
command_name   host-notify-by-email
command_line   /bin/echo -e Subject:
$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$\n\n*
Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost:
$HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo:
$HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n\nAcknowledged By:
$HOSTACKAUTHOR$\nAcnkowledgement: $HOSTACKCOMMENT$ | /bin/mail
$CONTACTEMAIL$
}

A full list of macros available is listed in the documentation under
'Using Macros in Commands'.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Sharing local/remote machine .cfg

2007-06-21 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Alain Williams
 Sent: Thursday, June 21, 2007 9:50 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Sharing local/remote machine .cfg
 
 I am relatively new to Nagios, I am setting up a group of Linux
machines
 that
 all send reports to a central monitoring one with nsca.
 
 I have a separate .cfg file for each machine, I would like to share
this
 file
 between remote and central machines - so that if I change anything I
just
 copy it over.
 
 One change that *is* needed is the value of active_checks_enabled -
which
 is zero
 on the central box and one on the remote.
 
 I tried something like this in a 'define service':
 
   active_checks_enabled   $USER11$
 
 and elsewhere had:
 
   $USER11$=1
 or
   $USER11$=0
 
 as appropriate for the machine.
 
 This does not work. Why ? and is there a way of achieving what I want
to
 do ?

Macros are only available to command {} definitions. You can't use them
anywhere else.

What I do is to create a template in a new config file (templates.cfg
for example) with the differing values and the hosts/services inherit
that template. Something like --

Central machine -
define host {
namehost-active-checks
active_checks_enabled   1
register 0
}
define service {
name service-active-checks
active_checks_enabled 1
register 0
}

Remote machine -
define host {
namehost-active-checks
active_checks_enabled   0
register 0
}
define service {
name service-active-checks
active_checks_enabled 0
register 0
}

Then your shared file would use

define host {
use host-active-checks
... other host specific stuff ...
}
define service {
use service-active-checks
... other service specific stuff ...
}

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] snmp community option in host definition?

2007-06-21 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of James Whittington
 Sent: Thursday, June 21, 2007 10:06 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] snmp community option in host definition?
 
 I am faced with the potential of having to monitor different remote
 networks with primariliy  custom perl based snmp checks.
 
 The tricky part of this is that different networks may have different
SNMP
 community names.
 
 
 
 While I could create different service definitions for each different
 community name or build logic in the script to try multiple names I
was
 kinda surprised I didn't see a community name directive in the host
 definition specification.

Nagios-3 is expected to allow you to create arbitrary directives in
host/service definitions for just this type of situation. You're pretty
much limited right now to the options you described.

http://www.nagios.org/development/upcoming.php

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 Message Acknowledgment

2007-06-21 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Nedim Bicic
 Sent: Thursday, June 21, 2007 1:11 PM
 To: Jim Perrin
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Nagios Message Acknowledgment
 
 Hey this is the error i get when i try to debug the above command for
the
 acknowledgement does anyone know why or how to fix it
 
 
 this is what i get:
 
  nagios -v /etc/nagios/nagios.cfg
 

 
 Error: Invalid command object directive
 '$HOSTACKAUTHOR$\nAcnkowledgement:'.
 Error: Could not add object property in file
 '/etc/nagios/misccommands.cfg' on line 54.

Looks like you have a carriage return on line 53 when you shouldn't.
Just a guess though. It helps if you post the config around the line
that's being complained about.

--
Marc


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 Message Acknowledgment

2007-06-21 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Nedim Bicic
 Sent: Thursday, June 21, 2007 3:40 PM
 To: Adam Kennedy
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Nagios Message Acknowledgment
 
 NO ERROR NICE !!   Good job that was the mistake
 
 i just dont know weather i should reload nagios or restart it for it
to
 take affect

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

--
Marc


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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-Windows 2003

2007-06-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of John Duraisw
 Sent: Friday, June 22, 2007 8:32 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Nagios-Windows 2003
 
 Hello Everyone,
 I've been trying to monitor some services on windows 2003(SP2) using
snmp
 plugins with nagios 2.9, everything is working fine on the monitoring
 side. When the service goes down the GUI turns RED but I don't get any
 notifications all though the nagios GUI says the notifations has been
sent
 out. All the other notifications gets sent properly. I this something
to
 do with windows 2003 ? Any ideas please?

If the nagios log shows them sent the problem is more likely with the
MTA on your nagios machine. Check your mail logs there and see what the
mail server is doing with them or if it even gets them. If you don't see
them in the logs, verify your notification command actually works by
running it as the nagios user, substituting in appropriate values for
macros where necessary.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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.log file...

2007-06-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Lacayo, Luis F
 Sent: Friday, June 22, 2007 8:35 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] NAGIOS.log file...
 
 Does anyone how to convert the date/time stamp of the nagios.log file
so
 that I can tell what time the event happened.  I am trying to track
don't
 why the emails are not getting received if the Nagios.logs say they
were
 sent out.
 

Tail, cat, grep, whatever nagios.log | perl -pe
's/(\d+)/localtime($1)/e' | less

Or to do the whole log --
 /usr/local/nagios/var/nagios.log perl -pe 's/(\d+)/localtime($1)/e'

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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-Windows 2003

2007-06-22 Thread Marc Powell


 -Original Message-
 From: Valdinger, Stephen (DOV, MSX) [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 22, 2007 8:58 AM
 To: Marc Powell
 Cc: nagios-users@lists.sourceforge.net
 Subject: RE: [Nagios-users] Nagios-Windows 2003
 
 
 All the other notifications gets sent properly
 
 
 If he is getting notifications otherwise, it can't be his MTA can it?
 His templates and definitions look good. I'm definitely stumped on
this
 one!

My response was sent before that tidbit was known ;) Nagios looks to be
doing its bit properly. Either there is some problem with the handoff to
/bin/mail because of some macro substitution or with the MTA. The MTA
logs are an easy place to check and can tell us which side to focus on
at least.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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-Windows 2003

2007-06-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of John Duraisw
 Sent: Friday, June 22, 2007 8:44 AM
 To: Valdinger, Stephen (DOV, MSX)
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Nagios-Windows 2003
 
 Stephen,
 Thanks for the quick response. Following are the info.
 


 define service{
 namegeneric-service
 active_checks_enabled   1
 passive_checks_enabled  1
 parallelize_check   1
 obsess_over_service 1
 check_freshness 0
 notifications_enabled   1
 event_handler_enabled   1
 flap_detection_enabled  1
 process_perf_data   1
 retain_status_information   1
 retain_nonstatus_information1
 is_volatile 0
 check_period24x7
 max_check_attempts  3
 normal_check_interval   5
 retry_check_interval1
 notification_interval   120
 notification_period 24x7
 notification_optionsc,r
 contact_groups  John
 register

I'm assuming that this is really register 0 with a closing }...

 
 # 'notify-by-email' command definition - good
 define command{
 command_namenotify-by-email
 command_line/usr/bin/printf %b Ladies and Gentlemen
 $SERVICEDESC$ for $HOSTNAME$ is $SERVICESTATE$ at this
time\n\nNotificatio
 n Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost:
 $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time:
 $LONGDAT
 ETIME$\n\nAdditional Info: $SERVICEOUTPUT$\nComments:
 $SERVICEACKCOMMENT$\nAuthor: $SERVICEACKAUTHOR$ | /bin/mail -s **
 $NOTIFICATIONTYPE$
 alert - $HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$
 }
 
 
 [1182517451] SERVICE NOTIFICATION:

john;WebsenseFilterServer1;check_WebsenseFilteringService;CRITICAL;notif
y-
 by-email;EIMServer.exe: not running

Looks good. Nagios attempted to send the notification. Doesn't look like
there's anything in it that would be a problem. Do you see it in your
mail logs? Try the manual test if you can.

--
Marc


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 HTTP monitoring

2007-06-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Jerad Riggin
 Sent: Friday, June 22, 2007 8:41 AM
 To: GJP
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Nagios HTTP monitoring
 
 I have a check_http command that works perfectly at the command prompt
 
 ./check_http -H lagarde -t 5 -s LaGarde Intranet site
 
 However in nagios, check_http!-H lagarde -t 5 -s LaGarde Intranet
site
 still returns an unauthorized.  So basically why would it work in a
 command prompt but not in nagios?  

Perhaps some difference in environment? Did you test as the nagios user?
Is that the _exact_ way it's defined in the config?

 And what is the syntax for the -a
 (basic auth) switch?  Thanks again for everyones help.

-a username:password.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Plugin that will test nagios.cfg

2007-06-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Hari Sekhon
 Sent: Friday, June 22, 2007 9:24 AM
 To: Thomas Guyot-Sionnest
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Plugin that will test nagios.cfg
 
 
 
  One everyone uses init scripts. Nagios can also be restarted via
  signals, web interface and directly trough the command pipe. Any of
  these methods won't do any sanity checking.
 
 
 Do you mean Not everyone uses init script?
 
  The init script does pretty much what I put in my bash example (and
even
  more sanity checking)... BTW it checks the config on restarts too,
so
  maybe you're running an old version...
 
 
 nagios 2.5 as I mentioned. not too old I think.
 
 It does check on restart, but the difference is that nagios is stopped
 so it can't start with the broken config, therefore it is no longer
 running, whereas if I do a reload instead then nagios is still running
 and I get the error checking but nagios is still up with the old
config
 until I fix the new config and do another reload. Nagios basically
stays
 up and keeps it's existing config if the new config doesn't pass the
 pre-flight check.

I'd say you're using a broken init script then. It's very clear that
nagios verifies the config and only stops and starts if verification is
OK.

restart)
printf Running configuration check...
$NagiosBin -v $NagiosCfgFile  /dev/null 21;
if [ $? -eq 0 ]; then
echo done
$0 stop
$0 start
else
#$NagiosBin -v $NagiosCfgFile
echo  FAILED!  Restart aborted.  Check your
Nagios configuration.
exit 1
fi
;;

--
Marc


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 HTTP monitoring

2007-06-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Jerad Riggin
 Sent: Friday, June 22, 2007 12:17 PM
 To: GJP
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Nagios HTTP monitoring {Disarmed} {Fraud?}
 
 So check_http!-H site.com -t 5 -a admin:password
 
 should be
 
 check_http!-H site.com!-t 5!-a admin:password?

Is that how you've configured your check_http command{} definition to
expect thme? I think that's where your breakdown is. This is usually how
it's done --

define command {
command_name   check_http_url
command_line   $USER1$/check_http -H $ARG1$ -I
$HOSTADDRESS$ -u $ARG2$ -wt 20 -ct 30 -to 35 -s $ARG3$
}

define host{
use generic-host
host_name   nateng-myserver-prodlnx01
alias   connecten-prodlnx01
address 172.27.0.2
}

# Service definition
define service{
use generic-service
host_name   nateng-myserver-prodlnx01
service_description HTTP
contact_groups  nateng-oncall-servers
max_check_attempts  2
retry_check_interval1
check_command
check_http_url!www.mysite.com!/portal!/html
}

That will check for the string '/html' on the page '/portal' on the
vhost 'www.mysite.com' hosted on the webserver at ip address
'172.27.0.2'.

Does that look anything like what you have? I left a lot of the generic
template stuff out but you should get the gist if you've read the docs
on macros and sending arguments to commands.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 HTTP monitoring {Disarmed} {Fraud?}

2007-06-22 Thread Marc Powell


 -Original Message-
 From: Jerad Riggin [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 22, 2007 10:00 AM
 To: Marc Powell
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Nagios HTTP monitoring {Disarmed} {Fraud?}
 
 If I change the hosts.cfg from the IP of the server (10.10.10.7) to
the
 URL I'm specifying in services.cfg, it works fine.  The default site
for
 10.10.10.7 is a CRM site which requires basic auth.  So even though
i'm
 specifying a URL in services.cfg, it looks like it's be overridden by
the
 hosts.cfg so it can't auth.  What is the point of the -H switch in
 services.cfg if it always uses the IP for the host in hosts.cfg?  I
tried
 that format (-a admin:password) at the end of the check in
services.cfg
 but it still failed with unauthorized.

It's looking more and more clear that your command{} definition doesn't
do what you think it does. You don't usually specify switches such as -H
and -a as part of the service definition. Perhaps you should post the
host, service and relevant command definitions for us to look at. I know
for a fact that check_http can and will work the way you want if
properly called.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 SQL

2007-06-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Shaun Martin
 Sent: Friday, June 22, 2007 12:20 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Nagios SQL
 
 Hi All,
 
 I just installed nagios in debian. Everything seems find except it did
not
 setup any mysql structure. Does anyone have the db and table structure
I
 can use to get it up and running.

Nagios2 doesn't use mysql but some third-party addons do. Did you
install one of those? What where you expecting to be in mysql?

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 HTTP monitoring

2007-06-22 Thread Marc Powell


 -Original Message-
 From: Jerad Riggin [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 22, 2007 12:27 PM
 To: Marc Powell
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Nagios HTTP monitoring {Disarmed} {Fraud?}
 {Disarmed} {Fraud?}
 
 commands.cfg
 
 # 'check_http' command definition
 define command{
 command_namecheck_http
 command_line$USER1$/check_http -H $HOSTADDRESS$ $ARG1$ -a
 $ARG2$
 }
 
 Here is an entry in services.cfg
 
 define service{
 use basic-service
 namecheck-site
 notification_optionsw,u,c,r
 check_command   check_http!-H site.com -t 5 -a
 admin:password -s String
 register0
 }

So the command that nagios is actually executing looks like --

/path/to/check_http -H whatever hostaddress is -H site.com -t 5 -a
admin:password -s String -a blank

It's not surprising it's not doing what you expect it to.

--
Marc


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Plugin that will test nagios.cfg

2007-06-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Hugo van der Kooij
 Sent: Friday, June 22, 2007 3:30 PM
 To: Nagios Users mailinglist
 Subject: Re: [Nagios-users] Plugin that will test nagios.cfg
 
 On Thu, 21 Jun 2007, Marc Powell wrote:
 
  If you can reliably reproduce this with a '/etc/init.d/nagios
reload' or
  'restart' then you should report it as a bug. Nagios is meant to not
  crash or bail a running copy if the new config is bad.
 
 If nagios can not start due to a broken config then a restart WILL
die. A
 restart is nothing short of a stop and start of the program.

Then you are not using the distribution init script and you must include
that logic yourself. Read it or read back in this thread. The only
possible way it should die is if nagios -v didn't detect a fatal error.
That would be a bug.
 
If a person doesn't use the distribution init script then they are
responsible for ensuring that the config is good before restart.

--
Marc


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 weekly Availability Report

2007-06-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Naveen C Joshi
 Sent: Friday, June 22, 2007 7:01 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Nagios weekly Availability Report
 
 Hi,
 
 I have some nagios servers and we need services weekly report once a
week.
 
 This report I take maually on each servers. Instead of taking reports
 manually I want it to automate through Cron Job.
 
 Please let me know if any body has done it and how.

http://www.nagiosexchange.org has a few options. Search for 'report'.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 set the sourceaddress for all checks?

2007-06-26 Thread Marc Powell


 -Original Message-
 From: Brian A. Seklecki [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 26, 2007 9:50 AM
 To: Ingo Lantschner; Marc Powell; Hari Sekhon; Michael Silver
 Cc: nagios-users nagios-users
 Subject: Re: [Nagios-users] How to set the sourceaddress for all
checks?
 
 On Thu, 2007-06-14 at 16:30 +0200, Ingo Lantschner wrote:
  Hi,
  if I  am running Nagios on a host with more than one IP address on
 
 I've discussed, many times in the past, the need to be able to
 explicitly define the sources address that check plugins transmit from
 (TCP, ICMP, UDP at the very least) as part of the Nagios API.

Have you been discussing it in the proper forum of
[EMAIL PROTECTED] The plugins are a separate
project from nagios. Though many of the developers might hang out here,
they might not pay much attention. I'm sure they'd be happy to look at
any provided patches if you had the time.
 
 These are simple one-line changes does in setsockopt(2) and
 getaddrinfo(2)
 
 http://netbsd.gw.com/cgi-bin/man-cgi?setsockopt++NetBSD-current
 http://netbsd.gw.com/cgi-bin/man-cgi?getaddrinfo++NetBSD-current

Being a hacker and not a coder, I don't have much to say about this
other than the current implementation is consistent and easy to support.
A non-trivial number of plugins are written in other languages that this
wouldn't apply to (PERL, shell, etc). 

--
Marc


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 set the sourceaddress for all checks?

2007-06-26 Thread Marc Powell


 -Original Message-
 From: Brian A. Seklecki [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 26, 2007 11:50 AM
 To: Marc Powell
 Cc: Ingo Lantschner; Hari Sekhon; Michael Silver; nagios-users nagios-
 users
 Subject: RE: [Nagios-users] How to set the sourceaddress for all
checks?
 
 
 Right: it gets tricky if you're runing a shell script wrapper around a
 perl script that exec()'s nc(1).

You specifically invited me into this conversation. I didn't ask to be
in it ;) I presumed you wanted my opinion, I gave it. Distorting what I
said isn't helpful.

*shrug*

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 set the sourceaddress for all checks?

2007-06-26 Thread Marc Powell


 -Original Message-
 From: Brian A. Seklecki [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 26, 2007 1:58 PM
 To: Marc Powell
 Cc: Ingo Lantschner; Hari Sekhon; Michael Silver; nagios-users nagios-
 users
 Subject: RE: [Nagios-users] How to set the sourceaddress for all
checks?
 


 Then let us end it right now.  There are other, more-noble(*), battles
 to fight, and my ACLs support aggregate object-groups in the mean
time.

Don't end it if it's important to you, just take it to the right forum
where the people that actually maintain the plugins can chew on it.
 
 *) Bacula Director, rpcbind

Mmmm. Directory. That's Crunchy. I've had fun with that one before.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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_dhcp question...

2007-06-27 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Lacayo, Luis F
 Sent: Wednesday, June 27, 2007 1:41 PM
 To: Nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] check_dhcp question...
 
 Hi Everyone,
 
 
 
 I am doing a check of the DHCP server and when I run the check_dhcp
 manually, I get a reply that there were no DHCP OFFERS.
 
 
 
 ./check_dhcp -s 10.129.177.16 -r 10.129.177.240
 
 DHCP problem: No DHCPOFFERs were received.

Try adding the verbose flag (-v) to the command above. That will provide
more useful output.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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_dhcp question...

2007-06-27 Thread Marc Powell


 -Original Message-
 From: Lacayo, Luis F [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 27, 2007 3:07 PM
 To: Marc Powell; Nagios-users@lists.sourceforge.net
 Subject: RE: [Nagios-users] check_dhcp question...
 
 Here is the output of the verbose.
 
 [EMAIL PROTECTED] libexec]#  ./check_dhcp -v -s 10.129.177.16
 Requested server address: 10.129.177.16
 DHCP socket: 3
 Hardware address: 001438bbfc21
 DHCPDISCOVER to 255.255.255.255 port 67
 DHCPDISCOVER XID: 756149105 (0x2D11EB71)
 DHCDISCOVER ciaddr:  0.0.0.0
 DHCDISCOVER yiaddr:  0.0.0.0
 DHCDISCOVER siaddr:  0.0.0.0
 DHCDISCOVER giaddr:  0.0.0.0
 send_dhcp_packet result: 548
 
 No (more) data received
 Result=ERROR
 Total responses seen on the wire: 0
 Valid responses for this machine: 0
 DHCP problem: No DHCPOFFERs were received.

I assume that this machine is on the same broadcast network as your DHCP
server and they are truly different machines. Are you running dhclient
or iptables/ipchains on this machine? Anything that would interfere with
the reception of the dhcp packet? It might be necessary to use tcpdump
to verify that the machine is actually receiving a response. Right now
it would appear that it really isn't.

How were the plugins installed and what version? If you're not running
the latest version of the plugins you should test with that. This thread
might be useful --

http://sourceforge.net/tracker/index.php?func=detailaid=1090549group_i
d=29880atid=397597

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 not sending email

2007-06-27 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Rob Groome
 Sent: Wednesday, June 27, 2007 5:10 PM
 To: Nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Service Notifications not sending email
 

Lots of good stuff removed...
 
 When set to the above I get the following in /var/log/messages:
 Jun 27 10:44:46 alpha nagios: SERVICE NOTIFICATION: it;system1;Disk -
 D:;CRITICAL;notify-by-email;d:\ - total: 213.20 Gb - used: 12.10 Gb
 (6%) - free 201.11 Gb (94%)

This is good. Nagios tried to send a notification. That means the
problem is with the notification command forward.
 
 notify-by-email command definition:
 # 'notify-by-email' command definition
 define command{
  command_namenotify-by-email
  command_line/usr/bin/printf %b * Nagios  *\n
 \nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$
 \nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n
 \nDate/Time: $DATE$ $TIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n
 $SERVICEPERFDATA$\n$SERVICEACKCOMMENT\n | /bin/mail -s **
 $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE
 $ ** $CONTACTEMAIL$
  }
 
 
 Nothing in the mail.log file about email being sent - or trying to be
 sent out.
 
 Any help is appreciated!  I realize that this is probably a simple
 fix as I said before - but it is alluding me at the moment.

In cases like this, it's often very useful to try to manually run the
command that nagios is running to see if it errors out. Have you tried
running the command above as the nagios user? It'll look something like
the following if I've done my substitutions correctly, guessing at some
--

/usr/bin/printf %b * Nagios  *\n\nNotification Type:
CRITICAL\n\nService: Disk - D:\nHost: system1\nAddress: 1.1.1.1\nState:
DOWN\n\nDate/Time: Tue Jun 26 23:09:27 CDT 2007\n\nAdditional
Info:\n\nd:\ - total: 213.20 Gb - used: 12.10 Gb (6%) - free 201.11 Gb
(94%)\n  /=2132MB;7844;7854;89;7874\n\n | /bin/mail -s ** CRITICAL
alert - system1/Disk - D: is CRITICAL ** [EMAIL PROTECTED]

I also prefer to use /bin/echo -e instead of /usr/bin/printf %b
myself. It seems to have less problems with things like d:\ in plugin
output.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Recurring Downtime

2007-06-28 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Moore, Nicholas
 Sent: Thursday, June 28, 2007 9:56 AM
 To: Nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Recurring Downtime
 
 New Nagios user here (2.9).  I have a server that restarts every day.
I
 want to schedule downtime for a server every day at the same time.  I
know
 that I can't do it with the basic nagios package.  I found an add-on
on
 nagios exchange.

Why not just create a check time period that excludes the restart time?

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Compiling Perl check scripts

2007-06-28 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Morris, Patrick
 Sent: Thursday, June 28, 2007 12:52 PM
 To: Adam Kennedy; nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Compiling Perl check scripts
 
  From: [EMAIL PROTECTED]
[mailto:nagios-users-
  [EMAIL PROTECTED] On Behalf Of Adam Kennedy


  What method has anyone used to compile perl scripts? I am using perl
  modules (mainly Net::SNMP, Net::DNS and various others) with the
  scripts. I tried perlcc but it didn't work. Any other ideas?
 
  Should I just bite the bullet and attempt to write a C app to do the
  functions of my perl scripts instead? I would really hate to do
that,
  as
  my C skills don't go far beyond Hello World.
 
 This is the sort of thing the embedded perl interpreter was made for.
 If Nagios is built with it, it won't need to load and compile your
 scripts every time they run.
 

Indeed but it's important to point out that there are some special
requirements for your perl plugins. More information can be found at
http://nagios.sourceforge.net/docs/2_0/embeddedperl.html.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] cgi misconfiguration? {Disarmed} {Fraud?}

2007-06-28 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Rogelio Bastardo
 Sent: Thursday, June 28, 2007 9:08 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] cgi misconfiguration? {Disarmed} {Fraud?}
 
 I installed Nagios 2.9 via yum on CentOS.
 
 The web page displays correctly (e.g. http://myServer/nagios), but I
get
 the following error when I hit anything related to the CGI. Any
 suggestions as to what I didn't configure properly?
 
 
 Internal Server Error
 
 The server encountered an internal error or misconfiguration and was
 unable to complete your request.
 
 Please contact the server administrator, [EMAIL PROTECTED] and inform
them of
 the time the error occurred, and anything you might have done that may
 have caused the error.
 
 More information about this error may be available in the server error
 log.

Did you look in your web server error log? I don't know what version of
CentOS you are running but do you have SELinux enabled? It might be
complaining about that in error_log.

--
Marc

 

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] External Command Error

2007-06-29 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of andres sarmiento
 Sent: Friday, June 29, 2007 7:36 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] External Command Error
 
 Hi, i'm triying of set comments on web interface of problems that
 hosts and services have. But its give thir error:
 
 Error: Could not stat() command file '/var/lib/nagios2/rw/nagios.cmd'!


 --
 How cat fix that, i wait than  someone can helpme, sorry for my
english.


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

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Time-Saving Tricks For Service Definitions

2007-06-29 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Caylan Van Larson
 Sent: Friday, June 29, 2007 11:49 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Time-Saving Tricks For Service Definitions
 
 Howdy,
 
 I think I've found a bug with the Object Definition Tricks found at
 http://nagios.sourceforge.net/docs/2_0/templatetricks.html#service.
 


 define service{
  namedell-hardware
  service_description Dell Hardware
  hostgroup_name  dell-servers
  contact_groups  sysadmins
  check_command   check_nrpe!check_dell
 }
 
 Right up until I add back in a legacy host/service definition...
 
 define host {
 use production-host
 host_name   newhost
 alias   New Host
 address y.y.y.y
 }
 
 
 define service {
  use dell-hardware
  host  newhost
 }

dell-hardware is a registered service that is applied to all hosts in
the hostgroup dell-servers. It is _not_ a template (register 0) that can
be applied to arbitrary service definitions.

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

The third variable is register. This variable is used to indicate
whether or not the object definition should be registered with Nagios.
By default, all object definitions are registered. If you are using a
partial object definition as a template, you would want to prevent it
from being registered (an example of this is provided later). Values are
as follows: 0 = do NOT register object definition, 1 = register object
definition (this is the default). __This variable is NOT inherited;
every (partial) object definition used as a template must explicitly set
the register directive to be 0.__ This prevents the need to override an
inherited register directive with a value of 1 for every object that
should be registered.

(emphasis mine)

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] MRTG Installation

2007-06-30 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Rahul Thomas Varghese
 Sent: Saturday, June 30, 2007 8:02 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] MRTG Installation
 
 Hi all,
 
 Can anyone please tell me the steps how MRTG is installed, and how can
i
 monitor the servers in my network. Please give me the steps how MRTG
can
 be implemented successfully.kindly reply fast the project time is in
 peak..

I'm sure you know how to google for other projects just like the rest of
us. Since I had some project downtime this morning, I googled for you.
Smart Questions FAQ - Don't ask others to do your homework for you...

http://www.catb.org/~esr/faqs/smart-questions.html

http://www.google.com/search?q=mrtgie=utf-8oe=utf-8aq=trls=org.mozil
la:en-US:officialclient=firefox-a

--
Marc


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] unsubscribe {Spam?}

2007-07-01 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Tommy Linuxfreak
 Sent: Sunday, July 01, 2007 11:05 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] unsubscribe 

Go here --

  ___
  Nagios-users mailing list
  Nagios-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/nagios-users
 
 
  End of Nagios-users Digest, Vol 3, Issue 16
  ***
 

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Distributed setups

2007-07-02 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Tobias Klausmann
 Sent: Monday, July 02, 2007 4:52 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Distributed setups


 Even if the central machien does all the notifications (as we're
 planning), completely dis/enabling service/host checks would have
 to be distributed from the central machine to the checking
 machines.

How often do you really do that? I've found that scheduled downtime fits
99% of situations and those that that it doesn't (long term outages),
editing the config on the master then rsync/scp and reload on the
collector works just fine.


 Or is the usual setup to let the useres access the web interface
 of each checker machine? Then how do people know which checks
 are run from which machine?
 
 If the central machien only does the webservice job, i.e.
 notifications are handled on the checking machines, how are
 sceduled dowtimes, acknowledgements etc handled?

We do everything on the central machine. Our collectors just collect and
send results inward. Users all use just the central machine. Scheduled
downtimes, acknowledgements, etc don't need to propagate out if you do
all your management and reporting from the central machine.



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Nested notifications; parent vis-a-vis parent_host

2007-07-04 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Lev Lafayette
 Sent: Tuesday, July 03, 2007 9:50 PM
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Nested notifications;parent vis-a-vis
 parent_host
 
 On Tue, 2007-07-03 at 22:23 -0400, Morris, Patrick wrote:


  If you don't want the UNREACHABLE alerts, just disable them.
 
 Yeah, I've done that. Just does seem to be pretty redundant to send
out
 UNREACHABLE alerts when a parent is DOWN, imo... :-)

It has it's benefits. That's why it can be enabled and disabled, just
like all the other notification types.

--
Marc


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] too many Notifications

2007-07-05 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Lalita Drolia
 Sent: Thursday, July 05, 2007 2:58 AM
 To: David Gerbec
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] too many Notifications
 
 David,
 I guess your suggestion should work. And I would not have to use
 escaltions.but just want to make sure that will it send notifications
 everytime there is a state change. Like from up to down and vice
versa.
 Because I would need that. And thank you for your help :)
 

Yes, it will.

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

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] too many Notifications

2007-07-05 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Lalita Drolia
 Sent: Thursday, July 05, 2007 7:21 AM
 To: Rob Groome
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] too many Notifications
 
 
 I guess setting notification-interval to 0 should solve my issue.
 But I have two more queries-
 1) sometimes a machine is rebooted on purpose. I would not like to
 receive a notification then. Which means I would like Nagios to wait
for
 15 minutes before sending out an alert. I guess giving
 max_check_attempts a high value should solve this. But is there any
 other way? And what should be this value ideally to wait for 15
minutes.

For service checks this is pretty straightforward adjusting
retry_check_interval and max_check_attempts. You do not want a
max_check_attempts set that long for host checks with nagios-2.x or
prior. Nagios stops _all_ other processing while hosts are being
checked, up to max_check_attempts, so for 15 minutes nagios would do
nothing but check that host. Using scheduled downtime is the easiest and
preferred way or you could escalations but that gets messier.

 2) as I mentioned, I have made settings to get an alert only once.
 But is it possible to get an alert for all machines once in a week
too,
 say every Monday morning?

You'd need to create a custom notification script that contained this
logic. Nagios does not have the ability to queue notifications; it'll
call the notification script as soon as they're triggered. Your script
could take those, store them in a file or database, then send them
whenever you chose.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] (no subject)

2007-07-05 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Giles Coochey
 Sent: Thursday, July 05, 2007 4:01 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] (no subject)
 
 Hello List
 
 I'm just in the process of doing a new install of Nagios, and I find
 myself thinking that I'm going to end up with a ping_check with a line
 that contains something like 300 comma separated hostnames
 
 Is there a good way to reduce the bloat and improve the manageability
of
 the configuration?

This might help --

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

 
 What is the recommended path to make sure your nagios config doesn't
 become something that only one person can make changes to, because of
 its complexity?

Use templates as much as possible, create standard checks for different
types of hosts, use a database/front end to store host/service
information that's important to your checks, autogenerate as much of
your configs from the database as possible.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Whoops! Error: Could not read objectconfiguration data!

2007-07-05 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Harry John
 Sent: Thursday, July 05, 2007 12:12 PM
 To: Nagios Users mailinglist
 Subject: Re: [Nagios-users] Whoops! Error: Could not read
 objectconfiguration data!
 
 This may due to file permissions issue.
 apache should be configured to run nagios.

Umm, no. Nagios should not be running as the apache user. As long as
you're using the default permissions from the installer, running as the
nagios user should be sufficient for all but the external command file.
The documentation details how to set that up correctly.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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_mysql - Queries per second avg: Time Frame

2007-07-05 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Eric Hernandez
 Sent: Thursday, July 05, 2007 11:15 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] check_mysql - Queries per second avg: Time
Frame
 
 Hell Nagios Group,
 
 What is the time range that check_mysql basis the Queries per second
avg.
 Is for the last hour, day or lifetime of the server?  or something
else?
 
 Uptime: 77595  Threads: 20  Questions: 92715251  Slow queries: 1283
 Opens: 554642  Flush tables: 1  Open tables: 64  Queries per second
avg:
 1194.861

It's coming directly from mysql via the 'status' command --

mysql status;
--
mysql  Ver ...

Connection id:  581953
Current database:
Current user:   redacted@localhost
SSL:Not in use
Current pager:  stdout
Using outfile:  ''
Using delimiter:;
Server version: redacted
Protocol version:   10
Connection: Localhost via UNIX socket
Server characterset:latin1
Db characterset:latin1
Client characterset:latin1
Conn.  characterset:latin1
UNIX socket:/var/lib/mysql/mysql.sock
Uptime: 197 days 12 hours 27 min 38 sec

Threads: 3  Questions: 3425958608  Slow queries: 0  Opens: 0  Flush
tables: 1  Open tables: 17  Queries per second avg: 452.425

While I can't quickly find a definitive reference to point to, it's my
understanding that it is the average q/s since the server was last
reset, in my case 197+ days.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Whoops! Error: Could not read object configurationdata!

2007-07-05 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Guille
 Sent: Thursday, July 05, 2007 11:28 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Whoops! Error: Could not read object
 configurationdata!
 
 Hello again guys, im trying to install a new nagios but, i cant fix
this
 errors when i
 try to see the host details;
 
 Whoops! Error: Could not read object configuration data!


Verify that you've followed the directions here -
http://nagios.sourceforge.net/docs/2_0/configcgi.html. Verify that
nagios is actually running.


--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] (no subject)

2007-07-06 Thread Marc Powell


 -Original Message-
 From: Giles Coochey [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 06, 2007 2:55 AM
 To: Marc Powell; nagios-users@lists.sourceforge.net
 Subject: RE: [Nagios-users] (no subject)
 
 Thanks Marc,
 
 That was exactly what I was looking for.
 
 Any chance of that being documented or linked to here:
 
 http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service

It's featured more prominently in the 3.0 documentation here --
http://nagios.sourceforge.net/docs/3_0/configobject.html

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] domain hijacking: using Nagios to monitor 100s(possibly 1000s) of domains / hosts

2007-07-10 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Rogelio Bastardo
 Sent: Tuesday, July 10, 2007 2:54 PM
 To: Nagios Users mailinglist
 Subject: [Nagios-users] domain hijacking: using Nagios to monitor
 100s(possibly 1000s) of domains / hosts
 
 I've got several hundred important domains that need to be checked for
 domain hijacking.  I'm assuming that this is as easy as check_dns -H
 domain.com -s (nameserver) -A (expected IP)
 
 How well will method scale to several thousand?

I don't see why it would be a problem. What nameserver are you going to
be testing? -A indicates that you'll be checking the nameserver hosting
the domain. That won't tell you if your domain has been hijacked though.
The DNS server hosting the domain will always answer that it is
authoritative, no matter if the rest of the Internet thinks it is or
not. Any other nameserver you test will fail since you're requiring
Authority. If you're going to test a recursive nameserver, use -a
instead.

Presumably you're more interested in the nameservers that the rest of
the world thinks are authoritative. You'd probably want to use check_dig
against a recursive nameserver (or the root servers) to verify that the
NS records they're reporting are accurate. Something like

check_dig -T ns -H recursiveserver.yourdomain.foo -l yourdomain.foo -a
nameserver.yourdomain.foo

You should, of course, perform any research necessary to determine if
the above tests against the nameservers (particularly the root
nameservers) are prohibited before implementing it.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 process ??

2007-07-12 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Guille
 Sent: Thursday, July 12, 2007 9:34 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] check process ??
 
 Hello;
 
 What plugin i should use to check if a process is running or not, i
was
 looking for one
 in google but with not luck!

check_procs is part of the standard plugins distribution.

$ ~nagios/libexec/check_procs  --help
check_procs (nagios-plugins 1.4.3) 1.48
Copyright (c) 1999 Ethan Galstad [EMAIL PROTECTED]Copyright (c)
2000-2004 Nagios Plugin Development Team
[EMAIL PROTECTED]

Checks all processes and generates WARNING or CRITICAL states if the
specified metric is outside the required threshold ranges. The metric
defaults to number of processes.  Search filters can be applied to limit
the processes to check.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 NDOUtils with Nagios

2007-07-12 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Saron Goshu
 Sent: Thursday, July 12, 2007 9:59 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] using NDOUtils with Nagios
 
 Hey all,
 I was trying to install  NDOUtils to mainly store Nagios 3.0
configuration
 information in the database and have Nagios pull config. info from it
and
 use it instead of from the configuration files(The idea was to improve
 performance from what I'm told). However, It seems like You can only
read
 info from the Nagios daemon using the NDOUTILS components but not the
 other way. 2 things, can this be done and if yes how would you go
about it

NDOUtils is for storing status data in a database only. Currently, there
is no way to have nagios read configuration data directly from a
database. There are tools available that will store configuration
information in a database but they all must export to flat file for
nagios use. They have been discussed extensively on this list and many
can be found on http://nagiosexchange.org.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] not able to access http://localhost/nagios/cgi-bin/

2007-07-14 Thread Marc Powell
Please always respond on list. That's how open source support works.

 -Original Message-
 From: Gagandeep Singh [mailto:[EMAIL PROTECTED]
 Sent: Saturday, July 14, 2007 10:43 AM
 To: Marc Powell
 Subject: Re: [Nagios-users] not able to access
 http://localhost/nagios/cgi-bin/
 
 Hi Marc thanks for your reply.
 
 In the web error_log this is what I see [error] [client 127.0.0.1]
 attempt to invoke directory as script: /usr/local/nagios/sbin/.  I am

That's expected behavior. You didn't specify a specific cgi to load.

 able to click all links in the left pane when I access
 http://localhost/nagios/ except status map, 3-d-status map, trends,
alert
 histogram.

This is a FAQ. You didn't have the pre-requisites installed for those to
be compiled or they weren't in standard locations. ./configure probably
complained about it. Check the FAQ on nagios.org.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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


<    2   3   4   5   6   7   8   9   10   11   >