[Nagios-users] Host escalation config

2007-01-22 Thread Riahi Taieb

Hi,

I want to be notified on host down or recovery not more than 4 times, so 
i configured host escalation this way but still sending me host 
notification every 30 minutes !!  have i made something wrong on my 
config?? (still running nagios 1.3 because i found a ready to use 
package for my ubuntu server :s )


define host{
   use generic-host 


   host_name   switch
   alias   Switch
   address x.x.x.x
   parents parentSwitch
   check_command   check-host-alive
   max_check_attempts  10
   notification_interval   60
   notification_period 24x7
   notification_optionsd,r
   }

define hostescalation{
   host_name   switch
   first_notification  2
   last_notification   2
   notification_interval   120
   contact_groups  router-admins
}


THX

Riahi Taieb
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
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.cmd external

2007-01-22 Thread Andy Shellam (Mailing Lists)
Nedim Bicic wrote:
 Hi all, i have nagios 2.4
  
 I need want to change and input settings via the web interface like 
 scheduale downtime etc, which i read that the external command does 
 this i enabled it in nagiod.cfg =1
 but i aslo found out that you need to create a nagios.cmd file and 
 give it directory permission , located in one of the folders that 
 keeps this log
  
 my question is how do i create this file and make it point to external 
 command so when i do isue an extenal command on web interface
  
 does anyone know how this is set ...manual doesnt tell me much from 
 what i already did

You shouldn't create it yourself - Nagios creates it as required.
Just make sure the rw directory has read/write permission to the 
Nagios user and start Nagios.  You should get a nagios.cmd file in there.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] Accessing /dev/ttyUSB0 to send SMS

2007-01-22 Thread Andy Shellam (Mailing Lists)
Herman (ISTD) wrote:
 Dear all,

 I use gnokii to send Nagios notification. Gnokii need to access
 /dev/ttyUSB0 in order to deliver message to Handphone. At present, I
 need to set nagios user to root group in order to accomplish this task.
 If the nagios user is not in root group, it could not access
 /dev/ttyUSB0.

 Previously when nagios user is not in root group, I tried to do some
 workarounds such as : chown nagios /dev/ttyUSB0 but it didn't work. Is
 there's any way to access /dev/ttyUSB0 without setting nagios user as
 root group ?
 Thank you.
   

Will sudo not accomplish this?


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] Completely stumped

2007-01-22 Thread Tobias Klausmann
Hi! 

On Fri, 19 Jan 2007, Andreas Ericsson wrote:
 Was this by any chance coupled with a big fat spike of memory usage
 on the Nagios server? I assume you do monitor memory usage, right?

I've checked it every now and then and found nothing unusal.
While switching around 2.5/2.6 with and without patches, I've
added a graph for memory usage and noticed that there probably is
some sort of memory leak at least in 2.6 (without patch).

Here's the graph so far:

http://eric.schwarzvogel.de/~klausman/nagios-perf-4/memusage-week.png

That inital drop is a restart I did by hand.

I'm currently testing 2.5 sans patches to see if this leak was
introduced with 2.5 - 2.6.

  My C-fu is weak, so I ask those more versed in it to take a look
  at the patch. I'll also hand it to our local C guru, but he's
  quite swamped in work, so that may take some time.
 
 Comments inline.

I'll take a look at them today/tomorrow.

 [...] 
 All in all, I'd advice against using this patch, or at least try without it
 first thing you do in case you run into problems.

Hm. I was afraid you'd say that. You think it's wortwhile trying
to rescue the patch?

Regards,
Tobias

-- 
Never touch a burning system.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] Distributed Monitoring

2007-01-22 Thread Moayad Mohammad
Dears,

I have one nagios server working in my company, and I
need to add another nagios server to monitor another servers in other
subnets,

I don't know if there's any solution to have 2 nagios servers(1 central
nagios) and 1 monitor screen... it's mean the second server will send
all check results to the central nagios.

 

 

Thank you in advance

Moayad Mohammad

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
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] Accessing /dev/ttyUSB0 to send SMS

2007-01-22 Thread Herman (ISTD)
May be sudo could solve this problem but not permanently, since sudo
only add root rights to user for certain period of time.
Is there any way to make devs such as serial line and USB controlled by
certain user ?
Another question, is it common to run nagios as root ?
Thx.

Regards,

Herman

 -Original Message-
 From: Andy Shellam (Mailing Lists) [mailto:andy.shellam-
 [EMAIL PROTECTED]
 Sent: Monday, January 22, 2007 4:12 PM
 To: Herman (ISTD)
 Cc: Nagios Users mailinglist
 Subject: Re: [Nagios-users] Accessing /dev/ttyUSB0 to send SMS
 
 Herman (ISTD) wrote:
  Dear all,
 
  I use gnokii to send Nagios notification. Gnokii need to access
  /dev/ttyUSB0 in order to deliver message to Handphone. At present, I
  need to set nagios user to root group in order to accomplish this
task.
  If the nagios user is not in root group, it could not access
  /dev/ttyUSB0.
 
  Previously when nagios user is not in root group, I tried to do some
  workarounds such as : chown nagios /dev/ttyUSB0 but it didn't work.
Is
  there's any way to access /dev/ttyUSB0 without setting nagios user
as
  root group ?
  Thank you.
 
 
 Will sudo not accomplish this?


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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 Monitoring

2007-01-22 Thread John Longland
Yes you can.
 
Do a google for distributed monitoring.
 
Basically it caomes down to having the one nagios configured as a slave.
It then passes all its info to the main Nagios. The services that are
monitored
on the slave nagios, are configured as passive on the main Nagios., but
the
data is still displayed with all the other active check-data on the same
screen.
 
One thing that I did:
Because the data from the slave gets passed on NOT on request but passively,
if the slave nagios dies, the main will not know about it. So my
slave-nagios is actively checked
with a ping by the main-nagios.
 
John

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Moayad
Mohammad
Sent: 22 January 2007 11:29
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Distributed Monitoring



Dears,

I have one nagios server working in my company, and I need
to add another nagios server to monitor another servers in other subnets,

I don't know if there's any solution to have 2 nagios servers(1 central
nagios) and 1 monitor screen... it's mean the second server will send all
check results to the central nagios.

 

 

Thank you in advance

Moayad Mohammad

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
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] Completely stumped

2007-01-22 Thread Andreas Ericsson
Tobias Klausmann wrote:
 
 On Fri, 19 Jan 2007, Andreas Ericsson wrote:
 All in all, I'd advice against using this patch, or at least try without it
 first thing you do in case you run into problems.
 
 Hm. I was afraid you'd say that. You think it's wortwhile trying
 to rescue the patch?
 

Possibly, if you have some in-house coders that can take a look at it, or if
you're prepared to spend a bit of cash to get it fixed. One cheap way of
getting it done is advertising it as desired functionality at whatever local
university/high school you have and make a competition of it. The first one
to send in a properly working patch that does what you want gets a Nintendo Wii
or something.

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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] Accessing /dev/ttyUSB0 to send SMS

2007-01-22 Thread Arno Lehmann
Hallo,

On 1/22/2007 10:52 AM, Herman (ISTD) wrote:
 May be sudo could solve this problem but not permanently, since sudo
 only add root rights to user for certain period of time.
 Is there any way to make devs such as serial line and USB controlled by
 certain user ?

That's done by another part of the OS, for example udev.

Basically you configure how device links are created for hot-plugged 
devices.

You'll have to tell us the OS and its version at least... or look up the 
documentation for your system, or ask the mailing list / support / frum 
for your OS.

 Another question, is it common to run nagios as root ?

Depends.

I strongly adviso to not run Nagios as root - only processes that really 
need root permissions should be run as such, and Nagios definitely does 
not need root access to your system.

Arno

 Thx.
 
 Regards,
 
 Herman
 
 
-Original Message-
From: Andy Shellam (Mailing Lists) [mailto:andy.shellam-
[EMAIL PROTECTED]
Sent: Monday, January 22, 2007 4:12 PM
To: Herman (ISTD)
Cc: Nagios Users mailinglist
Subject: Re: [Nagios-users] Accessing /dev/ttyUSB0 to send SMS

Herman (ISTD) wrote:

Dear all,

I use gnokii to send Nagios notification. Gnokii need to access
/dev/ttyUSB0 in order to deliver message to Handphone. At present, I
need to set nagios user to root group in order to accomplish this
 
 task.
 
If the nagios user is not in root group, it could not access
/dev/ttyUSB0.

Previously when nagios user is not in root group, I tried to do some
workarounds such as : chown nagios /dev/ttyUSB0 but it didn't work.
 
 Is
 
there's any way to access /dev/ttyUSB0 without setting nagios user
 
 as
 
root group ?
Thank you.


Will sudo not accomplish this?
 
 
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 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

-- 
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] check_rrd plugin

2007-01-22 Thread Steve Tatlow

Hi,

I am trying to monitor thresholds in certain RRDs. I have added my nagios
command group to the cacti rra directory, this has allowed me to run the
./check_rrd.pl plugin as user statlow. However, nagios is reporting no
output in the web interface. I was wondering if anyone could point me in the
right direction?

[EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_rrd.pl -F
/var/lib/cacti/rra/london_3_cpu1_167.rrd -w 20 -c 50 -a AVERAGE -v 3
OK Average cpu5 = 1

Permissions of cacti rra directory:

drwxrwx---  2 root ncmd 4096 2007-01-22 09:56 rra
ncmd group = statlow,nagios,www-data

#'check_rrd' command definition
define command{
   command_namecheck_rrd.pl
   command_line$USER1$/check_rrd.pl -F $ARG1$ -w $ARG2$ -c $ARG3$
-a $ARG4$ -v $ARG5$
   }

-rwxr-xr-x  1 root   root 7758 2007-01-12 14:02 check_rrd.pl

define service{
   use generic-service ; Name of
service template to use
   host_name   London_1
   service_description RRD
   is_volatile 0
   check_period24x7
   max_check_attempts  3
   normal_check_interval   5
   retry_check_interval1
   contact_groups  Administrators
   notification_interval   120
   notification_period none
   notification_optionsc,r
   check_command
check_rrd.pl!/var/lib/cacti/rra/london_3_cpu1_167.rrd!20!50!AVERAGE!3

nagios web:
 
London_1http://t2.toranet.local/nagios/cgi-bin/extinfo.cgi?type=1host=London_1
RRDhttp://t2.toranet.local/nagios/cgi-bin/extinfo.cgi?type=2host=London_1service=RRD
CRITICAL 22-01-2007 12:42:25 0d 0h 44m 8s 3/3 (No output!)

Thanks in advance.
Steve
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
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] Adding Contacts

2007-01-22 Thread Artyom Khmelnitsky
Sorry for posting again but was not able to reply to [EMAIL PROTECTED] via 
email for some reason.

Here's the Contact issue continued. I'm sure that I'm just missing something 
simple, just don't know what.

Thanks for the help Max, I did just that. Added them under contactgroups 
and then also in contacts.cfg seperated by a comma for the contact. For 
some reason, no emails are being sent still.

here's what I have in my contactgroups.cfg

define contactgroup{
contactgroup_name localadmin
alias Site Administrator
members nagios, monitor
}

here's my contact.cfg

define contact{
contact_name monitor
alias AYK monitoring
host_notification_period 24x7
service_notification_period 24x7
service_notification_options w,u,c,r,f
host_notification_options d,u,r,f
service_notification_commands notify-by-email
host_notification_commands host-notify-by-email
email [EMAIL PROTECTED]
}

Any ideas what may be wrong or why they are not being sent? I'll check 
the mail logs, but the email account does work.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] Adding contacts

2007-01-22 Thread Max H.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

nagios wrote:
 Any ideas what may be wrong or why they are not being sent? I'll check
 the mail logs, but the email account does work.

That seems ok to me. Like you mentioned, check your mail logs and see
what's going on. Also, check your nagios log (mine is located
at/var/log/nagios/nagios.log), and see if the actual alerts are being
generated.

Aside from that, your contact setup looks ok to me. Except, where is
your nagios contact definition? You showed the contact monitor, but
not nagios. I'm not sure how Nagios handles non-existent contacts
being specified within the contactgroup. It should error out.

Dumb question, but you have checked your configurations? nagios -v
nagios.cfg from within your configuration directory?

Max



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

iD8DBQFFtNxhHoeeepPau2ERAjkDAJ44nBiz8tJhWgf7CK9fqJBaiKZhfACgwk0w
Lkj7P8y2UPk5Tvg9vmB0pUU=
=XVbW
-END PGP SIGNATURE-

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] Adding contacts

2007-01-22 Thread Max H.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

nagios wrote:
 Yeah, nagios is declared, I just didn't put it up. Alerts are being
 generated as I have it sent to my PDA and those work fine. It compiles
 fine as well. So, will have to check the logs I guess.

Make sure you click Reply All on your e-mail client, otherwise the list
can't benefit from our replies. I get in a hurry and forget to do this
sometimes as well. Some get really mad about it, but just wanted to
remind you. :)

Hmm, yeah then I'd make sure you check the logs and see what's going on
because that seems ok. I don't think it would matter, but make sure you
don't have a space between your members.

For example you have:
membersnagios, monitor

Try without a space:
membersnagios,monitor

I don't know if spaces after the commas matter. The examples show no spaces.

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

iD8DBQFFtN9JHoeeepPau2ERAuQ4AJsFS/4zJf6tizTczU2Uk/Q6CZU7twCgtJ/3
YK83wPdxe/FY/yB5Rk1Y1Rw=
=81AP
-END PGP SIGNATURE-

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Using the Trending Graph

2007-01-22 Thread Alejandro Imass
Hi, new to Nagios so please bear with me.

I queried the list archives and there were some similar threads but
several with no answers so I hope I have better luck.

Nagios Version: 2.5, from distro binary distribution
Platform: Debian Linux Sarge 3.1r4 Stable

Problem:
- If I run the graph with First assumed host state: Unspecified I get
100% Indeterminate

- If I run the graph with First assumed host state: Host Up I get 100%
Up

- If I run the graph with First assumed host state: Host Down I get 100%
Down

- If I run the graph with First assumed host state: Unreachable I get
100% Unreachable

etc..

Obviously something is not working properly. I want a trend of the
different states in time so I can give my ISP some info on where the
problem is and see if we can discount their failures from our bill ;-]

Important note and possible lead to the root cause:

I used the default logging options in my config:
log_file=/var/log/nagios2/nagios.log
log_rotation_method=d
log_archive_path=/var/log/nagios2/archives

Nevertheless, this configuration did NOT store the archives in archives
directory as expected so I changed to:

log_archive_path=/var/log/nagios2/

This did NOT work either because the nagios web interface was expecting
log names like:

nagios-01-19-2007-00.log

instead of the ones nagios has been generating which are of the form:

nagios.log.X.gz

I decompressed all the gz files and create soft links so the web
interface could display past notifications:

poseidon:/var/log/nagios2# ls -l
total 140
lrwxrwxrwx  1 root   adm12 2007-01-22 09:54 nagios-01-19-2007-00.log
- nagios.log.4
lrwxrwxrwx  1 root   adm12 2007-01-22 09:53 nagios-01-20-2007-00.log
- nagios.log.3
lrwxrwxrwx  1 root   adm12 2007-01-22 09:52 nagios-01-21-2007-00.log
- nagios.log.2
lrwxrwxrwx  1 root   adm12 2007-01-22 09:50 nagios-01-22-2007-00.log
- nagios.log.1
-rw-r--r--  1 nagios adm  9265 2007-01-22 11:17 nagios.log
-rw-r--r--  1 nagios adm 52767 2007-01-22 06:25 nagios.log.1
-rw-r--r--  1 nagios adm 45689 2007-01-22 06:25 nagios.log.2
-rw-r--r--  1 nagios adm 10469 2007-01-21 06:25 nagios.log.3
-rw-r--r--  1 nagios adm 10419 2007-01-20 06:25 nagios.log.4


It is my guess that my log problem is related to the trending problem
given some of the threads that I read on the user's mailing list
archives.


Any help greatly appreciated. Perhaps there is some extended
documentation on the trending interface and on the log file
configuration from that included in the package install?

Thanks,
Alejandro Imass
Caracas, Venezuela


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Nagios Modification for No Host Dependency?

2007-01-22 Thread Jay Radcliffe
Hello,

I have been running a fairly large Nagios setup (40,000 service checks
4500 hosts) and I wanted to see if anyone has worked on a certain
problem.

When nagios runs service checks and gets no response from a service
check, it stops working other service checks until it can determine if
that host that had the timeout is up or not. After reading the
archives I know that other people have ran into this situation. The
reason it puts all service checks on hold is due to the feature of
dependencies. If there is a host down then nagios assumes that there
could be other hosts/services dependent on that host, thus it stops
checking services until it can determine if that host is up. Previous
posts have indicated that this is a feature, not a bug. While I agree
that this is usually the case there are some special circumstances.

In my situation there are no host dependencies. I would prefer nagios
to keep running service checks while it runs through the host checks
to see if the service check timeout is due to the host being down. I
wanted to see if there is a patch or source code modification that
would take this action. Obviously I would prefer it to be something
configurable in the nagios.cfg file (ignorehostdependancy=0/1) but
that might be harder then just making a source code tweak. Before I
went digging in the source, I wanted to see if anyone else had tried
this.

Jay Radcliffe

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] Adding contacts

2007-01-22 Thread nagios
Max H. wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 nagios wrote:
   
 Yeah, nagios is declared, I just didn't put it up. Alerts are being
 generated as I have it sent to my PDA and those work fine. It compiles
 fine as well. So, will have to check the logs I guess.
 

 Make sure you click Reply All on your e-mail client, otherwise the list
 can't benefit from our replies. I get in a hurry and forget to do this
 sometimes as well. Some get really mad about it, but just wanted to
 remind you. :)

 Hmm, yeah then I'd make sure you check the logs and see what's going on
 because that seems ok. I don't think it would matter, but make sure you
 don't have a space between your members.

 For example you have:
 membersnagios, monitor

 Try without a space:
 membersnagios,monitor

 I don't know if spaces after the commas matter. The examples show no spaces.

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

 iD8DBQFFtN9JHoeeepPau2ERAuQ4AJsFS/4zJf6tizTczU2Uk/Q6CZU7twCgtJ/3
 YK83wPdxe/FY/yB5Rk1Y1Rw=
 =81AP
 -END PGP SIGNATURE-

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 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

   
Ah yes, I'll try without the space, thanks! And thanks for the heads up 
on the reply-all :)

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] Adding contacts

2007-01-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Artyom Khmelnitsky
 Sent: Sunday, January 21, 2007 5:15 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Adding contacts
 
 Hello,
 
 Is it possible to declare multiple email contacts for a single
contact?
 For instance:
 
 email [EMAIL PROTECTED], [EMAIL PROTECTED]

Yes, if your notification command supports it. For example, /bin/mail,
the standard mail program used in notifications, expects multiple
addresses to use multiple -c or -b args --

 mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr...

In your example, you could pass $CONTACTEMAIL$ to a wrapper script that
split the comma separated addresses, used one as the to-addr and created
appropriate -c args for the rest before calling /bin/mail.

The other recommendation for multiple contacts in a group is usually
easier for most.

--
Marc

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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.cmd external

2007-01-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Nedim Bicic
 Sent: Sunday, January 21, 2007 5:33 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] nagios.cmd external
 
 Hi all, i have nagios 2.4
 
 I need want to change and input settings via the web interface like
 scheduale downtime etc, which i read that the external command does
this i
 enabled it in nagiod.cfg =1
 but i aslo found out that you need to create a nagios.cmd file and
give it
 directory permission , located in one of the folders that keeps this
log
 
 my question is how do i create this file and make it point to external
 command so when i do isue an extenal command on web interface

Please read the documentation for the section titled 'External
Commands'. It answers all your questions.

--
Marc
 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] ANNOUNCE: Nagios Looking Glass 1.0.0 released!

2007-01-22 Thread Andy Shellam (Mailing Lists)
With immediate effect, Nagios Looking Glass v1.0.0 is available for 
download!

The Important Bits
=== = 

The official project site is: http://www.nagioslookingglass.co.uk
Get the latest release at: http://www.nagioslookingglass.co.uk/download.phpx

Available in Windows Zip, and Unix .tar.gz and .tar.bz2 formats.

The files on Nagios Exchange will be upgraded once the documentation has 
been released, so please download from the project site (above.)

To upgrade from a previous version, please see upgrading.txt in the 
distribution.

The documentation is not currently in the distribution but will be added 
in the next few days.  The 1.0.0#PRE administrator manual is still 
available on the NLG project website under Documentation and the 
majority of it still applies for 1.0.0.

More Detail
 ==

NLG is a Web-2.0 browser-based application that works in Firefox, IE, 
Safari and Konqueror.  It shows visitors the status of your network 
without giving them access to the Nagios CGIs, and starts at a network 
summary view with the options to drill down into servers (hosts) and 
their metrics (services).

NLG can easily be customised to match your company's look and feel, and 
is ideal for hosting companies who run Nagios.

For the full changelog for this version, please see the CHANGELOG.TXT 
file in the distribution, or visit:

http://arctic.andyshellam.eu/index.php?cmd=changelogproject=2version=5

Please see the 'Support' section on the NLG project website to see the
best way to report bugs / request new features etc.

Thanks to everyone who's beta-tested over the last few months, to Dave 
Green for the Safari testing, and thanks to Mark Novak for the 
documentation.

To see where NLG is headed in the future, visit:

http://arctic.andyshellam.eu/index.php?cmd=roadmap

Enjoy!!


-- 
Andy Shellam
NetServe Support Team

the Mail Network
an alternative in a standardised world


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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 the Trending Graph

2007-01-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Alejandro Imass
 Sent: Monday, January 22, 2007 10:18 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Using the Trending Graph
 


 This did NOT work either because the nagios web interface was
expecting
 log names like:
 
 nagios-01-19-2007-00.log

Yes, it is.

 instead of the ones nagios has been generating which are of the form:
 
 nagios.log.X.gz

Yes, this is a problem. Nagios is not creating these.
 
 I decompressed all the gz files and create soft links so the web
 interface could display past notifications:
 
 poseidon:/var/log/nagios2# ls -l
 total 140
 lrwxrwxrwx  1 root   adm12 2007-01-22 09:54
nagios-01-19-2007-00.log
 - nagios.log.4
 lrwxrwxrwx  1 root   adm12 2007-01-22 09:53
nagios-01-20-2007-00.log
 - nagios.log.3
 lrwxrwxrwx  1 root   adm12 2007-01-22 09:52
nagios-01-21-2007-00.log
 - nagios.log.2
 lrwxrwxrwx  1 root   adm12 2007-01-22 09:50
nagios-01-22-2007-00.log
 - nagios.log.1
 -rw-r--r--  1 nagios adm  9265 2007-01-22 11:17 nagios.log
 -rw-r--r--  1 nagios adm 52767 2007-01-22 06:25 nagios.log.1
 -rw-r--r--  1 nagios adm 45689 2007-01-22 06:25 nagios.log.2
 -rw-r--r--  1 nagios adm 10469 2007-01-21 06:25 nagios.log.3
 -rw-r--r--  1 nagios adm 10419 2007-01-20 06:25 nagios.log.4

Nagios is not creating the .tar.gz files, nor is it rotating the logs as
above. You need to figure out what is and stop it. My guess would be
logrotate. Nagios must have the uncompressed files in the archive
directory with the proper names (nagios handles this) for historical
reporting.

 It is my guess that my log problem is related to the trending problem
 given some of the threads that I read on the user's mailing list
 archives.

Yes, you're correct.

--
Marc

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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 Modification for No Host Dependency?

2007-01-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Jay Radcliffe
 Sent: Monday, January 22, 2007 10:09 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Nagios Modification for No Host Dependency?
 
 Hello,


 In my situation there are no host dependencies. I would prefer nagios
 to keep running service checks while it runs through the host checks
 to see if the service check timeout is due to the host being down. I
 wanted to see if there is a patch or source code modification that
 would take this action. Obviously I would prefer it to be something

This will be supported under nagios-3. This is a significant change and
is unlikely to be backported. See the PDF at
http://www.netways.de/de/nagios_konferenz/archiv_2006/programm/nagios_3
0_and_beyond/ for more information.

--
Marc

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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.cmd external

2007-01-22 Thread Nedim Bicic

ok this is how far i got with the documentation but same error keeps coming
up when i try to put in external command ex: comment in host:

Error: Could not open command file '/var/log/nagios/rw/nagios.cmd' for
update!

ok and here is what i have for my permission set since thats indicating to
be the problem

* ls -al*
total 612
drwxr-xr-x  4 nagios nagios 4096 Jan 22 12:20 .
drwxr-xr-x  6 root   root   4096 Jan 21 04:02 ..
drwxr-xr-x  2 nagios nagios 4096 Jan 22 00:00 archives
-rw-rw-r--  1 nagios nagios  238 Jan 21 09:18 comments.dat
-rw---  1 nagios nagios16161 Jan  2 09:45 dead.letter
-rw-rw-r--  1 nagios nagios  239 Nov  1 19:59 downtime.dat
-rw-rw-r--  1 nagios nagios24965 Jan 22 12:12 nagios.log
-rw---  1 nagios nagios18260 Jan  2 13:34 nagios.tmpXc4VgH
-rw-r--r--  1 nagios nagios   146210 Jan 22 11:53 objects.cache
-rw---  1 nagios nagios   180872 Jan 22 11:53 retention.dat
drwxrwsr-x  2 nagios nagiocmd   4096 Jan 22 11:53 rw
-rw-rw-r--  1 nagios nagios   173636 Jan 22 12:20 status.dat
* cd rw*
* ls*
nagios.cmd
* ls -al*
total 16
drwxrwsr-x  2 nagios nagiocmd 4096 Jan 22 11:53 .
drwxr-xr-x  4 nagios nagios   4096 Jan 22 12:21 ..
prw-rw  1 nagios nagiocmd0 Jan 22 11:53 nagios.cmd


everything is how it suppose to be as shown in the manual

need help nagios.cmd file is there just can not edit anything and i have
external_command enables and interval check set to -1


thanks





















On 1/22/07, Marc Powell [EMAIL PROTECTED] wrote:




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Nedim Bicic
 Sent: Sunday, January 21, 2007 5:33 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] nagios.cmd external

 Hi all, i have nagios 2.4

 I need want to change and input settings via the web interface like
 scheduale downtime etc, which i read that the external command does
this i
 enabled it in nagiod.cfg =1
 but i aslo found out that you need to create a nagios.cmd file and
give it
 directory permission , located in one of the folders that keeps this
log

 my question is how do i create this file and make it point to external
 command so when i do isue an extenal command on web interface

Please read the documentation for the section titled 'External
Commands'. It answers all your questions.

--
Marc


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
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.cmd external

2007-01-22 Thread Israel Brewster
On Jan 22, 2007, at 8:30 AM, Nedim Bicic wrote:

 ok and here is what i have for my permission set since thats  
 indicating to be the problem

  ls -al
 total 612
 drwxr-xr-x  4 nagios nagios 4096 Jan 22 12:20 .
 drwxr-xr-x  6 root   root   4096 Jan 21 04:02 ..
 drwxr-xr-x  2 nagios nagios 4096 Jan 22 00:00 archives
 -rw-rw-r--  1 nagios nagios  238 Jan 21 09:18 comments.dat
 -rw---  1 nagios nagios16161 Jan  2 09:45 dead.letter
 -rw-rw-r--  1 nagios nagios  239 Nov  1 19:59 downtime.dat
 -rw-rw-r--  1 nagios nagios24965 Jan 22 12:12 nagios.log
 -rw---  1 nagios nagios18260 Jan  2 13:34 nagios.tmpXc4VgH
 -rw-r--r--  1 nagios nagios   146210 Jan 22 11:53 objects.cache
 -rw---  1 nagios nagios   180872 Jan 22 11:53 retention.dat
 drwxrwsr-x  2 nagios nagiocmd   4096 Jan 22 11:53 rw
 -rw-rw-r--  1 nagios nagios   173636 Jan 22 12:20 status.dat
  cd rw
  ls
 nagios.cmd
  ls -al
 total 16
 drwxrwsr-x  2 nagios nagiocmd 4096 Jan 22 11:53 .
 drwxr-xr-x  4 nagios nagios   4096 Jan 22 12:21 ..
 prw-rw  1 nagios nagiocmd0 Jan 22 11:53 nagios.cmd


 everything is how it suppose to be as shown in the manual

 need help nagios.cmd file is there just can not edit anything and i  
 have external_command enables and interval check set to -1


 thanks

I'm coming into this discussion late, and haven't read all the back  
messages, so I apologize if this has already been asked, but is the  
user your webserver runs under in the nagiocmd group?

  ---
Israel Brewster
Computer Support Technician
Frontier Flying Service INC.
5245 Airport Industrial Rd
Fairbanks, AK 99709
---



















 On 1/22/07, Marc Powell [EMAIL PROTECTED] wrote:

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:nagios- 
 users-
  [EMAIL PROTECTED] On Behalf Of Nedim Bicic
  Sent: Sunday, January 21, 2007 5:33 PM
  To: nagios-users@lists.sourceforge.net
  Subject: [Nagios-users] nagios.cmd external
 
  Hi all, i have nagios 2.4
 
  I need want to change and input settings via the web interface like
  scheduale downtime etc, which i read that the external command does
 this i
  enabled it in nagiod.cfg =1
  but i aslo found out that you need to create a nagios.cmd file and
 give it
  directory permission , located in one of the folders that keeps this
 log
 
  my question is how do i create this file and make it point to  
 external
  command so when i do isue an extenal command on web interface

 Please read the documentation for the section titled 'External
 Commands'. It answers all your questions.

 --
 Marc


 -- 
 ---
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to  
 share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php? 
 page=join.phpp=sourceforgeCID=DEVDEV
 ___
 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

 -- 
 ---
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to  
 share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php? 
 page=join.phpp=sourceforgeCID=DEVDEV 
 ___
 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


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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.cmd external

2007-01-22 Thread Nedim Bicic

yeah i think thats the problem i am loging in as nagiosadmin but from what i
copied and pasted from documentation in nagios created user nobody and
nagios '

But when i log into nagios i am logging in as nagiosadmin not nobody or
nagios i tried adding nagiosadmin with this command:

*/usr/sbin/usermod -G nagiocmd nagiosadmin*
usermod: user nagiosadmin does not exist

keeps giving me this error
but i think difinitly this might be casuing the error can you show me what i
can do to add the user to this group or check weather it has been added??

thanks




On 1/22/07, Israel Brewster [EMAIL PROTECTED] wrote:


On Jan 22, 2007, at 8:30 AM, Nedim Bicic wrote:

 ok and here is what i have for my permission set since thats
 indicating to be the problem

  ls -al
 total 612
 drwxr-xr-x  4 nagios nagios 4096 Jan 22 12:20 .
 drwxr-xr-x  6 root   root   4096 Jan 21 04:02 ..
 drwxr-xr-x  2 nagios nagios 4096 Jan 22 00:00 archives
 -rw-rw-r--  1 nagios nagios  238 Jan 21 09:18 comments.dat
 -rw---  1 nagios nagios16161 Jan  2 09:45 dead.letter
 -rw-rw-r--  1 nagios nagios  239 Nov  1 19:59 downtime.dat
 -rw-rw-r--  1 nagios nagios24965 Jan 22 12:12 nagios.log
 -rw---  1 nagios nagios18260 Jan  2 13:34 nagios.tmpXc4VgH
 -rw-r--r--  1 nagios nagios   146210 Jan 22 11:53 objects.cache
 -rw---  1 nagios nagios   180872 Jan 22 11:53 retention.dat
 drwxrwsr-x  2 nagios nagiocmd   4096 Jan 22 11:53 rw
 -rw-rw-r--  1 nagios nagios   173636 Jan 22 12:20 status.dat
  cd rw
  ls
 nagios.cmd
  ls -al
 total 16
 drwxrwsr-x  2 nagios nagiocmd 4096 Jan 22 11:53 .
 drwxr-xr-x  4 nagios nagios   4096 Jan 22 12:21 ..
 prw-rw  1 nagios nagiocmd0 Jan 22 11:53 nagios.cmd


 everything is how it suppose to be as shown in the manual

 need help nagios.cmd file is there just can not edit anything and i
 have external_command enables and interval check set to -1


 thanks

I'm coming into this discussion late, and haven't read all the back
messages, so I apologize if this has already been asked, but is the
user your webserver runs under in the nagiocmd group?

---
Israel Brewster
Computer Support Technician
Frontier Flying Service INC.
5245 Airport Industrial Rd
Fairbanks, AK 99709
---



















 On 1/22/07, Marc Powell [EMAIL PROTECTED] wrote:

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:nagios-
 users-
  [EMAIL PROTECTED] On Behalf Of Nedim Bicic
  Sent: Sunday, January 21, 2007 5:33 PM
  To: nagios-users@lists.sourceforge.net
  Subject: [Nagios-users] nagios.cmd external
 
  Hi all, i have nagios 2.4
 
  I need want to change and input settings via the web interface like
  scheduale downtime etc, which i read that the external command does
 this i
  enabled it in nagiod.cfg =1
  but i aslo found out that you need to create a nagios.cmd file and
 give it
  directory permission , located in one of the folders that keeps this
 log
 
  my question is how do i create this file and make it point to
 external
  command so when i do isue an extenal command on web interface

 Please read the documentation for the section titled 'External
 Commands'. It answers all your questions.

 --
 Marc


 --
 ---
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
 share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?
 page=join.phpp=sourceforgeCID=DEVDEV
 ___
 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

 --
 ---
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
 share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?
 page=join.phpp=sourceforgeCID=DEVDEV
 ___
 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


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash

Re: [Nagios-users] nagios

2007-01-22 Thread Brian Loe
I'm using the following check command (in checkcommands.cfg):

 # 'check_dns' command definition
 define command{
 command_namecheck_dns1
 command_line$USER1$/check_dns -H www.our-web-server.com
-s $HOSTADDRESS$ -a our web server's IP address

define command{
 command_namecheck_dns2
 command_line$USER1$/check_dns -H www.our-web-server.com
-s $HOSTADDRESS$ -a our web server's IP address

Shouldn't that work to verify OUR DNS server is up and replying? Do I
need both of them or shouldn't just the one work?

Also, when looking at Service or Host Alert History I see a bunch of this:

Program End[01-22-2007 11:35:01] Lockfile
'/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing out...
Program Start[01-22-2007 11:35:01] Nagios 2.4 starting... (PID=3720)
Program End[01-22-2007 11:25:01] Lockfile
'/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing out...
Program Start[01-22-2007 11:25:01] Nagios 2.4 starting... (PID=1772)
Program End[01-22-2007 11:15:01] Lockfile
'/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing out...
Program Start[01-22-2007 11:15:01] Nagios 2.4 starting... (PID=32247)
Program End[01-22-2007 11:05:02] Lockfile
'/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing out...
Program Start[01-22-2007 11:05:02] Nagios 2.4 starting... (PID=30324)

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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.cmd external

2007-01-22 Thread Israel Brewster
On Jan 22, 2007, at 9:05 AM, Nedim Bicic wrote:

 yeah i think thats the problem i am loging in as nagiosadmin but  
 from what i copied and pasted from documentation in nagios created  
 user nobody and nagios '

 But when i log into nagios i am logging in as nagiosadmin not  
 nobody or nagios i tried adding nagiosadmin with this command:

 /usr/sbin/usermod -G nagiocmd nagiosadmin
 usermod: user nagiosadmin does not exist

 keeps giving me this error
 but i think difinitly this might be casuing the error can you show  
 me what i can do to add the user to this group or check weather it  
 has been added??

Yeah. The key here is that you need the user your webserver RUNS as,  
NOT the user you log into your webpages as. You can find this by  
looking at your httpd.conf file, the User directive. Usually it is  
either apache or www, but this can vary. once you have found that,  
use the command you tried above with that user to add it to the  
nagiocmd group.


 thanks




 On 1/22/07, Israel Brewster [EMAIL PROTECTED] wrote: On  
 Jan 22, 2007, at 8:30 AM, Nedim Bicic wrote:

  ok and here is what i have for my permission set since thats
  indicating to be the problem
 
   ls -al
  total 612
  drwxr-xr-x  4 nagios nagios 4096 Jan 22 12:20 .
  drwxr-xr-x  6 root   root   4096 Jan 21 04:02 ..
  drwxr-xr-x  2 nagios nagios 4096 Jan 22 00:00 archives
  -rw-rw-r--  1 nagios nagios  238 Jan 21 09:18 comments.dat
  -rw---  1 nagios nagios16161 Jan  2 09:45 dead.letter
  -rw-rw-r--  1 nagios nagios  239 Nov  1 19:59 downtime.dat
  -rw-rw-r--  1 nagios nagios24965 Jan 22 12:12 nagios.log
  -rw---  1 nagios nagios18260 Jan  2 13:34 nagios.tmpXc4VgH
  -rw-r--r--  1 nagios nagios   146210 Jan 22 11:53 objects.cache
  -rw---  1 nagios nagios   180872 Jan 22 11:53 retention.dat
  drwxrwsr-x  2 nagios nagiocmd   4096 Jan 22 11:53 rw
  -rw-rw-r--  1 nagios nagios   173636 Jan 22 12:20 status.dat
   cd rw
   ls
  nagios.cmd
   ls -al
  total 16
  drwxrwsr-x  2 nagios nagiocmd 4096 Jan 22 11:53 .
  drwxr-xr-x  4 nagios nagios   4096 Jan 22 12:21 ..
  prw-rw  1 nagios nagiocmd0 Jan 22 11:53 nagios.cmd
 
 
  everything is how it suppose to be as shown in the manual
 
  need help nagios.cmd file is there just can not edit anything and i
  have external_command enables and interval check set to -1
 
 
  thanks

 I'm coming into this discussion late, and haven't read all the back
 messages, so I apologize if this has already been asked, but is the
 user your webserver runs under in the nagiocmd group?

 ---
 Israel Brewster
 Computer Support Technician
 Frontier Flying Service INC.
 5245 Airport Industrial Rd
 Fairbanks, AK 99709
 ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  On 1/22/07, Marc Powell [EMAIL PROTECTED] wrote:
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:nagios-
  users-
   [EMAIL PROTECTED] On Behalf Of Nedim Bicic
   Sent: Sunday, January 21, 2007 5:33 PM
   To: nagios-users@lists.sourceforge.net
   Subject: [Nagios-users] nagios.cmd external
  
   Hi all, i have nagios 2.4
  
   I need want to change and input settings via the web interface  
 like
   scheduale downtime etc, which i read that the external command  
 does
  this i
   enabled it in nagiod.cfg =1
   but i aslo found out that you need to create a nagios.cmd file and
  give it
   directory permission , located in one of the folders that keeps  
 this
  log
  
   my question is how do i create this file and make it point to
  external
   command so when i do isue an extenal command on web interface
 
  Please read the documentation for the section titled 'External
  Commands'. It answers all your questions.
 
  --
  Marc
 
 
   
 --
  ---
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys - and earn  
 cash
  http://www.techsay.com/default.php?
  page=join.phpp=sourceforgeCID=DEVDEV
  ___
  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
 
   
 --
  ---
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
  share your
  opinions on IT  business topics through brief surveys - and earn  
 cash
  http://www.techsay.com/default.php?
   
 page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Nagios-users mailing list
  

Re: [Nagios-users] nagios.cmd external

2007-01-22 Thread Andy Shellam (Mailing Lists)
You may be connecting to Nagios using nagiosadmin, but that is a user 
under your webserver, not an OS user.
If your Apache runs under the user nobody, that is the user you need 
to add to the nagioscmd group.


Nedim Bicic wrote:
 yeah i think thats the problem i am loging in as nagiosadmin but from 
 what i copied and pasted from documentation in nagios created user 
 nobody and nagios '
  
 But when i log into nagios i am logging in as nagiosadmin not nobody 
 or nagios i tried adding nagiosadmin with this command:
  
 */usr/sbin/usermod -G nagiocmd nagiosadmin*
 usermod: user nagiosadmin does not exist
  
 keeps giving me this error
 but i think difinitly this might be casuing the error can you show me 
 what i can do to add the user to this group or check weather it has 
 been added??
  
 thanks
  

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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.cmd external

2007-01-22 Thread Hugo van der Kooij
On Mon, 22 Jan 2007, Andy Shellam (Mailing Lists) wrote:

 You may be connecting to Nagios using nagiosadmin, but that is a user
 under your webserver, not an OS user.
 If your Apache runs under the user nobody, that is the user you need
 to add to the nagioscmd group.

A better suggestion is in fact to run apache as it's own user. Letting 
nobody run all your daemons was a poor security concept and has been 
abonded for years on almost any system I know of.

It's like break one and get the rest of them for free.

Hugo.

-- 
[EMAIL PROTECTED]   http://hvdkooij.xs4all.nl/
This message is using 100% recycled electrons.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] Remote Linux Client Appears Down But Services Are Monitored

2007-01-22 Thread Kaplan, Andrew H.
Hi there --

I have Nagios 2.6 with plugins 1.4.5, and NRPE 2.6 installed on a server that is
running Fedora Core 5. The remote client in question is running NRPE 2.6 with
plugins 1.4.5 on a Fedora Core 2 operating system. NRPE is configured to run
with the -n option on the server as well as the client. NRPE is configured to
run on the client via the /etc/rc.local file with the following syntax:

/usr/local/nrpe/bin/nrpe -n -c
/usr/local/nrpe/etc/nrpe.cfg -d

The remote client appears in the web interface as down, but its monitored
services appear as OK. I checked the remote client to make sure the services in
question
were those that were on the client, and everything appears to match up. I ran
the plugins on the client from the server using check_nrpe from the command
line, and the output from the commands came back without a problem. I also ran
the plugins directly on the client without any problem. 

The web interface, for some reason, is seeing the client as down even though
from the command line it appears the client is fine and easily monitored. What
has caused this problem, and how can I fix it? Thanks. 






THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY 
FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL 
AND/OR PRIVILEGED MATERIAL.  ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER 
USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR 
ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED.  IF YOU RECEIVED THIS 
INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND 
PROPERLY DISPOSE OF THIS INFORMATION.



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] consistent service logging across hosts

2007-01-22 Thread Mark
Wait, that would not work.  I have a standby nagios server accepting
passive check info for all the services that the active nagios server
is monitoring.  They are both writing to logs at the same time.

I think I'd need something where I could send the availability logs to
a third party, so to speak.

On 1/22/07, Mark [EMAIL PROTECTED] wrote:
 so NFS mount my log dir?  It would have to be from a third server I suppose.

 On 1/19/07, Marc Powell [EMAIL PROTECTED] wrote:
 
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:nagios-users-
   [EMAIL PROTECTED] On Behalf Of Mark
   Sent: Thursday, January 18, 2007 10:19 PM
   To: nagios-users@lists.sourceforge.net
   Subject: [Nagios-users] consistent service logging across hosts
  
   I have a service that can fail over between hosts that each have their
   own IP (if they failed over IP's this would be easy).  It is very hard
   to get availability numbers for this service because of this.  Are
   there any solutions to this?  Another catch is that the service
 
  Check_cluster2 + a shared nagios log dir comes to mind.
 
  --
  Marc
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT  business topics through brief surveys - and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  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
 


 --
 Mark
 Blessed is he who finds happiness in his own foolishness, for he will
 always be happy.



-- 
Mark
Blessed is he who finds happiness in his own foolishness, for he will
always be happy.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Nagios CGI authentication woes.

2007-01-22 Thread Peter L. Berghold
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi folks,

Just put up a new installation of Nagios (version 2.6) and it's not like
I haven't done this before so there is obviously something I'm overlooking.

When I set up authentication I did the same things I've done before (I
think) but it ain't working.  When I try to log in I see in the Apache
error logs:

[Mon Jan 22 16:18:26 2007] [error] [client 68.37.227.52] access to
/nagios/cgi-bin/status.cgi failed, reason: verification of user id
'peter' not configured, referer: http://monitor.berghold.net/side.html

and in the cgi.cfg file I've done this:

authorized_for_system_information=*
authorized_for_configuration_information=*
authorized_for_system_commands=*
authorized_for_all_services=*
authorized_for_all_hosts=*
authorized_for_all_service_commands=*
authorized_for_all_host_commands=*

which is not quite where I want to be but I've gotten there through
desperation at this point.

The cgi-bin directory (/local/nagios/sbin in my case) has an .htaccess
file that looks like this:

- -rw-r--r-- 1 apache root  104 Jan 22 15:58 .htaccess

permissions wise and has the following contents:

AuthName Nagios Access
AuthType Basic
AuthUserFile /local/nagios/etc/nagios.users
require valid-user

The nagios.users file has the requisite userids in it with passwords
generated by htpasswd.

I'm baffled at this point. From my experience this should work but it
isn't.  Is there something I'm overlooking?

- --

Peter L. Berghold [EMAIL PROTECTED]
Those who fail to learn from history are condemned to repeat it.
AIM: redcowdawgYahoo IM: blue_cowdawg  ICQ: 11455958
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org

iD8DBQFFtSvTUM9/01RIhaARAngyAKCqy74Fr08zqftXz8HZ/ikoz3SdqwCeL8IE
cDDSPoFwKyjD2Mb6EWYsvoQ=
=EUNJ
-END PGP SIGNATURE-
begin:vcard
fn:Peter  L. Berghold
n:Berghold;Peter 
org:IBM;GSD
email;internet:[EMAIL PROTECTED]
title:Unix Specialist
tel;work:(732) 918-1487
tel;fax:(732) 982-1632
x-mozilla-html:FALSE
url:http://www.berghold.net
version:2.1
end:vcard

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
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] Remote Linux Client Appears Down But Services AreMonitored

2007-01-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Kaplan, Andrew H.
 Sent: Monday, January 22, 2007 2:23 PM
 To: Nagios-Users (E-mail)
 Subject: [Nagios-users] Remote Linux Client Appears Down But Services
 AreMonitored
 
 Hi there --
 
 I have Nagios 2.6 with plugins 1.4.5, and NRPE 2.6 installed on a
server
 that is
 running Fedora Core 5. The remote client in question is running NRPE
2.6
 with
 plugins 1.4.5 on a Fedora Core 2 operating system. NRPE is configured
to
 run
 with the -n option on the server as well as the client. NRPE is
configured
 to
 run on the client via the /etc/rc.local file with the following
syntax:
 
   /usr/local/nrpe/bin/nrpe
-n -c
 /usr/local/nrpe/etc/nrpe.cfg -d
 
 The remote client appears in the web interface as down, but its
monitored
 services appear as OK. I checked the remote client to make sure the

I am interpreting this to mean that the Host status for the remote host
is CRITICAL but the services on the host, checked by NRPE, show as OK.
If that is the case then the check_command in the host{} definition for
the client does not accurately determine the status of the host. What is
that check_command and does it work if you run it as the nagios user
from your nagios machine?

--
Marc

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] definition of notification

2007-01-22 Thread Daniel
Hi all,

is there a way to change the email template?
I wanne see in the subject following info:

Address: 127.0.0.1

in the normal notification emails is iz displayed as text
and i cant find the email-template für $ADDRESS$ bzw it wont work..


-- 
greetz daniel


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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 CGI authentication woes.

2007-01-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Peter L. Berghold
 Sent: Monday, January 22, 2007 3:26 PM
 To: nagios Users Mailing List
 Subject: [Nagios-users] Nagios CGI authentication woes.
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi folks,
 
 Just put up a new installation of Nagios (version 2.6) and it's not
like
 I haven't done this before so there is obviously something I'm
 overlooking.
 
 When I set up authentication I did the same things I've done before (I
 think) but it ain't working.  When I try to log in I see in the Apache
 error logs:
 
 [Mon Jan 22 16:18:26 2007] [error] [client 68.37.227.52] access to
 /nagios/cgi-bin/status.cgi failed, reason: verification of user id
 'peter' not configured, referer: http://monitor.berghold.net/side.html
 

[chop]

 The cgi-bin directory (/local/nagios/sbin in my case) has an .htaccess
 file that looks like this:
 
 - -rw-r--r-- 1 apache root  104 Jan 22 15:58 .htaccess
 
 permissions wise and has the following contents:
 
 AuthName Nagios Access
 AuthType Basic
 AuthUserFile /local/nagios/etc/nagios.users
 require valid-user

Is that *really* the path to nagios.users? I would expect that to be
/usr/local/nagios/etc/nagios.users. I place my bets here ;)

 
 The nagios.users file has the requisite userids in it with passwords
 generated by htpasswd.
 
 I'm baffled at this point. From my experience this should work but it
 isn't.  Is there something I'm overlooking?

Are you using Apache-2.x? I googled for the error and that would appear
to be possible. The auth configuration changed in 2.x from 1.3 --

http://httpd.apache.org/docs/2.2/howto/auth.html

The sample .htaccess file on that page implies that you need something
like --

AuthType Basic
AuthName Restricted Files
AuthBasicProvider file
AuthUserFile /local/nagios/etc/nagios.users
Require valid-user

Hope one of those two helps.

--
Marc

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] definition of notification

2007-01-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Daniel
 Sent: Monday, January 22, 2007 3:35 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] definition of notification
 
 Hi all,
 
 is there a way to change the email template?

Yes, just take a look at your notification command definitions. If it's using 
/bin/mail, the subject is specified after the -s switch.

 I wanne see in the subject following info:
 
 Address: 127.0.0.1
 
 in the normal notification emails is iz displayed as text
 and i cant find the email-template für $ADDRESS$ bzw it wont work..

All available macros are listed at 
http://nagios.sourceforge.net/docs/2_0/macros.html

--
Marc

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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 CGI authentication woes.

2007-01-22 Thread Jay Chandler
Marc Powell wrote:
   
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Peter L. Berghold
 Sent: Monday, January 22, 2007 3:26 PM
 To: nagios Users Mailing List
 Subject: [Nagios-users] Nagios CGI authentication woes.

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi folks,

 Just put up a new installation of Nagios (version 2.6) and it's not
 
 like
   
 I haven't done this before so there is obviously something I'm
 overlooking.

 When I set up authentication I did the same things I've done before (I
 think) but it ain't working.  When I try to log in I see in the Apache
 error logs:

 [Mon Jan 22 16:18:26 2007] [error] [client 68.37.227.52] access to
 /nagios/cgi-bin/status.cgi failed, reason: verification of user id
 'peter' not configured, referer: http://monitor.berghold.net/side.html

 

 [chop]

   
 The cgi-bin directory (/local/nagios/sbin in my case) has an .htaccess
 file that looks like this:

 - -rw-r--r-- 1 apache root  104 Jan 22 15:58 .htaccess

 permissions wise and has the following contents:

 AuthName Nagios Access
 AuthType Basic
 AuthUserFile /local/nagios/etc/nagios.users
 require valid-user
 

 Is that *really* the path to nagios.users? I would expect that to be
 /usr/local/nagios/etc/nagios.users. I place my bets here ;)
I'd go one further and bet it's /usr/local/nagios/etc/nagios/users.

-- 
Jay Chandler
Network Administrator, Chapman University
714.628.7249 / [EMAIL PROTECTED]
Today's Excuse: excess surge protection 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] Remote Linux Client Appears Down But ServicesAreMonitored

2007-01-22 Thread Kaplan, Andrew H.
 I am interpreting this to mean that the Host status for the remote host is 
CRITICAL but the services on the host, checked by NRPE, show as OK.
 If that is the case then the check_command in the host{} definition for 
 the client does not accurately determine the status of the host. What is
 that check_command and does it work if you run it as the nagios user from 
your nagios machine?

If I understand you correctly, you are referring to the check-host-alive command
in the hosts.cfg file. I'm sorry if I sound like and idiot, but there is no
check_host_alive plugin in the libexec directory. What command should I run in
this case? 

I did run the plugins on the server and client as the nagios user, and both 
came back without errors.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc Powell
Sent: Monday, January 22, 2007 4:35 PM
To: Nagios-Users (E-mail)
Subject: Re: [Nagios-users] Remote Linux Client Appears Down But
ServicesAreMonitored



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Kaplan, Andrew H.
 Sent: Monday, January 22, 2007 2:23 PM
 To: Nagios-Users (E-mail)
 Subject: [Nagios-users] Remote Linux Client Appears Down But Services
 AreMonitored
 
 Hi there --
 
 I have Nagios 2.6 with plugins 1.4.5, and NRPE 2.6 installed on a
server
 that is
 running Fedora Core 5. The remote client in question is running NRPE
2.6
 with
 plugins 1.4.5 on a Fedora Core 2 operating system. NRPE is configured
to
 run
 with the -n option on the server as well as the client. NRPE is
configured
 to
 run on the client via the /etc/rc.local file with the following
syntax:
 
   /usr/local/nrpe/bin/nrpe
-n -c
 /usr/local/nrpe/etc/nrpe.cfg -d
 
 The remote client appears in the web interface as down, but its
monitored
 services appear as OK. I checked the remote client to make sure the

I am interpreting this to mean that the Host status for the remote host
is CRITICAL but the services on the host, checked by NRPE, show as OK.
If that is the case then the check_command in the host{} definition for
the client does not accurately determine the status of the host. What is
that check_command and does it work if you run it as the nagios user
from your nagios machine?

--
Marc

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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




THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY 
FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL 
AND/OR PRIVILEGED MATERIAL.  ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER 
USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR 
ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED.  IF YOU RECEIVED THIS 
INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND 
PROPERLY DISPOSE OF THIS INFORMATION.



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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.cmd external

2007-01-22 Thread Nedim Bicic

thanks for the advice guys it was apache that needed to be added to the
group
it works now i can finnaly add comments and do external commands



thanks





On 1/22/07, Hugo van der Kooij [EMAIL PROTECTED] wrote:


On Mon, 22 Jan 2007, Andy Shellam (Mailing Lists) wrote:

 You may be connecting to Nagios using nagiosadmin, but that is a user
 under your webserver, not an OS user.
 If your Apache runs under the user nobody, that is the user you need
 to add to the nagioscmd group.

A better suggestion is in fact to run apache as it's own user. Letting
nobody run all your daemons was a poor security concept and has been
abonded for years on almost any system I know of.

It's like break one and get the rest of them for free.

Hugo.

--
   [EMAIL PROTECTED]http://hvdkooij.xs4all.nl/
   This message is using 100% recycled electrons.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
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] Remote Linux Client Appears Down But ServicesAre Monitored

2007-01-22 Thread Marcel Mitsuto Fucatu Sugano
Is execute_host_checks disabled?


On Mon, 2007-01-22 at 15:23 -0500, Kaplan, Andrew H. wrote:
 Hi there --
 
 I have Nagios 2.6 with plugins 1.4.5, and NRPE 2.6 installed on a server that 
 is
 running Fedora Core 5. The remote client in question is running NRPE 2.6 with
 plugins 1.4.5 on a Fedora Core 2 operating system. NRPE is configured to run
 with the -n option on the server as well as the client. NRPE is configured to
 run on the client via the /etc/rc.local file with the following syntax:
 
   /usr/local/nrpe/bin/nrpe -n -c
 /usr/local/nrpe/etc/nrpe.cfg -d
 
 The remote client appears in the web interface as down, but its monitored
 services appear as OK. I checked the remote client to make sure the services 
 in
 question
 were those that were on the client, and everything appears to match up. I ran
 the plugins on the client from the server using check_nrpe from the command
 line, and the output from the commands came back without a problem. I also ran
 the plugins directly on the client without any problem. 
 
 The web interface, for some reason, is seeing the client as down even though
 from the command line it appears the client is fine and easily monitored. What
 has caused this problem, and how can I fix it? Thanks. 
 
 
 
 
 
 
 THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY 
 FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL 
 AND/OR PRIVILEGED MATERIAL.  ANY REVIEW, RETRANSMISSION, DISSEMINATION OR 
 OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY 
 PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED.  IF YOU 
 RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY 
 OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION.
 
 
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 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


AVISO: A informação contida neste e-mail, bem como em qualquer de seus anexos, 
é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) acima 
referido(s), podendo conter informações sigilosas e/ou legalmente protegidas. 
Caso você não seja o destinatário desta mensagem, informamos que qualquer 
divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de seus anexos 
é absolutamente proibida. Solicitamos que o remetente seja comunicado 
imediatamente, respondendo esta mensagem, e que o original desta mensagem e de 
seus anexos, bem como toda e qualquer cópia e/ou impressão realizada a partir 
destes, sejam permanentemente apagados e/ou destruídos. Informações adicionais 
sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/.

NOTICE: The information contained in this e-mail and any attachments thereto is 
CONFIDENTIAL and is intended only for use by the recipient named herein and may 
contain legally privileged and/or secret information. If you are not the 
e-mail´s intended recipient, you are hereby notified that any dissemination, 
distribution or copy of this e-mail, and/or any attachments thereto, is 
strictly prohibited. Please immediately notify the sender replying to the above 
mentioned e-mail address, and permanently delete and/or destroy the original 
and any copy of this e-mail and/or its attachments, as well as any printout 
thereof. Additional information about our company may be obtained through the 
site http://www.uol.com.br/ir/.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] consistent service logging across hosts

2007-01-22 Thread Marcel Mitsuto Fucatu Sugano
On Mon, 2007-01-22 at 13:24 -0700, Mark wrote:
 Wait, that would not work.  I have a standby nagios server accepting
 passive check info for all the services that the active nagios server
 is monitoring.  They are both writing to logs at the same time.

If your active servers are sending check results passively to the
standby nagios server, so the one log that matters is the one that the
passive standby nagios server logs, because, if you ever needs to grow
your distributed nagios active pool, you should just point the ocsp
command to the standby nagios server for it to log all your active
checks passively.

We have 11 distributed active nagios servers sending (but not logging)
check results to one central nagios that logs everything and keeps all
the services aggregated within the same Web-GUI for the NOC people to
ticketing who they might need to. Notifications and logging are handled
by the central server.

 
 I think I'd need something where I could send the availability logs to
 a third party, so to speak.
 
 On 1/22/07, Mark [EMAIL PROTECTED] wrote:
  so NFS mount my log dir?  It would have to be from a third server I suppose.
 
  On 1/19/07, Marc Powell [EMAIL PROTECTED] wrote:
  
  
-Original Message-
From: [EMAIL PROTECTED] [mailto:nagios-users-
[EMAIL PROTECTED] On Behalf Of Mark
Sent: Thursday, January 18, 2007 10:19 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] consistent service logging across hosts
   
I have a service that can fail over between hosts that each have their
own IP (if they failed over IP's this would be easy).  It is very hard
to get availability numbers for this service because of this.  Are
there any solutions to this?  Another catch is that the service
  
   Check_cluster2 + a shared nagios log dir comes to mind.
  
   --
   Marc
  
   -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share 
   your
   opinions on IT  business topics through brief surveys - and earn cash
   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   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
  
 
 
  --
  Mark
  Blessed is he who finds happiness in his own foolishness, for he will
  always be happy.
 
 
 


AVISO: A informação contida neste e-mail, bem como em qualquer de seus anexos, 
é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) acima 
referido(s), podendo conter informações sigilosas e/ou legalmente protegidas. 
Caso você não seja o destinatário desta mensagem, informamos que qualquer 
divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de seus anexos 
é absolutamente proibida. Solicitamos que o remetente seja comunicado 
imediatamente, respondendo esta mensagem, e que o original desta mensagem e de 
seus anexos, bem como toda e qualquer cópia e/ou impressão realizada a partir 
destes, sejam permanentemente apagados e/ou destruídos. Informações adicionais 
sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/.

NOTICE: The information contained in this e-mail and any attachments thereto is 
CONFIDENTIAL and is intended only for use by the recipient named herein and may 
contain legally privileged and/or secret information. If you are not the 
e-mail´s intended recipient, you are hereby notified that any dissemination, 
distribution or copy of this e-mail, and/or any attachments thereto, is 
strictly prohibited. Please immediately notify the sender replying to the above 
mentioned e-mail address, and permanently delete and/or destroy the original 
and any copy of this e-mail and/or its attachments, as well as any printout 
thereof. Additional information about our company may be obtained through the 
site http://www.uol.com.br/ir/.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] Remote Linux Client Appears Down But ServicesAreMonitored

2007-01-22 Thread Marc Powell


 -Original Message-
 From: Kaplan, Andrew H. [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 22, 2007 3:56 PM
 To: Marc Powell; Nagios-Users (E-mail)
 Subject: RE: [Nagios-users] Remote Linux Client Appears Down But
 ServicesAreMonitored
 
  I am interpreting this to mean that the Host status for the remote
host
 is 
 CRITICAL but the services on the host, checked by NRPE, show as OK.
  If that is the case then the check_command in the host{} definition
for
  the client does not accurately determine the status of the host.
What is
  that check_command and does it work if you run it as the nagios user
 from 
 your nagios machine?
 
 If I understand you correctly, you are referring to the
check-host-alive
 command
 in the hosts.cfg file. I'm sorry if I sound like and idiot, but there
is
 no
 check_host_alive plugin in the libexec directory. What command should
I
 run in
 this case?

You'll have a file with all the command{} definitions in it (typically
named commands.cfg or checkcommands.cfg). One of those command{}
definitions will be named 'check-host-alive'. That command definition
will specify a command_line that will be run to check if the host is
alive. That command_line, substituting in proper variables as required,
would be the command you should be testing as the nagios user.

It's probably something like 

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

In which case, as the nagios user, you'd run
'/path/to/nagios/libexec/check_ping -H ip or name of host here -w
3000.0,80% -c 5000.0,100% -p 1

Where ip or name of host here is the value for 'address' specified in
the client host{} definition.

--
Marc

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] [Nagiosplug-help] Cannot compile plugins

2007-01-22 Thread Martin Møller Pedersen
 I have tried 1.4.4, 1.4.5 and the latest snapshot. Running Redhat 9 on a
 686.  Crypto library is 0.9.8b

[...]

add the compiler switch -ldl to the various Makefiles and it will work.


Regards
Martin

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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

2007-01-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Brian Loe
 Sent: Monday, January 22, 2007 12:08 PM
 To: Nagios Users mailinglist
 Subject: Re: [Nagios-users] nagios
 
 I'm using the following check command (in checkcommands.cfg):
 
  # 'check_dns' command definition
  define command{
  command_namecheck_dns1
  command_line$USER1$/check_dns -H www.our-web-server.com
 -s $HOSTADDRESS$ -a our web server's IP address
 
 define command{
  command_namecheck_dns2
  command_line$USER1$/check_dns -H www.our-web-server.com
 -s $HOSTADDRESS$ -a our web server's IP address
 
 Shouldn't that work to verify OUR DNS server is up and replying? Do I
 need both of them or shouldn't just the one work?

It would have taken about a minute for you to Try And Find Out if it
worked by running it manually yourself. To answer, yes, it works. You
don't need both of them because they're identical.

 Also, when looking at Service or Host Alert History I see a bunch of
this:
 
 Program End[01-22-2007 11:35:01] Lockfile
 '/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing
out...
 Program Start[01-22-2007 11:35:01] Nagios 2.4 starting... (PID=3720)
 Program End[01-22-2007 11:25:01] Lockfile
 '/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing
out...
 Program Start[01-22-2007 11:25:01] Nagios 2.4 starting... (PID=1772)
 Program End[01-22-2007 11:15:01] Lockfile
 '/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing
out...
 Program Start[01-22-2007 11:15:01] Nagios 2.4 starting... (PID=32247)
 Program End[01-22-2007 11:05:02] Lockfile
 '/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing
out...
 Program Start[01-22-2007 11:05:02] Nagios 2.4 starting... (PID=30324)

Do you have multiple nagios daemons running? Looks like you do. Stop
nagios, verify that all processes are gone, kill any that might remain,
remove /usr/local/nagios/var/nagios.lock if it still exists and restart
nagios.

--
Marc

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] Accessing /dev/ttyUSB0 to send SMS

2007-01-22 Thread Herman (ISTD)
Dear Arno,

Thx for your tips. It works with udev .

Best Regards,

Herman 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Arno Lehmann
 Sent: Monday, January 22, 2007 5:05 PM
 To: Nagios Users mailinglist
 Subject: Re: [Nagios-users] Accessing /dev/ttyUSB0 to send SMS
 
 Hallo,
 
 On 1/22/2007 10:52 AM, Herman (ISTD) wrote:
  May be sudo could solve this problem but not permanently, since sudo
  only add root rights to user for certain period of time.
  Is there any way to make devs such as serial line and USB controlled
by
  certain user ?
 
 That's done by another part of the OS, for example udev.
 
 Basically you configure how device links are created for hot-plugged
 devices.
 
 You'll have to tell us the OS and its version at least... or look up
the
 documentation for your system, or ask the mailing list / support /
frum
 for your OS.
 
  Another question, is it common to run nagios as root ?
 
 Depends.
 
 I strongly adviso to not run Nagios as root - only processes that
really
 need root permissions should be run as such, and Nagios definitely
does
 not need root access to your system.
 
 Arno
 
  Thx.
 
  Regards,
 
  Herman
 
 
 -Original Message-
 From: Andy Shellam (Mailing Lists) [mailto:andy.shellam-
 [EMAIL PROTECTED]
 Sent: Monday, January 22, 2007 4:12 PM
 To: Herman (ISTD)
 Cc: Nagios Users mailinglist
 Subject: Re: [Nagios-users] Accessing /dev/ttyUSB0 to send SMS
 
 Herman (ISTD) wrote:
 
 Dear all,
 
 I use gnokii to send Nagios notification. Gnokii need to access
 /dev/ttyUSB0 in order to deliver message to Handphone. At present,
I
 need to set nagios user to root group in order to accomplish this
 
  task.
 
 If the nagios user is not in root group, it could not access
 /dev/ttyUSB0.
 
 Previously when nagios user is not in root group, I tried to do
some
 workarounds such as : chown nagios /dev/ttyUSB0 but it didn't work.
 
  Is
 
 there's any way to access /dev/ttyUSB0 without setting nagios user
 
  as
 
 root group ?
 Thank you.
 
 
 Will sudo not accomplish this?
 
 
 
 

 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
share
 your
  opinions on IT  business topics through brief surveys - and earn
cash
 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE
V
  ___
  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
 
 --
 IT-Service Lehmann[EMAIL PROTECTED]
 Arno Lehmann  http://www.its-lehmann.de
 


-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
share
 your
 opinions on IT  business topics through brief surveys - and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE
V
 ___
 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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] separating important from non-important hosts/services on tactical overview

2007-01-22 Thread Semir H.

Hi All -

I was wondering if it is possible to not include some hosts/services in the
Tactical Overview page.
We use Nagios to monitor mostly production resources but there are a few dev
and test resources in there as well.
I was wondering if it is possible to NOT have the Tactical overview page
report on warning/critical states for those dev/test hosts/services? We just
want that page to report for the hosts we deem important to us but we still
want to monitor all the hosts/services we do now and have detailed reports
in the services page.

Thanks
Semir
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
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] Several map views of Nagios

2007-01-22 Thread Herman (ISTD)
I learned several commercial software of NMS could defined several views
of Monitoring maps and customize it for certain need. I think it's a
good idea. 

Let say we have hundreds of server to monitor, and it would be very
crowded and quite invisible if we put all the servers in one monitoring
map.
So the idea is to classify the servers/network devices into several
categories such as routers, servers related with App A, servers with App
B. Then PIC for routers will only have to monitor the map with routers
devices, the same thing applies to PIC for application A only need to
monitor the map with App A servers.

Is it possible for Nagios to do several map views ?

Best Regards,

Herman

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] Several map views of Nagios

2007-01-22 Thread Morris, Patrick
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Herman (ISTD)
 Sent: Monday, January 22, 2007 9:13 PM
 To: Nagios-Users (E-mail)
 Subject: [Nagios-users] Several map views of Nagios
 
 Is it possible for Nagios to do several map views ?

Sure. Take a look at the map page, and you'll see boxes to show or hide
all the hostgroups you've set up.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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 host details

2007-01-22 Thread Vignesh Kumar
Hi Nelson,



 



This may be due to the following reason.



 



NSclient (Nagios Client tool) may not be installed in the client

machine.



 



Thanks  Regards,



P.Vignesh Kumar | +91-98943-58008 | VOIP -914-5351 |



Distributed Systems Support







From: [EMAIL PROTECTED]

[mailto:[EMAIL PROTECTED] On Behalf Of Nelson

Serafica

Sent: Tuesday, January 23, 2007 12:43 PM

To: nagios-users@lists.sourceforge.net

Subject: [Nagios-users] No host details



 



Good day,



Just wondering why are there no details in my host detail links. I'm

using Nagios 2.6. Never encountered this scenario before. Did I forgot

to include something in my .cfg files???



See attached file for your reference.







TIA



 







Expecting? Get great news right away with email Auto-Check.

http://us.rd.yahoo.com/evt=49982/*http:/advision.webevents.yahoo.com/ma

ilbeta/newmail_tools.html 

Try the Yahoo! Mail Beta.

http://us.rd.yahoo.com/evt=49982/*http:/advision.webevents.yahoo.com/ma

ilbeta/newmail_tools.html 





Legal Disclaimer:

The information contained in this message may be privileged and confidential. 
It is intended to be read only by the individual or entity to whom it is 
addressed or by their designee. If the reader of this message is not the 
intended recipient, you are on notice that any distribution of this message, in 
any form, is strictly prohibited. If you have received this message in error, 
please immediately notify the sender and delete or destroy any copy of this 
message

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
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 host details

2007-01-22 Thread Morris, Patrick
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Nelson Serafica
 Sent: Monday, January 22, 2007 11:13 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] No host details
 
 Good day,
 
 Just wondering why are there no details in my host detail 
 links. I'm using Nagios 2.6. Never encountered this scenario 
 before. Did I forgot to include something in my .cfg files???
 
 See attached file for your reference.

That's normal.  Nagios normally won't run a host check unless a service
check transitions into a non-OK state.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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