Re: [Nagios-users] contacts.cfg error.

2008-10-16 Thread Hugo van der Kooij
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

jeremiah wrote:
 It appears to be defined to me. Is this not correct?

No. It only shows to me that you have not done the required thing. That
is that you need to sit down and read the manual of nagios.

So it would be very much appriciated if you take the time to sit down
with the manual and find the answers in there as most of the questions
you have send so far indicate that you have not even seen the manual.

If something is unclear in the manual then by all means ask for
clearification. But I think that asking questions that show a lack of
commitment to read the manual and understanding the way in which nagios
works is a cheap way of getting around you doing what you should do.

And it is my simple view that we should not encourage people to start
with nagios untill they have read the manual.

Hugo.

- --
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

A: Yes.
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

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

iD8DBQFI9tsnBvzDRVjxmYERAisVAKCgQrwzccAsxI8klhw6ztot29iQLwCgiaEX
coUF2KLGMD6MGMa8cthJU68=
=pzlR
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] contacts.cfg error.

2008-10-15 Thread jeremiah
Any thoughts on how to fix this one?


Checking contacts...
Error: Service notification command 'notify-by-email' specified for
contact 'root' is not defined anywhere!
Error: Host notification command 'host-notify-by-email' specified for
contact 'root' is not defined anywhere!
=

Here is my contacts.cfg file...

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

define contactgroup{
contactgroup_name   admins
alias   Nagios Administrators
members root
}

Thanks!
JJ


Disclaimer: The information contained in this transmission, including any 
attachments, may contain confidential information of Panasonic Avionics
Corporation.  This transmission is intended only for the use of the 
addressee(s) listed above.  Unauthorized review, dissemination or other use 
of the information contained in this transmission is strictly prohibited. 
If you have received this transmission in error or have reason to believe 
you are not authorized to receive it, please notify the sender by return 
email and promptly delete the transmission.



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] contacts.cfg error.

2008-10-15 Thread Sean McAfee
jeremiah wrote:
 Any thoughts on how to fix this one?

 
 Checking contacts...
 Error: Service notification command 'notify-by-email' specified for
 contact 'root' is not defined anywhere!
 Error: Host notification command 'host-notify-by-email' specified for
 contact 'root' is not defined anywhere!
 =

 Here is my contacts.cfg file...
The problem isn't actually with your contacts.cfg, it's just that you're 
missing the commands that are referenced (I know, it can get confusing).

Is commands.cfg anywhere in your nagios.cfg? In a default install, 
that's where these would be defined.

-- 
Sean McAfee
Collaborative Fusion, Inc.

[EMAIL PROTECTED]
 412-422-3463 x 4025

1710 Murray Avenue, Suite 320
Pittsburgh, PA 15217


IMPORTANT: This message contains confidential information
and is intended only for the individual named. If the reader of
this message is not an intended recipient (or the individual
responsible for the delivery of this message to an intended
recipient), please be advised that any re-use, dissemination,
distribution or copying of this message is prohibited. Please
notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The
sender therefore does not accept liability for any errors or
omissions in the contents of this message, which arise as a
result of e-mail transmission.




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] contacts.cfg error.

2008-10-15 Thread Hugo van der Kooij
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

jeremiah wrote:

 Error: Service notification command 'notify-by-email' specified for
 contact 'root' is not defined anywhere!
 Error: Host notification command 'host-notify-by-email' specified for
 contact 'root' is not defined anywhere!

The answer is right in front of you. You need to define these commands.

In fact they should be listed in one of your sample configuration files.

Which sections of the manuals did you use to find an answer to this
question?

Hugo.

- --
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

A: Yes.
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

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

iD8DBQFI9nwcBvzDRVjxmYERAvpJAJ9FY7Yx5NgoYsU7gtVhSvA65+mDUACfV6Gi
SLilbuXS+MczNxNoWsdDooU=
=GihX
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] contacts.cfg error.

2008-10-15 Thread jeremiah
Thanks for your response.

I'm seeing this line in nagios.cfg.

# Command definitions
cfg_file=/etc/nagios2/commands.cfg


What do you tihnk?

JJ

On Wed, 2008-10-15 at 16:25 -0700, Sean McAfee wrote:
 jeremiah wrote:
  Any thoughts on how to fix this one?
 
  
  Checking contacts...
  Error: Service notification command 'notify-by-email' specified for
  contact 'root' is not defined anywhere!
  Error: Host notification command 'host-notify-by-email' specified
 for
  contact 'root' is not defined anywhere!
  =
 
  Here is my contacts.cfg file...
 The problem isn't actually with your contacts.cfg, it's just that
 you're
 missing the commands that are referenced (I know, it can get
 confusing).
 
 Is commands.cfg anywhere in your nagios.cfg? In a default install,
 that's where these would be defined.
 
 --
 Sean McAfee
 Collaborative Fusion, Inc.
 
 [EMAIL PROTECTED]
  412-422-3463 x 4025
 
 1710 Murray Avenue, Suite 320
 Pittsburgh, PA 15217
 
 
 IMPORTANT: This message contains confidential information
 and is intended only for the individual named. If the reader of
 this message is not an intended recipient (or the individual
 responsible for the delivery of this message to an intended
 recipient), please be advised that any re-use, dissemination,
 distribution or copying of this message is prohibited. Please
 notify the sender immediately by e-mail if you have received
 this e-mail by mistake and delete this e-mail from your system.
 E-mail transmission cannot be guaranteed to be secure or
 error-free as information could be intercepted, corrupted, lost,
 destroyed, arrive late or incomplete, or contain viruses. The
 sender therefore does not accept liability for any errors or
 omissions in the contents of this message, which arise as a
 result of e-mail transmission.
 
 
 
 
 
 



Disclaimer: The information contained in this transmission, including any 
attachments, may contain confidential information of Panasonic Avionics
Corporation.  This transmission is intended only for the use of the 
addressee(s) listed above.  Unauthorized review, dissemination or other use 
of the information contained in this transmission is strictly prohibited. 
If you have received this transmission in error or have reason to believe 
you are not authorized to receive it, please notify the sender by return 
email and promptly delete the transmission.



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] contacts.cfg error.

2008-10-15 Thread jeremiah
It appears to be defined to me. Is this not correct?

define contact{
 contact_name  root
 alias  Jeremiah
 service_notification_period  24x7
 host_notification_period  24x7
 service_notification_options  w,u,c,r
 host_notification_options  d,r
 service_notification_commands  notify-by-email
 host_notification_commands  host-notify-by-email
 email  email
 }


On Wed, 2008-10-15 at 16:26 -0700, Hugo van der Kooij wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 jeremiah wrote:
 
  Error: Service notification command 'notify-by-email' specified for
  contact 'root' is not defined anywhere!
  Error: Host notification command 'host-notify-by-email' specified
 for
  contact 'root' is not defined anywhere!
 
 The answer is right in front of you. You need to define these
 commands.
 
 In fact they should be listed in one of your sample configuration
 files.
 
 Which sections of the manuals did you use to find an answer to this
 question?
 
 Hugo.
 
 - --
 [EMAIL PROTECTED]   http://hugo.vanderkooij.org/
 PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc
 
 A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting frowned upon?
 
 Bored? Click on http://spamornot.org/ and rate those images.
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (GNU/Linux)
 Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
 
 iD8DBQFI9nwcBvzDRVjxmYERAvpJAJ9FY7Yx5NgoYsU7gtVhSvA65+mDUACfV6Gi
 SLilbuXS+MczNxNoWsdDooU=
 =GihX
 -END PGP SIGNATURE-
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 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
 
 
 


Disclaimer: The information contained in this transmission, including any 
attachments, may contain confidential information of Panasonic Avionics
Corporation.  This transmission is intended only for the use of the 
addressee(s) listed above.  Unauthorized review, dissemination or other use 
of the information contained in this transmission is strictly prohibited. 
If you have received this transmission in error or have reason to believe 
you are not authorized to receive it, please notify the sender by return 
email and promptly delete the transmission.



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] contacts.cfg error.

2008-10-15 Thread frank
No, you have defined a _contact_. One part of the contact definition is a 
pointer to the notify-by-email command which is not defined.

Here is a sample. It came from the misccommands.cfg file that was part of 
the RPM I installed from fedora.

# 'notify-by-email' command definition
define command{
 command_namenotify-by-email
 command_line/usr/bin/printf %b * Nagios  
*\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: 
$HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: 
$LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$ | /bin/mail -s ** 
$NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** 
$CONTACTEMAIL$
}


-f

On Wed, 15 Oct 2008, jeremiah wrote:

 Date: Wed, 15 Oct 2008 16:43:24 -0700
 From: jeremiah [EMAIL PROTECTED]
 To: Nagios Users Mailinglist nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] contacts.cfg error.
 
 It appears to be defined to me. Is this not correct?

 define contact{
 contact_name  root
 alias  Jeremiah
 service_notification_period  24x7
 host_notification_period  24x7
 service_notification_options  w,u,c,r
 host_notification_options  d,r
 service_notification_commands  notify-by-email
 host_notification_commands  host-notify-by-email
 email  email
 }


 On Wed, 2008-10-15 at 16:26 -0700, Hugo van der Kooij wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 jeremiah wrote:

 Error: Service notification command 'notify-by-email' specified for
 contact 'root' is not defined anywhere!
 Error: Host notification command 'host-notify-by-email' specified
 for
 contact 'root' is not defined anywhere!

 The answer is right in front of you. You need to define these
 commands.

 In fact they should be listed in one of your sample configuration
 files.

 Which sections of the manuals did you use to find an answer to this
 question?

 Hugo.

 - --
 [EMAIL PROTECTED]   http://hugo.vanderkooij.org/
 PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

 A: Yes.
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting frowned upon?

 Bored? Click on http://spamornot.org/ and rate those images.

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

 iD8DBQFI9nwcBvzDRVjxmYERAvpJAJ9FY7Yx5NgoYsU7gtVhSvA65+mDUACfV6Gi
 SLilbuXS+MczNxNoWsdDooU=
 =GihX
 -END PGP SIGNATURE-

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 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





 Disclaimer: The information contained in this transmission, including any
 attachments, may contain confidential information of Panasonic Avionics
 Corporation.  This transmission is intended only for the use of the
 addressee(s) listed above.  Unauthorized review, dissemination or other use
 of the information contained in this transmission is strictly prohibited.
 If you have received this transmission in error or have reason to believe
 you are not authorized to receive it, please notify the sender by return
 email and promptly delete the transmission.



 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing