Re: [Nagios-users] Unable to Open Nagios Web Console-'Page CannotbeDisplayed'

2010-03-28 Thread Michael Gargiullo
For Fedora…  tryps ax | grep httpd

 

From: Giorgio Zarrelli [mailto:zarre...@linux.it] 
Sent: Sunday, March 28, 2010 6:23 AM
To: Nagios Users List
Cc: 
Subject: Re: [Nagios-users] Unable to Open Nagios Web Console-'Page 
CannotbeDisplayed'

 

Check wether the apache2 process is running or not

 

ps ax | grep apache

Ciao,

 

Giorgio


Il giorno 28/mar/2010, alle ore 01.20,  ha 
scritto:

Hi,

 

When I type http://localhost ,I am getting as ‘ Page Cannot be 
Displayed’

 

Any idea how to resolve this…

 

 

Thanks & Regards,

Ravi G

 

From: Jorge Gil [mailto:georgy...@gmail.com] 
Sent: Sunday, March 28, 2010 4:54 AM
To: Nagios Users List
Subject: Re: [Nagios-users] Unable to Open Nagios Web Console-'Page 
Cannotbe Displayed'

 

Hi Ravi,

just a quick check: when you type just localhost or http://localhost on 
the browser of your server, do you get anything? (i.e., is Apache up?)

Jorge

On 3/27/10, ravishankar.gundlap...@wipro.com 
 wrote:

Hi,

I have successfully configured and installed Nagios, according to: 
http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html. No problems at 
all throughout the process.

My problem occurred at step 9.

9) Login to the Web Interface

You should now be able to access the Nagios web interface at the URL 
below. You'll be prompted for the username (nagiosadmin) and password you 
specified earlier.

http://localhost/nagios/



I installed everything on my server. I tried accessing my 
http://serveripaddress/nagios, and no luck – 

 

 I am getting Page Cannot be Displayed error.


Anyone know what I should do at this point? Thanks. 

 

 

 

Regards,

Ravi G



--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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

 


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

___
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

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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] Monitor Java Process

2010-03-03 Thread Michael Gargiullo


-Original Message-
From: Jatin Davey [mailto:jasho...@cisco.com] 
Sent: Wednesday, March 03, 2010 3:20 AM
To: Edwin Zoeller
Cc: Nagios Mailinglist
Subject: Re: [Nagios-users] Monitor Java Process

Hi Edwin

Did you mean that you are using the Process ID of the process running on

the remote box to monitor its status ?

Thanks
Jatin

On 3/2/2010 8:10 PM, Edwin Zoeller wrote:
> We monitor the port number assigned to the process.
>
> -Original Message-
> From: Jim Avery [mailto:j...@jimavery.me.uk]
> Sent: Tuesday, March 02, 2010 7:35 AM
> To: Jatin Davey
> Cc: Nagios Mailinglist
> Subject: Re: [Nagios-users] Monitor Java Process
>
> On 2 March 2010 11:26, Jatin Davey  wrote:
>
>> Hi
>>
>> I want to know how i can monitor the java process running on remote
>> box , basically i want to keep monitoring it and raise an email alert
>> if it has re-started or stopped functioning. Please let me know how
>> this can be achieved using nagios.
>>
>> Thanks
>> Jatin
>>  
>
> Someone hereabouts recently mentioned you can use jmx4perl
> http://labs.consol.de/lang/de/jmx4perl/
>
> I can't say I've tried it myself yet.
>
>


If I understand this, you have a java process that you want to monitor.
To see if the process is 'running' your best bet is using check_proc,
however, if you want to see if the process is still functioning and not
hung, you'll need to interact with the process.

As Edwin stated, if your process opens a port, you can connect to it and
check for a default response using check_tcp (or udp).

If you wrote the java process (or have access to the developers) you can
ask that they build in monitoring responses.  I have a java listener
that I added a hook for a specific string.  If I send a specific string
to its UDP port, it returns it's PID and Timestamp.

What does the Java process do?  If it doesn't open a port, does it write
to its log that you can check modification times on? 

If you can interact with the process you can monitor it.  If it just
runs and doesn't interact with others, you can at least monitor that the
process is still running.  In general if you can check its health
manually, you can write something for Nagios to use.

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 3 Fails to play sound in browser

2009-01-07 Thread Michael Gargiullo


-Original Message-
From: Marc Powell [mailto:m...@ena.com] 
Sent: Wednesday, January 07, 2009 6:13 PM
To: Nagios Users
Subject: Re: [Nagios-users] Nagios 3 Fails to play sound in browser



--
Marc

p.s. Didn't date-format jokes/trolls go out of style in like 788918400?




Nah, they got a new lease on life on 946684800.

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Distributed monitoring without direct networkconnection

2008-12-01 Thread Michael Gargiullo


-Original Message-
From: Nick Lunt [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 01, 2008 6:01 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Distributed monitoring without direct
networkconnection



> -Original Message-
> From: Andreas Ericsson [mailto:[EMAIL PROTECTED]
> Sent: 29 November 2008 14:01
> To: Nick Lunt
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Distributed monitoring without direct
> network connection
> 
> Nick Lunt wrote:
> > Hi folks
> >
> > nagios 3.0.5 on RHEL 4u6.
> >
> > We have nagios servers all over the uk and we want to get all alerts
> > from each nagios server to a central nagios server at our main
> offices.
> >
> > We do not have permanent network connectivity to the remote nagios
> > servers so using NSCA is not an option.
> >
> > Has anyone any idea of how to overcome this problem ?
> 
> Queue the events that were unsendable and send them when it becomes
> possible. Merlin is designed to handle frequently failing links with
> sometimes extremely long downtimes (it already does this), but it's
> not really production level stable yet, so I wouldn't recommend using
> it for this (unless you're interested in completing it yourself or
> sponsoring me or op5 to do it for you, ofcourse).
> 
> More about merlin at http://git.op5.org/git/nagios/merlin.git
> 
> pnsca, another module available there, can probably be trivially
> rewritten to stash alerts and whatnot with very good performance.
> 
> > I am thinking of
> > getting the remote nagios servers to send email alerts to an account
> on
> > the central nagios server then trying to get an alert generated
based
> on
> > the contents of the email, has anyone tried this before ?
> >
> > Or does anyone have any better ideas for solving this problem ?
> >
> 
> That depends on what your end-goal is, really. Do you want only one
> server
> to send notifications, or do you want your central server to be able
to
> generate reports from the data sent in from the slave systems?
> 
> If only one server should send notifications, I'd recommend using a
> solution
> with lower latency that gathering everything and shipping it as an
> email.
> One-way UDP communication would be one solution here, I guess, but it
> does
> require the network to be physically present at all times (and there's
> no
> failure detection what so ever, as UDP is a fire-and-forget protocol).
> Merlin would help in this case (although it can't send over UDP yet).
> 
> If it's for reporting reasons, you'd be better off sending the
logfiles
> as
> emails when they're being rotated and then merging them together on
the
> master server. That means you can't get *accurate* reports more often
> than
> the logs are rotated, but since you'll need to sort-merge them
anyways,
> that's still going to be a problem.
> Neither merlin nor NSCA can help here, I'm afraid, as entries in the
> logs
> would get completely jumbled unless you sort-merge them before taking
> generating reports from them.

Thanks for the detailed info Andreas. I still think the "nagios event ->
email -> nagios server" is the only realistic solution. It's not perfect
as mail servers can fail and mail can get delayed but it's the best we
can do at the moment.

Cheers,
Nick. 


-

Email isn't horrible, but it's not optimal.  We wrote a script that
checks a pop account for email every morning to ensure the daily reports
arrived as expected.

-Mike

-
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=100&url=/
___
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] TimePeriods

2008-11-26 Thread Michael Gargiullo


-Original Message-
From: Andreas Ericsson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 26, 2008 8:47 AM
To: Michael Gargiullo
Cc: Nagios Mailinglist
Subject: Re: [Nagios-users] TimePeriods

Michael Gargiullo wrote:
> I need a bit of assistance with time periods.  I want to notify/check
> 24x7 except for a short window when we run reports on the machine and
it
> doesn't respond in a timely manor.  Every night we get a bunch of
> notifications / criticals that the plugins have timed out.
> 
>  
> 
> I though I had read that this format was proper, but it must not be...
> we still get critical notifications every night.
> 
>  
> 
> define timeperiod{
> 
> timeperiod_name AllButReporting
> 
> alias   24 Hours A Day, 7 Days A Week execpt during
> reporting
> 
> sunday  00:00-02:15
> 
> sunday  03:30-24:00
> 

You can't specify the same day more than once. This should have been
specified as

sunday 00:00-02:15,03:30-24:00

in case you wanted to notify around the clock, except for the window
between
02:15 and 03:30.


Ah a comma...   Thanks.  I must have confused 2 systems.

Thanks,

Mike

-
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=100&url=/
___
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] TimePeriods

2008-11-26 Thread Michael Gargiullo
I need a bit of assistance with time periods.  I want to notify/check
24x7 except for a short window when we run reports on the machine and it
doesn't respond in a timely manor.  Every night we get a bunch of
notifications / criticals that the plugins have timed out.

 

I though I had read that this format was proper, but it must not be...
we still get critical notifications every night.

 

define timeperiod{

timeperiod_name AllButReporting

alias   24 Hours A Day, 7 Days A Week execpt during
reporting

sunday  00:00-02:15

sunday  03:30-24:00

monday  00:00-02:15

monday  03:30-24:00

tuesday 00:00-02:15

tuesday 03:30-24:00

wednesday   00:00-02:15

wednesday   03:30-24:00

thursday00:00-02:15

thursday03:30-24:00

friday  00:00-02:15

friday  03:30-24:00

saturday00:00-02:15

saturday03:30-24:00

}

 

Thoughts?

-
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=100&url=/___
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] check for crash?

2008-11-24 Thread Michael Gargiullo


-Original Message-
From: Israel Brewster [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 24, 2008 1:42 PM
To: Fernando Rocha
Cc: Nagios Mailinglist
Subject: Re: [Nagios-users] check for crash?

On Nov 21, 2008, at 10:07 AM, Fernando Rocha wrote:

> Hi Israel,
>
> I think that by the check_process is hard to identify this issue,  
> because as you said the process still running and just stop to work.
>
> How do you know when it crashes?
> Is there some log occurrences?
> Does it gives some errors on the web page?

The applet in question is a status display screen. I know it has  
crashed because a) the data displayed is out of date, and b) it  
doesn't respond to user input. Since it is a passive monitoring  
system, there is no log written. No error is displayed, it just stops  
updating properly. I guess what I was hoping for was that there might  
be some indication I could get from the process list or the like that  
I simply didn't know to look for, rather than an application-specific  
check. Something along the lines of how you can check for a "zombie"  
process by looking at the output of a ps. From the responses I have  
gotten so far, however, this wouldn't appear to be the case. Thanks  
anyway!

---
Israel Brewster
Computer Support Technician
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
---

Additional thoughts...

Is this a Web Start applet that you wrote?  Does it incorporate an
offline mode interface?  Do you have the sources?  Does it log anywhere?

-
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=100&url=/
___
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] check for crash?

2008-11-24 Thread Michael Gargiullo


-Original Message-
From: Israel Brewster [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 24, 2008 1:42 PM
To: Fernando Rocha
Cc: Nagios Mailinglist
Subject: Re: [Nagios-users] check for crash?

On Nov 21, 2008, at 10:07 AM, Fernando Rocha wrote:

> Hi Israel,
>
> I think that by the check_process is hard to identify this issue,  
> because as you said the process still running and just stop to work.
>
> How do you know when it crashes?
> Is there some log occurrences?
> Does it gives some errors on the web page?

The applet in question is a status display screen. I know it has  
crashed because a) the data displayed is out of date, and b) it  
doesn't respond to user input. Since it is a passive monitoring  
system, there is no log written. No error is displayed, it just stops  
updating properly. I guess what I was hoping for was that there might  
be some indication I could get from the process list or the like that  
I simply didn't know to look for, rather than an application-specific  
check. Something along the lines of how you can check for a "zombie"  
process by looking at the output of a ps. From the responses I have  
gotten so far, however, this wouldn't appear to be the case. Thanks  
anyway!

---
Israel Brewster
Computer Support Technician
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
---

Is the applet the only interface to the system?  Can you get the status
from the command line of the machine or only via a web based applet?

-Mike

-
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=100&url=/
___
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 3.0.5 on Fedora Core 9

2008-11-12 Thread Michael Gargiullo


-Original Message-
From: Kaplan, Andrew H. [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 12, 2008 3:54 PM
To: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Nagios 3.0.5 on Fedora Core 9

Hi Hugo --

If I was to go the CentOS route, would the Quick Install procedure
available for
Fedora also work for version 5.2 64-bit of CentOS?





I run several instances of Nagios on CentOS 5.1 & 5.2...  Never tried
64bit however.















-Original Message-
From: Hugo van der Kooij [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 12, 2008 3:41 PM
To: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Nagios 3.0.5 on Fedora Core 9

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:

> I will be implementing Nagios 3.0.5 on a new server, and the operating
> system in question will be the Fedora Core 9 release.
> 
> Are there any issues that I should be aware of prior to the
installation
> of Nagios, via yum, onto the server? Thanks.

Life expectation? Fedora 9 will not be supported in 1 year from now. Do
you want to do a major upgrade each year?

That is why I never will run Fedora on a server. Only Centos on servers
for me.

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.

Nid wyf yn y swyddfa ar hyn o bryd. Anfonwch unrhyw waith i'w gyfieithu.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFJGz9RBvzDRVjxmYERAoqSAKCHEOvEH/loO7c3bOQPgRzH2/hX1QCeO5m9
cTGEwMUKjBWVKKhLQWH8LYQ=
=nr0z
-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=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any
issue. 
::: Messages without supporting info will risk being sent to /dev/null

The information transmitted in this electronic communication is intended
only
for the person or entity to whom it is addressed and may contain
confidential
and/or privileged material. Any review, retransmission, dissemination or
other
use of or taking of any action in reliance upon this information by
persons or
entities other than the intended recipient is prohibited. If you
received this
information in error, please contact the Compliance HelpLine at
800-856-1983 and
properly dispose of this information.





-
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=100&url=/
___
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=100&url=/
___
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 for client management?

2008-11-12 Thread Michael Gargiullo


-Original Message-
From: dale sykora [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 12, 2008 2:10 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagios for client management?

Hello,
  Nagios seems to be a good client monitor system.  I was wondering if 
anyone also uses it as a client management system?  By management,  I 
mean running update scripts and other software on various Linux 
clients.  For instance, I'd like to be able to tell clients to update a 
perl module with cpan or yum update some_rpm_package or download, untar,

compile, install some in house software.   I could write a client script

to poll a server every so often asking what todo, but would rather not 
reinvent the wheel if something like this exists in Nagios/plugin or 
other software. 

Thanks,

[EMAIL PROTECTED]


 


-

Using Nagios specifically to run updates may not be the best solution.
That being said...

I've used it to compare installed versions of software with a list of
requirements. The plugin would handle the update if needed.  It was very
specific.  It would also handle monitoring config file mod dates.

Could you do that... yes...  should you?  Only you can answer that one.

-
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=100&url=/
___
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] Email Notifications

2008-11-12 Thread Michael Gargiullo


-Original Message-
From: Andreas Ericsson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 12, 2008 9:06 AM
To: [EMAIL PROTECTED]
Cc: nagios-user Mailinglist
Subject: Re: [Nagios-users] Email Notifications

[EMAIL PROTECTED] wrote:
> Please help!
> I have set up eSMTP as relay.The test from the command line is as
follows: echo "test" | /usr/bin/esmtp -C ~/esmtp [EMAIL PROTECTED] -f
[EMAIL PROTECTED]
> [EMAIL PROTECTED] is an outside email address i am sending to from an
inside email address on our email server. Do i need to specify the
inside email server and the account i am using within nagios and if so
where? or should the usual configuration be enough. the relevant parts
of the config fiels are as follows.
> 
> Thanks in advance for any help
> 
> The following are the config files:
> 
> 
> 
>>From the windows.cfg file:
> 
> define host{
> use windows-pcs ; Inherit default values from
a template
> host_name   invoicepc   ; The name we're giving to
this host
> alias   invoicingpc ; A longer name associated
with the host
> address x.x.x.x ; IP address of the host
> }
> 
> 
> define hostgroup{
> hostgroup_name  windows-pcs ; The name of the hostgroup
> alias   Windows PCs ; Long name of the group
> members invoicepc
> }
> 
> 
> define service{
> use generic-service
> hostgroup_name  windows-pcs
> service_description Uptime
> check_command   check_nt!UPTIME
> contact_groups  admins
> }
> 
> 
>>From the commands.cfg file:
> 
> # 'notify-host-by-email' command definition
> define command{
> command_namenotify-host-by-email
> command_line/usr/bin/esmtp/printf "%b" "* Nagios
*\n\nNotification Type:  $NOTIFICATIONTYPE$\nHost:
$HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo:
$HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/esmtp -s "**
$NOTIFICATIONTYPE$ Host Host Alert: $HOSTNAME$ is $HOSTSTATE$ **"
$CONTACTEMAIL$
> 

I thought esmtp was an MTA sendmail replacement, not a mail program
replacement?

Either way, you have /usr/bin/esmtp as both a directory and an
executable in the same command.

-
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=100&url=/
___
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] Check by ssh timeout problems

2008-11-10 Thread Michael Gargiullo
Aaron,

That looks great, Thanks!

-Mike

-Original Message-
From: Aaron Segura [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 10, 2008 3:30 PM
To: Michael Gargiullo; nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] Check by ssh timeout problems

We had a similar problem (not using SSH, though).  We use this script to
handle our notifications: 
http://sweetdeliah.com/nagios/notify/nagios_notify-0.5.tar.gz

Using the templates, we do something like (or, exactly like) this...

#IF NOTIFICATIONNUMBER=1
#IF SERVICEOUTPUT~=/Service Check Timed Out/
#DIE
#ENDIF
#ENDIF

You can pretty easily modify that to be:

#IF NOTIFICATIONNUMBER<3
#IF SERVICEOUTPUT~=/Plugin timed out while executing system call/
#DIE
#ENDIF
#ENDIF

Enjoy.

-Original Message-
From: Michael Gargiullo [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 10, 2008 12:55 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Check by ssh timeout problems

I have 2 remote machines that only I only have ssh access to.  I have
about 5 services I check the status of. Occasionally the machine takes >
70seconds to respond.  

I have the global timeout set to 120 sec, but I still get 5
notifications "CRITICAL - Plugin timed out while executing system call"
then maybe 10-20 minutes later 5 saying it's OK again.  

Is there a proper way to only send alerts on the 2nd or 3rd "CRITICAL -
Plugin timed out while executing system call" message (a true problem)
or better yet, increase the timeout for service checks?  I never get a
host message, just the services.

Unfortunately, I only have ssh access to the remote hosts.

Thanks,

Mike


-
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=100&url=/
___
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=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Check by ssh timeout problems

2008-11-10 Thread Michael Gargiullo
I have 2 remote machines that only I only have ssh access to.  I have
about 5 services I check the status of. Occasionally the machine takes >
70seconds to respond.  

I have the global timeout set to 120 sec, but I still get 5
notifications "CRITICAL - Plugin timed out while executing system call"
then maybe 10-20 minutes later 5 saying it's OK again.  

Is there a proper way to only send alerts on the 2nd or 3rd "CRITICAL -
Plugin timed out while executing system call" message (a true problem)
or better yet, increase the timeout for service checks?  I never get a
host message, just the services.

Unfortunately, I only have ssh access to the remote hosts.

Thanks,

Mike

-
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=100&url=/
___
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] Increase output from nagios alert e-mails/pages?

2008-11-10 Thread Michael Gargiullo


-Original Message-
From: Devin Atencio [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 10, 2008 12:20 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Increase output from nagios alert e-mails/pages?


I am using the latest version of Nagios. I am doing most of my checks  
using NRPE and I noticed that when it e-mails or pages me about an  
alert some of the information from the error appears to be getting cut  
off, is there a way to make it so that it e-mails me the entire  
message and not to have it cut off some of the text? I am not sure if  
there is a limit in Nagios on the error that nagios can handle?

Any information would be appreciated.

Devin



Email alerts are just another command in the commands.cfg file.  By
default it uses the 'mail' program, and pipes in the body.  For certain
alerts, we have written a perl script that uses Net::SMTP to send much
nicer and more detailed messages.

That's the beauty of Nagios...  almost everything can be replaced or
modified like that.

-Mike

-
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=100&url=/
___
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