Re: [Nagios-users] No email alerts ??

2007-10-04 Thread Hugo van der Kooij
On Wed, 3 Oct 2007, Nedim Bicic wrote:

 Hey sounds good but what exctly am i exucuting at the commadn line

 is this the line i am executing: i replaced $CONTACTEMAIL$ with my email
 address but says cant find directory i tried executing from root:
 su nagios s /bin/sh but says cant find directory ?? help please

Where did you leave all those dashes?

I said:
su - nagios -s /bin/sh

 */bin/mail -s  Host $HOSTSTATE$ alert for $HOSTNAME$! [EMAIL PROTECTED]

Loose the $ signs. They mark variables.so they are most definitly wrong 
around your email address.

PS: Uberquotes sucks ;-)

-- 
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
This message is using 100% recycled electrons.

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

Some men see computers as they are and say Windows
I use computers with Linux and say Why Windows?
(Thanks JFK, for this quote of George Bernard Shaw.)

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] No email alerts ??

2007-10-04 Thread Nedim Bicic
So what do you think about me execting from the command line

i still cant get it to execute from the nagios

I will check out this manaul link






On 10/4/07, Jim Perrin [EMAIL PROTECTED] wrote:

 On 10/4/07, Nedim Bicic [EMAIL PROTECTED] wrote:
  OK check this out..funny thing is regarding the path /bin/mail doesnt
 exist
  anywhere from the root i tryed tracing back so
  i tryed executing this from the command line and i am able to recieve
 the
  email which now at least i know MTA is defintly working:   I didnt put
 any
  argumetns as u can see this is just to test
 
  usr/bin/sendmail -s  [EMAIL PROTECTED] works from command line but not
 from
  commands.cfg??
 
  Now i editted the commands.cfg file copy and pasted the same exact above
  line, but doesnt send anything when i take down the host, I also had to
  tweak the linux firewall to allolw 25 in and out of that port.
 
  I did add nagios user and group that was when i configured apache and to
  accept external commands
 
  I cant answer that last question i dont even know wat kselinux is not to
  mention enabled , in one sentence wat is it and how does this affect
 emails
  for nagios on my issue


 https://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/selinux-guide/
 It is a security context that is enabled by default on RHEL4+. It
 prevents programs from doing things the system thinks it shouldn't be
 allowed to do. See the link.


 --
 During times of universal deceit, telling the truth becomes a
 revolutionary act.
 George Orwell

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] No email alerts ??

2007-10-04 Thread Hugo van der Kooij
On Thu, 4 Oct 2007, Nedim Bicic wrote:

 OK check this out..funny thing is regarding the path /bin/mail doesnt exist
 anywhere from the root i tryed tracing back so
 i tryed executing this from the command line and i am able to recieve the
 email which now at least i know MTA is defintly working:   I didnt put any
 argumetns as u can see this is just to test

 usr/bin/sendmail -s  [EMAIL PROTECTED] works from command line but not from
 commands.cfg??

Wether it is sloppiness or a typo is not clear to me. But 
/usr/bin/sendmail is something entirely different from usr/bin/sendmail

The second option will only happen to work if you happen to be in the root 
directory. It will fail from any other directory.

Please be a 1000% more accurate. Because it will get back at you with in 
ways you do not seem to comprehend yet.

Hugo.

-- 
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
This message is using 100% recycled electrons.

Some men see computers as they are and say Windows
I use computers with Linux and say Why Windows?
(Thanks JFK, for this quote of George Bernard Shaw.)

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] No email alerts ??

2007-10-04 Thread Nedim Bicic
Your definitly right about only sending from the root  (usr/bin/sendmail)
not a typo i tried that since /bin/mail didnt work for me so i thought i
would try it out cause thats all it can do i tried placing that in the
commands cfg obviusly didnt work... now i also tried making the user root
and gave it permission but now i think i played way to much with mail and
sendmail i screwed it up big time with the permissions.wat i think will
end up doing is reinstalling nagios again..crap

I didnt know that sendmail and mail are two different i guess i was wrong ..
i mean i did installation word by word as written in manaul i have
everything working expet email ?

one small question is bin/mail a relay client ? and where is $contactemail$
defined anywhere except commands.cfg

i see in the nagios.log file as mention in my eearlier posts that i see its
trying to send it out but keeps getting line code error 127 unkown email
address (which is my gmail)


On 10/4/07, Hugo van der Kooij [EMAIL PROTECTED] wrote:

 On Thu, 4 Oct 2007, Nedim Bicic right about only sending from the root
 casue thats all it can do i tried placing that in the commands cfg obviusly
 didnt work... now i also tried making the user root and gave it permission

  OK check this out..funny thing is regarding the path /bin/mail doesnt
 exist
  anywhere from the root i tryed tracing back so
  i tryed executing this from the command line and i am able to recieve
 the
  email which now at least i know MTA is defintly working:   I didnt put
 any
  argumetns as u can see this is just to test
 
  usr/bin/sendmail -s  [EMAIL PROTECTED] works from command line but not
 from
  commands.cfg??

 Wether it is sloppiness or a typo is not clear to me. But
 /usr/bin/sendmail is something entirely different from usr/bin/sendmail

 The second option will only happen to work if you happen to be in the root
 directory. It will fail from any other directory.

 Please be a 1000% more accurate. Because it will get back at you with in
 ways you do not seem to comprehend yet.

 Hugo.

 --
[EMAIL PROTECTED]http://hugo.vanderkooij.org/
This message is using 100% recycled electrons.

Some men see computers as they are and say Windows
I use computers with Linux and say Why Windows?
(Thanks JFK, for this quote of George Bernard Shaw.)

 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when
 reporting any issue.
 ::: Messages without supporting info will risk being sent to /dev/null

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] No email alerts ??

2007-10-04 Thread Jim Perrin
For the love of god please stop top-posting.

On 10/4/07, Nedim Bicic [EMAIL PROTECTED] wrote:
 Your definitly right about only sending from the root  (usr/bin/sendmail)
 not a typo i tried that since /bin/mail didnt work for me so i thought i
 would try it out cause thats all it can do i tried placing that in the
 commands cfg obviusly didnt work... now i also tried making the user root
 and gave it permission but now i think i played way to much with mail and
 sendmail i screwed it up big time with the permissions.wat i think will
 end up doing is reinstalling nagios again..crap

Did you check that /bin/mail actually exists? If it doesn't, you might
consider installing the package which provides it.

 I didnt know that sendmail and mail are two different i guess i was wrong ..
 i mean i did installation word by word as written in manaul i have
 everything working expet email ?

Just because you followed the nagios install guide word for word
doesn't mean you did it properly. If the system you're building nagios
on isn't sane, then you're going to have many other issues no matter
how closely you follow the nagios directions.

Since you're on RHEL, why are you building nagios from scratch? Why
not use the rpms which are built for RHEL and listed on the download
section of the nagios page?

 one small question is bin/mail a relay client ? and where is $contactemail$
 defined anywhere except commands.cfg

The $contactemail$ variable is defined in your contact definition, and
is set by (of all magical options) the 'email' section.

 i see in the nagios.log file as mention in my eearlier posts that i see its
 trying to send it out but keeps getting line code error 127 unkown email
 address (which is my gmail)

No. The error you referenced earlier stated that nagios didn't have
permission to, or could not find /bin/mail or /usr/bin/printf  Did
you check the mail log for sendmail to see if it actually got the
message but failed to send, or are you simply looking at the
nagios.log?

Given the vast amounts of typos and misplacings of the /, I would very
much recommend that you go back over your configs and make sure you
haven't typed them as accurately as you've formed your emails.

-- 
During times of universal deceit, telling the truth becomes a revolutionary act.
George Orwell

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
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] No email alerts ??

2007-10-03 Thread Nedim Bicic
Hey all have nagios 2.9 running linux red hat enterprise 4 the email for
nagios sending notifications arent working for some reason i know the box
can send email because the it has the MTA agent installed cuase i can send
other emials from that machine

I can see host down in nagios webpage i have the contact groups set
appropritaley and of course my email address in contacts group i even did a
sanity check to see if i have any syntex errors nothing so far.

this is what i have in commands.cfg file under emails:

# 'host-notify-by-email' command definition
define command{
 command_name host-notify-by-email
 command_line /usr/bin/printf %b * Nagios 2.9 *\n\nNotification
Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n |
/bin/mail -s Host $HOSTSTATE$ alert for $HOSTNAME$! $CONTACTEMAIL$
 }

and i also took out the option not to notify in my host file.

something has to be tweaked for sure any help

thanks
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] No email alerts ??

2007-10-03 Thread Nedim Bicic
Here are my contact.cfg file

define contact{
 contact_nameNedo
 alias   Nedo Bicic
 service_notification_period 24x7
 host_notification_period24x7
 service_notification_optionsw,u,c,r
 host_notification_options   d,u,r
 service_notification_commands   notify-by-email
 host_notification_commands  host-notify-by-email
 email [EMAIL PROTECTED]
 }

this is my contactsgroup.cfg

define contactgroup{
 contactgroup_name  Nedo
 alias  Nedo Admin
 members   Nedo
 }

adn this is for my host file i disconnect in order to get email alerts:

define host{
use generic-host; Name of host
template to use
host_name   Test1
alias   Test1
address 10.8.2.40
check_command   check-host-alive
max_check_attempts  10
check_period  24x7
notification_interval   120
notification_period 24x7
notification_optionsd,r
contact_groups  Nedo
}


and these are the serivice.cfg file for the above


define service{
use generic-service ; Name of
service template to use
host_name   Test1
service_description PING
is_volatile 0
check_period24x7
max_check_attempts  4
normal_check_interval   2
retry_check_interval1
contact_groups  Nedo
 notification_options  w,u,c,r
notification_interval   60
notification_period 24x7
 check_command   check_ping!100.0,20%!500.0,60%
 }


and here is my commands.cfg file just incase something i am doing wrong

# 'host-notify-by-email' command definition
define command{
 command_name host-notify-by-email
 command_line /usr/bin/printf %b * Nagios 2.9 *\n\nNotification
Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n |
/bin/mail -s  Host $HOSTSTATE$ alert for $HOSTNAME$! $CONTACTEMAIL$
 }

also i checked the nagios.log this is wat i get but my gmail is working i am
sending email right now

[1191443852] Warning: Attempting to execute the command /usr/bin/printf
%b * Nagios 2.9 *\n\nNotification Type: PROBLEM\nHost:
Test1\nState: DOWN\nAddress: 10.8.2.40\nInfo: PING CRITICAL - Packet loss =
100%\n\nDate/Time: Wed Oct 3 15:37:32 CDT 2007\n | /bin/mail -s Host DOWN
alert for Test1! [EMAIL PROTECTED] resulted in a return code of 127.  Make
sure the script or binary you are trying to execute actually exists...


someone any clues





On 10/3/07, Jim Perrin [EMAIL PROTECTED] wrote:

 On 10/3/07, Nedim Bicic [EMAIL PROTECTED] wrote:
  Hey all have nagios 2.9 running linux red hat enterprise 4 the email for
  nagios sending notifications arent working for some reason i know the
 box
  can send email because the it has the MTA agent installed cuase i can
 send
  other emials from that machine
 
  I can see host down in nagios webpage i have the contact groups set
  appropritaley and of course my email address in contacts group i even
 did a
  sanity check to see if i have any syntex errors nothing so far.
 
  this is what i have in commands.cfg file under emails:
 
  # 'host-notify-by-email' command definition
  define command{
   command_name host-notify-by-email
   command_line /usr/bin/printf %b * Nagios 2.9*\n\nNotification
  Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:
  $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n |
  /bin/mail -s Host $HOSTSTATE$ alert for $HOSTNAME$! $CONTACTEMAIL$
   }
 
  and i also took out the option not to notify in my host file.
 
  something has to be tweaked for sure any help

 Did you set your contacts up so that they recieve notifications?

 --
 During times of universal deceit, telling the truth becomes a
 revolutionary act.
 George Orwell

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] No email alerts ??

2007-10-03 Thread Hugo van der Kooij
On Wed, 3 Oct 2007, Nedim Bicic wrote:

 Hey all have nagios 2.9 running linux red hat enterprise 4 the email for
 nagios sending notifications arent working for some reason i know the box
 can send email because the it has the MTA agent installed cuase i can send
 other emials from that machine

 I can see host down in nagios webpage i have the contact groups set
 appropritaley and of course my email address in contacts group i even did a
 sanity check to see if i have any syntex errors nothing so far.

 this is what i have in commands.cfg file under emails:

 # 'host-notify-by-email' command definition
 define command{
 command_name host-notify-by-email
 command_line /usr/bin/printf %b * Nagios 2.9 *\n\nNotification
 Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:
 $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n |
 /bin/mail -s Host $HOSTSTATE$ alert for $HOSTNAME$! $CONTACTEMAIL$
 }

 and i also took out the option not to notify in my host file.

Do you have events logged by Nagios? Does it show notifications? If that 
happens to be the case then llok at the delivery of the notifications.

If one assumes you run this as the nagios user then test is as such.

Become the nagios user with:
su - nagios s /bin/sh

Then execute the command as shown on the commandline but substitute 
$CONTACTEMAIL for the intended recipient.

If that fails to deliver then you need to fix your MTA. Get to the logs of 
it to check it out.

Hugo.

-- 
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
This message is using 100% recycled electrons.

Some men see computers as they are and say Windows
I use computers with Linux and say Why Windows?
(Thanks JFK, for this quote of George Bernard Shaw.)

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] No email alerts ??

2007-10-03 Thread Jim Perrin
On 10/3/07, Nedim Bicic [EMAIL PROTECTED] wrote:

 [1191443852] Warning: Attempting to execute the command /usr/bin/printf
 %b * Nagios 2.9 *\n\nNotification Type: PROBLEM\nHost:
 Test1\nState: DOWN\nAddress: 10.8.2.40\nInfo: PING CRITICAL - Packet loss =
 100%\n\nDate/Time: Wed Oct 3 15:37:32 CDT 2007\n | /bin/mail -s Host DOWN
 alert for Test1! [EMAIL PROTECTED] resulted in a return code of 127.  Make
 sure the script or binary you are trying to execute actually exists...

This message itself gives you several clues. Nagios either doesn't
have access to /usr/bin/printf, or to /bin/mail. You said you were on
a RHEL4 box, do you have SELinux enabled?

Have you tried running this command on your system as the nagios user manually?

-- 
During times of universal deceit, telling the truth becomes a revolutionary act.
George Orwell

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] No email alerts ??

2007-10-03 Thread Nedim Bicic
Hey sounds good but what exctly am i exucuting at the commadn line

is this the line i am executing: i replaced $CONTACTEMAIL$ with my email
address but says cant find directory i tried executing from root:
su nagios s /bin/sh but says cant find directory ?? help please

*/bin/mail -s  Host $HOSTSTATE$ alert for $HOSTNAME$! [EMAIL PROTECTED]




On 10/3/07, Hugo van der Kooij [EMAIL PROTECTED] wrote:

 On Wed, 3 Oct 2007, Nedim Bicic wrote:

  Hey all have nagios 2.9 running linux red hat enterprise 4 the email for
  nagios sending notifications arent working for some reason i know the
 box
  can send email because the it has the MTA agent installed cuase i can
 send
  other emials from that machine
 
  I can see host down in nagios webpage i have the contact groups set
  appropritaley and of course my email address in contacts group i even
 did a
  sanity check to see if i have any syntex errors nothing so far.
 
  this is what i have in commands.cfg file under emails:
 
  # 'host-notify-by-email' command definition
  define command{
  command_name host-notify-by-email
  command_line /usr/bin/printf %b * Nagios 2.9*\n\nNotification
  Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:
  $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n |
  /bin/mail -s Host $HOSTSTATE$ alert for $HOSTNAME$! $CONTACTEMAIL$
  }
 
  and i also took out the option not to notify in my host file.

 Do you have events logged by Nagios? Does it show notifications? If that
 happens to be the case then llok at the delivery of the notifications.

 If one assumes you run this as the nagios user then test is as such.

 Become the nagios user with:
su - nagios s /bin/sh

 Then execute the command as shown on the commandline but substitute
 $CONTACTEMAIL for the intended recipient.

 If that fails to deliver then you need to fix your MTA. Get to the logs of
 it to check it out.

 Hugo.

 --
[EMAIL PROTECTED]http://hugo.vanderkooij.org/
This message is using 100% recycled electrons.

Some men see computers as they are and say Windows
I use computers with Linux and say Why Windows?
(Thanks JFK, for this quote of George Bernard Shaw.)

 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when
 reporting any issue.
 ::: Messages without supporting info will risk being sent to /dev/null

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] No email alerts ??

2007-10-03 Thread Jim Perrin
On 10/3/07, Nedim Bicic [EMAIL PROTECTED] wrote:

 Hey sounds good but what exctly am i exucuting at the commadn line

You're attempting to run the same command nagios is. Look at the
command nagios is running, starting from /usr/bin/printf. Replace the
variables listed with appropriate values.

 is this the line i am executing: i replaced $CONTACTEMAIL$ with my email
 address but says cant find directory i tried executing from root:
 su nagios s /bin/sh but says cant find directory ?? help please

 /bin/mail -s  Host $HOSTSTATE$ alert for $HOSTNAME$! [EMAIL PROTECTED]

Wow. You got this one really wrong. Start from /usr/bin/printf.
Replace variables. DO NOT include the $ signs in your replacements.

Also. When you attempted this install, did you add the nagios user and
group? And to follow up on the last question you didn't answer: Since
you're using RHEL4, does your system have selinux enabled?


-- 
During times of universal deceit, telling the truth becomes a revolutionary act.
George Orwell

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
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] Multiple email alerts

2006-11-28 Thread James Marcus
Hi,
I¹m using a $8.00/month Xen account to run Nagios to monitor 3 machines and
37 services.  My issue is that either the Xen machines network or the
network I host on gets slow and then I get 37 emails regarding downed
services.  I read the FAQ and thought that setting notification_interval to
0 would do the trick based on this link:
http://www.nagios.org/faqs/viewfaq.php?faq_id=71expand=falseshowdesc=false
Unfortunately I just got 28 emails for one machine.  I want to setup Nagios
so that if the machine is unreachable, then it should assume that none of
the services are reachable and it should only send out one alert.

Thanks,
James


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


Re: [Nagios-users] Multiple email alerts

2006-11-28 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of James Marcus
 Sent: Tuesday, November 28, 2006 1:06 PM
 To: Nagios Users mailinglist
 Subject: [Nagios-users] Multiple email alerts
 
 Hi,
 I¹m using a $8.00/month Xen account to run Nagios to monitor 3 machines
 and
 37 services.  My issue is that either the Xen machines network or the
 network I host on gets slow and then I get 37 emails regarding downed
 services.  I read the FAQ and thought that setting notification_interval
 to
 0 would do the trick based on this link:
 http://www.nagios.org/faqs/viewfaq.php?faq_id=71expand=falseshowdesc=fal
 se
 Unfortunately I just got 28 emails for one machine.  I want to setup
 Nagios
 so that if the machine is unreachable, then it should assume that none of
 the services are reachable and it should only send out one alert.

Specify a host check_command that will return CRITICAL when this problem 
occurs. Nagios will automatically suppress service notifications for hosts that 
are in a non-OK state.

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

--
Marc

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