[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  23:00-01:00
   tuesday 23:00-01:00
   wednesday   23:00-01:00
   thursday23:00-01:00
   friday  23:00-01:00
   saturday23:00-01:00
   }

and i defined the time period at the service like this (other options
omited):

define service{
check_periodmidnight   ; The
service is checked at midnight 23:00 - 01:00
}

I did it yesterday and this morning as i checked Nagios i was surprised
because i see this at the service detail page :
all the Status fields are PENDING
all the Last Check fields are N/A
all the Status Informations are Service is not scheduled to be checked...

What makes me more confused is because when i checked /var/log/messages it
stated that Nagios start running checks at 00:00
and when i checked the trends, the graphic shows that all the plug-in did
their check around 00:00 and returned a state.

Does anyone know why this all happens?

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

Re: [Nagios-users] Nagios 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 access to ./cache

These permissions should be set for the user your web-server runs as.  If
you're using Apache, you can search your httpd.conf file for the User xxx
directive.

Regards

Andy.

Don Munyak [EMAIL PROTECTED] wrote:

 Nagios Looking Glass Permissions
 
 Need help understanding what to do next.
 Thanks
 
 
 RESULTS FROM: IExplorer http://web.pmg.local/nagios/client/index.php
 
 Nagios Looking Glass Error Report
 Sorry for the inconvenience, but Nagios Looking Glass could not retrieve the
 page you asked for.
 The error message below might hold more clues for the site administrator:
 
 Could not sync all required files with the server.
 
 Generated by Nagios Looking Glass at 20/Jun/2007 18:52:07
 
 
 LOGGED ERRORS FROM HTTPD-ERROR.LOG
 [Wed Jun 20 18:22:33 2007] [error] [client 192.168.222.61] PHP Warning:
 file_put_contents(sync-files/s3_config.inc.php)[a href='
 function.file-put-contents'function.file-put-contents/a]: failed to open
 stream: Permission denied in
 /usr/local/nagios/share/client/s3_download_stub.inc.php on line 131
 [Wed Jun 20 18:22:33 2007] [error] [client 192.168.222.61] PHP Warning:
 file_put_contents(sync-files/s3_filter.inc.php)[a href='
 function.file-put-contents'function.file-put-contents/a]: failed to open
 stream: Permission denied in
 /usr/local/nagios/share/client/s3_download_stub.inc.php on line 131
 [Wed Jun 20 18:22:33 2007] [error] [client 192.168.222.61] PHP Warning:
 file_put_contents(sync-files/s3_functions.inc.php)[a href='
 function.file-put-contents'function.file-put-contents/a]: failed to open
 stream: Permission denied in
 /usr/local/nagios/share/client/s3_download_stub.inc.php on line 131
 [Wed Jun 20 18:22:33 2007] [error] [client 192.168.222.61] PHP Warning:
 file_put_contents(sync-files/s3_lang_en.inc.php)[a href='
 function.file-put-contents'function.file-put-contents/a]: failed to open
 stream: Permission denied in
 /usr/local/nagios/share/client/s3_download_stub.inc.php on line 131
 
 
 RESULTS FROM: DEBUG http://web.pmg.local/nagios/client/index.php?debug=yes
 
 *** Download Stub - DownloadFiles() running ***
 
 Attempting to download files from
 http://web.pmg.local/nagios/server/s3_download.php
 
 Downloading s3_class.inc.php from server ... 0 bytes written
 Downloading s3_config.inc.php from server ... 0 bytes written
 Downloading s3_filter.inc.php from server ... 0 bytes written
 Downloading s3_functions.inc.php from server ... 0 bytes written
 Downloading s3_lang_en.inc.php from server ... 0 bytes written
 
 *** Download Stub - DownloadFiles() finished ***
 
 *** S3 Client - CheckSyncFiles() running ***
 Checking s3_class.inc.php ... FILE NOT FOUND or FILE IS EMPTY
 Checking s3_config.inc.php ... FILE NOT FOUND or FILE IS EMPTY
 Checking s3_filter.inc.php ... FILE NOT FOUND or FILE IS EMPTY
 Checking s3_functions.inc.php ... FILE NOT FOUND or FILE IS EMPTY
 Checking s3_lang_en.inc.php ... FILE NOT FOUND or FILE IS EMPTY
 *** S3 Client - CheckSyncFiles() finished ***
 

http://web.pmg.local/nagios/server/s3_download.php?filename=s3_class.inc.phpaction=check

http://web.pmg.local/nagios/server/s3_download.php?filename=s3_config.inc.phpaction=check

http://web.pmg.local/nagios/server/s3_download.php?filename=s3_filter.inc.phpaction=check

http://web.pmg.local/nagios/server/s3_download.php?filename=s3_functions.inc.phpaction=check

http://web.pmg.local/nagios/server/s3_download.php?filename=s3_lang_en.inc.phpaction=check
 
 
 !DSPAM:37,467978ac343943904212080!
 

_
DISCLAIMER

This e-mail was sent through a Mail Network server.
The Mail Network accepts no liability for it's content.




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


Re: [Nagios-users] 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 this could be a valid method.

I'm trying its. But I prefer something integrated in nagios that not
need any browser plugins...
I don't know if this exist...but I was thinking to modify the code of
the cgi to avoid to play on SOFT STATE.

Thankx
Alex 




***Internet Email Confidentiality Footer***
Le informazioni trasmesse sono destinate esclusivamente alla persona o
alla società in indirizzo e sono da intendersi confidenziali e riservate.
Ogni trasmissione, inoltro, diffusione o altro uso di queste
informazioni a persone o società differenti dal destinatario é proibita.
Se ricevete questa comunicazione per errore, contattate il mittente
e cancellate le informazioni da ogni computer. 

Please note that the contents of this email and any attachments are
confidential and for the eyes of the addressee(s) only. If you
are not the intended recipient, you are hereby notified that any use or
dissemination of this communication or any part of it is strictly
prohibited. If you receive this transmission in error, please notify the sender
immediately using the contact details above and then delete this e-mail.
***Internet Email Confidentiality Footer***


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

Re: [Nagios-users] Service 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 only
 sunday  23:00-01:00
 monday  23:00-01:00
 tuesday 23:00-01:00
 wednesday   23:00-01:00
 thursday23:00-01:00
 friday  23:00-01:00
 saturday23:00-01:00
 }

This has been discussed recently, look for the thread Excuding 
timeperiods.

Short summary:
Define your timeperiods correctly :-) like
Monday 23:00-24:00,00-01:00
and so on.

Arno


 and i defined the time period at the service like this (other options 
 omited):
  
 define service{
  check_periodmidnight   ; The 
 service is checked at midnight 23:00 - 01:00
  }
  
 I did it yesterday and this morning as i checked Nagios i was surprised 
 because i see this at the service detail page :
 all the Status fields are PENDING
 all the Last Check fields are N/A
 all the Status Informations are Service is not scheduled to be checked... 
  
 What makes me more confused is because when i checked /var/log/messages 
 it stated that Nagios start running checks at 00:00
 and when i checked the trends, the graphic shows that all the plug-in 
 did their check around 00:00 and returned a state.
  
 Does anyone know why this all happens?
  
 Regards,
 Adi Yesaya
 
  
  
 
 
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 
 
 
 
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue. 
 ::: Messages without supporting info will risk being sent to /dev/null

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

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


Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread Marc Powell


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

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

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

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

--
Marc

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


[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 an email on warning and all further escalations to
send out on OK status. I realized that when you specify states in
escalations, the escalations only trigger when the host/service hits
that state, otherwise, the default profile values get used.
 
Is there any way I can fulfill this criteria? Maybe there's a way to
disable notifications in the regular service definitions but allow them
to be sent out on the first two escalations?
 
Any help is appreciated. Thanks in advance.
 
Regards,
Dimitry
___

This email is intended only for the use of the individual(s) to whom it is 
addressed and may be privileged and confidential.
Unauthorised use or disclosure is prohibited. If you receive This e-mail in 
error, please advise immediately and delete the original message. 
This message may have been altered without your or our knowledge and the sender 
does not accept any liability for any errors or omissions in the message.

Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits 
et obligations qui s'y rapportent. 
Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il 
contient par une personne autre que le (les) destinataire(s) désigné(s) est 
interdite.
Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par 
retour de courriel ou par un autre moyen.
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] nagios 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 Caught SIGSEGV, shutting down
  
 Could anyone help? Thanks
  
 Kevin SZ
  
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___ Nagios-users mailing list 
 Nagios-users@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include 
 Nagios version, plugin version (-v) and OS when reporting any issue. ::: 
 Messages without supporting info will risk being sent to /dev/null


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


Re: [Nagios-users] 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 played.
  
  http://code.google.com/p/nagioschecker/
 
 Hi Jim,
 thanks this could be a valid method.
 
 I'm trying its. But I prefer something integrated in nagios that not
 need any browser plugins...
 I don't know if this exist...but I was thinking to modify the code of
 the cgi to avoid to play on SOFT STATE.

Yep, I think that's the only way if you want it to be something really
integrated in Nagios. I've also hacked the code to do that and a couple
of things more :) A couple of if statments should do it.

HTH,
Marco Ramos

 
 Thankx
 Alex 
 
 
 
 
 ***Internet Email Confidentiality Footer***
 Le informazioni trasmesse sono destinate esclusivamente alla persona o
 alla societ in indirizzo e sono da intendersi confidenziali e riservate.
 Ogni trasmissione, inoltro, diffusione o altro uso di queste
 informazioni a persone o societ differenti dal destinatario  proibita.
 Se ricevete questa comunicazione per errore, contattate il mittente
 e cancellate le informazioni da ogni computer. 
 
 Please note that the contents of this email and any attachments are
 confidential and for the eyes of the addressee(s) only. If you
 are not the intended recipient, you are hereby notified that any use or
 dissemination of this communication or any part of it is strictly
 prohibited. If you receive this transmission in error, please notify the 
 sender
 immediately using the contact details above and then delete this e-mail.
 ***Internet Email Confidentiality Footer***
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___ Nagios-users mailing list 
 Nagios-users@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include 
 Nagios version, plugin version (-v) and OS when reporting any issue. ::: 
 Messages without supporting info will risk being sent to /dev/null


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


Re: [Nagios-users] nagios 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 (512 bytes).  Service checks results
may get lost or mangled!
[1182281997] Warning: Host 'psi-spam2' has no services associated with
it!
[1182281997] Warning: Host 'qsv-spam1' has no services associated with
it!
[1182281997] Warning: Contact group 'operationglobal' is not used in any
host/service definitions or host/service escalations!
[1182281997] Warning: Contact group 'operations' is not used in any
host/service definitions or host/service escalations!
[1182281997] Warning: Contact group 'outsidein' is not used in any
host/service definitions or host/service escalations!
[1182281997] Warning: Contact group 'test' is not used in any
host/service definitions or host/service escalations!
[1182281997] Finished daemonizing... (New PID=4109)
[1182281998] Caught SIGSEGV, shutting down...


Kevin SZ

-Original Message-
From: Marco Ramos [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 21, 2007 7:02 AM
To: Kevin Zhang
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] nagios Caught SIGSEGV, shutting down


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 Caught SIGSEGV, shutting down
  
 Could anyone help? Thanks
  
 Kevin SZ
  
 --
 --- This SF.net email is sponsored by DB2 Express Download DB2 Express

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


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


[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 over.

One change that *is* needed is the value of active_checks_enabled - which is 
zero
on the central box and one on the remote.

I tried something like this in a 'define service':

active_checks_enabled   $USER11$

and elsewhere had:

$USER11$=1
or
$USER11$=0

as appropriate for the machine.

This does not work. Why ? and is there a way of achieving what I want to do ?

TIA

-- 
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
#include std_disclaimer.h

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


[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
community name or build logic in the script to try multiple names I was
kinda surprised I didn't see a community name directive in the host
definition specification.

 

I realize nagios a more a monitoring framework and not tied solely to
snmp based checks but it seems like it's a worthy item to have as part
of the host definition.

 

Maybe it there and I'm just not paying attention, if so I am sure
someone will correct me :)..

 

Thanks,

 

James Whittington

 

 

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

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

2007-06-21 Thread Marc Powell


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

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

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

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

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

Then your shared file would use

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

--
Marc

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


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

2007-06-21 Thread 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 2007, James Whittington wrote:

 I am faced with the potential of having to monitor different remote
 networks with primariliy  custom perl based snmp checks.

 The tricky part of this is that different networks may have different
 SNMP community names.

 While I could create different service definitions for each different
 community name or build logic in the script to try multiple names I was
 kinda surprised I didn't see a community name directive in the host
 definition specification.

 I realize nagios a more a monitoring framework and not tied solely to
 snmp based checks but it seems like it's a worthy item to have as part
 of the host definition.

 Maybe it there and I'm just not paying attention, if so I am sure
 someone will correct me :)..

 Thanks,

 James Whittington

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


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

2007-06-21 Thread Marc Powell


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

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

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

--
Marc

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


Re: [Nagios-users] 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, 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 played.
   
   http://code.google.com/p/nagioschecker/
  
  Hi Jim,
  thanks this could be a valid method.
  
  I'm trying its. But I prefer something integrated in nagios that not
  need any browser plugins...
  I don't know if this exist...but I was thinking to modify the code of
  the cgi to avoid to play on SOFT STATE.
 
 Yep, I think that's the only way if you want it to be something really
 integrated in Nagios. I've also hacked the code to do that and a couple
 of things more :) A couple of if statments should do it.
 
 HTH,
 Marco Ramos
 
  
  Thankx
  Alex 
  
  
  
  
  ***Internet Email Confidentiality Footer***
  Le informazioni trasmesse sono destinate esclusivamente alla persona o
  alla societ in indirizzo e sono da intendersi confidenziali e riservate.
  Ogni trasmissione, inoltro, diffusione o altro uso di queste
  informazioni a persone o societ differenti dal destinatario  proibita.
  Se ricevete questa comunicazione per errore, contattate il mittente
  e cancellate le informazioni da ogni computer. 
  
  Please note that the contents of this email and any attachments are
  confidential and for the eyes of the addressee(s) only. If you
  are not the intended recipient, you are hereby notified that any use or
  dissemination of this communication or any part of it is strictly
  prohibited. If you receive this transmission in error, please notify the 
  sender
  immediately using the contact details above and then delete this e-mail.
  ***Internet Email Confidentiality Footer***
  
  
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___ Nagios-users mailing list 
  Nagios-users@lists.sourceforge.net 
  https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 
  include Nagios version, plugin version (-v) and OS when reporting any 
  issue. ::: Messages without supporting info will risk being sent to 
  /dev/null


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

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

2007-06-21 Thread 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   remote-router
service_description WAN Link 1
check_command   check_ifoperstatus!put- 
commstring-here!index!

}

Also, I could see some possible security concerns with trying  
multiple strings.  If someone is sniffing the segment, they could  
catch all of your enterprise's strings pretty quickly. Unless you're  
using SNMP v3.


Curtis Frazier, Network Manager
East Orange School District
973-266-2371 (voice)
973-266-5757 x258 (direct line)
973-678-5293 (fax)


On Jun 21, 2007, at 11:05 AM, James Whittington wrote:

I am faced with the potential of having to monitor different remote  
networks with primariliy  custom perl based snmp checks.


The tricky part of this is that different networks may have  
different SNMP community names.




While I could create different service definitions for each  
different community name or build logic in the script to try  
multiple names I was kinda surprised I didn’t see a community name  
directive in the host definition specification.




I realize nagios a more a monitoring framework and not tied solely  
to snmp based checks but it seems like it’s a worthy item to have  
as part of the host definition.




Maybe it there and I’m just not paying attention, if so I am sure  
someone will correct me :)..




Thanks,



James Whittington





-- 
---

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

Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when  
reporting any issue.

::: Messages without supporting info will risk being sent to /dev/null


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

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread 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, 2007 7:57 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Nagios Message Acknowledgment

 Hi all i have nagios 2.4 i was wondering when a user would
acknowledges a
 down host and it sends an email as well i want to include the message
the
 user has input of why the host is down

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

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

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

--
Marc

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

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

Re: [Nagios-users] Monitoring 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 just for a 200.

_sean

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

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


Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread 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 a revolutionary act.
George Orwell

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


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

2007-06-21 Thread 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 inherit
 that template. Something like --
 ...

Did that, it works -- thanks.

-- 
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
#include std_disclaimer.h

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


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

2007-06-21 Thread 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
support is a definite plus.  


Deriving community names by fetching the hostgroup name also sounds like
a creative solution, I keep configuration data in the database and the
filesystem so I could grab the hostgroup from either, I just haven't had
a reason to fetch that information before.

Thanks again for the helpful feedback.

James Whittington

-Original Message-
From: william(at)elan.net [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 21, 2007 12:11 PM
To: James Whittington
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] snmp community option in host definition?


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 2007, James Whittington wrote:

 I am faced with the potential of having to monitor different remote
 networks with primariliy  custom perl based snmp checks.

 The tricky part of this is that different networks may have different
 SNMP community names.

 While I could create different service definitions for each different
 community name or build logic in the script to try multiple names I
was
 kinda surprised I didn't see a community name directive in the host
 definition specification.

 I realize nagios a more a monitoring framework and not tied solely to
 snmp based checks but it seems like it's a worthy item to have as part
 of the host definition.

 Maybe it there and I'm just not paying attention, if so I am sure
 someone will correct me :)..

 Thanks,

 James Whittington


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


Re: [Nagios-users] 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 Mb - used: 1452.13 Mb (32%) -
free: 3033.47 Mb (68%)\tMemory
usage=1452.13Mb;3588.48;4037.04;0.00;4485.60\n' | nc6 -u -w 3 localhost
5667' for service 'Memuse' on host 'server01' timed out after 5 seconds

And this is what ngraph./log shows:

2007-06-15 11:35:14 PIPE: server01  Memuse  Memory usage: total:4485.60
Mb - used: 1502.13 Mb (33%) - free: 2983.46 Mb (67%)Memory
usage=1502.13Mb;3588.48;4037.04;0.00;4485.60
2007-06-15 11:35:14 REGEX: 4 blocks for 'Memuse' found.
2007-06-15 11:35:14 REGEX: graph_value=Memory usage
2007-06-15 11:35:14 REGEX: output=perfdata
2007-06-15 11:35:14 REGEX: regex=m/Memory usage=([0-9]+)Mb/i
2007-06-15 11:35:14 REGEX: perfdata=Memory
usage=1502.13Mb;3588.48;4037.04;0.00;4485.60
2007-06-15 11:35:14 REGEX: NO MATCH.
2007-06-15 11:35:14 VALUES: [server01][Memuse]:No matching perfdata values
found...

The first part of check_ntmem.ncfg looks like this (there is more but it is
pretty long):

define ngraph {
  graph_legend Memory Used
  graph_perf_regex Memory usage=([0-9]+)Mb
  graph_value Memory usage
  hide yes
  rrd_color 00a000
  rrd_plottype AREA
  service_name Memuse
}

 I use check_nt to monitor windows hosts, and the plugins return stuff like
 CPU Load 23% (5 min average) |   '5 min avg Load'=23%;80;90;0;100
 which is captures by the following ngraph configuration:
define ngraph{
 service_nameWindows Load
 graph_perf_regex=(\d+)%;
 graph_value load
 graph_units CPU Usage %
 graph_legendavg load
 rrd_plottypeAREA
 rrd_color   EACC00
}

  The regex gets the digits between = and %, which is stored in the
 rrd file.

I will definitely try that, thanks.

 I'm still unsure where exactly your problem is... is it understanding
 how to capture numbers from the plugin output? Or is it in setting up
 all the graphical elements you want?
Correct that is right on the spot.

 (Note that this is not meant as an advertisement, but rather as a last
 resort solution for Palle!)
 Are you kidding??
No.

I appreciate the help you are giving, and sharing your experience, and
apologies for misunderstanding.

Thanks,
- Palle




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


Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread 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: GPL

Reading configuration data...

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

*** One or more problems was encountered while processing the config
files...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions.  If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version.  Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.





On 6/21/07, Jim Perrin [EMAIL PROTECTED] wrote:


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 a
revolutionary act.
George Orwell

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

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread Marc Powell


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

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

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

--
Marc


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


[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 Perrin
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios Message Acknowledgment

 

Hey this is the error i get when i try to debug the above command for the
acknowledgement does anyone know why or how to fix it

 

 

this is what i get: 

 

 nagios -v /etc/nagios/nagios.cfg

Nagios 2.4
Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 05-31-2006
License: GPL

Reading configuration data...

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

*** One or more problems was encountered while processing the config
files...

 Check your configuration file(s) to ensure that they contain valid
 directives and data defintions.  If you are upgrading from a previous 
 version of Nagios, you should be aware that some variables/definitions
 may have been removed or modified in this version.  Make sure to read
 the HTML documentation regarding the config files, as well as the 
 'Whats New' section to find out what has changed.
 

 



 

On 6/21/07, Jim Perrin [EMAIL PROTECTED] wrote: 

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 a revolutionary
act. 
George Orwell

 

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

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread 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...

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



On 6/21/07, Palle Jensen [EMAIL PROTECTED] wrote:


 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 Perrin
*Cc:* nagios-users@lists.sourceforge.net
*Subject:* Re: [Nagios-users] Nagios Message Acknowledgment



Hey this is the error i get when i try to debug the above command for the
acknowledgement does anyone know why or how to fix it





this is what i get:



* nagios -v /etc/nagios/nagios.cfg*

Nagios 2.4
Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 05-31-2006
License: GPL

Reading configuration data...

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

*** One or more problems was encountered while processing the config
files...

 Check your configuration file(s) to ensure that they contain valid
 directives and data defintions.  If you are upgrading from a previous

 version of Nagios, you should be aware that some
variables/definitions
 may have been removed or modified in this version.  Make sure to read
 the HTML documentation regarding the config files, as well as the
 'Whats New' section to find out what has changed.








On 6/21/07, *Jim Perrin* [EMAIL PROTECTED] wrote:

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 a
revolutionary act.
George Orwell



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

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread 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
 Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
 Last Modified: 05-31-2006
 License: GPL
 
 Reading configuration data...
 
 Error: Invalid command object directive '$HOSTACKAUTHOR$\nAcknowledged:'.
 Error: Could not add object property in file 
 '/etc/nagios/misccommands.cfg' on line 54.
 
 
  
 On 6/21/07, *Palle Jensen* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 Could it be a spelling problem  Acnkowledgement:  - Acknowledgement?
 
  
 
   Error: Invalid command object directive
 '$HOSTACKAUTHOR$\nAcnkowledgement:'.
 
  
 
 - Palle
 
 
 
 *From:* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]] *On Behalf Of
 *Nedim Bicic
 *Sent:* Thursday, June 21, 2007 2:11 PM
 *To: * Jim Perrin
 *Cc:* nagios-users@lists.sourceforge.net
 mailto:nagios-users@lists.sourceforge.net
 *Subject:* Re: [Nagios-users] Nagios Message Acknowledgment
 
  
 
 Hey this is the error i get when i try to debug the above command
 for the acknowledgement does anyone know why or how to fix it
 
  
 
  
 
 this is what i get:
 
  
 
 ** nagios -v /etc/nagios/nagios.cfg**
 
 Nagios 2.4
 Copyright (c) 1999-2006 Ethan Galstad ( http://www.nagios.org
 http://www.nagios.org/)
 Last Modified: 05-31-2006
 License: GPL
 
 Reading configuration data...
 
 Error: Invalid command object directive
 '$HOSTACKAUTHOR$\nAcnkowledgement:'.
 Error: Could not add object property in file
 '/etc/nagios/misccommands.cfg' on line 54.
 
 *** One or more problems was encountered while processing the
 config files...
 
  Check your configuration file(s) to ensure that they contain valid
  directives and data defintions.  If you are upgrading from a
 previous
  version of Nagios, you should be aware that some
 variables/definitions
  may have been removed or modified in this version.  Make sure
 to read
  the HTML documentation regarding the config files, as well as the
  'Whats New' section to find out what has changed.
  
 
  
 
 
 
  
 
 On 6/21/07, *Jim Perrin*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
 On 6/21/07, Nedim Bicic [EMAIL PROTECTED] mailto:[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 a
 revolutionary act.
 George Orwell
 
  
 
 
 
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 
 
 
 
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue. 
 ::: Messages without supporting info will risk being sent to /dev/null

-- 

Adam Kennedy
Network Administrator
Cyberlink International
Phone: 888-293-3693 x4352
Fax: 888-293-3995

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


[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 notified if there is a error in the config.
The reason of using a cronjob is that custom programs populate/change my .cfg 
files

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

Re: [Nagios-users] 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
 'server01\tMemuse\tMemory usage: total:4485.60 Mb - used: 1452.13 Mb (32%) -
 free: 3033.47 Mb (68%)\tMemory
 usage=1452.13Mb;3588.48;4037.04;0.00;4485.60\n' | nc6 -u -w 3 localhost
 5667' for service 'Memuse' on host 'server01' timed out after 5 seconds

Ok... I assume that what you want is the amount of used memory. This 
is uniquely enclosed between 'used: ' and ' Mb' and it's a decimal number.

 And this is what ngraph./log shows:
 
 2007-06-15 11:35:14 PIPE: server01Memuse  Memory usage: total:4485.60
 Mb - used: 1502.13 Mb (33%) - free: 2983.46 Mb (67%)  Memory
 usage=1502.13Mb;3588.48;4037.04;0.00;4485.60
 2007-06-15 11:35:14 REGEX: 4 blocks for 'Memuse' found.
 2007-06-15 11:35:14 REGEX: graph_value=Memory usage
 2007-06-15 11:35:14 REGEX: output=perfdata
 2007-06-15 11:35:14 REGEX: regex=m/Memory usage=([0-9]+)Mb/i

This line looks for digits between '...usage=' and 'Mb', which is not 
the format your plugin produces.

 2007-06-15 11:35:14 REGEX: perfdata=Memory
 usage=1502.13Mb;3588.48;4037.04;0.00;4485.60
 2007-06-15 11:35:14 REGEX: NO MATCH.
 2007-06-15 11:35:14 VALUES: [server01][Memuse]:No matching perfdata values
 found...

Logical result, then.

 The first part of check_ntmem.ncfg looks like this (there is more but it is
 pretty long):
 
 define ngraph {
   graph_legend Memory Used
   graph_perf_regex Memory usage=([0-9]+)Mb

Try this line instead:
graph_perf_regexused: (\d+\.\d+) Mb
I think that should work. And I guess you see how his works, at least 
basically. Some understanding of regular expressions IS helpful here.

   graph_value Memory usage
   hide yes
   rrd_color 00a000
   rrd_plottype AREA
   service_name Memuse
 }
 
 I use check_nt to monitor windows hosts, and the plugins return stuff like
 CPU Load 23% (5 min average) |   '5 min avg Load'=23%;80;90;0;100
 which is captures by the following ngraph configuration:
 define ngraph{
 service_nameWindows Load
 graph_perf_regex=(\d+)%;
 graph_value load
 graph_units CPU Usage %
 graph_legendavg load
 rrd_plottypeAREA
 rrd_color   EACC00
}
 
  The regex gets the digits between = and %, which is stored in the
 rrd file.
 
 I will definitely try that, thanks.

I think it won't fit to your plugin :-(

 I'm still unsure where exactly your problem is... is it understanding
 how to capture numbers from the plugin output? Or is it in setting up
 all the graphical elements you want?
 Correct that is right on the spot.

Well, the graphs are a little different. Most of the commands are more 
or less directly passed to rrdtoll, so you'll need to read the man 
pages for that beast. The command format is a little too cryptic for 
me to get useful results without lots of trial and error :-)

 (Note that this is not meant as an advertisement, but rather as a last
 resort solution for Palle!)
 Are you kidding??
 No.
 
 I appreciate the help you are giving, and sharing your experience, and
 apologies for misunderstanding.

No worries, as the Aussies are said to say :-)

Arno

 Thanks,
 - Palle
 
 
 

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


Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread 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 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 host down noticifations

 Here is the command i have in now:

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


 On 6/21/07, *Adam Kennedy* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 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
   Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
   Last Modified: 05-31-2006
   License: GPL
  
   Reading configuration data...
  
   Error: Invalid command object directive
 '$HOSTACKAUTHOR$\nAcknowledged:'.
   Error: Could not add object property in file
   '/etc/nagios/misccommands.cfg' on line 54.
  
  
  
   On 6/21/07, *Palle Jensen* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
  
   Could it be a spelling problem  Acnkowledgement:  -
 Acknowledgement?
  
  
  
 Error: Invalid command object directive
   '$HOSTACKAUTHOR$\nAcnkowledgement:'.
  
  
  
   - Palle
  
  



  
   *From:* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]] *On Behalf Of
   *Nedim Bicic
   *Sent:* Thursday, June 21, 2007 2:11 PM
   *To: * Jim Perrin
   *Cc:* nagios-users@lists.sourceforge.net
 mailto:nagios-users@lists.sourceforge.net
   mailto:nagios-users@lists.sourceforge.net
 mailto:nagios-users@lists.sourceforge.net
   *Subject:* Re: [Nagios-users] Nagios Message Acknowledgment
  
  
  
   Hey this is the error i get when i try to debug the above
command
   for the acknowledgement does anyone know why or how to fix it
  
  
  
  
  
   this is what i get:
  
  
  
   ** nagios -v /etc/nagios/nagios.cfg**
  
   Nagios 2.4
   Copyright (c) 1999-2006 Ethan Galstad ( http://www.nagios.org
http://www.nagios.org/)
   Last Modified: 05-31-2006
   License: GPL
  
   Reading configuration data...
  
   Error: Invalid command object directive
   '$HOSTACKAUTHOR$\nAcnkowledgement:'.
   Error: Could not add object property in file
   '/etc/nagios/misccommands.cfg' on line 54.
  
   *** One or more problems was encountered while processing
the
   config files...
  
Check your configuration file(s) to ensure that they
 contain valid
directives and data defintions.  If you are upgrading
from a
   previous
version of Nagios, you should be aware that some
   variables/definitions
may have been removed or modified in this version.  Make
 sure
   to read
the HTML documentation regarding the config files, as
 well as the
'Whats New' section to find out what has changed.
  
  
  
  
  
  
  
  
   On 6/21/07, *Jim Perrin*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
  
   On 6/21/07, Nedim Bicic [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED]
 mailto:[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?
  

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 once the problem is resolved.  Is there a way to have
 Nagios send me an alert for critical status?  I'm pretty sure I have that
 setup but it isn't working.  After this I went ahead and set up basic HTTP
 monitoring for all of our servers, however, 403 errors are not sending any
 notifications to me.  Also, I'm trying to monitor the CRM site on our
 windows domain however since the Linux box is obviously not on the domain,
 it can't authenticate when hitting the site so it can't find the string i've
 specified.  Any ideas on how to make nagios authenticate and then check the
 string?

Try check_http -h for help on the plugin. It should answer some or all
of those questions.

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


Re: [Nagios-users] Nagios HTTP monitoring

2007-06-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 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/nagios/plugins/check_http -H $ARG1$ -u
$ARG2$ -a $ARG3$
   }

But if you mean authentication within a windows AD domain. Maybe Samba can
help. Because then you can make your linux server a member of the AD
domain.

Regards,

Gerard.

On Thursday 21 June 2007 22:48:08 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 once the problem is resolved.  Is
there
 a way to have Nagios send me an alert for critical status?  I'm pretty
sure
 I have that setup but it isn't working.  After this I went ahead and set
up
 basic HTTP monitoring for all of our servers, however, 403 errors are
not
 sending any notifications to me.  Also, I'm trying to monitor the CRM
site
 on our windows domain however since the Linux box is obviously not on
the
 domain, it can't authenticate when hitting the site so it can't find the
 string i've specified.  Any ideas on how to make nagios authenticate and
 then check the string?

 Thanks



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

Re: [Nagios-users] Nagios HTTP monitoring

2007-06-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, Jerad Riggin [EMAIL PROTECTED] wrote:


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 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/nagios/plugins/check_http -H $ARG1$ -u
 $ARG2$ -a $ARG3$
}

 But if you mean authentication within a windows AD domain. Maybe Samba
 can
 help. Because then you can make your linux server a member of the AD
 domain.

 Regards,

 Gerard.

 On Thursday 21 June 2007 22:48:08 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 once the problem is resolved.  Is
 there
  a way to have Nagios send me an alert for critical status?  I'm pretty
 sure
  I have that setup but it isn't working.  After this I went ahead and
 set up
  basic HTTP monitoring for all of our servers, however, 403 errors are
 not
  sending any notifications to me.  Also, I'm trying to monitor the CRM
 site
  on our windows domain however since the Linux box is obviously not on
 the
  domain, it can't authenticate when hitting the site so it can't find
 the
  string i've specified.  Any ideas on how to make nagios authenticate
 and
  then check the string?
 
  Thanks




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

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread 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 i have restarted nagios
 this is what i get when a host goes down 
  
 * Nagios *
 
 Notification Type: PROBLEM
 
 Host: FCD155E
 
 State: DOWN
 
 Address: 10.31.6.111
 
 Info: CRITICAL - Plugin timed out after 10 seconds
 
 Date/Time: Thu Jun 21 16:45:49 EDT 2007
 
   
 and this is what i get when i acknowledge the problem does anyone know
 why it doesnt show up in here:
  
 * Nagios *
 
 Notification Type: ACKNOWLEDGEMENT
 
 Host: FCD155E
 
 State: DOWN
 
 Address: 10.31.6.111
 
 Info: CRITICAL - Plugin timed out after 10 seconds
 
 Date/Time: Thu Jun 21 16:47:48 EDT 2007
 
 
 any help would be 
 
 
  
 On 6/21/07, Rev. Dr. Aaron M. Segura [EMAIL PROTECTED]
 wrote: 
 
 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
 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   /bin/echo -e Subject: 
  $NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$\n
 \n*
  Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost:
  $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS
 $\nInfo:
  $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n\nAcknowledged
 By: 
  $HOSTACKAUTHOR$\nAcknowledgement: $HOSTACKCOMMENT$
 | /bin/mail
  $CONTACTEMAIL$
 }
 
 
  On 6/21/07, Adam Kennedy [EMAIL PROTECTED] wrote:
  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
   Copyright (c) 1999-2006 Ethan Galstad
  (http://www.nagios.org)
   Last Modified: 05-31-2006
   License: GPL
  
   Reading configuration data...
  
   Error: Invalid command object directive
 '$HOSTACKAUTHOR
  $\nAcknowledged:'.
   Error: Could not add object property in file 
   '/etc/nagios/misccommands.cfg' on line 54.
  
  
  
   On 6/21/07, *Palle Jensen* [EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED] wrote:
  
   Could it be a spelling problem 
 Acnkowledgement:  - 
  Acknowledgement?
  
  
  
 Error: Invalid command object directive
   '$HOSTACKAUTHOR$\nAcnkowledgement:'. 
  
  
  
   - Palle
  
  
 
 
  
  
   *From:*
 [EMAIL PROTECTED]
  
 mailto:[EMAIL PROTECTED]
  
 [mailto:[EMAIL PROTECTED]
   mailto:
 [EMAIL PROTECTED]] *On
  Behalf Of
   *Nedim Bicic
   *Sent:* Thursday, June 21, 2007 2:11 PM 
   *To: * Jim Perrin
   *Cc:* nagios-users@lists.sourceforge.net
   mailto:nagios-users@lists.sourceforge.net
   *Subject:* Re: [Nagios-users] Nagios Message
  Acknowledgment
  
  
  
   Hey this is the error i get when i try to
 debug the 
  above command
   for the acknowledgement does anyone know why
 or how to
  fix it
 

Re: [Nagios-users] Nagios Message Acknowledgment

2007-06-21 Thread Marc Powell


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

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

--
Marc


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


Re: [Nagios-users] Nagios 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: Thursday, June 21, 2007 3:40 PM
 To: Adam Kennedy
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Nagios Message Acknowledgment

 NO ERROR NICE !!   Good job that was the mistake

 i just dont know weather i should reload nagios or restart it for it
to
 take affect

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

--
Marc


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

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

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

2007-06-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/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 you much if it crashes because of a broken config.

 The cron job could, naturally, report problems as passive results to 
 Nagios...
 
 Nagios will never crash because of a broken config if it's running; 
 it just won't load that config.  Checking from a cron job works, too,
 but there's no reason Nagios can't also check to see if the on-disk
 config is valid.

Not true. I noticed more than once that nagios would bail out on
restarts with broken configs (with versions ranging between 2.0 beta to
2.4) and I just verified with v2.7.

About the other problem, why not have the scripts restart nagios
themselves after checking that the config isn't broken? As it was
mentioned in another thread just use the return status:

#!/bin/bash
if nagios -v nagios.cfg; then
  killall -HUP nagios
else
  echo Nagios config is broken!
  exit 1
fi


#!/usr/bin/perl
`nagios -v nagios.cfg`;
if ($?) {
  die(Nagios config is broken!);
}
killall -HUP nagios



If you have different scripts running you can also write a standalone
script that does the job. It could also send back the result to Nagios.

Thomas

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


[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.

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