Re: [Nagios-users] Nagios HTTP monitoring

2007-06-21 Thread GJP
Yes ofcourse there is. This one is for Samba: www.samba.org And like Patrick said if you do a "check_http -h" it tells you what ik can do. And if you're on a common linux distro. you can find files with: "locate [filename]" Then I would also check: http://nagios.sourceforge.net/docs/2_0/beginn

Re: [Nagios-users] SMS and Nagios.

2007-06-21 Thread Rafael Alfaro
You can use Kannel to do this, an you can use a cell phone as smsc. check www.kannel.org Really a great performance. Rafael Alfaro. On 6/19/07, Lacayo, Luis F <[EMAIL PROTECTED]> wrote: > > > > > Anyone using yap for SMS with in Nagios who is willing to share their yap > configuration file? Or ca

[Nagios-users] Migration of nagios comments and trends graphs

2007-06-21 Thread Rafael Alfaro
Hi all, I'm looking to migrate to another nagios version, but I want the same nagioscomment.log and trends graphs, I was trying to copy and paste the nagios files in the var directory, but this not works. Could you help me please? Thanks in advance, Rafael Alfaro. ---

[Nagios-users] Nagios sendmail segfault

2007-06-21 Thread Coffee, Jon
Hello All, I can't seem to get notifications to work. The message appears to be sent when looking at the nagois.log file and in the /var/log/maillog . But when I check in the /var/log/messages file I see this: Jun 21 22:41:13 nagios2 nagios: HOST NOTIFICATION: contact;server1;DOWN;notify-h

Re: [Nagios-users] Plugin that will test nagios.cfg

2007-06-21 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Thomas Guyot-Sionnest > Sent: Thursday, June 21, 2007 10:13 PM > To: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] Plugin that will test nagios.cfg > > On 21/06/07 05:

Re: [Nagios-users] Plugin that will test nagios.cfg

2007-06-21 Thread Thomas Guyot-Sionnest
On 21/06/07 05:20 PM, Patrick Morris wrote: > Arno Lehmann schrieb am Donnerstag, den 21. Juni 2007: > >> Hi, >> >> chiel schrieb: >>> I'm looking for a plugin that will check if the nagios.cfg is ok. >>> So besecauly run this command: "/usr/local/nagios/bin/nagios -v >>> /usr/local/nagios/etc/na

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread Nedim Bicic
Yea i got it to work i had to stop and restart its working now thanks alot people this macro thing is too cool On 6/21/07, Marc Powell <[EMAIL PROTECTED]> wrote: > -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Nedim Bicic > Sent

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Nedim Bicic > Sent: Thursday, June 21, 2007 3:40 PM > To: Adam Kennedy > Cc: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios Message Acknowledgment > > NO ERROR N

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread Nedim Bicic
It is setup because i get email notifications as always just not what i want it to send now with author and comments withing the notifications I have email working as we speak and i have external command abilty but i dont know why i dont see the message in the email acknowledgemnt notifcation?

Re: [Nagios-users] Nagios HTTP monitoring

2007-06-21 Thread GJP
Hi Jerad, If you mean http auth, this is what I use. The check_command in the service definition: check_command check_http_auth!host.example.com!/path!user:password And the command definition. define command{ command_namecheck_http_auth command_line/usr/lib/na

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread Rev. Dr. Aaron M. Segura
Please always reply on-list. I would assume, then, that your contact isn't set up to use the 'host-notify-by-email' notification method... On Thu, 2007-06-21 at 17:04 -0400, Nedim Bicic wrote: > YEA that was it but. > For some reason when i acknowlege it, i dont see any comments or > authors name

Re: [Nagios-users] Nagios HTTP monitoring

2007-06-21 Thread Jerad Riggin
More importantly, can I just specify a URL to check? The default site on the server in question directs you to CRM which requires auth. However on the same server we have an intranet site which doesn't require authorization. How would I go about just checking the intranet URL? On 6/21/07, Jera

Re: [Nagios-users] Nagios HTTP monitoring

2007-06-21 Thread Jerad Riggin
Is there any link to information about that? Like I said this is basically the 2nd day I've used Linux and Nagios so much of this seems like a different language to me. Thanks for the info. On 6/21/07, GJP <[EMAIL PROTECTED]> wrote: Hi Jerad, If you mean http auth, this is what I use. The c

Re: [Nagios-users] Nagios HTTP monitoring

2007-06-21 Thread Patrick Morris
On Thu, 21 Jun 2007, Jerad Riggin wrote: > I'm new to Linux and new to Nagios so this may sound very stupid. Basically > I have everything up and running, ping tests work, http tests work, and the > smtp test I have setup works. If the host goes down I get a host down alert > and a host up alert

Re: [Nagios-users] Plugin that will test nagios.cfg

2007-06-21 Thread Patrick Morris
Arno Lehmann schrieb am Donnerstag, den 21. Juni 2007: > Hi, > > chiel schrieb: > > I'm looking for a plugin that will check if the nagios.cfg is ok. > > So besecauly run this command: "/usr/local/nagios/bin/nagios -v > > /usr/local/nagios/etc/nagios.cfg". Is there a plugin for this? > > Would

[Nagios-users] Nagios HTTP monitoring

2007-06-21 Thread Jerad Riggin
I'm new to Linux and new to Nagios so this may sound very stupid. Basically I have everything up and running, ping tests work, http tests work, and the smtp test I have setup works. If the host goes down I get a host down alert and a host up alert once the problem is resolved. Is there a way to

Re: [Nagios-users] Plugin that will test nagios.cfg

2007-06-21 Thread Arno Lehmann
Hi, chiel schrieb: > I'm looking for a plugin that will check if the nagios.cfg is ok. > So besecauly run this command: "/usr/local/nagios/bin/nagios -v > /usr/local/nagios/etc/nagios.cfg". Is there a plugin for this? Wouldn't it be better to check this in the cron job itself? Nagios won't help

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread Nedim Bicic
NO ERROR NICE !! Good job that was the mistake i just dont know weather i should reload nagios or restart it for it to take affect On 6/21/07, Adam Kennedy <[EMAIL PROTECTED]> wrote: Make sure there is no LF/CR (i.e. the enter button was hit) at the end of the line that has "Acknowledge

Re: [Nagios-users] Perf data / Graphs

2007-06-21 Thread Arno Lehmann
Hi, Palle Jensen schrieb: > Arno, > >> Then post, for example, the output you get for the memory checks, and >> I'll see how a regex should look that matches parts of the output. > > This is the output I get in nagios.log: > > [1181921420] Warning: Service performance data command 'echo > 'serv

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread Adam Kennedy
Make sure there is no LF/CR (i.e. the enter button was hit) at the end of the line that has "Acknowledged By:" at the end. Nedim Bicic wrote: > This is the command i have in and that i keep getting the same errors > but "printf" that shouldnt matter because why would it work in general > for h

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread Rev. Dr. Aaron M. Segura
"Looks like you have a carriage return on line 53 when you shouldn't. Just a guess though. It helps if you post the config around the line that's being complained about. -- Marc" On Thu, 2007-06-21 at 15:58 -0400, Nedim Bicic wrote: > This is the command i have in and that i keep getting the sa

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread Nedim Bicic
This is the command i have in and that i keep getting the same errors but "printf" that shouldnt matter because why would it work in general for host down noticifations Here is the command i have in now: define command { command_name host-notify-by-email command_line

[Nagios-users] Plugin that will test nagios.cfg

2007-06-21 Thread chiel
I'm looking for a plugin that will check if the nagios.cfg is ok. So besecauly run this command: "/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg". Is there a plugin for this? I want this because I reload the nagios config every 15 minutes through a cronjob. And I want to be not

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread Adam Kennedy
What is the full config entry for that command? I fear you are not using printf when you should be. Nedim Bicic wrote: > I wish it was that easy but its still not working regardless of spelling > > I changed it of course but same error > > *> nagios -v /etc/nagios/nagios.cfg* > > Nagios 2.4

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread Nedim Bicic
I wish it was that easy but its still not working regardless of spelling I changed it of course but same error *> nagios -v /etc/nagios/nagios.cfg* Nagios 2.4 Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org) Last Modified: 05-31-2006 License: GPL Reading configuration data... Err

[Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread Palle Jensen
Could it be a spelling problem " Acnkowledgement:" - Acknowledgement? > Error: Invalid command object directive '$HOSTACKAUTHOR$\nAcnkowledgement:'. - Palle _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nedim Bicic Sent: Thursday, June 21, 2007 2:11 PM To: Jim

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Nedim Bicic > Sent: Thursday, June 21, 2007 1:11 PM > To: Jim Perrin > Cc: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios Message Acknowledgment > > Hey this is

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread Nedim Bicic
Hey this is the error i get when i try to debug the above command for the acknowledgement does anyone know why or how to fix it this is what i get: * nagios -v /etc/nagios/nagios.cfg* Nagios 2.4 Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org) Last Modified: 05-31-2006 License: GP

Re: [Nagios-users] Perf data / Graphs

2007-06-21 Thread Palle Jensen
Arno, > Then post, for example, the output you get for the memory checks, and > I'll see how a regex should look that matches parts of the output. This is the output I get in nagios.log: [1181921420] Warning: Service performance data command 'echo 'server01\tMemuse\tMemory usage: total:4485.60 M

Re: [Nagios-users] snmp community option in host definition?

2007-06-21 Thread James Whittington
Thanks for all who gave immediate feedback on having a snmp community option in nagios. It's good to know N3 will have the custom macro support, I am already doing some testing to see of the configuration interface my client is using will be able to play nicely with Nagios 3.x so the custom macro

Re: [Nagios-users] Sharing local/remote machine .cfg

2007-06-21 Thread Alain Williams
On Thu, Jun 21, 2007 at 10:08:27AM -0500, Marc Powell wrote: > Macros are only available to command {} definitions. You can't use them > anywhere else. Shame. > What I do is to create a template in a new config file (templates.cfg > for example) with the differing values and the hosts/services i

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread Jim Perrin
On 6/21/07, Nedim Bicic <[EMAIL PROTECTED]> wrote: > Do i have to stop nagios and restart it again for it to work Or reload nagios, yes. This is the case with most/all changes to config files. You have read the documentation, right? -- During times of universal deceit, telling the truth becomes

Re: [Nagios-users] Monitoring a page within a subdirectory.

2007-06-21 Thread Sean McAvoy
the check_http will return 200 (ok) if it was able to download the URL. You can also add a -s "text" or --string="text" to return OK only if the string is found in the downloaded HTML. You'd probably want to setup a specific command for check_http searching for content as opposed to checking jus

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread Nedim Bicic
Do i have to stop nagios and restart it again for it to work thanks for the command thou On 6/21/07, Marc Powell <[EMAIL PROTECTED]> wrote: > -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Nedim Bicic > Sent: Wednesday, June 20, 2

[Nagios-users] Monitoring a page within a subdirectory.

2007-06-21 Thread Jake Solid
How can I monitor a page within a subdirectory on a web server? For example, the I want to make sure the page http://domain.com/subdirectory/its accessible. Can I have nagios get access to the page and find a word within the page to make sure its accessible? Thanks.

Re: [Nagios-users] snmp community option in host definition?

2007-06-21 Thread Curtis Frazier
Off the top of my head, maybe the scripts could be edited so that you could pass the community string to the script from the service definition. For example, here's one that I use: define service{ use chkifoperstatus-service host_name

Re: [Nagios-users] Soft critical state and sound alarms (Jim Avery)

2007-06-21 Thread S-linuxale
Hi Marco, can you show me how do you do that? I will be very happy...If I can avoid to redo what you have already done :-) Can we propose to add this functionality in the new release! Thanks Alex On Thu, 2007-06-21 at 15:04 +0100, Marco Ramos wrote: > Hi, > > On Thu, 2007-06-21 at 12:20 +0200

Re: [Nagios-users] snmp community option in host definition?

2007-06-21 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of James Whittington > Sent: Thursday, June 21, 2007 10:06 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] snmp community option in host definition? > > I am faced wit

Re: [Nagios-users] snmp community option in host definition?

2007-06-21 Thread william(at)elan.net
1. N3 will/does support custom macros 2. I've seen (or heard) somewhere patch to add snmp community name to host 3. Many are doing it using hostgroup names and then have a map file with community names loaded from it (and then also not seen when you do ps on the box!!!) On Thu, 21 Jun 200

Re: [Nagios-users] Sharing local/remote machine .cfg

2007-06-21 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Alain Williams > Sent: Thursday, June 21, 2007 9:50 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Sharing local/remote machine .cfg > > I am relatively new to Nag

[Nagios-users] snmp community option in host definition?

2007-06-21 Thread James Whittington
I am faced with the potential of having to monitor different remote networks with primariliy custom perl based snmp checks. The tricky part of this is that different networks may have different SNMP community names. While I could create different service definitions for each different communi

[Nagios-users] Sharing local/remote machine .cfg

2007-06-21 Thread Alain Williams
I am relatively new to Nagios, I am setting up a group of Linux machines that all send reports to a central monitoring one with nsca. I have a separate .cfg file for each machine, I would like to share this file between remote and central machines - so that if I change anything I just copy it ove

Re: [Nagios-users] nagios Caught SIGSEGV, shutting down

2007-06-21 Thread Kevin Zhang
Thanks Marco for the email. Actually, I was watching the nagios.log while I started nagios. And the the log show: [1182281997] Nagios 2.2 starting... (PID=4108) [1182281997] LOG VERSION: 2.0 [1182281997] Warning: Size of service_message struct (3484 bytes) is > POSIX-guaranteed atomic write size

Re: [Nagios-users] Soft critical state and sound alarms (Jim Avery)

2007-06-21 Thread Marco Ramos
Hi, On Thu, 2007-06-21 at 12:20 +0200, Linuxale wrote: > > If you are using the Firefox browser, I can recommend the > > nagioschecker firefox extension which was mentioned here recently. It > > permits you to filter in various ways what states will be displayed > > and when sounds will be playe

Re: [Nagios-users] nagios Caught SIGSEGV, shutting down

2007-06-21 Thread Marco Ramos
Hi, try to strace it when you start it and look for potential errors. HTH, Marco Ramos On Wed, 2007-06-20 at 13:53 -0700, Kevin Zhang wrote: > > > > > I am using nagios 2.2 and RedHat 9.0. > It has been working fine until recently when sometimes I cann't start > the Nagios. > It says: >

[Nagios-users] Notification Question

2007-06-21 Thread Sapon, Dimitry
Hi, I have a criteria that only the first two non-OK Hard State notifications need to be sent out (at whatever the specified interval is). Afterwards, it's enough that it just keeps logging it with Nagios. I thought I could get this done via escalations whereby I set the first escalation to sent

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Nedim Bicic > Sent: Wednesday, June 20, 2007 7:57 PM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Nagios Message Acknowledgment > > Hi all i have nagios 2.4 i was w

Re: [Nagios-users] Service is not scheduled to be checked

2007-06-21 Thread Arno Lehmann
Hi, On 6/21/2007 11:52 AM, adi yesaya wrote: > Dear Nagios users, > > I have tried to schedule Nagios to run checks at 23:00-01:00. I defined > it at the time period as such: > > define timeperiod{ > timeperiod_name midnight > alias Check at night onl

Re: [Nagios-users] Soft critical state and sound alarms (Jim Avery)

2007-06-21 Thread Linuxale
> If you are using the Firefox browser, I can recommend the > nagioschecker firefox extension which was mentioned here recently. It > permits you to filter in various ways what states will be displayed > and when sounds will be played. > > http://code.google.com/p/nagioschecker/ Hi Jim, thanks t

Re: [Nagios-users] Nagios Looking Glass Permissions

2007-06-21 Thread andy . shellam-lists
Hi Don, NLG needs the following permissions set for the web-server user: In /server: - read access to the whole directory - write access to ./index In /client: - read access to the whole directory - write access to the root (./) of this directory - write access to ./sync-files - write acce

[Nagios-users] Service is not scheduled to be checked

2007-06-21 Thread adi yesaya
Dear Nagios users, I have tried to schedule Nagios to run checks at 23:00-01:00. I defined it at the time period as such: define timeperiod{ timeperiod_name midnight alias Check at night only sunday 23:00-01:00 monday