[Nagios-users] Nagios check_ping times

2006-01-10 Thread Reg
I sporadically ( 1 or 2 times/day for 50 hosts) get check_ping returing 
average response times of 500ms plus resulting in false "critical" 
alerts from Nagios.  E.G.

PING CRITICAL - Packet loss = 0%, RTA = 535.87 ms

I'm running Suse 9.1 on VMWare ESX server.  I DO NOT believe vmware to 
be a factor because I also run smokeping on this virtual machine.  
SmokePing sends 3 pings every 5 seconds to the same hosts and never 
shows the 500ms+ latency that Nagios reports.  During the course of a 
typical day I get 80-100 of these "false alarms"
I suspect the problem is in the nagios daemon and how i have it 
configured.  When i run check_ping manually i can't reproduce the 
500ms+.  Are there any quick tests or diagnostics to help figure what's 
going on?


Reg


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] 2.0rc2 question

2006-01-10 Thread Alex Moore
On Tue, 10 Jan 2006 16:11:40 -0600 (CST)
"James S. White" <[EMAIL PROTECTED]> wrote:

> I got this behavior a few releases ago and disabling the embedded perl
> interpreter (at compile) made my output show up again.

Ok, I will try that.  But my configure script is the same now that is
was with 2.0rc1 and previous versions.  In fact, I think that I have
tried to say no to building with the embedded perl interpreter and it
was enabled anyway.

Thanks, Alex


-- 


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


RE: [Nagios-users] 2.0rc2 question

2006-01-10 Thread James S. White
I got this behavior a few releases ago and disabling the embedded perl
interpreter (at compile) made my output show up again.

YMMV.

---
James S. White primary/voip: (615) 469-0268
928 Mountain Valley Dr.  .O. mobile: (256) 476-2619
Nashville, TN 37209  ..O   work: (615) 341-8218
http://www.jameswhite.orgOOOwork-mobile: (615) 519-5160
[EMAIL PROTECTED]fax: (866) 260-5465
---
"Computers are useless. They only give you answers." -- Pablo Picasso

On Tue, 10 Jan 2006, Marc Powell wrote:

>
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:nagios-users-
> > [EMAIL PROTECTED] On Behalf Of Alex Moore
> > Sent: Tuesday, January 10, 2006 3:58 PM
> > To: nagios-users@lists.sourceforge.net
> > Subject: [Nagios-users] 2.0rc2 question
> >
> > Do we need a new nrpe for 2.0rc2 that is later than what worked with
> > 2.0rc1?
> >
> > All of my nrpe checks are failing with a '(No output!)' response and
> all
> > that I changed was nagios 2.0rc1 to 2.0rc2.
>
> No, NRPE versions are not tied to Nagios versions. You could use an NRPE
> that's years old if you wanted to.
>
> --
> Marc
>
>
> ---
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id865&opÌk
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue.
::: Messages without supporting info will risk being sent to /dev/null


RE: [Nagios-users] 2.0rc2 question

2006-01-10 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Alex Moore
> Sent: Tuesday, January 10, 2006 3:58 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] 2.0rc2 question
> 
> Do we need a new nrpe for 2.0rc2 that is later than what worked with
> 2.0rc1?
> 
> All of my nrpe checks are failing with a '(No output!)' response and
all
> that I changed was nagios 2.0rc1 to 2.0rc2.

No, NRPE versions are not tied to Nagios versions. You could use an NRPE
that's years old if you wanted to.

--
Marc 


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue.
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] 2.0rc2 question

2006-01-10 Thread Alex Moore
Do we need a new nrpe for 2.0rc2 that is later than what worked with
2.0rc1?

All of my nrpe checks are failing with a '(No output!)' response and all
that I changed was nagios 2.0rc1 to 2.0rc2.

Thanks, Alex

-- 


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] SMTP WARNING but STATUS OK

2006-01-10 Thread Andrew
I've installed Nagios on FreeBSD not a long time ago and now I'm facing that I really don't understand.
 
I defined a host with two associate where one is check_smtp.  When I configure the plugin to have a wrong anwser from the server (with the -C and -R parameters), I get "SMTP WARNING - Invalid." in the  Status Information but the Current Status still "OK" so I don' t receive any notifications for that host even if there is a warning.

 
Can somebody guide me on that error?
 
Thank you  - André Boulianne, ing. jr  


[Nagios-users] error checking commnad

2006-01-10 Thread Jose Castilla Gallardo
Hi, i have with a host this message "UNREACHABLE" and Status 
Information: bin/ping -n -U -w 10 -c 1 x.x.x.x


my checkcommands.cfg is:

# Command to check to see if a host is "alive" (up) by pinging it

define command{
command_namecheck-host-alive
#command_line$USER1$/check_ping -H $HOSTADDRESS$ -w 99,99% -c 
100,100% -p 1
command_line$USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 
5000.0,100% -p 1

}


# Generic command to check a device by pinging it

define command{
command_namecheck_ping
command_line$USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
}

I have nagios Version 2.0rc1

any solution

begin:vcard
fn:Jose Castilla Gallardo
n:Castilla Gallardo;Jose
email;internet:[EMAIL PROTECTED]
version:2.1
end:vcard



[Nagios-users] retention.dat not created

2006-01-10 Thread Mike Holloway


Howdy fellow Nagios users.  I've been researching a Nagios issue I've  
been experience, and as I haven't yet been able to resolve it with  
help from the nagios forums, I thought I would try the mailing list.


My system: FreeBSD 6.0 / Nagios 2.0b6 and 2.0rc1

The problem: I've been unable to get retention.dat working as  
described in the documentation.  The file is never created.  It  
doesn't appear to be a file/dir permissions problem (running as  
nagios/nagios).  It's not a "multiple Nagios processes" problem.  The  
file never gets created or populated with data.  I've tried values of  
0, 3, and 60 for retention_update_interval, and have restarted Nagios  
(killed all procs) and given it plenty of time to populate  
retention.dat, I never see the file created.


My need is to have Nagios remember disabled service checks and  
disabled notifications when it is restarted.



Below are the relevant parts of my config (please assume a host entry  
exists):


retain_state_information=1
state_retention_file=/var/spool/nagios/retention.dat
retention_update_interval=60
use_retained_program_state=1
use_retained_scheduling_info=1

define service{
name generic-service
active_checks_enabled 1
is_volatile 0
check_period 24x7
max_check_attempts 2
normal_check_interval 5
retry_check_interval 1
passive_checks_enabled 0
parallelize_check 1
obsess_over_service 1
check_freshness 0
notifications_enabled 1
notification_interval 120
notification_period 24x7
notification_options c,r
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
register 0
}


define service{
use generic-service
host_name somehostname.domain.com
service_description SSH Secure Shell
contact_groups level_1_notifications
check_command check_ssh
}


And a couple of directory listings:

/var/spool # ls -la
drwxrwxrwx 2 nagios nagios 512 Jan 3 09:54 nagios


/var/spool/nagios # ls -la
-rw-rw-r-- 1 nagios nagios 784 Dec 29 18:35 comments.dat
-rw-rw-r-- 1 nagios nagios 241 Dec 28 15:21 downtime.dat
prw-rw 1 nagios nagios 0 Jan 3 09:54 nagios.cmd
-rw-r--r-- 1 nagios nagios 6 Jan 3 09:54 nagios.lock
-rw-rw-r-- 1 nagios nagios 165973 Jan 3 09:54 objects.cache
-rw-rw-r-- 1 nagios nagios 1294 Jan 3 09:55 perfdata.dat
-rw-rw-r-- 1 nagios nagios 165614 Jan 3 09:55 status.dat



Here's a link to the forums thread I've been working in, if I get an  
answer via the list I will also post it there for posterity:


http://www.meulie.net/forum_viewtopic.php?21.4934


Thanks in advance for any assistance guys and gals!

-mike


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nagios do not show 'Service Status Details For All Hosts'

2006-01-10 Thread Matteo Mancini
Hi all..

> So what output do you get from `ps ax|grep nagios` on each step? I for
> one
> would like to see them instead of your interpretation.

these two line are when I'm not wachting web interface
# ps aux |grep nagios
_nagios  32713  0.0  0.3  1564  1520 ??  Ss 9:33PM5:19.92
nagios -d nagios.cfg
root 12965  0.0  0.0   280   140 p0  R+ 1:41PM0:00.09 grep
nagios

instead these are the output that I see when I'm browsing web intrerface
# ps aux |grep nagios
_nagios  32713  0.1  0.3  1564  1520 ??  Ss 9:33PM5:20.61
nagios -d nagios.cfg
_nagios  12113  0.0  0.1  1340   660 ??  S  1:43PM0:00.02
nagios -d nagios.cfg
_nagios   4067  0.0  0.1   584   472 ??  S  1:43PM0:00.04 sh
-c sh
_nagios  22904  0.4  0.1   468   604 ??  S  1:43PM0:00.06
/usr/local/libexec/nagios/check_ping -H 1
_nagios   8489  0.0  0.0   420   224 ??  S  1:43PM0:00.03
/sbin/ping -n -c 5 10.0.2.50


>
> You might actually have more then just that line in rc.local if you
> installed packages.

this is my rc.local

#cat /etc/rc.local

#   $OpenBSD: rc.local,v 1.38 2005/03/29 21:41:59 uwe Exp $

# site-specific startup actions, daemons, and other things which
# can be done AFTER your system goes into securemode.  For actions
# which should be done BEFORE your system has gone into securemode
# please see /etc/rc.securelevel

# site-specific startup actions, daemons which can be run
# Add your local startup actions to this file

echo -n 'starting local daemons:'

if [ -x /usr/local/sbin/cfsd ]; then
if ps auxc | grep -q '^ *root .* mountd$'; then
echo -n ' cfsd';/usr/local/sbin/cfsd
>/dev/null 2>&1
mount -o port=3049,nfsv2,intr localhost:/null /crypt
else
echo -n ' cfsd (failed, no mountd running)'
fi
fi

#if [ -x /usr/local/sbin/snmpd ]; then
#   echo -n ' snmpd';   /usr/local/sbin/snmpd
#fi

echo '.'


mkdir /var/run/nagios/
chown _nagios:_nagios /var/run/nagios/
/usr/local/sbin/nagios -d /etc/nagios/nagios.cfg


thanks

Matteo



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null