[Nagios-users] Need Help with Formatting URL for Host/Service Acknowledgment

2012-11-16 Thread Robert V. Bolton
Hello,

I'm trying to include a URL in my alert emails that will allow the user to
acknowledge the alert by clicking on the URL. I'm having trouble with the
formatting so that the host and service will be passed to cmd.cgi
correctly. When I define notes_url as follows the '' and spaces in the
service description don't translate to a proper url format. Does anyone
know how can translate this information valid URL to be included into my
alert emails?

notes_url
http://example.com/nagios/cgi-bin/cmd.cgi?cmd_typ=34host=$HOSTNAME$service=$SERVICEDESC$

Here is an example of an expected output:

http://example.com/nagios/cgi-bin/cmd.cgi?cmd_typ=34host=host.example.comservice=SSH%20Check

Here is an example of the actual output:

http://example.com/nagios/cgi-bin/cmd.cgi?cmd_typ=34host=host.example.comservice=SSH%2BCheckhttp://monitor.chpc.utah.edu/nagios/cgi-bin/cmd.cgi?cmd_typ=34host=hypno-hustler.chpc.utah.eduservice=SSH%2BCheck%2BIPv4

As you can see the '' is missing and the space in 'SSH Check' is coded as
%2B not %20.


--
*Robert V. Bolton*
Email: rob...@robertvbolton.com
Web: http://robertvbolton.com
--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov___
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] Need help on running combination of Nagios, Nconf, and Nagiosgraph

2010-10-13 Thread Patel, Bhavna

Hi,

I am new to Nagios and I am having problem to put all this applications
together. I have very limited knowledge of all this tools and
availability, so I need experts help on this. Here are the steps that I
went thru:
 
I installed Nagios in one of my Linux server. 

In the same machine but different directory I Installed Nconf to add
about 70 hosts with about five services for each hosts. I have to add
about 200 more hosts.

I used CSV (comma-separated values) file to store the data. 

Now, I need graph so I installed Nagiosgraph and I am trying to make it
work since last two weeks, but it is not working. When I reload nagios,
it runs fine and I see the icon to brows to the graph, but when I click
on it, I get following error:

 (Server error!
The server encountered an internal error and was unable
to complete your request. Either the server is overloaded or there was
an error in a CGI script. )
If you think I didn't select right tool to add hosts and for graph, what
is better tools to add bunch of servers and to get the graphs. I also
have some switches to monitor too. 

Thanks




Notice:  This e-mail message, together with any attachments, contains
information of Merck  Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates Direct contact information
for affiliates is available at 
http://www.merck.com/contact/contacts.html) that may be confidential,
proprietary copyrighted and/or legally privileged. It is intended solely
for the use of the individual or entity named on this message. If you are
not the intended recipient, and have received this message in error,
please notify us immediately by reply e-mail and then delete it from 
your system.
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb___
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] Need help installing opcp

2009-11-30 Thread Marcel
I've to second that. please setup automake  autoconf

On Fri, Nov 27, 2009 at 7:15 AM, Sofia Haschiu hq.so...@gmail.com wrote:

 Hi, Dario

 I visited your site and since opcp is what I was looking for as a capacity
 planning solution for Nagios I was eager to give it a try. Unfortunately the
 documentation on how to install the opcp is poor and I kindly ask you to
 tell me if there's some more detailed documentation on how to get the opcp
 to work. Or maybe someone who already managed to install this module can
 provide me some step-by-step advices.

 Thank you in advance

 Sofia Haschiu


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus
 on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 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

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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] Need help installing opcp

2009-11-27 Thread Sofia Haschiu
Hi, Dario

I visited your site and since opcp is what I was looking for as a capacity
planning solution for Nagios I was eager to give it a try. Unfortunately the
documentation on how to install the opcp is poor and I kindly ask you to
tell me if there's some more detailed documentation on how to get the opcp
to work. Or maybe someone who already managed to install this module can
provide me some step-by-step advices.

Thank you in advance

Sofia Haschiu
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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] Need help with configuration of NRPE !

2009-11-06 Thread jonas kellens
I'm having a lot of difficulty with a plugin that monitors SIP peers on
my Asterisk-server.
I've been breaking my head for about a week now...

This is the configuration of NRPE :

[nag...@vps ~]$ vi /etc/xinetd.d/nrpe 
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags   = REUSE
socket_type = stream
port= 5666
wait= no
user= nagios
group   = nagios
server  = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure  += USERID
disable = no
only_from   = 127.0.0.1 ip_nagios
}

These are the rights of the nagios-user on the plugin :

[nag...@vps ~]$ ls -l /usr/local/nagios/libexec/nagisk.pl
-rwxr-x--- 1 nagios nagios 4163 Nov  2
17:12 /usr/local/nagios/libexec/nagisk.pl

This is the sudoers-file :

nagios ALL= (root) NOPASSWD: /usr/local/nagios/libexec/nagisk.pl

This is the nrpe.cfg-file :

command[check_asterisk_peers]=sudo /usr/local/nagios/libexec/nagisk.pl
-c peers

These are the results of my configuration :

[nag...@vps ~]$ /usr/local/nagios/libexec/nagisk.pl -c peers
[nag...@vps ~]$

[nag...@vps ~]$ sudo /usr/local/nagios/libexec/nagisk.pl -c peers
4 sip peers [Monitored: 3 online, 1 offline Unmonitored: 0 online, 0
offline]

[nag...@vps ~]$ /usr/local/nagios/libexec/check_nrpe -H localhost
NRPE v2.12
[nag...@vps ~]$ /usr/local/nagios/libexec/check_nrpe -H localhost -c
check_asterisk_peers
NRPE: Unable to read output

[nag...@vps ~]$ sudo /usr/local/nagios/libexec/check_nrpe -H localhost
-c check_asterisk_peers
Password: 
Sorry, user nagios is not allowed to execute
'/usr/local/nagios/libexec/check_nrpe -H localhost -c
check_asterisk_peers' as root on vps.domain.tld.

What do I need to do to make the NRPE work 

If I can't get it to work on localhost, it will definitely not work on
Nagios checking the remote Asterisk-server.

Please help me with the correct configuration of NRPE and my
nagisk-plugin.

Jonas.
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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] need help

2009-06-29 Thread Marc Powell

On Jun 28, 2009, at 9:23 PM, gmm wrote:

 hello,all!

   I have a strange problem.I have installed nagios with nagios-3.1.2  
 and nagios-plugins-1.4.13 on RHEL5.2 and it looks like OK!
   But i found there is a strange problem with my web monitor page.In  
 my host groups   some hosts status are UP,and some status are  
 PENDING all the time,but all of these hosts services are all ok! I  
 try to change my configuration files some way but can't find out the  
 reason.

Are you certain that hosts in a PENDING state have services associated  
with them and those are in an OK state? Post full configurations for a  
sample host and service.

--
Marc


--
___
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] need help

2009-06-29 Thread gmm
hi,list!




On Jun 28, 2009, at 9:23 PM, gmm wrote:

 hello,all!

   I have a strange problem.I have installed nagios with nagios-3.1.2  
 and nagios-plugins-1.4.13 on RHEL5.2 and it looks like OK!
   But i found there is a strange problem with my web monitor page.In  
 my host groups   some hosts status are UP,and some status are  
 PENDING all the time,but all of these hosts services are all ok! I  
 try to change my configuration files some way but can't find out the  
 reason.

Are you certain that hosts in a PENDING state have services associated  
with them and those are in an OK state? Post full configurations for a  
sample host and service.

   Yes, i can. There is a host in a PENDING state named potevio_db1 with the 
next configuration:
### potevio_db1 
##
define host{
use generic-host; 
Inherit default values from a template
host_name   potevio_db1
alias   potevio_db1
address 10.1.1.120
max_check_attempts  2
contact_groups  admins
}
define service{
use generic-service ; Name 
of service template to use
host_name   potevio_db1
service_description PING
check_command   check-host-alive
}
define service{
use generic-service ; Name 
of service template to use
host_name   potevio_db1
service_description telnet
check_command   check_telnet
}

  By the way, i have a host named potevio_app1 which configuration almost same 
like potevio_db1 is in OK state.
  Differents with potevio_app1 and potevio_db1 are host_name and address only.

  There is another strange phenomena.I have several hostgroups, each hostgroup 
have several hosts.
But there is only three hosts in these hostgroups can get the right 
state(OK),all others are PENDING.  




--
___
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

= = = = = = = = = = = = = = = = = = = =


致
礼!
 
 
gmm
computer11...@sohu.com
  2009-06-30

--
___
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] need help

2009-06-29 Thread gmm
hi,list!
   
On Jun 28, 2009, at 9:23 PM, gmm wrote:

 hello,all!

   I have a strange problem.I have installed nagios with nagios-3.1.2  
 and nagios-plugins-1.4.13 on RHEL5.2 and it looks like OK!
   But i found there is a strange problem with my web monitor page.In  
 my host groups   some hosts status are UP,and some status are  
 PENDING all the time,but all of these hosts services are all ok! I  
 try to change my configuration files some way but can't find out the  
 reason.

Are you certain that hosts in a PENDING state have services associated  
with them and those are in an OK state? Post full configurations for a  
sample host and service.

   Yes, i can. There is a host in a PENDING state named potevio_db1 with the 
next configuration:
### potevio_db1 
##
define host{
use generic-host; 
Inherit default values from a template
host_name   potevio_db1
alias   potevio_db1
address 10.1.1.120
max_check_attempts  2
contact_groups  admins
}
define service{
use generic-service ; Name 
of service template to use
host_name   potevio_db1
service_description PING
check_command   check-host-alive
}
define service{
use generic-service ; Name 
of service template to use
host_name   potevio_db1
service_description telnet
check_command   check_telnet
}

  By the way, i have a host named potevio_app1 which configuration almost same 
like potevio_db1 is in OK state.
  Differents with potevio_app1 and potevio_db1 are host_name and address only.

  There is another strange phenomena.I have several hostgroups, each hostgroup 
have several hosts.
But there is only three hosts in these hostgroups can get the right 
state(OK),all others are PENDING.  




--
___
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] need help

2009-06-28 Thread gmm
hello,all!
  
   I have a strange problem.I have installed nagios with nagios-3.1.2 and 
nagios-plugins-1.4.13 on RHEL5.2 and it looks like OK! 
   But i found there is a strange problem with my web monitor page.In my host 
groups   some hosts status are UP,and some status are PENDING all the time,but 
all of these hosts services are all ok! I try to change my configuration files 
some way but can't find out the reason.
   Thank you for your help! 
   


--
___
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] need help with check_sensors

2009-06-17 Thread Jeremiah Jester
Hello,

I'm trying to get check_sensors working for nagios. I already have
lm_sensors installed and ran 'sensors' to configure it for my machine.

Next, I setup and defined the commands and services in nagios. However, when
i run the following command i get the following error.

$ /usr/lib/nagios/plugins/check_nrpe -H 10.10.10.44 -c check_temp
SENSOR CRITICAL - Sensor alarm detected!

$tail /var/log/nagios2/nagios.log
[1245270237] SERVICE ALERT: pse06-back;CHECK TEMP;UNKNOWN;HARD;3;(No output
returned from plugin)
[1245270237] SERVICE NOTIFICATION: root;pse06-back;CHECK
TEMP;UNKNOWN;notify-by-email;(No output returned from plugin)

There doesn't seem to be much information on the web or in my Pro Nagios 2.0
book about this plugin.

Any help would be appreciated!

JJ
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
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] Need help to monitor ASP.NET performance counters for windows 2008

2009-03-04 Thread Sujit D. Kadam

Hi,

I am using Nagios Version 3.0.3 on server side.
Need to monitor ASP.NET counters of Window 2008 (64 bit)
On windows 2008 , I have installed pNsclient.exe
also tried with nsclient++

On server side in commands.cfg

# 'check_nt_Counters' command definition
define command {
   command_namecheck_nt_counters
   command_line$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -s 
password -v COUNTER -l $ARG1$ -w $ARG2$ -c $ARG3$

   }


in services.cfg

## Below is Service Definition for ASP.NET Apps v2.050727 - Sessions Active
define service{
   use windows-service
   host_name   host1
   service_description ASP.NET_Apps-Sessions_Active
   check_command   check_nt_counters!\\ASP.NET 
Apps v2.050727\\Sessions Active!2000!2500

   }


I am getting the output value as 0 but exactly in perfmon I can see the 
exact value i.e approx 1000



Also tried nrpe_nt to install on windows 2008. But throwing error while 
starting the service.


Windows could not start th Nagios Remote Plugin Executor for NT/w...@k 
service on Local Computer.
Error 1053: The service did not respond to the start or control request 
in timely manner.



Regrds,

Sujit






--
 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are
not to copy, disclose, or distribute this e-mail or its contents to any other
person and any such actions are unlawful. This e-mail may contain viruses.
NetMagic Solutions Pvt. Ltd. has taken every reasonable precaution to minimize
this risk, but is not liable for any damage you may sustain as a result of any
virus in this e-mail. You should carry out your own virus checks before
opening the e-mail or attachment. NetMagic Solutions Pvt. Ltd. reserves the
right to monitor and review the content of all messages sent to or from this
e-mail address.

Messages sent to or from this e-mail address may be stored on the NetMagic
Solutions Pvt. Ltd.'s e-mail system.
* End of Disclaimer ***

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
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] Need help to monitor ASP.NET performance counters for windows 2008

2009-03-04 Thread Jon Angliss
On Wed, 04 Mar 2009 19:20:09 +0530, Sujit D. Kadam
sujit.ka...@netmagicsolutions.com wrote:

Hi,

I am using Nagios Version 3.0.3 on server side.
Need to monitor ASP.NET counters of Window 2008 (64 bit)
On windows 2008 , I have installed pNsclient.exe
also tried with nsclient++

On server side in commands.cfg

# 'check_nt_Counters' command definition
define command {
command_namecheck_nt_counters
command_line$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -s 
password -v COUNTER -l $ARG1$ -w $ARG2$ -c $ARG3$
}


in services.cfg

## Below is Service Definition for ASP.NET Apps v2.050727 - Sessions Active
define service{
use windows-service
host_name   host1
service_description ASP.NET_Apps-Sessions_Active
check_command   check_nt_counters!\\ASP.NET 
Apps v2.050727\\Sessions Active!2000!2500
}

Have you tried executing from the command line to see if the command
is executing properly? Whilst it shouldn't be a huge issue, have you
tried dropping the version specific counter?

  \\ASP.NET Applications\\Sessions Active

I am getting the output value as 0 but exactly in perfmon I can see the 
exact value i.e approx 1000


Also tried nrpe_nt to install on windows 2008. But throwing error while 
starting the service.

Windows could not start th Nagios Remote Plugin Executor for NT/w...@k 
service on Local Computer.
Error 1053: The service did not respond to the start or control request 
in timely manner.

So the service isn't starting that you're trying to use to get
counters from? nsclient++ seems to work okay, not tested on 2008 yet,
pretty soon though.

I don't have that counter monitored, but I do have RAS monitored with
nsclient++.
-- 
Jon Angliss


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] Need help with Nagios, PERC, and likely false warning

2008-04-16 Thread Scott R. Ehrlich
I have a Dell PE2950 with PERC 5/i.  The server suffered a failed disk 
under RAID 0.  I obtained a replacement disk, rebuilt the system from the 
ground up (new logical volumes within the controller, new OS install) and 
the system is happy now.

I installed nagios on a low-end PC (CentOS 5), and obtained nrpe from Nagios, 
installed a couple OpenManage plugins - Report and Storage. Both nagios plugins 
report the PERC as status Warning - PERC 5/i is Non-Critical/Degraded.

The report and storage nagios plugins, along with a few other Dell plugins, all 
show the RAID volumes and disks as perfectly healthy.

Are the Warnings a reflection of the OpenManage files obtained via yum, the 
nagios plugins (both plugins show the same issue), and/or does the RAID 
controller actually have a flag I missed, that still needs to be cleared, 
though the RAID was rebuilt?

Thanks for any insights/help.

Scott

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] Need help with Nagios, PERC, and likely false warning

2008-04-16 Thread Andrew Cruse
Scott R. Ehrlich wrote:
 I have a Dell PE2950 with PERC 5/i.  The server suffered a failed disk
 under RAID 0.  I obtained a replacement disk, rebuilt the system from
 the ground up (new logical volumes within the controller, new OS
 install) and 
 the system is happy now.
 
 I installed nagios on a low-end PC (CentOS 5), and obtained nrpe from
 Nagios, installed a couple OpenManage plugins - Report and Storage.
 Both nagios plugins report the PERC as status Warning - PERC 5/i is
 Non-Critical/Degraded. 
 
 The report and storage nagios plugins, along with a few other Dell
 plugins, all show the RAID volumes and disks as perfectly healthy.
 
 Are the Warnings a reflection of the OpenManage files obtained via
 yum, the nagios plugins (both plugins show the same issue), and/or
 does the RAID controller actually have a flag I missed, that still
 needs to be cleared, though the RAID was rebuilt?


None of the above, probably.  Most likely you're using a newer version of
OpenManage than was current when your controller firmware/drivers were new.
You could either downgrade to an older version of OpenManage, or better yet
upgrade the firmware/drivers to the latest version and clear the error.

Andrew


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] Need help with nrpe

2008-04-02 Thread Scott R. Ehrlich
I have some Dell PowerEdge Linux servers that I want to monitor with nrpe. 
I've installed nrpe daemon on the servers, and nrpe client on my nagios 
station, which is a simple low-end desktop.

I've configured nrpe enough that nagios at least presents me with a 
service line on the server that the service has returned a response it 
cannot handle - not an error, but more of a null.

I'm trying to get some perl scripts from nagiosexchange to be utilized.  I 
am able to run the scripts fine from the command line and see their 
details, but having problems figuring out how to properly configure nagios 
to get me the results properly.

I've got the OpenManage scripts, along with some basic Dell Hardware ones.

Beyond this, I may implement similar configurations on non Dell hardware, 
so getting it working here can lead me to configurations in a more 
flexible environment.

I happen to be using CentOS 5 and RHEL 5, all out-of-box, all items from 
CDs installed, no updates applied.

Thanks for any insights.

Scott

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
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] Need help to config Nagios for several items...

2008-04-01 Thread Alex Dehaini
All plugins should go in /usr/local/nagios/libexec folder, the plugin should
be made executable. You can reference the path to the libexec folder by
specifying the path of the plugins in resource.cfg file.
Alex

On Mon, Mar 31, 2008 at 7:36 PM, Scott Ehrlich [EMAIL PROTECTED] wrote:

 On Mon, 31 Mar 2008, Valdinger, Stephen (DOV, MSX) wrote:

  www.nagiosexchange.org is a great resource to find a plugin for almost
  anything including SMART arrays.
 
  Stephen Valdinger
  MIS Helpdesk Coordinator
  330.365.3622 -O
  740.491.0958 - C
  [EMAIL PROTECTED]
 
  Ubuntu - African for I can't configure Debian!

 That is a great site.  I'm not new to using Nagios, but I am new to
 integrating (and eventually writing)  plugins for it.  As I download
 plugins, such as check_smartmon, in what directory do I place them, and
 exactly how do I invoke them from within Nagios?

 I have reviewed the standard .cfg files for assistance, but it hasn't been
 obvious to me, yet.

 Thanks.

 Scott

 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.

 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 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




-- 
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - [EMAIL PROTECTED]
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
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] Need help to config Nagios for several items...

2008-03-31 Thread Scott Ehrlich
Hello Nagios users and lovers:

I have Nagios successfully running on a CentOS 5 system, keeping an eye on 
two servers and two printers.

What I'd love to do next is augment what I have with monitoring such as:

- Hard drive health (SMART)

- Printer paper/toner status

- Specific services running on particular parts (i.e. port 9613/udp)

- Temperature of system(if possible)

- Network card activity (if multiple nics, has one failed or is a link 
down and the NIC is good)?


How do I monitor these particulars, or do I need to obtain the specific 
MIB for said device and see if that mib provides said details?

Thanks in advance.

Scott (love Nagios!)

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
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] Need help to config Nagios for several items...

2008-03-31 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Scott Ehrlich
 Sent: Monday, March 31, 2008 12:18 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Need help to config Nagios for several
items...


 What I'd love to do next is augment what I have with monitoring such
as:
 
 - Hard drive health (SMART)

Standard plugin - http://nagiosplugins.org/man/check_ide_smart
 
 - Printer paper/toner status

check_snmp_printer.pl in the plugins contrib. folder most likely.
 
 - Specific services running on particular parts (i.e. port 9613/udp)

Standard plugin - http://nagiosplugins.org/man/check_udp,
http://nagiosplugins.org/man/check_tcp 

 - Temperature of system(if possible)

check_lm_sensors -
http://new.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1289.html;d=
1 

 - Network card activity (if multiple nics, has one failed or is a link
 down and the NIC is good)?

Not sure. Custom plugin? I'd search nagiosexchange to see if there is
one that suits your needs.

--
Marc


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
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] Need help to config Nagios for several items...

2008-03-31 Thread Alex Dehaini
Hi Scott,
First of all, if the device(s) use SNMP, you can pull the specific OID you
intend to monitor. You can use check_udp to monitor any UDP port.
Temperature of system, I can't say but you can dig up on this using google.

If you can monitor the NICs with SNMP which I am sure you can, you can be
able to find out what information you need.

Alex

On Mon, Mar 31, 2008 at 5:18 PM, Scott Ehrlich [EMAIL PROTECTED] wrote:

 Hello Nagios users and lovers:

 I have Nagios successfully running on a CentOS 5 system, keeping an eye on
 two servers and two printers.

 What I'd love to do next is augment what I have with monitoring such as:

 - Hard drive health (SMART)

 - Printer paper/toner status

 - Specific services running on particular parts (i.e. port 9613/udp)

 - Temperature of system(if possible)

 - Network card activity (if multiple nics, has one failed or is a link
 down and the NIC is good)?


 How do I monitor these particulars, or do I need to obtain the specific
 MIB for said device and see if that mib provides said details?

 Thanks in advance.

 Scott (love Nagios!)

 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.

 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 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




-- 
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - [EMAIL PROTECTED]
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
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] Need help to config Nagios for several items...

2008-03-31 Thread Scott Ehrlich
On Mon, 31 Mar 2008, Marc Powell wrote:



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Scott Ehrlich
 Sent: Monday, March 31, 2008 12:18 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Need help to config Nagios for several
 items...


 What I'd love to do next is augment what I have with monitoring such
 as:

 - Hard drive health (SMART)

 Standard plugin - http://nagiosplugins.org/man/check_ide_smart

This looks great, but how about SCSI/SAS SMART?

Scott


 - Printer paper/toner status

 check_snmp_printer.pl in the plugins contrib. folder most likely.

 - Specific services running on particular parts (i.e. port 9613/udp)

 Standard plugin - http://nagiosplugins.org/man/check_udp,
 http://nagiosplugins.org/man/check_tcp

 - Temperature of system(if possible)

 check_lm_sensors -
 http://new.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1289.html;d=
 1

 - Network card activity (if multiple nics, has one failed or is a link
 down and the NIC is good)?

 Not sure. Custom plugin? I'd search nagiosexchange to see if there is
 one that suits your needs.

 --
 Marc


 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 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


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
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] Need help to config Nagios for several items...

2008-03-31 Thread Scott Ehrlich
On Mon, 31 Mar 2008, Valdinger, Stephen (DOV, MSX) wrote:

 www.nagiosexchange.org is a great resource to find a plugin for almost
 anything including SMART arrays.

 Stephen Valdinger
 MIS Helpdesk Coordinator
 330.365.3622 -O
 740.491.0958 - C
 [EMAIL PROTECTED]

 Ubuntu - African for I can't configure Debian!

That is a great site.  I'm not new to using Nagios, but I am new to 
integrating (and eventually writing)  plugins for it.  As I download 
plugins, such as check_smartmon, in what directory do I place them, and 
exactly how do I invoke them from within Nagios?

I have reviewed the standard .cfg files for assistance, but it hasn't been 
obvious to me, yet.

Thanks.

Scott

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
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] Need help using check_by_ssh with check_disk

2007-11-29 Thread Sean Bowers
I'm running Nagios 2.10 with plugins 1.4.10 running on:
Linux nagioshost 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:56:28 EST 2006
x86_64 x86_64 x86_64 GNU/Linux

System information on the two remote hosts is:

Linux remotehost1 2.6.9-11.ELsmp #1 SMP Fri May 20 18:26:27 EDT 2005
i686 i686 i386 GNU/Linux
Linux remotehost2 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005
i686 i686 i386 GNU/Linux


My check (in commands.cfg as check_disk_by_ssh) is:

$USER1$/libexec/check_by_ssh -E -i identify.txt -l nagios -H
$HOSTADDRESS$ -C /usr/lib/nagios/plugins/check_disk -w $ARG1$ -c
$ARG2$

The services.cmd has:

check_disk_by_ssh!10%!5%

This test runs fine on remotehost1, but on remotehost2 it returns back
UNKNOWN - check_by_ssh: Remote command
'/usr/lib/nagios/plugins/check_disk -w 10% -c 5%' returned status
255.  At first, I thought this could be a 32 vs. 64-bit issue, but
the Nagios host is 64-bit while both remotes are 32.

From the command line, both hosts work fine and 'echo $?' shows 0 for
both.  Logging into the remote boxes and running check_disk manually
is fine as well.  Using -v doesn't help since it doesn't show tracing
information.

Does anyone have any ideas or thoughts on this?  Are there any other
tricks I can try for debugging this?  Any help would be appreciated
immensely.

Thanks!

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] Need help using check_by_ssh with check_disk

2007-11-29 Thread Dave
Oops, sent from wrong return address.

-- Forwarded message --
From: Dave Burns [EMAIL PROTECTED]
Date: Nov 29, 2007 11:12 AM
Subject: Re: [Nagios-users] Need help using check_by_ssh with check_disk
To: nagios-users@lists.sourceforge.net


On Nov 29, 2007 6:09 AM, Sean Bowers [EMAIL PROTECTED] wrote:
 From the command line, both hosts work fine and 'echo $?' shows 0 for
 both.

In a similar situation, I found it helpful to break my command line
tests into steps. First ssh directly into the remote as nagios and
execute the disk check, as you seem to have done. Then

 sudo  -u nagios ssh  -i /var/spool/nagios/.ssh/id_dsa  [EMAIL PROTECTED]
/usr/lib/nagios/plugins/check_disk -w 10%  -c 5% -e -m -p /

to make sure the key is working and the args and path are correct. Then

sudo  -u nagios  /usr/lib/nagios/plugins/check_by_ssh -H linoleum -i
/var/spool/nagios/.ssh/id_dsa -C /usr/lib/nagios/plugins/check_disk
-w 10%  -c 5% -e -m -p /

If that works, the regular nagios process should work. I once had a
sticky problem where I could get the above working, but nagios kept
telling me unknown. It turned out I had a subtle little typo in my
config that made it different from my command line tests. Headache!

HTH,
Dave

Here are my defs

define command{
command_namecheck_slash_free
command_line $USER1$/check_by_ssh -i
/var/spool/nagios/.ssh/id_dsa  -H $HOSTADDRESS$ -C '$USER1$/check_disk
-w $ARG1$ -c $ARG2$ -e -p \/ -m '
}

and the service

define service {
host_name   hostname
service_description check slash
check_command   check_slash_free!30%!20%
max_check_attempts  3
retry_check_interval1
normal_check_interval   5
check_period24x7
notification_interval   120
notification_period 24x7
notification_optionsw,u,c,r,f
contact_groups  localadmins
}

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] Need help

2007-09-12 Thread Zion Ahead
I finally got Nagios working and into the web panel.

Now, how on earth do I ADD new services to monitor???

The docs are so disgustingly confusing
http://nagios.sourceforge.net/docs/3...cservices.html
http://nagios.sourceforge.net/docs/3_0/monitoring-publicservices.html 

Quote:


Before you can monitor a service, you first need to define a host
http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host  that
is associated with the service. You can place host definitions in any object
configuration file specified by a cfg_file
http://nagios.sourceforge.net/docs/3_0/configmain.html#cfg_file  directive
or placed in a directory specified by a cfg_dir
http://nagios.sourceforge.net/docs/3_0/configmain.html#cfg_dir  directive.
If you have already created a host definition, you can skip this step. 

 

Quote:


The host definition can be placed in its own file or added to an already
exiting object configuration file. 

 

 

What? Where does the file go? What name? This is crazy.



Nagios doesn't even have a forum except that lame international one that is
inactive/dead.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] Need help

2007-09-12 Thread nemir nemiria
Been using nagios since 1.0,  and I think the methodology has shifted a 
little, but I am still old skool.




I finally got Nagios working and into the web panel.



Excellent!  :-)



Now, how on earth do I ADD new services to monitor???


In your nagios implementation there should be a series of config files 
underneath the etc directory.


In there will be something called nagios.cfg.


There will be a bunch of config files specified thus:

cfg_file=/usr/local/nagios/etc/contactgroups.cfg
cfg_file=/usr/local/nagios/etc/contacts.cfg
cfg_file=/usr/local/nagios/etc/dependencies.cfg
cfg_file=/usr/local/nagios/etc/escalations.cfg
cfg_file=/usr/local/nagios/etc/hostgroups.cfg
cfg_file=/usr/local/nagios/etc/hosts.cfg
cfg_file=/usr/local/nagios/etc/services.cfg
cfg_file=/usr/local/nagios/etc/timeperiods.cfg



These files are what you use to configure nagios.


In the hosts file you can specify a host like this:

# 'SydInt01' host definition
define host{
   use generic-host; Name of host 
template to use


   host_name   SydInt01
   alias   SydB2
   address 172.30.20.244
   check_command   check-host-alive
   max_check_attempts  10
   notification_interval   480
   notification_period 24x7
   notification_optionsd,u,r
   contact_groups  npsadmins


Once the host is defined, you specify the services in the services.cfg.  For 
example:


define service{
   use generic-service ; Name of 
service template to use


   host_name   SydInt01
   service_description PING
   is_volatile 0
   check_period24x7
   max_check_attempts  11
   normal_check_interval   5
   retry_check_interval1
   contact_groups  fw
   notification_interval   120
   notification_period 24x7
   notification_optionsc,r
   check_command   check_ping!1000.0,20%!5000.0,100%
   }


I hope this helps some.

Let me know if you have any more questions.

_
Get more out of your e-mail. Update to Windows Live Hotmail today! 
http://ninemsn.com.au/share/redir/adTrack.asp?mode=clickclientID=778referral=HotmailTaglineURL=http://g.msn.com/8HMBEN/14811??PS= 



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] Need help

2007-09-12 Thread Andreas Ericsson
Zion Ahead wrote:
 I finally got Nagios working and into the web panel.
 
 Now, how on earth do I ADD new services to monitor???
 

By editing your services.cfg file. You should have done something along
the lines of make install-config after having installed the nagios core
and cgi binaries. If you use a distro that ships nagios pre-packaged you
should be able to find your nagios config in /etc/nagios.

 The docs are so disgustingly confusing
 http://nagios.sourceforge.net/docs/3...cservices.html
 http://nagios.sourceforge.net/docs/3_0/monitoring-publicservices.html 
 
 Quote:
 
 
 Before you can monitor a service, you first need to define a host
 http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host  that
 is associated with the service. You can place host definitions in any object
 configuration file specified by a cfg_file
 http://nagios.sourceforge.net/docs/3_0/configmain.html#cfg_file  directive
 or placed in a directory specified by a cfg_dir
 http://nagios.sourceforge.net/docs/3_0/configmain.html#cfg_dir  directive.
 If you have already created a host definition, you can skip this step. 
 

It's actually the services that are associated with hosts, but that's a minor
nitpick.

Each service in Nagios belongs to one or more hosts, in much the same way
that only one web-server / connection is actually serving content to a client.

Both services and hosts use command objects as definitions on how to run a
particular check. Each check is performed by a very small and simple program,
commonly known as a plugin. The command objects simply define where to find
the plugin and what argument to pass to it. Usually, multiple command objects
refer to the same plugin.

So.. in order for you to create a service-check, you'll need a command object
definition, a host object and a service object. You'll also need at least one
timeperiod object (make install-config provides several that will work nicely).

Examples of such objects can be found in the documentation, which I notice
you've already located.

  
 
 Quote:
 
 
 The host definition can be placed in its own file or added to an already
 exiting object configuration file. 
 
  
 
  
 
 What? Where does the file go? What name? This is crazy.
 

make install-config or rpm -ql nagios should provide some hints.

If you've already done the make install-config thing, your example config
files should be in $prefix/etc, or $sysconfdir if you specified that.

 
 
 Nagios doesn't even have a forum except that lame international one that is
 inactive/dead.
 

True. It has this list (and a few others) instead. Some projects use web-forums,
most use mailing lists. Webforums generally require more work to manage, so a
properly archived mailing list is what most OSS projects use as it's basically
maintenance-free once the list-server is set up.

Personally I detest webforums with a passion as I need to actively check it to
keep up with what's going on in insert-project-of-choice.


I can't help but make the observation that you don't seem to like Nagios but
still seem quite determined to install it. Usually such emotions and actions
only occur when The Suits have shoved some decision down some poor technicians
throat against their will.

To ease your pain, I suggest you stick to using the latest stable nagios (2.9)
or contact a support-company that help you get up and running. It's normally
not very expensive and you will be able to show management a quick return of
investment.

The market-leading Nagios company in the US is IT Groundworks, which you'll
find at http://www.groundworkopensource.com/

In Europe it's op5, which you'll find at http://www.op5.com (yes, it's where
I work).

For Australia, Asia and Africa I have no idea where to turn, but you should
be able to find something close to home if you browse through the providers
listed at http://www.nagios.org/support/commercial/

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] need help with my custom perl plugin

2007-09-04 Thread August Simonelli
Hey all ...

I need to use nagios to check that a remote mail server can reach its relay.
the remote mail server is an appliance and all i can do on it is run a
telnet. to do this i've written a perl plugin that ssh's from the nagios box
to the appliance and then executes a telnet to the mail relay's port 25. the
script works perfectly on the command line - i can get all states (warn,
crit and ok).

Now, when i move it into nagios, i can only get critical and warning states.
for some reason, my test and exit for the OK state just gets missed and the
plugin returns the default warning status from the scripts last few lines
(see below).

i'm new to perl and nagios plugin writing, so i've probably messed up some
fundamental thing here ... but i can't seem to get it ...

any thoughts/corrections/criticisms/comments are greatly appreciated.

here's the script:

#!/usr/bin/perl -w
use strict;

use utils qw(%ERRORS $TIMEOUT);

# in case we just hang -
$SIG{ALRM} = sub {
print CRITICAL: Plugin timed out.\n;
exit 2
};

alarm(10);

my ($host, $key, $remote) = @ARGV;
unless ($host and $key and $remote) {
die Usage: $0 hostname ssh_key remote_mail_server\n;
}

# default error
# my $connect_result = Remote Test Failure;

open (SSH, ssh -i $key $host telnet $remote 25|) or die Can't open pipe:
$!;

# iterate through the loop and skip lines that don't have what we want.
then, store the last var - we know the telnet action is 4 lines
while (SSH){
next if /^Trying/;
next if /^Connected/;
next if /^Escape/;
if ($_ =~ /^220/) {
print $_ this works;
exit($ERRORS{'OK'});
}
else {
print Connect died at: $_;
exit($ERRORS{'CRITICAL'});
}
close SSH;
}
print fell thru;
exit($ERRORS{'WARNING'});
close SSH;


again, if i change the if statements to create an error (change ^Trying to
^rying for instance) nagios reports critical and clearly uses:

else {
print Connect died at: $_;
exit($ERRORS{'CRITICAL'});
}

and $_ is set to the line that didn't match and caused the error ...

but when all those conditions ARE met nagios always makes it right past

if ($_ =~ /^220/) {
print $_ this works;
exit($ERRORS{'OK'});

and gives me

print fell thru;
exit($ERRORS{'WARNING'});

printing out $_ in the while loop has the expected 220 line ...

ok ... hope this is not too verbose; sorry if this is just such bad code
that you all wanna slap me down! :-)

thanks,

august

ps. the service is defined as (names changed to protect the innocent):

define service{
host_name   mailhost
service_description smtp relay check test
is_volatile 0
check_command
check_smtp_relay!/usr/local/nagios/.ssh/id_dsa!remoterelay.mydomain.com#
max_check_attempts  3
normal_check_interval   2
retry_check_interval1
check_period24x7
notification_interval   240
notification_period 24x7
notification_optionsw,u,c,r
contact_groups  unix-admins
}

and the command is:

define command{
command_namecheck_smtp_relay
command_line$USER1$/smtpchecker.pl $HOSTADDRESS$ $ARG1$ $ARG2$
}
-
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] need help with my custom perl plugin

2007-09-04 Thread Marcel Mitsuto Fucatu Sugano
Comments inline:

On Wed, 2007-09-05 at 08:48 +1000, August Simonelli wrote:
 
 
 but when all those conditions ARE met nagios always makes it right
 past
 
 if ($_ =~ /^220/) {
 print $_ this works;
 exit($ERRORS{'OK'});
 
 and gives me
 
 print fell thru;
 exit($ERRORS{'WARNING'});
 
 printing out $_ in the while loop has the expected 220 line ...
 

Probably, telnet responds something different that the regexp match
expects, like \r220: (...), so if 220 is the OK condition, try
removing the leading ^, and you're done.

HTH


AVISO: A informação contida neste e-mail, bem como em qualquer de seus anexos, 
é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) acima 
referido(s), podendo conter informações sigilosas e/ou legalmente protegidas. 
Caso você não seja o destinatário desta mensagem, informamos que qualquer 
divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de seus anexos 
é absolutamente proibida. Solicitamos que o remetente seja comunicado 
imediatamente, respondendo esta mensagem, e que o original desta mensagem e de 
seus anexos, bem como toda e qualquer cópia e/ou impressão realizada a partir 
destes, sejam permanentemente apagados e/ou destruídos. Informações adicionais 
sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/.

NOTICE: The information contained in this e-mail and any attachments thereto is 
CONFIDENTIAL and is intended only for use by the recipient named herein and may 
contain legally privileged and/or secret information. If you are not the 
e-mail´s intended recipient, you are hereby notified that any dissemination, 
distribution or copy of this e-mail, and/or any attachments thereto, is 
strictly prohibited. Please immediately notify the sender replying to the above 
mentioned e-mail address, and permanently delete and/or destroy the original 
and any copy of this e-mail and/or its attachments, as well as any printout 
thereof. Additional information about our company may be obtained through the 
site http://www.uol.com.br/ir/.

-
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] need help with my custom perl plugin

2007-09-04 Thread August Simonelli
good thought on perms - i double checked and i'm running as nagios so all
good there ...

marcel i think you are right, my match condition is just wrong for some
reason ...

when i change the while loop to:

while (SSH){
next if /^Trying/;
next if /^Connected/;
if ($_ =~ /Escape/) {
print success $_;
exit($ERRORS{'OK'});
}
else {
print Connect died at: $_;
exit($ERRORS{'CRITICAL'});
}

this works and nagios reports OK.

but if i let it get to that last line, which is the 220 line, it won't
match. i'm guessing this is something to do with how the while loop handles
the last line of input and places it into $_

but i don't get why nagios doens't see it and command line works ...

i'll keep trying and if anyone spots it please let me know!

august



On 9/5/07, Marcel Mitsuto Fucatu Sugano [EMAIL PROTECTED] wrote:

 Comments inline:

 On Wed, 2007-09-05 at 08:48 +1000, August Simonelli wrote:
 
 
  but when all those conditions ARE met nagios always makes it right
  past
 
  if ($_ =~ /^220/) {
  print $_ this works;
  exit($ERRORS{'OK'});
 
  and gives me
 
  print fell thru;
  exit($ERRORS{'WARNING'});
 
  printing out $_ in the while loop has the expected 220 line ...
 

 Probably, telnet responds something different that the regexp match
 expects, like \r220: (...), so if 220 is the OK condition, try
 removing the leading ^, and you're done.

 HTH


 AVISO: A informação contida neste e-mail, bem como em qualquer de seus
 anexos, é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s)
 acima referido(s), podendo conter informações sigilosas e/ou legalmente
 protegidas. Caso você não seja o destinatário desta mensagem, informamos que
 qualquer divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de
 seus anexos é absolutamente proibida. Solicitamos que o remetente seja
 comunicado imediatamente, respondendo esta mensagem, e que o original desta
 mensagem e de seus anexos, bem como toda e qualquer cópia e/ou impressão
 realizada a partir destes, sejam permanentemente apagados e/ou destruídos.
 Informações adicionais sobre nossa empresa podem ser obtidas no site
 http://sobre.uol.com.br/.

 NOTICE: The information contained in this e-mail and any attachments
 thereto is CONFIDENTIAL and is intended only for use by the recipient named
 herein and may contain legally privileged and/or secret information. If you
 are not the e-mail´s intended recipient, you are hereby notified that any
 dissemination, distribution or copy of this e-mail, and/or any attachments
 thereto, is strictly prohibited. Please immediately notify the sender
 replying to the above mentioned e-mail address, and permanently delete
 and/or destroy the original and any copy of this e-mail and/or its
 attachments, as well as any printout thereof. Additional information about
 our company may be obtained through the site http://www.uol.com.br/ir/.

-
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] Need help with check_http

2007-07-27 Thread Rob Hamilton
 

The check_http plugin doesn't seem to be catching critical events and
connection refused events:

 

Localhost.cfg

 

define service{

use local-service ; Name of
service template to use

host_name   app3, app4, app5, app6, app7,
app8, app9, app10,

service_description CC_PIXEL

check_command   check_pixel

}

 

Commands.cfg

 

# 'check_pixel' command definition

define command{

command_namecheck_pixel

command_line$USER1$/check_http -e OK -H virtual hostname
-I $HOSTADDRESS$ -u test url}

 

When apache is off, I get a Connection refused  in the status
information, but the nagios status for the defined service is OK

 

When apache is up and the app server is down, I get HTTP CRITICAL -
Invalid HTTP response received from host  in the status information,
but the nagios status for the defined service is OK

 

When I run check_http from the command line manually, I can confirm that
I'm receiving correct status information back and the expect string of
OK isn't in the response. 

 

What am I missing? 

 

Thanks,

 

-Rob

 

 


The information transmitted in this email is intended only for the person(s) or 
entity to which 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 email in error, 
please contact the sender and permanently delete the email from any computer. 


-
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] Need help with check_http

2007-07-27 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Rob Hamilton
 Sent: Friday, July 27, 2007 10:58 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Need help with check_http
 
 
 
 The check_http plugin doesn't seem to be catching critical events and
 connection refused events:


 When apache is off, I get a Connection refused  in the status
 information, but the nagios status for the defined service is OK
 
 
 
 When apache is up and the app server is down, I get HTTP CRITICAL -
 Invalid HTTP response received from host  in the status information,
but
 the nagios status for the defined service is OK
 
 
 
 When I run check_http from the command line manually, I can confirm
that
 I'm receiving correct status information back and the expect string of
 OK isn't in the response.
 
 
 
 What am I missing?

The nagios status is not derived from the text output but rather the
exit code of the plugin. When testing from the command line, use 'echo
$?' to verify the exit code of the plugin. 0 = OK, 1 = Warning, 2 =
Critical. The symptoms you are reporting indicate that the exit code
isn't being set properly or isn't being seen by nagios properly.

I've confirmed that it should work as specified by you, at least with a
slightly older version of check_http. Are you seeing the proper exit
code from the plugin? --

$ ./check_http -e OK -H www.somehost.com -I myip.address -u /foo
Invalid HTTP response received from host
$ echo $?
2

$ ./check_http -e OK -H www.somehost.com -I myip.address -u /foo
Connection refused
Unable to open TCP socket
$ echo $?
2

$ ./check_http -V
check_http (nagios-plugins 1.4.3) 1.89

If nagios isn't seeing the exit code properly, that would be a rather
unique situation. I can't recall seeing that before.

--
Marc

-
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] Need help with check_http

2007-07-27 Thread Rob Hamilton
Hey Mark,

Thanks for the great response.

My nagios check_http plugin seems to be a bit newer than yours. I'm
using Nagios V2.9 with what appears to be newer plugins.

[EMAIL PROTECTED] libexec]# ./check_http -V
check_http (nagios-plugins 1.4.9) 1.104


Here are the test cases. All exit codes look to be correct on command
completion (0,2,2 respectively), but when I use the echo $? command -
they are all zeros  (see below).

Cases below...

Thanks,

-Rob

Case: Apache up, JBoss up

[EMAIL PROTECTED] libexec]# ./check_http -e OK -H virtualhost -I app10 -u
testurl
[1] 4332
[EMAIL PROTECTED] libexec]# HTTP OK HTTP/1.1 200 OK - 609 bytes in 0.134
seconds |time=0.134439s;;;0.00 size=609B;;;0
[1]+  Done./check_http -e OK -H virtualhost -I
app10 -u testurl
[EMAIL PROTECTED] libexec]# echo $?
0


Case: Apache down, JBoss up

[EMAIL PROTECTED] libexec]# ./check_http -e OK -H virtualhost -I app10 -u
testurl
[1] 4411
[EMAIL PROTECTED] libexec]# Connection refused
HTTP CRITICAL - Unable to open TCP socket
[1]+  Exit 2  ./check_http -e OK -H virtualhost -I
app10 -u testurl
[EMAIL PROTECTED] libexec]# echo $?
0


Case: Apache up, JBoss down

[EMAIL PROTECTED] libexec]# ./check_http -e OK -H virtualhost -I app10 -u
testurl
[1] 4431
[EMAIL PROTECTED] libexec]# HTTP CRITICAL - Invalid HTTP response received
from host
[1]+  Exit 2  ./check_http -e OK -H virtualhost -I
app10 -u testurl
[EMAIL PROTECTED] libexec]# echo $?
0

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc
Powell
Sent: Friday, July 27, 2007 12:28 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Need help with check_http



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Rob Hamilton
 Sent: Friday, July 27, 2007 10:58 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Need help with check_http
 
 
 
 The check_http plugin doesn't seem to be catching critical events and
 connection refused events:


 When apache is off, I get a Connection refused  in the status
 information, but the nagios status for the defined service is OK
 
 
 
 When apache is up and the app server is down, I get HTTP CRITICAL -
 Invalid HTTP response received from host  in the status information,
but
 the nagios status for the defined service is OK
 
 
 
 When I run check_http from the command line manually, I can confirm
that
 I'm receiving correct status information back and the expect string of
 OK isn't in the response.
 
 
 
 What am I missing?

The nagios status is not derived from the text output but rather the
exit code of the plugin. When testing from the command line, use 'echo
$?' to verify the exit code of the plugin. 0 = OK, 1 = Warning, 2 =
Critical. The symptoms you are reporting indicate that the exit code
isn't being set properly or isn't being seen by nagios properly.

I've confirmed that it should work as specified by you, at least with a
slightly older version of check_http. Are you seeing the proper exit
code from the plugin? --

$ ./check_http -e OK -H www.somehost.com -I myip.address -u /foo
Invalid HTTP response received from host
$ echo $?
2

$ ./check_http -e OK -H www.somehost.com -I myip.address -u /foo
Connection refused
Unable to open TCP socket
$ echo $?
2

$ ./check_http -V
check_http (nagios-plugins 1.4.3) 1.89

If nagios isn't seeing the exit code properly, that would be a rather
unique situation. I can't recall seeing that before.

--
Marc


-
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

The information transmitted in this email is intended only for the person(s) or 
entity to which 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 email in error, 
please contact the sender and permanently delete the email from any computer. 



-
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

Re: [Nagios-users] Need help with check_http

2007-07-27 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Rob Hamilton
 Sent: Friday, July 27, 2007 12:57 PM
 To: Marc Powell
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Need help with check_http
 
 Hey Mark,
 
 Thanks for the great response.
 
 My nagios check_http plugin seems to be a bit newer than yours. I'm
 using Nagios V2.9 with what appears to be newer plugins.
 
 [EMAIL PROTECTED] libexec]# ./check_http -V
 check_http (nagios-plugins 1.4.9) 1.104
 
 
 Here are the test cases. All exit codes look to be correct on command
 completion (0,2,2 respectively), but when I use the echo $? command -
 they are all zeros  (see below).
 
 Cases below...
 
 Thanks,
 
 -Rob
 
 Case: Apache up, JBoss up
 
 [EMAIL PROTECTED] libexec]# ./check_http -e OK -H virtualhost -I app10 -u
 testurl
 [1] 4332
 [EMAIL PROTECTED] libexec]# HTTP OK HTTP/1.1 200 OK - 609 bytes in 0.134
 seconds |time=0.134439s;;;0.00 size=609B;;;0
 [1]+  Done./check_http -e OK -H virtualhost -I
 app10 -u testurl
 [EMAIL PROTECTED] libexec]# echo $?
 0

Yes, it's clear what's going on now... Your testurl contains an '',
doesn't it? This causes the part of the command before the  to be
executed as a detached process in the background and the rest is likely
just creating shell variable=value environment variables. It's this
latter successful variable assignment that's exiting with status code 0.
The success or failure of the first part is irrelevant. A simple example
is below --

$ echo something1=somethingsomething2=somethingelse
[1] 22997
Something1=something
[1]+  Doneecho something1=something
$ echo $?
0
$ echo $something2
somethingelse


Using the -v argument to check_http you can see the difference in the
GET requests as well. It has a simple solution though: enclose the
testurl in quotes in your command definition. If you were testing on
the command line you'd use --

./check_http -e OK -H virtualhost -I app10 -u testurl

--
Marc

-
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] Need help with check_http

2007-07-27 Thread Rob Hamilton
What was it ... D'oh!

Thanks for the eyeballs Marc...

-Rob

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc
Powell
Sent: Friday, July 27, 2007 2:21 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Need help with check_http



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Rob Hamilton
 Sent: Friday, July 27, 2007 12:57 PM
 To: Marc Powell
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Need help with check_http
 
 Hey Mark,
 
 Thanks for the great response.
 
 My nagios check_http plugin seems to be a bit newer than yours. I'm
 using Nagios V2.9 with what appears to be newer plugins.
 
 [EMAIL PROTECTED] libexec]# ./check_http -V
 check_http (nagios-plugins 1.4.9) 1.104
 
 
 Here are the test cases. All exit codes look to be correct on command
 completion (0,2,2 respectively), but when I use the echo $? command -
 they are all zeros  (see below).
 
 Cases below...
 
 Thanks,
 
 -Rob
 
 Case: Apache up, JBoss up
 
 [EMAIL PROTECTED] libexec]# ./check_http -e OK -H virtualhost -I app10 -u
 testurl
 [1] 4332
 [EMAIL PROTECTED] libexec]# HTTP OK HTTP/1.1 200 OK - 609 bytes in 0.134
 seconds |time=0.134439s;;;0.00 size=609B;;;0
 [1]+  Done./check_http -e OK -H virtualhost -I
 app10 -u testurl
 [EMAIL PROTECTED] libexec]# echo $?
 0

Yes, it's clear what's going on now... Your testurl contains an '',
doesn't it? This causes the part of the command before the  to be
executed as a detached process in the background and the rest is likely
just creating shell variable=value environment variables. It's this
latter successful variable assignment that's exiting with status code 0.
The success or failure of the first part is irrelevant. A simple example
is below --

$ echo something1=somethingsomething2=somethingelse
[1] 22997
Something1=something
[1]+  Doneecho something1=something
$ echo $?
0
$ echo $something2
somethingelse


Using the -v argument to check_http you can see the difference in the
GET requests as well. It has a simple solution though: enclose the
testurl in quotes in your command definition. If you were testing on
the command line you'd use --

./check_http -e OK -H virtualhost -I app10 -u testurl

--
Marc


-
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

The information transmitted in this email is intended only for the person(s) or 
entity to which 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 email in error, 
please contact the sender and permanently delete the email from any computer. 



-
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] Need help for Nagios configuration

2007-04-15 Thread Anthony Montibello

hi,

Nagios is capable of monitoring many things,
your best option is to Read The Documentation.
then review the existing plugins that are out there.
(review the official plugins, and Nagios Exchange)

Basically nagios can check anything you want as long as you get can print
output and return the proper exit code.

For windows I recomend NC_Net (since I made it)
but there is also NS_CLient++, SNMP traps, NRPE
and several other ways to check against a windows box.
(once again check nagios Exchange)

Good Luck,
TOny  (author of NC_Net)


On 4/14/07, Mukta Sharma [EMAIL PROTECTED] wrote:


Hi,

I have installed and configured Nagios on my laptop which has Fedora as
virtual machine and it is working fine. But as I have installed on virtual
machine so i added windows wireless adapter IP address and vmware IP address
as the host. I am running the PING and HTTP service for both the host and
also added some services like CurrentLoad, CurrentUsers and Total processes
for the localmachine and all these services are working fine.

So can anyone please tell me what extra services i can add for these
particular hosts and if possible the syntax of adding those services.


Thanks and Regards,

Mukta Sharma
M.S Student, Computer Science.
The George Washington University

-
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
[EMAIL PROTECTED]
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
[EMAIL PROTECTED]
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] Need help for Nagios configuration

2007-04-15 Thread Hugo van der Kooij
On Sat, 14 Apr 2007, Mukta Sharma wrote:

 So can anyone please tell me what extra services i can add for these 
 particular hosts and if possible the syntax of adding those services.

Nagios is all about monitoring services. If you have to ask others which 
services to monitor I would say these services do not need to be monitored 
because they are not important to you. If they were important you could 
name them to us.

If it is for educational purposes one should study the manuals. Read some 
bits of the tons of extra monitoring script available from nagios exchange 
and the archives of this mailinglist.

There is no substitute for learning things by finding information yourself 
and building things.

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 the insight.)

-
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
[EMAIL PROTECTED]
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] Need help for Nagios configuration

2007-04-14 Thread Mukta Sharma
Hi,

I have installed and configured Nagios on my laptop which has Fedora as virtual 
machine and it is working fine. But as I have installed on virtual machine so i 
added windows wireless adapter IP address and vmware IP address as the host. I 
am running the PING and HTTP service for both the host and also added some 
services like CurrentLoad, CurrentUsers and Total processes for the 
localmachine and all these services are working fine. 

So can anyone please tell me what extra services i can add for these particular 
hosts and if possible the syntax of adding those services.


Thanks and Regards,

Mukta Sharma
M.S Student, Computer Science.
The George Washington University

-
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
[EMAIL PROTECTED]
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] Need help

2007-03-25 Thread Mukta Sharma
Hi
This is Mukta Sharma. I am masters student in GWU. I am doing Nagios 
installation and configuration during my Unix project.

I am having one problem, after installing it. I followed all the steps written 
in the documentation to install Nagios. But after restarting my web server when 
i just want to verify if that changes working or not or i want to see the 
Nagios web interface, i entered the  following  path in to my web browser  
http://localhost/nagios/ . It asked me for the user name and password for 
Nagios Access at http://localhost.  i have not entered any password, i just 
created the user as written in the documentation.

So please anyone can tell me what i should do to resolve this problem.

Thanks

Mukta Sharma
M.S Student 
The George Washington University

-
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] Need help

2007-03-25 Thread Morris, Patrick
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Mukta Sharma
 Sent: Sunday, March 25, 2007 5:10 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Need help
 
 I am having one problem, after installing it. I followed all 
 the steps written in the documentation to install Nagios. But 
 after restarting my web server when i just want to verify if 
 that changes working or not or i want to see the Nagios web 
 interface, i entered the  following  path in to my web 
 browser  http://localhost/nagios/ . It asked me for the user 
 name and password for Nagios Access at http://localhost.  i 
 have not entered any password, i just created the user as 
 written in the documentation.
 
 So please anyone can tell me what i should do to resolve this problem.

Nagios itself does not prompt for authentication. You must have
configured your Apache server to do it. You'll need to complete that
process. Take a look at your Apache configuration, and any files you
have specified there that it should use for authentication.

-
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] need help

2007-01-10 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Nedim Bicic
 Sent: Tuesday, January 09, 2007 11:37 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] need help
 
 I am running Nagios version 2.4
 I set them up by simply going to nagios.cfg edited out # for each
object
 file ex: cfg_file=etc/nagios/host.cfg and so on then created the file
in
 the nagios directory using touch and chown for full permission
 
 now when i add hosts and serives for each file and then go to
webinterface
 nagios it works
 i can see several hosts and they are shown as being up
 
 but when i try editing out # next to conacts group and dependencies
and
 try to restart nagios it keeps giving me an error  Reading etc/nagios
 main config file line 31 Null variable soemthing like this.

This is like saying I have a cough or something like that. Do I have
the flu? What's the _exact_ error and what is line 31 of the file the
error references?

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


[Nagios-users] need help

2007-01-09 Thread Nedim Bicic

I am running Nagios version 2.4
I set them up by simply going to nagios.cfg edited out # for each object
file ex: cfg_file=etc/nagios/host.cfg and so on then created the file in the
nagios directory using touch and chown for full permission

now when i add hosts and serives for each file and then go to webinterface
nagios it works
i can see several hosts and they are shown as being up

but when i try editing out # next to conacts group and dependencies and try
to restart nagios it keeps giving me an error  Reading etc/nagios main
config file line 31 Null variable soemthing like this.

But Hosts and services do work when i restart nagios no problem just the
other objects.

I installed Cacti EZ on the linux box Red hat and had a nagios version along
with the distribution cd

thanks in advance
-
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

[Nagios-users] need help

2006-10-12 Thread ramesh kalyandrug
Hi,I installed nagios 2.5 on sun solaries .trends.cgi and statusmap.cgi files are not generated . I installed GD and related packages I am not able to see the graphic . How set up mrtg plugins and add new nodes to nagios. If you document please send it to me. Regards  Ramesh KalyandrugRamesh Kalyandrug 
		Stay in the know. Pulse on the new Yahoo.com.  Check it out. 
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
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] need help

2006-10-12 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of ramesh kalyandrug
 Sent: Thursday, October 12, 2006 1:30 PM
 To: Nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] need help
 
 Hi,
 
 I installed  nagios 2.5 on sun solaries .trends.cgi and statusmap.cgi
 files are not generated . I installed GD and related packages  I am
not
 able to see the graphic . How set up  mrtg plugins and add new nodes
to
 nagios. If you document please send it to me.

It's a FAQ under the Support section of the Nagios website.

--
Marc

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] [NEED HELP] statusmap.cgi

2006-08-08 Thread Arief Iqbal
when enter statusmap in nagios web interface, there's a message:  Not Found  The requested URL /nagios/cgiurl/statusmap.cgi was not found on this server.   Apache/2.0.52 (Fedora) Server at localhost.localdomain Port 80  can somebody tell me why? and how to solve this problem?  thank you
		Groups are talking. Were listening. Check out the handy changes to Yahoo! Groups. -
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
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] [NEED HELP] statusmap.cgi

2006-08-08 Thread Joerg Linge
Am Dienstag, 8. August 2006 11:06 schrieb Arief Iqbal:
 when enter statusmap in nagios web interface, there's a message:
  
  Not Found  The requested URL /nagios/cgiurl/statusmap.cgi was not found on 
 this server.

http://www.nagios.org/faqs/viewfaq.php?faq_id=55

Jörg   

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] Need help with the concept of network objects

2006-07-24 Thread Robert Snyder
Hi,

I have read through most, if not all, of the 258 pages of the Nagios 2.0
documentation and have been running a Nagios install for about four
months. At this point I am monitoring about 45 hosts and around 100
services. My question is about network objects.

I understand that I explicitly define host and service objects. What I
don't get is how a network object is defined or determined by Nagios. Is
this just determined by creating parent-child relationships, or is there
some other way in which an object is defined as a network object, and
hence it's unavailability is reported as a network outage on the Tac and
network outages screens?

I am sorry if this a silly question, but I am just not getting this
piece of the puzzle. 

Thanks in advance.

Robert



Robert Snyder
Outreach Technology Services
The Pennsylvania State University
151A Outreach Building
University Park  PA  16802
Phone: 814-865-0912  Fax: 814-865-4406 
E-mail: [EMAIL PROTECTED]



-
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] Need help with the concept of network objects

2006-07-24 Thread Curr, Barry
This should help you I think:
http://www.nagios.org/faqs/viewfaq.php?faq_id=145 

Regards
Barry 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Snyder
Sent: 24 July 2006 15:45
To: Nagios Users
Subject: [Nagios-users] Need help with the concept of network objects

Hi,

I have read through most, if not all, of the 258 pages of the Nagios 2.0
documentation and have been running a Nagios install for about four
months. At this point I am monitoring about 45 hosts and around 100
services. My question is about network objects.

I understand that I explicitly define host and service objects. What I
don't get is how a network object is defined or determined by Nagios. Is
this just determined by creating parent-child relationships, or is there
some other way in which an object is defined as a network object, and
hence it's unavailability is reported as a network outage on the Tac and
network outages screens?

I am sorry if this a silly question, but I am just not getting this
piece of the puzzle. 

Thanks in advance.

Robert



Robert Snyder
Outreach Technology Services
The Pennsylvania State University
151A Outreach Building
University Park  PA  16802
Phone: 814-865-0912  Fax: 814-865-4406
E-mail: [EMAIL PROTECTED]




-
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=DEVDE
V
___
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 message has been checked for all known viruses by the Cable 
Wireless
E-mail Virus Protection service, powered by MessageLabs.




http://www.heinz.com
This email is not intended to create a contract or an offer of acceptance or 
other legally binding commitment, unless that is expressly stated to be the 
case in the email. If the email does expressly state that a contract is 
created, then any contract for sale of goods will (unless expressly stated 
otherwise) be subject to the relevant H.J. Heinz's Standard Conditions of Sale 
applicable to that type of goods which are set out at www.heinzcustomers.co.uk

This email and any attachments are confidential and solely for the use of the 
intended recipient. They may contain material protected by legal professional 
or other privilege. If you are not the intended recipient or the person 
responsible for delivering to the intended recipient, you are not authorised to 
and must not disclose, copy, distribute or retain this email or its 
attachments. Although this email and its attachments are believed to be free of 
any virus or other defect, it is the responsibility of the recipient to ensure 
that they are virus free and no responsibility is accepted by the company for 
any loss or damage arising from receipt or use thereof.

This message has been checked for all known viruses by the Cable  Wireless
E-mail Virus Protection service, powered by MessageLabs.



-
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] Need help with the concept of network objects

2006-07-24 Thread Morris, Patrick
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Robert Snyder
 Sent: Monday, July 24, 2006 7:45 AM
 To: Nagios Users
 Subject: [Nagios-users] Need help with the concept of network objects
 
 I understand that I explicitly define host and service 
 objects. What I don't get is how a network object is defined 
 or determined by Nagios. Is this just determined by creating 
 parent-child relationships

Yes.

-
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


[Nagios-users] Need help to determine what service to use

2006-03-14 Thread Randy Paries
Hello,
I have a box that i need to make sure that certian processes are running

So in my snmpd.conf i have the setting
proc heartbeat

so could someone tell me what service i use to monitor this

Thanks
Randy


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
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] Need help with service failure recheck interval

2006-03-01 Thread prosolutions

Using nagios 2.0b3 and have the following host and related service
defined:

define host{
 usevip.template
 host_name  ProdSystem
 alias  Prod
 hostgroups Production
 check_command  check-dummy!0!See Service Detail for Status 
Information
 address172.16.1.10
}

define service{
use vip.template
host_name   ProdSystem
service_description test_client
is_volatile 0
check_periodOff_Peak
max_check_attempts  3
normal_check_interval   1500
retry_check_interval20
notification_interval   0
check_command   test_client!111.111.111.111!!35
}

test_client is a simple script that tests the connectivity of the custom
service that at listening at 172.16.0.50.  It is set to timeout and fail
at 35 seconds.  

interval_length is set to 1, therefore normal_check_interval=1500 should
be 1500s=25m and retry_check_interval=20 should be 20s.  However last
night test_client failed and gave initial notification of state CRITICAL
at 00:37:21.  Manually testing by me immediately after receiving this
notification showed that the service was indeed back up therefore I am
almost 100% certain that subsequent test_client checks by nagios would
have succeeded.  However, I did not receive an RECOVERY alert until
01:26:46, which is almost exactly 50 minutes after the initial CRITICAL
alert.


Also, I have another test for a similar service with identical
parameters, and in that case it didn't send a RECOVERY alert until
almost exactly 75 minutes after the CRITICAL alert.





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
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] Need help with service failure recheck interval

2006-03-01 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
 Sent: Wednesday, March 01, 2006 3:02 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Need help with service failure recheck
interval
 
 
 Using nagios 2.0b3 and have the following host and related service
 defined:
 

[removed host and service definitions. Thanks!]
 
 test_client is a simple script that tests the connectivity of the
custom
 service that at listening at 172.16.0.50.  It is set to timeout and
fail
 at 35 seconds.
 
 interval_length is set to 1, therefore normal_check_interval=1500
should
 be 1500s=25m and retry_check_interval=20 should be 20s.  However last
 night test_client failed and gave initial notification of state
CRITICAL
 at 00:37:21.  Manually testing by me immediately after receiving this
 notification showed that the service was indeed back up therefore I am
 almost 100% certain that subsequent test_client checks by nagios would
 have succeeded.  However, I did not receive an RECOVERY alert until
 01:26:46, which is almost exactly 50 minutes after the initial
CRITICAL
 alert.

I would expect this to have been ~25 minutes.

 Also, I have another test for a similar service with identical
 parameters, and in that case it didn't send a RECOVERY alert until
 almost exactly 75 minutes after the CRITICAL alert.

Have you checked nagios.log to verify that your assumptions about the
check results in both cases are accurate? We'd need those and related
entries to know what's really going on, else we're just speculating. If
you're not seeing sufficient log entries, make sure you've enabled log_
options in nagios.cfg. You may also want to consider enabling debug
options at compile time for additional logging. As noted in nagios.cfg,
using an interval_length other than 60 isn't common and isn't thoroughly
tested.

I for one have not experienced notification issues such as this using
many versions of Netsaint/Nagios.

Also, you should be using the 2.0 release now to make sure you're not
hitting a bug that's already been fixed.

--
Marc


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
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