[Nagios-users] Performance Data from custom bash script

2012-10-18 Thread Andrew Thompson
Hello,

I have a custom written bash script for checking my websites and trawling 
around them.

Now I need to learn and understand now to get performance data into nagios from 
this script so I can graph with PNP4Nagios

Can anybody give me any pointers on how to get performance output from this 
script?

I am by no means a programmer so this I feel might be a steep learning curve?

Thankyou


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct___
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] Can't get service failure(warning) to send notification

2012-10-18 Thread James Pifer
On 10/17/2012 11:31 PM, Frank Bulk wrote:
 You can set up different checks looking for different failures.

 Frank



The correct check is failing. On the Centreon screen I can see the Warning:

HTTP WARNING:
HTTP/1.1 404 Not Found - 1428 bytes in 0.044 second response time


But the notification related to that warning (because I can see the 
notification count going up) is:

SUBJECT: Host UP alert for login2.pca.com!
BODY:

* centreon Notification *

Type:PROBLEM
Host: login2.mycompany.com
State: UP
Address: login2.mycompany.com
Info: PING OK - Packet loss = 0%, RTA = 0.94 ms
Date/Time: 17-10-2012

The info seem to be coming from the Ping-LAN, not the CheckHTTP. Both services 
are associated to the host.

It says Host UP, Type PROBELM. I would prefer to see something like Service 
DOWN, Type PROBLEM, and Info: HTTP/1.1 404 Not Found - 1428 bytes in 0.044 
second response time.

Thanks,
James


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
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] Performance Data from custom bash script

2012-10-18 Thread Ranjib Dey
just print a string in perf data format, i.e. pipe character , then
 label=value;

e.g.

OK this is fine | metric1=value1;

for a more detailed reference:

http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN201

On Thu, Oct 18, 2012 at 3:40 PM, Andrew Thompson and...@fulgent.co.ukwrote:

  Hello,

 ** **

 I have a custom written bash script for checking my websites and trawling
 around them.

 ** **

 Now I need to learn and understand now to get performance data into nagios
 from this script so I can graph with PNP4Nagios

 ** **

 Can anybody give me any pointers on how to get performance output from
 this script?

 ** **

 I am by no means a programmer so this I feel might be a steep learning
 curve?

 ** **

 Thankyou

 ** **

 ** **


 --
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics
 Download AppDynamics Lite for free today:
 http://p.sf.net/sfu/appdyn_sfd2d_oct
 ___
 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

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct___
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] Host exclusion fail more 4 hosts

2012-10-18 Thread Leonardo Bacha Abrantes
Hey!!


I'm configuring my nagios yet and the router group had 5 routers that I
needed to make an exclusion. when I add more hosts in router group, the
exclusion of my 5 hosts worked.!!

many thanks!!

On Wed, Oct 17, 2012 at 7:40 PM, booleanena...@gmail.com wrote:

 Did you try making a group of the router you want to exclude and then
 exclude that on the hostgroup_name line instead? That may solve it although
 I agree it is weird that the host exclusion seems limited to 5 exclusions.
 The only other thing I can think of is that the Routers group only contains
 the 5 in question thus making the exclusion complete. But then why define
 the service in the first place?
 Sent on the Sprint® Now Network from my BlackBerry®

 -Original Message-
 From: Leonardo Bacha Abrantes leona...@lbasolutions.com
 Date: Wed, 17 Oct 2012 17:03:09
 To: Nagios Users Listnagios-users@lists.sourceforge.net
 Reply-To: Nagios Users List nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Host exclusion fail more 4 hosts


 --
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics
 Download AppDynamics Lite for free today:
 http://p.sf.net/sfu/appdyn_sfd2d_oct

 --
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics
 Download AppDynamics Lite for free today:
 http://p.sf.net/sfu/appdyn_sfd2d_oct
 ___
 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

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct___
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] Problems with installing Noma

2012-10-18 Thread john s.
os: ubuntu 10.04 lts
omd.0.56


Hello List


We are going to think about over to use the notification module Noma from  
the Netways Company  in our nagios environment

http://www.netways.de/de/produkte/nagios_icinga_addons/noma/


But if i use the configure option it comes the folowing error:


checking for a BSD-compatible install... /usr/bin/install -c
checking for perl... /usr/bin/perl
checking for sed... /bin/sed
checking for sendmail... /usr/sbin/sendmail
checking for user icinga... yes
checking for group www... checking for group www-data... yes
checking for perl module YAML::Syck... ok
checking for perl module Getopt::Long... ok
checking for perl module Pod::Usage... ok
checking for perl module Digest::MD5... ok
checking for perl module POSIX... ok
checking for perl module Data::Dumper... ok
checking for perl module Thread::Queue... ok
checking for perl module IO::Select... ok
checking for perl module IO::Socket... ok
checking for perl module Fcntl... ok
checking for perl module FindBin... ok
checking for perl module DBI... ok
checking for perl module DateTime::TimeZone... ok
checking for perl module DateTime::Format::Strptime... ok
checking for perl module Date::Calc... ok
checking for perl module Hash::Merge::Simple... no
configure: error: Missing perl modules

So he need more perl modules.. but i don't know which modules i need

how i can find this out...?


best regards john s.














--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
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] Problems with installing Noma

2012-10-18 Thread Assaf Flatto
On 18/10/12 12:37, john s. wrote:
 os: ubuntu 10.04 lts
 omd.0.56


 Hello List


 We are going to think about over to use the notification module Noma from
 the Netways Company  in our nagios environment

 http://www.netways.de/de/produkte/nagios_icinga_addons/noma/


 But if i use the configure option it comes the folowing error:


 checking for a BSD-compatible install... /usr/bin/install -c
 checking for perl... /usr/bin/perl
 checking for sed... /bin/sed
 checking for sendmail... /usr/sbin/sendmail
 checking for user icinga... yes
 checking for group www... checking for group www-data... yes
 checking for perl module YAML::Syck... ok
 checking for perl module Getopt::Long... ok
 checking for perl module Pod::Usage... ok
 checking for perl module Digest::MD5... ok
 checking for perl module POSIX... ok
 checking for perl module Data::Dumper... ok
 checking for perl module Thread::Queue... ok
 checking for perl module IO::Select... ok
 checking for perl module IO::Socket... ok
 checking for perl module Fcntl... ok
 checking for perl module FindBin... ok
 checking for perl module DBI... ok
 checking for perl module DateTime::TimeZone... ok
 checking for perl module DateTime::Format::Strptime... ok
 checking for perl module Date::Calc... ok
it tells you right here :

 checking for perl module Hash::Merge::Simple... no

This is the module you need.
 configure: error: Missing perl modules

 So he need more perl modules.. but i don't know which modules i need

 how i can find this out...?


 best regards john s.

--
Assaf Flatto
Aiki Linux Consulting
http://www.aikilinux.co.uk

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
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] Problems with installing Noma

2012-10-18 Thread john s.
Hello Assaf

Oh sorry i had still overlooked this

mea culpa


thnx for helping


regards john s.




Am 18.10.2012, 14:26 Uhr, schrieb Assaf Flatto nag...@flatto.net:

 On 18/10/12 12:37, john s. wrote:
 os: ubuntu 10.04 lts
 omd.0.56


 Hello List


 We are going to think about over to use the notification module Noma  
 from
 the Netways Company  in our nagios environment

 http://www.netways.de/de/produkte/nagios_icinga_addons/noma/


 But if i use the configure option it comes the folowing error:


 checking for a BSD-compatible install... /usr/bin/install -c
 checking for perl... /usr/bin/perl
 checking for sed... /bin/sed
 checking for sendmail... /usr/sbin/sendmail
 checking for user icinga... yes
 checking for group www... checking for group www-data... yes
 checking for perl module YAML::Syck... ok
 checking for perl module Getopt::Long... ok
 checking for perl module Pod::Usage... ok
 checking for perl module Digest::MD5... ok
 checking for perl module POSIX... ok
 checking for perl module Data::Dumper... ok
 checking for perl module Thread::Queue... ok
 checking for perl module IO::Select... ok
 checking for perl module IO::Socket... ok
 checking for perl module Fcntl... ok
 checking for perl module FindBin... ok
 checking for perl module DBI... ok
 checking for perl module DateTime::TimeZone... ok
 checking for perl module DateTime::Format::Strptime... ok
 checking for perl module Date::Calc... ok
 it tells you right here :

 checking for perl module Hash::Merge::Simple... no

 This is the module you need.
 configure: error: Missing perl modules

 So he need more perl modules.. but i don't know which modules i need

 how i can find this out...?


 best regards john s.

 --
 Assaf Flatto
 Aiki Linux Consulting
 http://www.aikilinux.co.uk




-- 
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/



--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
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] Regardig check_oracle configuration.

2012-10-18 Thread Srinivasan Ugendiran
Hi,

I'm not that much expert in linux. But I need to configure nagios in my
organization, Where we are using Oracle db servers. I need to check the
status of the oracle usig nagios. I tried check_oracle_instant, which ends
with error, so I planned to try check_oracle, but i dont know the
configuration.

Please help in configure any of the above th monitor the oracle. Also let
me know the requirements for this plugins.

-- 
Thanks  Regards,
Srinivasan. U
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct___
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] Force host assume up when services are up

2012-10-18 Thread Leonardo Bacha Abrantes
Hey guys!

I'm monitoring my external dns server with these configuration in nagios
with these configuration:

define host{
host_name   myserver
notes   External primary DNS
notifications_enabled   0
notification_interval   0
max_check_attempts  5
*    initial_state   o = It doesn't worked*
contact_groups  x
}


define service{
use generic-service
service_description Response Test
max_check_attempts  3
normal_check_interval   7
retry_check_interval2
contact_groups  xx
check_command   check_external_dns!www.mysite.com
!xxx.xxx.xxx.xxx!yyy.yyy.yyy.yyy
host_name   myserver
}


it's working, however, nagios is not assuming the host is up. How can I
configure nagios to assume an host is up when the services of it are up ?
PS: The same configuration worked on nagios versions 2.9 and 1.4.

nagios: 3.4.1

can anyone help me please ?
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct___
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] Problems with installing Noma

2012-10-18 Thread booleanenator
The line above indicates he need Hash::Merge::Simple. Install that one and try 
again. If it stops again, install what is indicated as missing.
Sent on the Sprint® Now Network from my BlackBerry®

-Original Message-
From: john s. firesk...@emailn.de
Date: Thu, 18 Oct 2012 13:37:58 
To: nagios-users@lists.sourceforge.net
Reply-To: Nagios Users List nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Problems with installing Noma

os: ubuntu 10.04 lts
omd.0.56


Hello List


We are going to think about over to use the notification module Noma from  
the Netways Company  in our nagios environment

http://www.netways.de/de/produkte/nagios_icinga_addons/noma/


But if i use the configure option it comes the folowing error:


checking for a BSD-compatible install... /usr/bin/install -c
checking for perl... /usr/bin/perl
checking for sed... /bin/sed
checking for sendmail... /usr/sbin/sendmail
checking for user icinga... yes
checking for group www... checking for group www-data... yes
checking for perl module YAML::Syck... ok
checking for perl module Getopt::Long... ok
checking for perl module Pod::Usage... ok
checking for perl module Digest::MD5... ok
checking for perl module POSIX... ok
checking for perl module Data::Dumper... ok
checking for perl module Thread::Queue... ok
checking for perl module IO::Select... ok
checking for perl module IO::Socket... ok
checking for perl module Fcntl... ok
checking for perl module FindBin... ok
checking for perl module DBI... ok
checking for perl module DateTime::TimeZone... ok
checking for perl module DateTime::Format::Strptime... ok
checking for perl module Date::Calc... ok
checking for perl module Hash::Merge::Simple... no
configure: error: Missing perl modules

So he need more perl modules.. but i don't know which modules i need

how i can find this out...?


best regards john s.














--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
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
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
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