Re: [Nagios-users] Log Rotations Issue

2013-01-31 Thread Assaf Flatto
On 31/01/13 15:56, Alaric wrote:
> Hi,
>
> I was hoping that someone on this list might have some insight to an issue 
> that I recently ran into after upgrading my Nagios core installation to 3.4.4 
> (out of the EPEL Repo) After upgrading, log rotation stopped on one of my two 
> servers, and perfdata_file_processing_commands stopped working, and whatever 
> Job that sets 'CURRENT HOST STATE' in the main nagios logs stopped working.
>
> I upgraded both my Dev server, and my Production server, and only my Prod 
> servers seems to have the issue.  Both run the same code, and both have the 
> same configs.
> I'm confident the configs as the same, as both get the configs deployed via 
> puppet.  I've googled around quite a bit, and haven't had any luck figuring 
> it out.  Has anyone seen anything similar?
>My feeling, based on the behavior of my Dev server is that it's not a 
> problem with the code, but that something got "stuck"  but I'm darned if I 
> can figure out what. I've cleared out the logs, restarted nagios, rebooted 
> the server. Audited configs and checked the debug output.
>
> Any help is much appreciated!
>
>
> -a
>
>
>
>
What is the difference in the volume of activity on those servers , it 
could be that you found an  issue related the the amount of checks or 
traffic generated to the the log.

If the internal log rotation is faulty - have you considered using 
logrotate as a dirty hack to fix your issue ?

--
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_d2d_jan
___
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] service escalations

2013-01-14 Thread Assaf Flatto

On 14/01/13 14:41, julian_grunn...@tdwh.co.uk wrote:


Hi - can someone confirm if the following scenario regards service 
escalations is correct?


I have a service check that simply performs a TCP check, if it fails 
it will email the contact with a defined notification_interval of 5mins.


I also have a serviceescalation defined as follows:

define serviceescalation{
hostgroup_name  desktopsnahisservers
service_description DESKTOP SNA SERVICE TCP 4097
first_notification  3
last_notification   0
notification_interval   5
contactsme_at_home
}

If the TCP check continues to fail the service escalation contact 
starts to get alerts but the actual contact for the defined service 
doesn't.


Is this behaviour to be expected?

As a solution I've simply added the defined service contact to also be 
a contact under the serviceescalation section as well.


I'm running Nagios 3.4.3.

Thanks - Julian.

Julian Grunnell | Unix Analyst, Infrastructure | TD Direct Investing
T: +44 (0) 113 346 2824 | M: +44 (0) 7889 352527


Escalations are added and expand the capability of notifications , when 
the escalation logics is activated the normal notification logic is 
"suspended" and the escalation is the way nagios is processing the alerts.


So if after the 3rd alert only the escalation alert is received - then 
the logic is working as it should .


Assaf
--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios not working except for local host

2013-01-08 Thread Assaf Flatto
On 08/01/13 13:29, Martin Hugo wrote:
> Hello,
>
> My Nagios server died and I am having to rebuild (ran well for the best part 
> of two years).  I am running Nagios Core 3.4.3 on Ubuntu 12.04 and have added 
> pnp4nagios 0.6.19.  Nagios and pnp4nagios were installed from source. I 
> believe I have configured it correctly but I have obviously missed something.
>
> My Nagios pre-flight check shows no errors (one warning about a host with no 
> services assigned - which I am aware of), it correctly lists the number of 
> hosts and services but, when I go to the web interface, it only shows the 
> local host.
>
> Can anyone suggest where I might start troubleshooting this?
>
> Thanks very much.
>
Are you logged as guest or as nagiosadmin ?

what changes have you made in the cgi.cfg  ?





--
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
___
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] Inconsistency of Nagios

2013-01-03 Thread Assaf Flatto

Check_procs  ?  or write one !

On 03/01/13 11:10, Páll Guðjón Sigurðsson wrote:
> Slightly off topic, but how best to write nagios check that checks for this 
> specific behavior (multiple instances of nagios running) ?
>
>
> - Original Message -
> From: "Mike Guthrie"
> To: "Nagios Users List"
> Sent: Wednesday, January 2, 2013 3:23:58 PM
> Subject: Re: [Nagios-users] Inconsistency of Nagios
>
>
>
> Typically when I've seen behavior like this, it's because there are multiple 
> parent processes of Nagios running, so both instances are launching checks, 
> and reaping each others results. Try killing off all Nagios processes, and 
> then starting it fresh again to see if that resolves the issue.
>
> /etc/init.d/nagios stop
> killall -9 nagios
> /etc/init.d/nagios start
>
>
>
>
> On 1/2/2013 4:38 AM, Srikanth Gumma wrote:
>
>
>
> Hi,
>
>
> I need some help regarding nagios.
>
>
> We have around 500 Linux servers for which we are doing a ping and ssh 
> monitoring only. The entire functionality is based on remote and no NRPE 
> service is deployed. However I see very inconsistency on nagios 
> functionality. sometimes I don't see any updates on the nagios console for 
> more than one week.
>
>
> Our Nagios is installed on CentOS6.2 OS and it's the latest version Nagios 
> Core 3.4.3. and I could only see some messages like below in /var/log/messages
>
>
>
>
>
> 'SSH' on host 'xyz' looks like it was orphaned (results never came back). I'm 
> scheduling an immediate check of the service...
>
>
>
>
> any help is highly appreciated.
>
>
>
>
> Regards
> Srikanth
>
> --
> Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
> and much more. Keep your Java skills current with LearnJavaNow -
> 200+ hours of step-by-step video tutorials by Java experts.
> SALE $49.99 this month only -- learn more at: 
> http://p.sf.net/sfu/learnmore_122612
>
> ___
> 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
>


--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
___
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] netapp

2012-12-04 Thread Assaf Flatto

On 04/12/12 11:34, Perfors, Henny wrote:


Hi,

I can get the check_netapp command to check the volumes which it is 
supposed to do, so that is fine.


But can it also check LUNS?

Anyone an idea?

Henry



Does the plugin docs say it can ?

If a feature is not documented for a plugin  , then the chances are it 
is not capable of doing that feature.


have you looked at the monitoring exchange for a plugin that actually 
say it monitors LUNS ?



--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
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] servicedependecy is not working

2012-11-30 Thread Assaf Flatto
On 30/11/12 16:21, Leonardo Bacha Abrantes wrote:
> Hi guys,
>
> I use nrpe to monitor my machines and I configured servicedependency 
> (see below), however, nagios still sending alerts when nrpe is on 
> critical state.
>
> define servicedependency{
>  dependent_host_name   srv1
>  dependent_service_description  /var Partition
>  host_name srv1
>  service_descriptionNRPE plugin
>  execution_failure_criteria c,u,p
>  notification_failure_criteria  c,u,p
> dependency_period   24x7
> }
>
> Can you help me please ?
for same host dependency you do not need to specify the dependent host.
also make sure that the names are exact to the services checked.

--
Keep yourself connected to Go Parallel: 
TUNE You got it built. Now make it sing. Tune shows you how.
http://goparallel.sourceforge.net
___
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] event handler debug

2012-11-27 Thread Assaf Flatto
On 27/11/12 17:32, fatcha...@gmx.de wrote:
> Hi,
>
> I`m using a nagios 3.0.3 on a CentOS 5.8 and I´m a little stuck with a 
> eventhandeler problem- I can`t see it running and I can´t find a problem in 
> the logfiles. Here a short overview:
>
> define service{
>use generic-service
>host_name   hostname
>service_description host_hh_prod1_1
>check_command   check_nrpe!hh_prod1_1
>event_handler   hh_prod11_down
>notifications_enabled   1
>  }
>
>
>   in commands.cfg is defined:
>
> define command{
>  command_namehh_prod11_down
>  command_line
> /usr/local/nagios/libexec/eventhandlers/hh_prod1_1_down.sh $HOSTSTATE$ 
> $HOSTSTATETYPE$ $HOSTATTEMPT$
>  }
>
>
> /usr/local/nagios/libexec/eventhandlers/hh_prod1_1_down.sh :
>
> #/bin/bash
> # $1=State $2=Zustandstyp hard oder soft $3= Versuch
> case $1 in
>  OK)
>  #/usr/local/nagios/libexec/check_nrpe -H 192.168.18.30 -c 
> route_back_1
>  echo `date`"route hh_prod1_1 ok">>/var/log/ipsecrouting_beth.log
>  ;;
>  CRITICAL)
>  if [ $2 == "HARD" ] || [[ $2="SOFT"&&  $3 -gt 0 ]]; then
>  /usr/local/nagios/libexec/check_nrpe -H 192.168.16.4 -c 
> check_hhprod11
>  echo `date`"route hh_prod1_1 down">>/var/log/ipsecrouting_beth.log
>  fi
>  ;;
>  UNKNOWN)
>  echo `date`"route hh_prod1_1 down unkonwn error kein 
> event">>/var/log/ipsecrouting_beth.log
>  ;;
> esac
> exit 0
>
> When I call the hh_prod1_1_down.sh manuell with the appropriate numbers, I 
> get entries in the ipsecrouting_beth.log-file and the command is executed, 
> but when I let it run by nagios nothing is happening.
>
>
> Any suggestions or hints to debug (I already switched the debug to -1 but 
> nothing can be found about the event handler) are welcome.
>
> Kind regards
>
> fatcharly
>
> --
> 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
can you see anything on the nrpe side ?

when you are testing , are you running it as the nagios user or as root?

Where are you passing the parameters to the eventhandler in your command 
definition ?

--
Keep yourself connected to Go Parallel: 
DESIGN Expert tips on starting your parallel project right.
http://goparallel.sourceforge.net
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios showing OK for service which is in CRITICAL state

2012-11-23 Thread Assaf Flatto
On 23/11/12 07:38, Niall O Broin wrote:
> Had a bit of a panic this morning to get into the office and see that an SSL 
> cert. had expired. By pure good luck I was in work very early so I got moving 
> on a new cert. and having done that, I headed off to my Nagios status page 
> because I was pretty sure that I had a check for this cert. in place. Sure 
> enough, I did, but Nagios wasn't displaying an alert for its expiry, nor had 
> it warned me that it was about to expire.
>
> I opened up the  Services  page and there I saw the following line, just as 
> green as any of the others:
>
>
> SSL cert. YOUR-DOMAIN  OK 2012-11-23 08:28:58 207d 17h 2m 26s 1/4 
> CRITICAL - Cannot make SSL connection
>
>
> Now HOW on earth can Nagios be displaying  CRITICAL - Cannot make SSL 
> connection  in the  Status Information  column while simultaneously showing  
> OK  in the Status column  ?
>
>
>
>
> Kindest regards,
>
>
>
> Niall  O Broin
>
>
>
>
What plugin are you using ? it could be that the text returned from the 
check includes the Critical string but the execution exit code is 0 and 
hence translated as OK by nagios .



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


Re: [Nagios-users] Force host assume up when services are up

2012-10-22 Thread Assaf Flatto

On 22/10/12 13:08, Leonardo Bacha Abrantes wrote:

Hello guys,

I have machines that icmp is blocked, so, nagios show the host is down 
and the services are up.
I know that I can configure another plugin like check_http instead of 
check_host_alive (ping), however the problem is that if apache gong 
down nagios will show that the host also is down, and it will not correct.


check dummy will show the result that I specify, so, image the machine 
going down. Nagios will keep showing the host is up for example.





On Fri, Oct 19, 2012 at 4:25 PM, > wrote:


It is actually a feature. Active checks of the host were expensive
in older versions of Nagios, so Nagios would correctly assume a
host was up if it was able to succesfully check a sercice
associated with it. That code changed and active checks are now
part of the scheduling logic.

Why don't you want Nagios to check if the host is up?

You can use the check dummy plugin as the host check command and
never check the host but then you will defeat the logic that
Nagios uses when a service goes down to force check the host and
supress the service notifications till it comes back up and
everything gets rechecked.
Sent on the Sprint® Now Network from my BlackBerry®

you can use check_ssh or check that the nrpe deamon is running as the 
"host" check, since if either one of those is not responding you have 
some issue that require intervention .


--
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] Monitoring a host behind VPN/Firewall

2012-10-22 Thread Assaf Flatto
On 22/10/12 12:07, Gilberto Ferreira wrote:
> Nobody??
>
>
>
>
>
> Gilberto Nunes Ferreira
>
>
>
> - Mensagem original -
>
> De: "Gilberto Ferreira"
> Para: "Nagios Users List"
> Enviadas: Sexta-feira, 19 de Outubro de 2012 16:42:01
> Assunto: [Nagios-users] Monitoring a host behind VPN/Firewall
>
> Hi folks..
>
> I'm trouble here...
> We have a thousand host behind VPN/Firewall.
> For now, we use NC_NET to collect WMI data from server, and send this datas 
> to Nagios server, throught NSCA.
> We do it in passive mode...
> What happen here is that, even host came down, I still see the status ok for 
> services on Nagios panel...
> I'm use FAN, Fully Automatic Nagios here... Using Centreon to configure hosts 
> and services...
>
> Some one know another way to monitoring a hosts behind VPN/Firewall???
>
>
> Thanks
>
>
>
>
>
>
> Gilberto Nunes Ferreira


You can use a distributed setup (read docs on that) which is similar to 
what you have .


--
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] enable_notifications=0

2012-10-22 Thread Assaf Flatto

On 22/10/12 09:28, Marco Borsani wrote:


Hi all

I change the setting of "enable_notifications" variable from "1" to 
"0", but when I restart Nagios, I still receive notifications.


Have I to set also "use_retained_program_state" variable from "1" to 
"0" , or what ?


regards

Marco Borsani

*Unix and Monitoring Sysadmin*

*Technical Operations Dpt.*

tel: +39 010 4310115

fax: +39 02 30130311

cell: +39 329 5953944

ITnet Srl

Società con socio unico

Direzione e Coordinamento di Libero S.r.l.



You could have some messages still in the queue of your MTA .

grep enable_notifications /objects.cache

What do you get?
--
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] Force host assume up when services are up

2012-10-19 Thread Assaf Flatto
You can use the same command defined for the service to be the 
check_command for the server.


version 3 has changes significlly from version 3 and also has some of 
the configuration directives.


you should read the updated docs on the changes and on the new 
configuration.




On 18/10/12 20:42, Leonardo Bacha Abrantes wrote:

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


--
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] Host seemingly not following escalation rules

2012-10-09 Thread Assaf Flatto
On 09/10/12 15:37, Chris Baldwin wrote:
> It's probably a host definition used for pnp4nagios. It allows you to
> display/graph certain performance data.
>
> For more info: http://www.pnp4nagios.org/
>
> -Chris B.
Chris

The name pnp sort of gave that away , but  since he is using two 
templates to define the host , and one might override definitions , then 
he should inspect both when asking us to "debug" his config , hence the 
question .





--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
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 seemingly not following escalation rules

2012-10-09 Thread Assaf Flatto

And what is "host-pnp" ???


On 09/10/12 14:33, Daniel Ceola wrote:


Hello all,

I have a number of host objects that are sending notifications 
continuously (down notification every half hour for the duration of 
the outage), and aren't following my host escalation rules that are 
defined for the group.  I've looked at my config files and can't seem 
to locate whatever is causing the set of hosts to not follow the 
escalation rules.  It is a group of sites that are all members of the 
same host group, and use the same template.


Below are the bits of config info pertaining to one individual host, 
it's template, contact group, host escalation and host group.  If 
anyone could take a glance at it, to see if I'm missing something on 
why this set of hosts isn't following my escalation rules; or if you 
could point me towards something else that I need to look at, that'd 
be awesome. (for what it's worth, all of my other host escalation 
rules are working fine; it's just this group of hosts that don't seem 
to like following the rules that are screwing with me).


define host {

use cstore,host-pnp

host_name   7608_Madeup_Avenue_Shell_Router

alias   7608_Madeup_Avenue_Shell_Router

address 10.6.8.31

hostgroups  CStore-Sites

}

define hostgroup{

hostgroup_name  CStore-Sites

}

define host{

namecstore

use generic-switch

notification_period workhours

contact_groups  cstore_contacts

register0

icon_image  cstore.png

statusmap_image cstore.gd2

notification_optionsd,r

}

define host{

namegeneric-switch

use generic-host

check_period24x7

check_interval  5

retry_interval  1

max_check_attempts  10

check_command   check-host-alive

notification_period 24x7

notification_interval   30

notification_optionsd,r

contact_groups  admins

register0

}

define  hostescalation{

hostgroup_name  CStore-Sites

contact_groups  cstore_contacts

first_notification  3

last_notification   3

notification_interval   20

escalation_period   workhours

escalation_options  d,r

}

define contactgroup{

contactgroup_name   cstore_contacts

alias   Retail Support

members usernames

}

Thanks,

Daniel Ceola

Systems & DB Admin

The Wills Group

6355 Crain Hwy

La Plata, MD 20646

301-932-3600

301-932-3643 (direct line)


--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev


___
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


--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] check_mbean_collector cannot create socket

2012-10-08 Thread Assaf Flatto
On what IP is port 5566 listening ?

Localhost is usually defined as 127.0.0.1   and most programs do not 
listen on the loop-back device .

also for more accurate testing - always test as the nagios user not as root.



On 07/10/12 19:15, Marek Grinberg wrote:
> Hello,
>
> I have installed check_mbean_collector into /usr/lib/nagios/libexec, and
> tried it:
>
> # ./check_mbean_collector -H localhost -p 5566 -m
> jboss.system:type=ServerInfo -a ActiveThreadCount -w 200 -c 400
>
> ERROR: could not create socket
>
>
> What have I missed ?
>
>
> Marek
>
>
> --
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> ___
> 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


--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios 4: Call for testing

2012-09-14 Thread Assaf Flatto
On 13/09/12 23:00, Andreas Ericsson wrote:
> Yes, you read it right. Nagios 4 is approaching, but it needs your
> help to reach the finish-line, so pretty please HELP!
>
> Right now, config parsing is a lot quicker. Check execution is
> done through workers, except on-demand host chekc execution, which
> is still handled by the serial model.
>
> Code can be fetched from either of:
> svn co https://nagios.svn.sourceforge.net/svnroot/nagios nagios
> git://github.com/ageric/nagios.git
>
> The people who provide me with the most valuable bug reports will be
> rewarded with a special prize, apart from a special mention at the
> Nagios World Conference 2012, happening in Minneapolis on september
> 25, 26, 27 and 28 this year (as it's 2012...).
>
> Points will be given on:
> * Accuracy of bugreport. If the bug is triggered by one of 13 trillion
>serviceescalations, you'll have an excellent chance if you produce
>an example config which reproduces the problem without creating a
>huge overhead.
> * Patchiness of bugreport. If the bug contains valgrind output showing
>illegal memory access, or a backtrace of the error, it will be given
>extra credit. If it contains a minimal setup displaying the error as
>well as a patch fixing the error, you're almost sure to be in the
>very small Circle Of Winners.
> * Surgeonry of bugreport. If a patch fixes a billion unrelated items,
>points will be taken from it.
> * bugreports of a slow Nagios accompanied by gprof or valgrind output
>output will be given priority over other bugreports of a slow Nagios.
>
>
> Note that only bugreports providede *before* 2012-09-24 will be
> considerered, and also note that the winners will be announced at the
> Nagios World Conference 2012 (unless they explicitly ask me not to
> mention their names, in which case they can't even compete, really, but
> will probably get several shots from me if I ever meet them and *may*
> get a very special prize anyway).
>
>
> Patches can be provided for Core Nagios, Livestatus, NDOUtils, Merlin
> mod_gearman, dnx_utils or npcdmod. Each project gives extra points,
> provided it's universal. Patches that promote a specific installation
> directory are worthless and won't be considered.
>
>
> So spedang! and get your hack on, folks :)
>
>
Doing the svn check out , i get a svn dump of all nagios versions except 
4 , and browsing the svn shows no trace of the nagios4 branch .

Can you specify the exact branch to check out ?

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nagios phone call alerts

2012-09-10 Thread Assaf Flatto
On 10/09/12 08:58, PRA wrote:
> All,
>
> I was able to configure nagios for sms and email alerts.
>
> Now I want to make phone call alerts (using some free PBX , asterisk).
>
> when ever a alerts is raised to nagios along with SMS,EMAIL can  I make
> it make an outbound call and play a pre-recorded message.
>
> How can I do it using Asterisk or Is there any other simple way to do it.
>
> Appreciate inputs.
>
> -PRA
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> 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
look in exchange.nagios.com , there is a plugin called nag2aster , or 
just search for asterisk , it will be in the list .

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] Service as a whole

2012-09-04 Thread Assaf Flatto

On 04/09/12 16:50, Bruno Martins wrote:

Hello list,

I plan to do something like:
Microsoft CRM service (generally speaking) depends on:
- Service HTTP on host XXX
- Service SQL on host YYY
- Service LDAP on host ZZZ

Is this possible using Nagios?

Best regards,


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


___
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

it is called service dependency , read the docs about the subject.
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] SMS Alert Notification

2012-09-04 Thread Assaf Flatto
On 04/09/12 02:05, Kaushal Shriyan wrote:
> Hi,
>
> I have the problem: I am running the sms notification from cli on
> remote linux server. it works fine first time and later fails second
> time. Any Clue?
> Problem details ->  http://fpaste.org/ckYw/
>
> Regards,
>
> Kaushal
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> 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
is this a paid service ?
could it be that they are considering the sending a spam ? too many 
messages in too low and interval ?

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] How to use check_nagios ?

2012-08-31 Thread Assaf Flatto
On 31/08/12 20:02, Marek Grinberg wrote:
> Hello,
>
> I have Nagios 3.4.1 and Nagios plugins 1.4.15 installed&  running in
> RedHat 5.8
>
> I have defined check_nagios in commands.cfg:
> define command{
>   command_namecheck_nagios
>   command_line$USER1$/check_nagios -F $ARG1$ -e $ARG2$ -C $ARG3$
> #   command_line$USER1$/check_nagios -F
> /usr/local/nagios/var/status.dat -e $ARG1$ -C /usr/local/nagios/bin/nagios
>
> and in localhost.cfg:
> define service{
>   use local-service ; Name of service
> template to use
>   host_name   Nagios
>   service_description Nagios
>   check_command   check_nagios
>   notifications_enabled
> check_nagios!/usr/local/nagios/var/status.dat!5!/usr/local/nagios/bin/nagios
>   }
>
> Nagios Services in Firefox show:
>
> NagiosNotifications for this service have been disabled
>   UNKNOWN 2012-08-31 19:24:35 0d 2h 38m 43s 4/4  Usage:
>
> Explicit check shows:
> # ./check_nagios -F /usr/local/nagios/var/status.dat -e 5 -C
> /usr/local/nagios/bin/nagios
> NAGIOS OK: 2 processes, status log updated 5 seconds ago
>
> What have I missed ?
>
> Marek
>
>
test the command as the nagios user not as root , see what the reply is .

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] strange behavior disabling checks

2012-08-08 Thread Assaf Flatto
Where did you set the directive ? in a template or in the individual 
service ?


Can you share the relevant configuration data ?


On 08/08/12 14:16, Marco Borsani wrote:


Hi all

Sometime happen that when I set "active_checks_enabled  0" in a 
service and reload the configuration, Nagios did not recognize the 
instruction.


The server still executes the check.

It is very strange, because I use several Nagios servers since 2003 
and it is the first time for me with this problem


Any idea ?

Regards, Marco


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


___
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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Check Website Help

2012-08-03 Thread Assaf Flatto

On 03/08/12 14:49, Andrew Thompson wrote:


Hi all,

I have websites that I monitor.

Some require just a yes is it up or no its down by hitting the site 
and searching for text on it.


Others require the site to be logged into and trawled to test SQL 
backend so I need to provide it with a username/password.


I also want performance data as I have just started using PNP4Nagios.

I am using a custom written bash script at the moment, and this works 
fine, however it doesn't output any performance data.


I have looked at Webinject but this uses its own graphing tool 
(gnuplot) and to reduce confusuion I don't really want to run 2 
graphing tools.


So 2 questions:

1.Is there a plugin available that does all I need above?



look here http://exchange.nagios.org/


Or

2.Anybody point me in the right direction in how to add performance 
data to my already working bash script? (im not a programmer, however 
my collegue is!)




http://nagios.sourceforge.net/docs/nagioscore/3/en/pluginapi.html


Thanks in advance.


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


___
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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios Variables

2012-08-02 Thread Assaf Flatto
The marco's are internal to nagios and will not be read from an external 
text file .


there is a way to make nagios macros available to external commands ( 
look for "macros" in the nagios.cfg file)


But what you are trying to do with the message.txt file will fail to 
work as the SendEmail script most likely do not have access to the 
nagios internal macros and there for will not expand them .



On 02/08/12 11:25, Bruno Martins wrote:

Hello list,

How can I access Nagios variables like $NOTIFICATIONTYPE$, 
$SHORTDATETIME$, etc from a text file passed in a command?


I have one command which is:
/usr/local/bin/sendEmail -o message-file=/etc/nagios/message.txt ... 
bla bla bla


And inside message.txt I have those variables. However when I am 
notified, I am not getting variable's values, instead, it gives me the 
plain string "$NOTIFICATIONTYPE$", etc.


Googling didn't help too much.

Thanks for all help on this!

Best regards,

Bruno


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


___
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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] Differentiate receivers based on alert severity?

2012-07-30 Thread Assaf Flatto

Correction , you can not specify an email address in the service def.

you will need to create a contact and then define the contact in the 
server :


contacts foo

or if he is part of a group

contact_group  Faa

but you specify the service notifications as

notification_options w,c

and in the contact definition you say which statuses it will alert on .

On 30/07/12 13:22, vishesh kumar wrote:

No , I think in same service definition , you can write

notification_options w
contact_group us...@foo.com <mailto:us...@foo.com>
notification_options c
contact_group us...@foo.com <mailto:us...@foo.com>

Thanks


On Mon, Jul 30, 2012 at 2:50 PM, Ruslan Valiyev <mailto:linux...@gmail.com>> wrote:


Does it mean I have to create two different service templates and
specify my emails there?


On Mon, Jul 30, 2012 at 11:13 AM, Assaf Flatto mailto:nag...@flatto.net>> wrote:

Yes , you can use two different contacts , one that has only
warning , and the other only for critical .




On 30/07/12 09:54, Ruslan Valiyev wrote:

Hi,

I was wondering if it's possible to achieve something a la:

- when CPU alerts are warning, they should go to
us...@foo.com <mailto:us...@foo.com>
- when CPU alerts are critical, they should go to
us...@foo.com <mailto:us...@foo.com>


Ruslan



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. 
Discussions
will include endpoint security, mobile security and the latest in 
malware
threats.http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net  
<mailto: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




--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond.
Discussions
will include endpoint security, mobile security and the latest
in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
<mailto: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




--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond.
Discussions
will include endpoint security, mobile security and the latest in
malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
<mailto: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




--
http://linuxmantra.com


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


___
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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 

Re: [Nagios-users] Differentiate receivers based on alert severity?

2012-07-30 Thread Assaf Flatto
Yes , you can use two different contacts , one that has only warning , 
and the other only for critical .




On 30/07/12 09:54, Ruslan Valiyev wrote:

Hi,

I was wondering if it's possible to achieve something a la:

- when CPU alerts are warning, they should go to us...@foo.com 

- when CPU alerts are critical, they should go to us...@foo.com 




Ruslan


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


___
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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] How to deal with hosts that are not always on

2012-07-30 Thread Assaf Flatto
If a host i down in known time period ,than create a new time period for 
that host to be monitored and exclude it from the 24x7 default time 
definition.

you can also put your hosts in scheduled downtime - this will still show 
as faults on the CGI , but for reporting it will not have any impact as 
it is " deliberate downtime"



On 29/07/12 09:51, Marc Haber wrote:
> Hi,
>
> I have a number of hosts that are not always turned on, such as my
> Notebook, my home server (which sleeps if not used) and a number of
> test VMs. To get a reasonable volume of checks in my test installation
> of Nagios, I would like to have those machines monitored by it.
>
> Obviously, I have notifications for those hosts turned off. This,
> however, leads to non-zero numbers in the critical, warning and
> unknown fields in the CGI, which gives a wrong impression of my health
> status since it is normal and expected that those hosts/services are
> down.
>
> Is there any solution for this dilemma? Can I have Nagios monitor
> hosts without reporting them as down when they are down?
>
> I know this may sound strange, but I would like to have statistics
> about how long the machines have been up and when.
>
> Greetings
> Marc
>


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] shell script not working properly as Nagios plugin

2012-07-20 Thread Assaf Flatto

On 20/07/12 12:41, vishesh kumar wrote:

Hi Members,

I wrote below script to monitor ssh traffic

+++
a=$(/usr/bin/sudo /sbin/iptables -vL|/bin/grep ':ssh'|/bin/awk '{print 
$1}')

if [ $a -gt 3 ]; then
echo "SSH aatempt is TOO High | $a"
exit 2
else
if [ $a -gt 2 ]; then
echo "SSH aatempt is Average | $a"
exit 1
else
echo "No SSH attempts | $a"
exit 0
fi
fi
exit 3
+

This script is working fine on shell and returning "SSH attempt is too 
high" . But when i run it via nagios the output returned OK and print 
"No SSH attempts".


What I can notice that variable a not holding any value while running 
via nagios , while its working fine when running via shell.


Can you please drive me in right direction ?


Thanks


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


___
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

Is your nagios user defined as allowed to use sudo ?
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] NSCA : Time out

2012-07-17 Thread Assaf Flatto

On 16/07/12 20:44, trm asn wrote:



On Mon, Jul 16, 2012 at 2:08 AM, trm asn > wrote:


Dear Team,

I am getting the below error message while pushing the results to
central nagios. I am able to telnet 5667 from Monitor node to
central server. in Tcp-Wrapper this ip is allowed .

The results are not getting updated due to this. Please help me
out to sort this ..

Warning: OCSP command
'/mnt/vol1/nagios/libexec/eventhandlers/submit_check_result
Lnx-ProdDatabase1 'Checks if the SQL Slave thread is running' OK
'OK - Slave io is running'' for service 'Checks if the SQL Slave
thread is running' on host ' Lnx-ProdDatabase1' timed out after 10
seconds .


Still not able to figure out , where is the actual problem is.

i) I am able to telnet to central server's 5667 port .
ii) I am able to test it from commandline ..
 echo "testhostTestService 0OK" | 
/mnt/vol1/nagios/libexec/send_nsca -H x.x.x.x -p 5667 -c 
/mnt/vol1/nagios/etc/send_nsca.cfg

0 data packet(s) sent to host successfully.

Is there anywhere else , I need to lookout to get the result submitted 
to the central server.


/\
TRM
i have found that some time NSCA becomes stale on the server side and a 
restart of the service helps to restore it to action.
Also , are you writing to the syslog ? if so check the log size and if 
the file system has not filled up ( on both sides of the interaction) .


did you check the nsca log file ( usually syslog ) ?
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] help

2012-06-20 Thread Assaf Flatto

Read the documentation





On 20/06/12 08:13, Léandre Mweze wrote:
I have already install nagios3 but I do not know how to add nodes to 
start monitoring can you please help me?



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


___
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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] Macros :: Child Hosts

2012-06-18 Thread Assaf Flatto
On 18/06/12 08:53, Andreas Brandino wrote:
> Hi all,
>
> is there a MACRO that will return all child hosts of a parent ?
> I would like, when the host is down, to include all hosts assumed to 
> be down in the notification.
>
> Thank you
http://nagios.sourceforge.net/docs/nagioscore/3/en/macrolist.html

will show you the list of macros.

For the one you want . No , but loot at custom Macros , and it might be 
able to give you the functionality you want.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] Large scale installation

2012-06-11 Thread Assaf Flatto

See the documentation on distributed monitoring .

Also check out check_mk and mod_gearman.

Assaf


On 10/06/12 13:38, Andreas Brandino wrote:

Hi all,

my nagios installation  has currently 400+ hosts and around 1400 checks.
As the server load grows, delays are appearing.

Is any way to move a part of active checks to a second nagios server?
And in that case how will these two nagios servers exchange data?
If this is feasible can you point me to some documentation?

Thank you


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


___
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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] monitor number of open files on linux

2012-06-08 Thread Assaf Flatto
check for check_lsof or check_openfiles on monitorexchange.com




On 08/06/12 16:20, Parkman, Mikhail wrote:
> Can somebody recommend plugin to monitor number of opened files.
>
> Thanks.
>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> 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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] astaro firewall nagios-plugin

2012-05-29 Thread Assaf Flatto

take a look at  the exchange.nagios.com

or try to see what is the SNMP implementation you have on that firewall.



On 25/05/12 16:02, Miguel Lanz wrote:

Hello everyone,

Is there a way maybe through a nagios-plugin that would allow you to 
get traps off of an astaro firewall? for example if the firewall reach 
a certain amount of bandwidth get a nagios notification etc.


Thanks for your help.


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


___
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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] Loosing NAGIOS_* env variables in 3.4.1

2012-05-24 Thread Assaf Flatto

Did you backup your system ?
Did you overwrite your existing configuration files ?

If the env variables were for the nagios user , have you looked at the 
profile configuration files ?



On 24/05/12 06:48, Mark Elsen wrote:


 - I have some 'home-written' notification scripts launched from 
NAGIOS ; now when using

nagios 3.4.1 , all NAGIOS_*  variables are gone. (printenv listing).

How come ?
How can I get them back ?

M.


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


___
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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] High Service Check Latency

2012-05-22 Thread Assaf Flatto
On 22/05/12 13:55, Simone Felici wrote:
> Il 22/05/2012 13:55, C. Bensend ha scritto:
>
>> I bet you're using NDOUtils.  I wouldn't recommend that.  I couldn't
>> keep a Nagios server with under 6000 services limping along when
>> NDOUtils was running.  Eventually, the check latencies would go
>> through the roof and the entire server would get farther and farther
>> behind.
>>
>> I went to Livestatus.  It took me all of 20 minutes to adjust my
>> reports to use the new interface, and I haven't restart my Nagios
>> daemon since (other than normal maintenance).
>>
> Yes, you're right. My problem is, the solution is implemented into OPSView 
> Community edition. It's
> not a problem to alter-modify installation, btw the result is maybe some 
> functionality in the whole
> system (gui or whatever) would not work anymore. Time to move to other nagios 
> installation? Maybe,
> but not right now.
> For now I would like to know a way to identify (and possible solve) the 
> actual high latency. I've no
> idea if I can enable ndo logging or nagios logging to identify issues or 
> bottlenecks.
>
> Simon
One thing I found to help with performance with NDO was to make sure the 
DB is trimmed on a regular basis .
tables timedevents, services , logentries and other ones grow very fast 
to large size and nagios is having trouble writing to the DB if the 
table is larger the 450MB .

since i was using the NDO for nagviz the data was mostly not needed so i 
used to truncate those tables.

If you do use the DB , replicate it to a secondary DB and use that as 
your queries master .and trim the one nagios writes to , but make sure 
that if the trimming is done , the data is not removed from the 
replicated server.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] High Service Check Latency

2012-05-22 Thread Assaf Flatto
NDO and a large DB cause an issue to the nagios core that is causing 
high latency and can bring nagios to halt.
If you are also running a performance gathering solution it can 
contribute to the hight latency .




On 22/05/12 08:46, Simone Felici wrote:
> Hello!
>
> Yes, it's a common problem, but cannot figure out how to debug it.
> I've a distributed setup with a master server collecting>9.000 passive 
> services sent from other
> servers, all with active latencies near 0. The master server checks *only* 
> itself as active
> services, ~40 services, most of them every 5 minutes. AFAIK passive services 
> should not affect
> "active service check latency" statistics. Looking into retention.dat file, 
> the high latencies are
> all related to the local executed active services. Actual stats:
>
> Nagios Stats 3.2.3
> Copyright (c) 2003-2008 Ethan Galstad (www.nagios.org)
> Last Modified: 10-03-2010
> License: GPL
>
> CURRENT STATUS DATA
> --
> Status File:/usr/local/nagios/var/status.dat
> Status File Age:0d 0h 0m 7s
> Status File Version:3.2.3
>
> Program Running Time:   0d 20h 40m 53s
> Nagios PID: 9360
> Used/High/Total Command Buffers:0 / 7 / 1
>
> Total Services: 9098
> Services Checked:   9098
> Services Scheduled: 33
> Services Actively Checked:  39
> Services Passively Checked: 9059
> Total Service State Change: 0.000 / 100.000 / 1.351 %
> Active Service Latency: 4.156 / 7943.743 / 6163.392 
> sec
> Active Service Execution Time:  0.010 / 2.485 / 0.319 sec
> Active Service State Change:0.000 / 22.890 / 2.443 %
> Active Services Last 1/5/15/60 min: 0 / 0 / 0 / 0
> Passive Service Latency:0.088 / 7.914 / 1.997 sec
> Passive Service State Change:   0.000 / 100.000 / 1.346 %
> Passive Services Last 1/5/15/60 min:1851 / 7501 / 8084 / 8392
> Services Ok/Warn/Unk/Crit:  8784 / 78 / 76 / 160
> Services Flapping:  4
> Services In Downtime:   112
>
> Total Hosts:1912
> Hosts Checked:  1912
> Hosts Scheduled:0
> Hosts Actively Checked: 74
> Host Passively Checked: 1838
> Total Host State Change:0.000 / 46.910 / 0.135 %
> Active Host Latency:0.000 / 1425.848 / 1104.205 sec
> Active Host Execution Time: 0.012 / 0.402 / 0.096 sec
> Active Host State Change:   0.000 / 0.000 / 0.000 %
> Active Hosts Last 1/5/15/60 min:0 / 0 / 0 / 0
> Passive Host Latency:   0.000 / 639.353 / 1.197 sec
> Passive Host State Change:  0.000 / 46.910 / 0.140 %
> Passive Hosts Last 1/5/15/60 min:   1 / 12 / 27 / 70
> Hosts Up/Down/Unreach:  1850 / 57 / 5
> Hosts Flapping: 0
> Hosts In Downtime:  35
>
> Active Host Checks Last 1/5/15 min: 42 / 194 / 565
>  Scheduled:   0 / 0 / 0
>  On-demand:   42 / 194 / 565
>  Parallel:0 / 0 / 0
>  Serial:  0 / 0 / 0
>  Cached:  42 / 194 / 565
> Passive Host Checks Last 1/5/15 min:1 / 14 / 45
> Active Service Checks Last 1/5/15 min:  0 / 0 / 0
>  Scheduled:   0 / 0 / 0
>  On-demand:   0 / 0 / 0
>  Cached:  0 / 0 / 0
> Passive Service Checks Last 1/5/15 min: 2311 / 9235 / 12988
>
> External Commands Last 1/5/15 min:  0 / 1 / 1
>
>
> I've some broker modules to handle sql logging and distributed setup. Other 
> parameters that could be
> interesting:
>
> command_check_interval=-1
> service_inter_check_delay_method=s
> max_concurrent_checks=80
> check_result_reaper_frequency=2
> max_check_result_reaper_time=30
> obsess_over_services=0
> obsess_over_hosts=0
>
> Looking on suggesions by the proc:
>
> Nagios Core 3.2.3
> Copyright (c) 2009-2010 Nagios Core Development Team and Community 
> Contributors
> Copyright (c) 1999-2009 Ethan Galstad
> Last Modified: 10-03-2010
> License: GPL
>
> Website: http://www.nagios.org
> Timing information on object configuration processing is listed
> below.  You can use this information to see if precaching your
> object configuration would be useful.
>
> Object Config Source: Config files (uncached)
>
> OBJECT CONFIG PROCESSING TIMES  (* = Potential for precache savings with 
> -u option)
> --
> Read: 0.703470 sec
> Resolve:  0.018964 sec  *
> Recomb Contactgroups: 0.454370 sec  *
> Recomb Hostgroups:  

Re: [Nagios-users] nagios backup

2012-05-11 Thread Assaf Flatto
On 11/05/12 14:55, Luis H. Forchesatto wrote:
> It really needs rsync, can't I use a simple copy command instead?
>
You can , but rsync will give you a better control and recovery if 
something goes wrong , it also allows you to make sure it does not eat 
up your network while copying .



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] How can I change Nagios from email address ?

2012-05-08 Thread Assaf Flatto

Are you using sendmail or postfix as your MTA ?

The configuration is done on the MTA .



On 08/05/12 08:29, özgür umut vurgun wrote:

Hi All,

I'd like to change Nagios Email address. Now I am using 
"admin@hostname-nagios.localhost" but many system doesn't accept this 
email address. So I'd like to change to real e-mail address. I have 
searched in the internet but I couldn't be success.


How can I do it ?

Thanks...

Özgür Umut VURGUN


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


___
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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] LDAP with client SSL certificates

2012-05-06 Thread Assaf Flatto
Hello

Is anyone familiar with a ldap plugin that supports client SSL 
certificates ?
The standard check_ldap does not provide this functionality and I was 
unable to find any other on the monitroing exchnage  site .

thanks



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] Question - System Restart

2012-04-20 Thread Assaf Flatto

On 20/04/12 15:51, Edwin Zoeller wrote:


When looking at availability of a host/service I see in the listing 
"System Restart" Can someone explain what this is and does it have any 
effect on the host/service.


Thanks

Ed

PPlease consider the environment before printing this e-mail


That usually mean a reload or restart of the nagios service on the 
monitoring box .


--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2___
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] Proper use of escalation_options

2012-04-12 Thread Assaf Flatto

On 11/04/12 23:15, Jeff Leyser wrote:

Greetings!

Nagios 3.2.3, running on CentOS.  I have two service escalations setup:

define serviceescalation{
servicegroup_name   noncritical
first_notification  1
last_notification   0
notification_interval   10
escalation_options  w,r
contactgroups   Group1
}

define serviceescalation{
servicegroup_name   noncritical
first_notification  1
last_notification   0
notification_interval   10
escalation_options  c,u,r
contactgroups   Group2
}

What I want to do is have all WARNINGS and associated RECOVERYs go to 
Group1, while all CRITICAL and UNKNOWNs and associated RECOVERYs go to 
group2.


For the problem alerts, works great, each group only gets what is 
defined.  But both Group1 and Group2 get all RECOVERY notifications, 
even for problem notifications they don't.


Is there a way to achieve what I want?

Many Thanks!


As is written in the documentation , recoveries will be send to those 
that have all ready been notified about the issue regardless of it's 
current status.


So if the status went from OK  to Warning then to Critical , those in 
Warning  and Critical groups will get the recovery notification.


 http://nagios.sourceforge.net/docs/nagioscore/3/en/escalations.html
--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2___
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] CheckSchedTask problems

2012-03-20 Thread Assaf Flatto

On 20/03/12 14:00, Ollie Campbell wrote:

Hello,

I've setup NRPE to check that scheduled tasks are running without 
error on a Windows 2008 R2 64bit server. I'm running into these two bugs:


http://www.nsclient.com/nscp/ticket/411
http://www.nsclient.com/nscp/ticket/444

Is there another way to monitor scheduled tasks until these are fixed?

--
Ollie Campbell

*60 Kingly Street, London, W1B 5DS*
D: +44 20 7453 4930
M: +44 7584 518539

www.bartleboglehegarty.com 


I seem to remember something i used in the passed , but i am not sure it 
will help you.


Instead of trying to monitor the task itself , we monitored the event 
log to the output of the task itself , granted it was a while back and 
the windows platform was 2000 server , so things might have changed 
since then, but that might be a work around for you .
--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
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] Monitoring vpn tunnels and application firewalls on network devices and hardware firewalls using nagios

2012-03-20 Thread Assaf Flatto

On 20/03/12 08:56, Manish_Kmr wrote:


Dear List,

Can Nagios help me in monitoring vpn tunnels on network devices and 
what type of information I can get while monitoring the same and can I 
monitor things like application firewall and hardware firewalls using 
nagios.


Thanks,

Manish Kumar

Open Source Tools Team, IMS, Mahindra Satyam

Mob: +919035435306






You may want to look on the nagiosexchange site :

https://www.monitoringexchange.org/search?query=vpn

if these match what you need I am not sure , but they might give you a 
hint on how to go on checking what you want.


--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios flooding outside email addresses

2012-03-14 Thread Assaf Flatto
What is your definition for rechecks and notification intervals ,and 
first and last notifications ( see service and service escalation 
definitions )?


Also how many issue does your system has that are un handled that nagios 
is producing so many alerts ?





On 13/03/12 13:34, Jeremy Gibbs wrote:
I have sendmail setup to use our smtp server as a forwarder.  This has 
been working great so far.  The only issue I am seeing is, outside 
email addresses such as a cell number @vtext.com  is 
having messages sent to it several times a second; until Verizon 
finally rate limits the messages.  This in turn queues up the 
messages, and a large number come through again.  This does NOT happen 
with any internal email addresses.  If I check the mail log, I can see 
Nagios sending the message several times a second to only outside 
email addresses and only once to internal email addresses.



I am not sure what the issue is.

I will give you a sample of my config


define contact{
namegeneric-contact ; The 
name of this contact template
service_notification_period 24x7; 
service notifications can be sent anytime
host_notification_period24x7; host 
notifications can be sent anytime
service_notification_optionsw,u,c,r,f,s ; send 
notifications for all service states, flapping events, and scheduled 
downtime events
host_notification_options   d,u,r,f,s   ; send 
notifications for all host states, flapping events, and scheduled 
downtime events
service_notification_commands   notify-service-by-email ; send 
service notifications via email
host_notification_commands  notify-host-by-email; send 
host notifications via email
register0   ; DONT 
REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMPLATE!

}

define contact{
contact_name  guys-cell
use generic-contact
alias   John Doe
email xxx8777...@vtext.com 
}


define contactgroup{
contactgroup_name   network-admin
alias Switches and networking admins
members guys-cell
}


Thanks


--
Jeremy L. Gibbs
Systems Administrator
Utica College
Integrated Information Technology Services
(315) 223-2383




--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d


___
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


--
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/___
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] Eventlog monitoring through NSClient++

2012-02-24 Thread Assaf Flatto
SNMP comes to mind

Or you might want to see about WMI checks .

MAD wrote:
> Hi list,
>
> I was trying to monitor events on a Windows server through the 
> CheckEventLog functionnality built in NSClient++.
>
> I didn't notice first while I was adding my checks but memory usage and 
> cpu load started raising as I was asking for more and more checks. When 
> I finished adding my 40 rules, my server crashed because of lack of memory.
>
> Have someone already seen something similar ? What other tool may I use 
> to check large amounts of events on windows boxes without making them 
> crashes ?
>
> I'm using check_nrpe v2.12 and NSClient++ v0.3.9
>
> Thanks in advance.
>
> Marc-André
>
> --
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing 
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> ___
> 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
>   


--
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
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] Howto monitor udp ports using nagiosxi wizard

2012-02-24 Thread Assaf Flatto
For the nagiosXI solution try the supp...@nagios.com

This mailinglist is for the free community product .

moses neah wrote:
> Can anybody help me? I am running nagiosxi version Nagios XI 2011R2.1, 
> I have problem configuring the wizard because what should be the send 
> string and expect string.
>
>
> 
>
> --
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing 
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> 
>
> ___
> 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


--
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
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] Exclude Notifications during certian hours

2012-02-22 Thread Assaf Flatto
1) Create a time period that excludes the hours you do not want to be 
monitoring those hosts.
2) assign those hosts to a host group
3) assign a ping test with the modified timeperiod to those hosts .



Andrew Thompson wrote:
>
> Hi all,
>
> I have all my servers (approx. 70) monitored by PING using the 24x7 
> time period and notifications set to 24x7.
>
> Im happy with this as I want to know when my servers go down at all 
> times as a lot are critical and under strict SLA’s.
>
> However I have the need to exclude notifications for 1 physical host 
> and 6 virtual hosts that sit on this physical host during the hours of 
> 00:30-06:30 every night.
>
> These machines are not under any SLA and often reboot during the night 
> for various reasons and I’m done with waking up at all hours for these 
> non-critical servers!
>
> What is the quickest way for me to exclude these 7 hosts from 
> notifying during these hours whilst leaving all other servers at 24x7?
>
> Ive had a read the nagios docs but it didn’t really help me as I 
> didn’t really understand it.
>
> I have edited my server.cfg to show the scenario I want to achieve and 
> that can be found at the link below.
>
> http://dl.dropbox.com/u/895609/servers.cfg
>
> The layout etc is identical to my live configs, I have just edited the 
> number of hosts/names/contacts etc (the 3 hosts named NOT CRITICAL are 
> the example for the “7 hosts” I first talked about)
>
> What is the quickest and most effective way for me to keep checking 
> ALL my servers 24x7 and notifying 24x7, BUT exclude 7 particular 
> servers from checks/notifications between 00:30-06:30 every night?
>
> Thanks in advance for your help.
>
> 
>
> --
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing 
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> 
>
> ___
> 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


--
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
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] [SPAM] Re: Issue with distributed Host checks

2012-02-03 Thread Assaf Flatto
You can try and remove the

active_checks_enabled1

from the host config , the fact that it is enabled make nagios see the 
change and then trigger the active check which will be the 2nd status 
update ( from up to down) and hence make it a hard state .

if you do not trigger the active check , the master nagios will log the 
status change and then wait for the worker's next update.


Assaf

Mike Lindsey wrote:
> I'm seeing oddities with my host checks.  These are all on 3.2.1, and I 
> do not have Host dependencies for the hosts in question.
>
> A worker node will detect a host as being down and send back a soft 
> passive result.
>
> In many cases, the master will then immediately perform an active host 
> check which is NOT logged.  That host check will result in a hard state 
> change, even though host checks are set for 2 retries at 1 minute intervals.
>
> Anyone know what's going on, or do I need to go read the source?
>
> Here's the relevant entries from the master node's nagios.cfg:
> $ grep host nagios.cfg
> accept_passive_host_checks=1
> cached_host_check_horizon=15
> check_for_orphaned_hosts=0
> check_host_freshness=0
> enable_predictive_host_dependency_checks=1
> execute_host_checks=0
> global_host_event_handler=event_handler
> high_host_flap_threshold=20.0
> host_check_timeout=30
> host_freshness_check_interval=60
> host_inter_check_delay_method=s
> host_perfdata_file=/usr/local/nagios/var/host-perfdata.dat
> host_perfdata_file_mode=a
> log_host_retries=1
> low_host_flap_threshold=5.0
> max_host_check_spread=30
> obsess_over_hosts=0
> passive_host_checks_are_soft=1
> retained_contact_host_attribute_mask=0
> retained_host_attribute_mask=0
> retained_process_host_attribute_mask=0
> translate_passive_host_checks=0
> use_aggressive_host_checking=0
>
> And here's an example host object:
> define host {
>  host_name   
>  address 
>  hostgroups  
> All,cres,cres-dbss,cres-prod-dbss,cres-prod-dbss.soma,dbss,linux2,soma
>  check_command   check-host-alive
>  max_check_attempts  2
>  check_interval  3
>  retry_interval  1
>  active_checks_enabled1
>  passive_checks_enabled   1
>  check_period24x7
>  obsess_over_host1
>  check_freshness 1
>  flap_detection_enabled   1
>  process_perf_data   0
>  retain_status_information 1
>  retain_nonstatus_information  0
>  contact_groups  sysops
>  notifications_enabled 1
>  notification_interval 60
>  notification_period   24x7
>  notification_options  d,u,r,f
>  notes_url   
> https:///cacti/graph_view.php?action=preview&host_id=0&graph_template_id=0&filter=
>  action_url  /nagios/cgi-bin/extui.py?host=.com
>  _ENVIRONMENTprod
>  _HARDWARE   R710
>  _LOCATION   soma
>  _OS Linux 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 
> EDT 2009 x86_64
>  _PORTFOLIO  Encryption
>  _PRODUCTcres
>  _PURPOSEdbss
>  _RACK   07--11
>  _SERIAL 536QNM1
>  _SOURCE ASDB/Servers
>  _SOURCE_URL https:///servers/admin/servers/server/3363/
>  __SNMP_COMMUNITY
> }
>
>   


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
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] Hiding hostgroups, but still referencing them

2012-01-26 Thread Assaf Flatto
Boyer, Timothy A. wrote:
> I’ve got some scripts that do a wget in order to receive data from a 
> hostgroup. The hostgroup I’m using is an artificial, really big group 
> that is of no use to anyone except to get said report.
> Is there any way to hide this hostgroup on the display, yet still 
> access it for data? The usual advice for hiding a hostgroup is just to 
> use a ‘register 0’, but then the wget doesn’t return anything when 
> referencing it.
> Thanks for any pointers…
Of course the wget will not work .
register 0 tells nagios not to display the group in the WebUI ( it does 
more , but currently that is the relevant part) and as you are trying to 
access the data via a HTTP request , the item in question is not passed 
to the web provider (apache) and there for not coming up for a wget request.



--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
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] Inharitance for service check in host group

2012-01-25 Thread Assaf Flatto
Taylor A Judd wrote:
>
> Greetings,
>
> We have a nagios setup that uses inheritance to a larger degree than I 
> am used to. I’ve read the documentation at:
>
> http://nagios.sourceforge.net/docs/3_0/objectinheritance.html But I 
> still can’t get my head around how to accomplish my goal.
>
> I have server/host that has notified for procs warning. I investigated 
> this and it is a known bug and safely ignored for this specific 
> server. Ideally I’d like to increase the warning/critical points for 
> the service definition for just this host; but I’m also comfortable 
> just not using this service check until a patch for the current 
> problem is issued. Disabling via the web interface is not an 
> acceptable option for my mangers.
>
> Service definition:
>
> define service{
>
> use unix-agent-service
>
> hostgroup_name linux-servers
>
> service_description Agent: Total Processes
>
> check_command check_nrpe!check_total_procs
>
> }
>
> The host definition:
>
> define host{
>
> use linux-server
>
> host_name unixlab
>
> alias Unix Lab
>
> address PRIVATE
>
> }
>
> Group/server Definition:
>
> # Linux host definition template
>
> define host{
>
> name linux-server
>
> use generic-host
>
> alias Linux server
>
> hostgroups linux-servers
>
> register 0
>
> }
>
> The host inherits all the services defined in the hostgroup 
> linux-servers. I’ve tried giving the service check a name and then 
> setting that name to null in the host definition, but I think this 
> syntax is wrong and/or I’m not understanding that part of inheritance:
>
> define service{
>
> *name agent-total-processes *
>
> use unix-agent-service
>
> hostgroup_name linux-servers
>
> service_description Agent: Total Processes
>
> check_command check_nrpe!check_total_procs
>
> }
>
> The host definition:
>
> define host{
>
> use linux-server
>
> host_name unixlab
>
> alias Unix Lab
>
> address PRIVATE
>
> * agent-total-processes null*
>
> }
>
> I’m sure I’m missing something obvious… based on my reading of 
> inheritance this should be possible but I’m not able to wrap my head 
> around it.
>
> Thoughts?
>
> Taylor
>
> 
>
> --
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> 
>
> ___
> 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
You can add to the service declaration

host_name !linux-server

That will tell nagios to exclude the execution of that service on that host.

Assaf

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
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] ndomod: Still unable to connect to data sink

2012-01-23 Thread Assaf Flatto
Can you provide some information about your configuration , it might 
shed some light on your problem?


Is the data base active ?
did you specify the scheme as specified in the NDO documentation ?


On 23/01/12 20:00, Gabriel Angió wrote:

Hello list,

Since the first time, I am having this problem, when I look at the syslog: it 
appears


[1327288417] ndomod: Still unable to connect to data sink.  3502824 items lost, 
5000 queued items to flush.
[1327289329] ndomod: Still unable to connect to data sink.  3506486 items lost, 
5000 queued items to flush.
[1327290241] ndomod: Still unable to connect to data sink.  3510157 items lost, 
5000 queued items to flush.
[1327290410] Auto-save of retention data completed successfully.



As a result, the database is not updating the values, and therefore my "nagios 
semaphore" is not working properly. I have tried to restart the machine without much 
luck.

Any hint?

Regards,
Gabriel


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2


___
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


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] check_nt : segmentation fault

2012-01-18 Thread Assaf Flatto
Please tell me that the nagios version is a typo.

if not , you should upgrade to version 3 , and the sooner the better .
Since check_nt is communicating with windows server was there any change 
on the MS platforms ?
Did you compile the chdck_nt for the old machine , and just copied across ?

Marco Borsani wrote:
>
> Hi all
>
> Nagios server: 1.4.1
>
> Nagios plugins : 1.4.15
>
> SO: Centos 5.7 64bit
>
> I still receive this errors (but check_nt runs on every server):
>
> check_nt[10383]: segfault at  rip 00394a637a04 rsp 
> 7fff6bf3d3e0 error 4
>
> check_nt[15038]: segfault at  rip 00394a637a04 rsp 
> 7fff90fe42a0 error 4
>
> check_nt[19873]: segfault at  rip 00394a637a04 rsp 
> 7fff222f89b0 error 4
>
> check_nt[24428]: segfault at  rip 00394a637a04 rsp 
> 7d838f10 error 4
>
> check_nt[29177]: segfault at  rip 00394a637a04 rsp 
> 7fffaad060c0 error 4
>
> check_nt[1510]: segfault at  rip 00394a637a04 rsp 
> 7fffb8555450 error 4
>
> check_nt[6387]: segfault at  rip 00394a637a04 rsp 
> 7fff42383290 error 4
>
> check_nt[11234]: segfault at  rip 00394a637a04 rsp 
> 7fff15652e90 error 4
>
> check_nt[20926]: segfault at  rip 00394a637a04 rsp 
> 7fffc118f5b0 error 4
>
> check_nt[25407]: segfault at  rip 00394a637a04 rsp 
> 7fffd984fec0 error 4
>
> check_nt[30172]: segfault at  rip 00394a637a04 rsp 
> 7fff847a95d0 error 4
>
> check_nt[2476]: segfault at  rip 00394a637a04 rsp 
> 7fff4fc15250 error 4
>
> ………..
>
> Before, with same Nagios releases, but with another hardware (and 
> centos 5.3 32 bit), no erros.
>
> Any idea ?
>
> Marco Borsani
>
> *Unix and Monitoring Sysadmin*
>
> *Technical Operations Dpt.*
>
> tel: +39 010 4310115
>
> fax: +39 02 30130311
>
> cell: +39 329 5953944
>
> ITnet Srl
>
> Società con socio unico
>
> Direzione e Coordinamento di …
>
> 
>
> --
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> 
>
> ___
> 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


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios and conditional checks

2011-12-29 Thread Assaf Flatto
Title: SERES




Not really 

service dependencies mean that is service B is not ok , do not alert or
do not check service A , but not allow to have a return status based on
the status of another service .




On 29/12/11 12:43, Ismael Puerto wrote:

  
Hi list
  
We have Nagios 3.3.1 + NRPE 2.0.13 for host. I wold like "ServicieA"
resturned me Status:OK if "ServiceB"state is OK. It can be done with
"service dependency"?
  
Machine1--Machine2
ServiceA--- ServiceB
  
Best Regards
  -- 
  
  
   Ismael Puerto 
Dpto de Explotación 
902 42 43 42 ext: 213 
  ismael.pue...@seres.es
  
  
   

  Este mensaje se
dirige exclusivamente a su destinatario y puede contener información
privilegiada o confidencial. Si no es vd. el destinatario indicado,
queda notificado de que la utilización, divulgación y/o copia sin
autorización está prohibida en virtud de la legislación vigente. Si ha
recibido este mensaje por error, le rogamos que nos lo comunique
inmediatamente por esta misma vía y proceda a su destrucción.
  This
message is intended exclusively for its addresses and may contain
information that is CONFIDENTIAL and protected by professional
privilege. If you are not the intended recipient you are hereby
notified that any dissemination, copy or disclosure of this
communication is strictly prohibited by law. If this message has been
received in error, please immediately notify us via e-mail and delete
it.
  Ce
message est prévu exclusivement pour son destinataire et peut contenir
l'information qui est CONFIDENTIELLE et protégée par privilège
professionnel. Si vous n'êtes pas le destinataire prévu on vous annonce
par ceci que n'importe quelle diffusion, copie ou révélation de cette
communication est strictement interdite par loi. Si ce message a été
reçu par erreur, svp informez-immédiatement
nous par l'intermédiaire du E-mail et supprimez-les.
   
  P
Respeta el medio ambiente. Antes de imprimir este e-mail, piensa si
realmente es necesario imprimirlo.
   
  
  
  
  

--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
  

___
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




--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios on CentOS

2011-12-28 Thread Assaf Flatto

Be aware that the latest stable build is 3.2.3 not 3.3.1 .

The 3.3.1 has some bugs that cause issues with the building and running .

Assaf

On 28/12/11 12:52, Jatin wrote:
> Thanks for all the responses. I would go for installing nagios (latest
> stable build) on CentOS 5.7
>
> Thanks
> Jatin
>
> On Tuesday 27 December 2011 10:23 PM, Daniel Wittenberg wrote:
>
>> I would second that, use the RPM's and then it's super-simple RPM installs 
>> and a few tweaks for performance and you should be good.
>>
>> Dan
>>
>>
>> -Original Message-
>> From: Alain Williams [mailto:a...@phcomp.co.uk]
>> Sent: Tuesday, December 27, 2011 10:13 AM
>> To: Nagios Users List
>> Subject: Re: [Nagios-users] Nagios on CentOS
>>
>> On Tue, Dec 27, 2011 at 11:02:51AM -0500, Chris Beattie wrote:
>>  
>>> On 12/27/2011 9:31 AM, Jatin wrote:
>>>
 Fedora. I wanted to know if i can follow the same steps for installing
 Nagios on CentOS assuming that i have a default CentOS installation.
  
>>> Yes.  I used the Fedora instructions to install Nagios on CentOS myself.
>>> It has been a while since I did it, though.  The only snag I remember
>>> having was forgetting to install some packages like openssl-devel and
>>> net-snmp-devel before compiling the plug-ins.
>>>
>> Don't bother to compile them, use Dag's archive:
>>
>>  rsync://apt.sw.be/pub/freshrpms/pub/dag/redhat/
>>
>>  
> --
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create
> new or port existing apps to sell to consumers worldwide. Explore the
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> ___
> 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
>


--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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] Basic Question: Apache needed on client ?

2011-12-22 Thread Assaf Flatto
The Web interface to view the "live" status of the monitored networks.

from a functionality wise - nagios will continue to work even with out 
the apache server , though i would not advise doing it like that unless 
you are very confident in your nagios skills and are sure every 
definition you'll add will work as desired at the first go.

Assaf



On 22/12/11 19:39, Dan White wrote:
> What functionality would be lost if I did not install apache on a nagios 
> client machine ?
>
> “Sometimes I think the surest sign that intelligent life exists elsewhere in 
> the universe is that none of it has tried to contact us.”
> Bill Waterson (Calvin&  Hobbes)
>
> --
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create
> new or port existing apps to sell to consumers worldwide. Explore the
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> ___
> 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


--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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] client monitoring without polling

2011-12-22 Thread Assaf Flatto
You can use snmp traps or passive checks for that . 



- Original Message -

From: "Marco Borsani"  
To: "NAGIOS"  
Sent: Thursday, 22 December, 2011 11:02:03 AM 
Subject: [Nagios-users] client monitoring without polling 



Hi all 

Normally, you have to install nrpe in the clients and then Nagios server query 
them at regular interval 
Is there the possibility to communicate with the client only when there are 
errors ? 

Regards 
Marco 
-- 
Write once. Port to many. 
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join 
http://p.sf.net/sfu/intel-appdev 
___ 
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 
--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev___
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] servicedependencies not working

2011-12-16 Thread Assaf Flatto
Dan

Even for the same host dependencies you still need to define a host in the 
servicedependency definitions.
At the moment your servicedependency (the one you pasted here) is not 
associated with any host and hence the logic is not implemented on any host 
testing logic.

Assaf

- Original Message -

From: "Daniel Wittenberg" 
To: "nagios-users@lists.sourceforge.net" 
Sent: Thursday, 15 December, 2011 5:38:53 PM
Subject: [Nagios-users] servicedependencies not working


I’ve started playing with making a bunch of dependencies and at first it 
appeared to be working, right now I’ve got a pretty basic test setup. I’ve 
added one service to be dependent on the other one, but it seems that the 
freshness might be mucking with it. Two services below:


define service {
service_description base_log_checks
servicegroups base_service_group
hostgroup_name base_windows_2003
use generic-passive-service
check_freshness 1
freshness_threshold 3600
check_command service_is_
}

define service {
service_description nagios_cron
servicegroups base_service_group
hostgroup_name base_windows_2003
use generic-passive-service
check_freshness 1
freshness_threshold 3000
check_command service_is_stale
}

define servicedependency {
service_description nagios_cron
dependent_service_description base_log_checks
execution_failure_criteria w,u,c
notification_failure_criteria w,u,c
inherits_parent 1
}

What appears to happen is that I kill nsclient so nagios_cron starts reporting 
“stale” at 3000 seconds, and the same for base_log_checks shortly after. Then 
about every hour I get more “stale” soft alerts, and then after the third try 
it goes to a HARD alert and I still get a ticket, though I’m not sure why it’s 
even checking if execution should be disable when nagios_cron is in a warning 
state. But not only does the active checks (service_is_stale) get executed but 
I’m also still getting notifications sent after 3 attempts, so it doesn’t 
really appear to be doing anything. Unfortunately right now these servers are 
so busy it’s hard to put them in debug mode. Have I missed something obvious 
with these?

Dan


--
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.
But none more important than the need to reduce IT complexity
while improving strategic productivity. Learn More!
http://www.accelacomm.com/jaw/sdnl/114/51507609/
___
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
--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure___
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] Windows.cfg missing

2011-12-12 Thread Assaf Flatto
Have you installed from source or package ?

if the package , try looking for the file in the /etc/nagios3/ directory 

If you used source , have you done the make install-configs ( or is may be make 
install-samples ) ?

Assaf

- Original Message -
From: "Niels Jende" 
To: "Nagios Users List" 
Sent: Monday, 12 December, 2011 12:18:40 PM
Subject: [Nagios-users] Windows.cfg missing

Hi Folks,

as I am still a newbie with nagios but willing to learn, I hope you
wont mind if my upcoming question might sound silly to you.

I read that to monitor windows servers that I should find a
windows.cfg file in ~/objects/

Well I dont have neither a directory called objects nor such a file.
In /usr/share/doc/nagios3-common/examples/template-object/ I found a
windows.cfg file.

So, is it okay for nagios to simply create a directory ~/objects/ and
copy the windows.cfg file in there? Or what do I have to do?

As said before, I am new to nagios and I am running a debian wheetzy
with nagios 3.2.3

Thanks for your time and help
Niels

--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
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

--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
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] Passive monitoring multiple servers with 1 NAT IP

2011-12-05 Thread Assaf Flatto
On 02/12/11 18:14, a.sm...@ukgrid.net wrote:
>
> Hi,
>
> in the case where I want to monitor several servers in a remote office 
> where all outbound traffic from that office originates from a single 
> IP (NAT) is there any way I can monitor those with Nagios without 
> putting a Nagios server in the remote office?
> On the face of it it would seem impossible as Nagios identifies hosts 
> by their IP (and therefore each needs a unique IP) but would be good 
> to get that confirmed or otherwise,
>
> thanks for any ideas, Andy.
>
>
>
I've had a similar situation in one of my projects ,and it is solvable 
in one of 2 methods :
1 ) if you NAT server is a linux box - use the nrpe on that box to 
"trigger " the checks to all other boxes in the network and send back to 
the Nagios box.
2) Port forwarding - assign each machine a port and configure the host 
with the custom macro _NRPEPORT and thus the firewall send a query on 
the port to the assigned hosts in the NAT listing .

Assaf

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
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] A question about "initial_state"

2011-12-02 Thread Assaf Flatto
Since this is a passive state , until it gets a state submissions from the NSCA 
it will be in a Pending state . 

The initial_state directive is for Active services AFAIK. 



- Original Message -

From: "Alexander Tiurin"  
To: nagios-users@lists.sourceforge.net 
Sent: Friday, 2 December, 2011 1:17:06 PM 
Subject: [Nagios-users] A question about "initial_state" 

Hello! 

I added "initial_state u" to passive service template definition, but after 
restart Nagios, all passive service checks have the status "PENDING" , not 
"UNKNOWN" 

define service{ 
name passive-service 
retain_status_information 
0 
retain_nonstatus_information 0 
active_checks_enabled 0 
passive_checks_enabled 1 
flap_detection_enabled 0 
is_volatile 0 
check_period 24x7 
max_check_attempts 1 
normal_check_interval 5 
retry_check_interval 1 
check_freshness 1 
freshness_threshold 15 ; seconds 
initial_state u 
contact_groups admins 
check_command check_dummy!0 
notification_interval 60 
notification_period 24x7 
notification_options w,u,c,r 
stalking_options w,c,u 
register 0 
} 

Whats wrong? 

nagios3-3.2.0-4ubuntu2.2 
-- 
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense. 
http://p.sf.net/sfu/splunk-novd2d 
___ 
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 
--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] nagios and nsclient++ wont work

2011-12-02 Thread Assaf Flatto
I am trying to understand what you are saying is not working , as the log 
snippet does not say anything about tests coming from the Nagios server , if it 
is about the Tray icon,the  answer is in the log :
"\TrayIcon.cpp(53) Failed to load: ChangeWindowMessageFilter aparently we are 
not on Vista... "

So what are you trying to do ??



- Original Message -
From: "Niels Jende" 
To: nagios-users@lists.sourceforge.net
Sent: Friday, 2 December, 2011 8:10:30 AM
Subject: [Nagios-users] nagios and nsclient++ wont work

Hi there,

I guess that here are alot users who have made it working...Nagios on
a debian system to monitor a Win2003 Standard Server.

For testing purposes both machines are virtualized, the Debian is in a
VirtualBox and the W2K3Std Server is virtualized with VmWare. I'm just
saying that to be as precise as somehow possible.

So, I downloaded the latest stable nsclient++ on the W2K3 from
sourceforge, as it is suggested. I walked through the install process
as stated in the Reference Manual, but the nsclient seems to be
misconfigured, because I get errors once I run nsclient++ /test.
Neither do I get the Systray Icon in the systray. I said nsclient++
Systray install to get it installed and there the client didn't
complain about whatsoever. And the nsclient doesnt complain once I
start him, but as said the /test option shows errors:
#
C:\Programme\NSClient++>nsclient++ /test
Launching test mode - client mode
d NSClient++.cpp(1216) Enabling debug mode...
d NSClient++.cpp(557) Attempting to start NSCLient++ - 0.3.9.327 2011-08-16
NSCore not loaded...
Archiving crash dumps in: C:\Dokumente und Einstellungen\gms\Lokale Einstellunge
n\Anwendungsdaten\NSClient++\crash dumps
d NSClient++.cpp(1007) Loading plugin: CheckDisk...
d NSClient++.cpp(1007) Loading plugin: Event log Checker
d NSClient++.cpp(1007) Loading plugin: Helper function...
d NSClient++.cpp(1007) Loading plugin: Check NSCP...
d NSClient++.cpp(1007) Loading plugin: CheckSystem...
d \PDHCollector.cpp(73) Autodetected w2k or later, using w2k PDH counters.
d NSClient++.cpp(1007) Loading plugin: CheckWMI...
d \PDHCollector.cpp(110) Using index to retrive counternames
d NSClient++.cpp(1007) Loading plugin: File logger...
l \FileLogger.cpp(87) Log path is: C:\Programme\NSClient++\\nsclient.log
d \PDHCollector.cpp(130) Found countername: CPU:\Prozessor(_total)\Prozessor
zeit (%)
d NSClient++.cpp(1007) Loading plugin: NRPE server (w/ SSL)...
d \PDHCollector.cpp(131) Found countername: UPTIME: \System\Systembetriebszeit
d \NRPEListener.cpp(92) Loading all commands (from NRPE)
d \PDHCollector.cpp(132) Found countername: MCL:\Speicher\Zusagegrenze
d \NRPEListener.cpp(122) Starting NRPE socket...
d \PDHCollector.cpp(133) Found countername: MCB:\Speicher\Zugesicherte Bytes

d NSClient++.cpp(1007) Loading plugin: NSCAAgent (w/ encryption)...
d \Socket.h(683) Bound to: 0.0.0.0:5666
d \NSCAThread.cpp(77) Time difference for NSCA server is: 0
d \NSCAThread.cpp(87) Only reporting: ok,warning,critical,unknown
d \NSCAThread.cpp(119) Autodetected hostname: SRV_TEL
d NSClient++.cpp(1007) Loading plugin: NSClient server...
d \NSCAThread.cpp(188) Drifting: 0
d NSClient++.cpp(1007) Loading plugin: SystemTray...
d \Socket.h(683) Bound to: 0.0.0.0:12489
d NSClient++.cpp(709) NSCLient++ - 0.3.9.327 2011-08-16 Started!
d \TrayIcon.cpp(53) Failed to load: ChangeWindowMessageFilter aparently we are n
ot on Vista...
l NSClient++.cpp(461) Using settings from: INI-file
l NSClient++.cpp(462) Enter command to inject or exit to terminate...
###

Has anyone got an idea what I've done wrong?

Thanks
Niels

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
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

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios

Re: [Nagios-users] Can you add custom commands to the 2 standard "notify-host-by-xxx" and "notify-service-by-xxx" commands?

2011-11-30 Thread Assaf Flatto
You can build a new contact group that is gets alert only from this commands .

Or you can split the templates and build a new one that uses this alerting for 
the new service .

You need to think of the process of the alerts and define what alerts to send .

I know many people think that adding new (insert nagios item ) is trouble , but 
i found that if some thing "breaks" my conventions or is an exemption , it is 
best to "build" the templates for it and make it modular - as it is most likely 
will happen again , and that way you'll have the definition ready .


Assaf


- Original Message -

From: "Andrew Thompson" 
To: nagios-users@lists.sourceforge.net
Sent: Wednesday, 30 November, 2011 11:37:10 AM
Subject: [Nagios-users] Can you add custom commands to the 2 standard 
"notify-host-by-xxx" and "notify-service-by-xxx" commands?



Hi all.

Is it possible to add your own custom commands to add to the 2 standard notify 
commands?

At the moment I have

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

# 'notify-service-by-email' command definition
define command{
command_name notify-service-by-email
command_line /usr/bin/printf "%b" "* Nagios says its broken 
*\n\nNotification Type: $NOTIFICATIONTYPE$\n\nInfo :$SERVICEOUTPUT$\n\n 
Service: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: 
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$" | /usr/bin/mail -s "** 
$NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$ is $SERVICESTATE$ **" 
$CONTACTEMAIL$
}

This is fine for the hosts that I manage by PING.

Now I have started to manage my websites for both availability and also to 
navigate through the site using 2 separate scripts.

Id like separate notifications for the website checks as id like to add more 
text into the subject line.

For eg if 1 of my sites has an issues and 1 of the pages it navigates for is 
not available or returns something different to what it should id like:

# 'notify-website-service-by-email' command definition
define command{
command_name notify-website-service-by-email
command_line /usr/bin/printf "%b" "* Nagios says its broken 
*\n\nNotification Type: $NOTIFICATIONTYPE$\n\nInfo :$SERVICEOUTPUT$\n\n 
Service: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: 
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$" | /usr/bin/mail -s "** 
$NOTIFICATIONTYPE$ Service Alert: Website content cannot be found at 
$HOSTALIAS$ and is in a $SERVICESTATE$ state**" $CONTACTEMAIL$
}

But if I create this and add it to my Critical website template which tells it 
to to email the admin email contact group which has me and another admin in it 
then its going to send both the original “notify-service-by-email” and the new 
“notify-website-service-by-email

Any way I can get around this.

Apologies if it’s a really simple answer by the way….

Thankyou


--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
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
--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
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] How to limit the amout of SMS notifications?

2011-11-15 Thread Assaf Flatto
Hi

Have you looked at service escalations ?
http://nagios.sourceforge.net/docs/nagioscore/3/en/objectdefinitions.html#serviceescalation

This might give you the tool to limit the amount of alerts to send .

Assaf
- Original Message -

From: "Andrew Thompson" 
To: nagios-users@lists.sourceforge.net
Sent: Tuesday, 15 November, 2011 10:20:29 AM
Subject: [Nagios-users] How to limit the amout of SMS notifications?



Hi all,

I have Nagios 3.3.1 setup on Ubuntu Desktop 11.04.

I monitor approx. 70 hosts (mixture of Windows Servers, Switches, Firewalls) by 
PING only.

Down hosts are notified to me via email and SMS at the moment.

What I would like to so is limit the amount of SMS messages that are sent from 
my Nokia phone connected to my Ubuntu box.

As it stands I allow 3 checks 1 minute apart before I am alerted via email – 
after that I am alerted via email every 5 minutes until recovery.

I have just implemented the phone to SMS alerts aswell but I want to limit the 
amount of texts as I don’t want a text every 5 minutes until recovery for 
sanity reasons and also cost reasons!

This is what I would like to happen If a host goes down:

Email and SMS to be sent out on the 3 rd failed check to the host (So 1 st 
alert is sent out after 3 minutes of the host being down.)

Then……

I want to be alerted via email every 5 minutes until the host recovers

But……

I only want 2 more SMS after the initial SMS, 5 minutes apart and then no more 
SMS until the host is recovered. So I want an SMS after 3, 8 and 13 minutes of 
the host being down, then a recovery SMS.

Is this possible?

Thanks in advance




Kind Regards
Andrew

T: 01386 834000
F: 01386 834100


and...@fulgent.co.uk
www.fulgent.co.uk


Fulgent Technologies Limited, Haddonsacre, Station Road, Offenham, Evesham, 
WR11 8JJ. This communication contains information which is confidential and may 
also be privileged or protected by copyright. It is for the exclusive use of 
the addressee. If you are not the addressee please note that any distribution, 
reproduction, copying, publication or use of this communication or the 
information is prohibited. If you have received this communication in error, 
please telephone us immediately and also delete the communication from your 
computer.

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
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
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] check service frequency based on service status

2011-11-09 Thread Assaf Flatto
What you need is an event handler combined with the external commands

Take a look at the documentation  about those two topics .


Assaf


aiman parvaiz wrote:
> Hi everyone
> Am trying to detect disk thrashing by monitoring si, so from the 
> vmstat command. I am monitoring other services using nagios and 
> service check happens after every 5 minutes. For this thrashing 
> service I want that nagios should check it after every 20 minutes and 
> if the status returned is not OK(ie warning or critical) then 
> thrashing service should be checked after every 3 minutes till the 
> status returned by the service becomes OK. The service check time for 
> all other service remains unchanged.
>
> I am new to Nagios and any help on this would be really appreciated.
>
> Thanks
> 
>
> --
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> 
>
> ___
> 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


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
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] Alert Notification

2011-11-09 Thread Assaf Flatto
Not in nagios , you can write a wrapper or a cron job that does a copy 
of the old and new config and alerts about changes.

Assaf

trm asn wrote:
> Hi List,
>
> Is there any way to send a notification , when Host/service has been 
> added or deleted from Nagios.
>
>
> /\
> Tarak
> 
>
> --
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> 
>
> ___
> 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


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
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] different escalation intervals possible?

2011-07-18 Thread Assaf Flatto
Michael Barrett wrote:
> Hi - I am trying to get alerts for my services to work like this:
>
> - all alerts (warning, critical, unknown, and recovery) go to the 'email-ops' 
> contact every 2 hours 
> - on some services (the ones deemed critical) in addition I want them to send 
> an email to the 'primary-pager' contact every 15 minutes
>
> I thought I had the configuration setup appropriately for this, but now I'm 
> not sure it's possible without a better understanding of how escalations work 
> (and it may not even be possible then) since I read this about overlapping 
> escalations:
>
> "Since it is possible to have overlapping escalation definitions for a 
> particular hostgroup or service, and the fact that a host can be a member of 
> multiple hostgroups, Nagios has to make a decision on what to do as far as 
> the notification interval is concerned when escalation definitions overlap. 
> In any case where there are multiple valid escalation definitions for a 
> particular notification, Nagios will choose the smallest notification 
> interval."
>
> Anyway, is there anyway to make that work?  The way its working now is that 
> it seems to email the email-ops list every 15 minutes on critical services, 
> and for email we'd like to get less alerts.
>
> Thanks in advance!
>
> --
> Michael Barrett
> lok...@gmail.com
>   
The short answer is , Yes .

if you share your configuration we might also be able to give tips and 
pointers on what needs to be modified.

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
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] NRPE issues

2011-07-14 Thread Assaf Flatto
Julie S. Lin wrote:
> Hi All
>
> please excuse the newbie question, but I'm having issues with NRPE  
> returning inconsistent results
>
> on the local machine :
> #./check_mycheck
> result ? 1   <--- critical
>
> on the nagios server :
> ./check_nrpe -H myhost -c check_mycheck
> result? 0 <--- OK
>
> how can this happen ?
>
> Julie S. Lin
> System Administrator
> j...@livescribe.com
> (510) 553 4912 (o)
> (510) 367 5772 (c)
>   
Are you sure the NRPE is referencing the same command you are using 
manually ?

check the path in the nrpe.cfg file.

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] ./check_tcp: No such file or directory

2011-07-12 Thread Assaf Flatto
If you installed the plugins from a source  , one of the stages was 
"make install"
That stage (usually the last one) places the plugins in the target 
directory ( if you did not change anything during the "configure" state 
, it will be in /usr/local/nagios/libexec )

So the steps are easy , IF you used source , go to the directory where 
the source package was extracted to , and in the directory type "make 
install"  - that's it .

however if you installed from RPM , then you'll need to reinstall the 
nagios-plugins rpm ( see the yjm /rpm man pages for that .



dOE wrote:
> Assaf,
>
> Could you explain with a little more detail how I could recover the 
> "check_tcp" from the source exactly?
>
> thanks
>
> On Tue, Jul 12, 2011 at 10:21 AM, Assaf Flatto  <mailto:nag...@flatto.net>> wrote:
>
> dOE wrote:
> > Hi,
> >
> > I inadvertently deleted/overwrote the "check_tcp" file in
> ../libexec.
> > I tried copying the file back from another Nagios instance (same
> build
> > 3.0.3), but when I execute it it I get a "No such file or
> directory".
> > My permissions for the file are no different than other "checks_" in
> > the directory.  Is there something else I need to do other than
> copy a
> > file from another Nagios instance?
> >
> >
> > rwxrwxr-x 1 nagios root76K 2011-07-01 13:47 check_tcp
> >
> >
> > Thanks
> >
> 
>


--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] ./check_tcp: No such file or directory

2011-07-12 Thread Assaf Flatto
dOE wrote:
> Hi,
>
> I inadvertently deleted/overwrote the "check_tcp" file in ../libexec.  
> I tried copying the file back from another Nagios instance (same build 
> 3.0.3), but when I execute it it I get a "No such file or directory".  
> My permissions for the file are no different than other "checks_" in 
> the directory.  Is there something else I need to do other than copy a 
> file from another Nagios instance?
>
>
> rwxrwxr-x 1 nagios root76K 2011-07-01 13:47 check_tcp
>
>
> Thanks
> 
from what your title say you are getting the error when trying to 
execute the file locally and fail .
Are you sure the file was copied successfully ?
If you installed the plugins from source you can go the the source code 
directory and do "make install" and it place the plugins in the 
directory again .

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
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] Windows monitoring error

2011-07-01 Thread Assaf Flatto
nag ios wrote:
>
>
> what does the unauthorised access means
>  
> the ip and password's are same in both the commands.cfg and ns.ini
> file
>
> Whats the exact problem can u figure it out
>
>  
> I have tried to reinstall it also but same problem can you help me??
>
>  
>     On Thu, Jun 30, 2011 at 5:12 PM, Assaf Flatto  <mailto:nag...@flatto.net>> wrote:
>
> And you can't see what the problem from the log ?
>
>
> nag ios wrote:
> >
> >
> > 2011-06-30 15:45:42:
> message:modules\FileLogger\FileLogger.cpp:86:
> > Starting to log for: NSClient++ - 0.3.9.306 2011-05-01
> > 2011-06-30 15:45:57: debug:CACHENSClient++.cpp:557:
> Attempting to
> > start NSCLient++ - 0.3.9.306 2011-05-01
> > 2011-06-30 15:45:57: message:CACHENSClient++.cpp:607:
> Enabling shared
> > session...
> > 2011-06-30 15:45:57: message:CACHENSClient++.cpp:609:
> Starting shared
> > session...
> > 2011-06-30 15:45:57:
> >
> 
> message:CACHED:\source\nscp\branches\stable\include\nsclient_session.hpp:459:
> > Created new master session: channel-server=
> > {Global\NSClientPP_channel_server_write,
> > Global\NSClientPP_channel_server_signal,
> > Global\NSClientPP_channel_server_memory}
> > 2011-06-30 15:45:57:
> >
> 
> error:CACHED:\source\nscp\branches\stable\include\nsclient_session.hpp:265:
> > Starting session responder for: server
> > 2011-06-30 15:45:57: error:CACHENSClient++.cpp:739: Failed to
> > enumerate sessions:1702: The binding handle is invalid.
> > 2011-06-30 15:45:57:
> > message:CACHEmodules\FileLogger\FileLogger.cpp:87: Log path is:
> > C:\Program Files\NSClient++\\nsclient.log
> > 2011-06-30 15:45:57:
> error:modules\CheckSystem\PDHCollector.cpp:215:
> > Failed to query performance counters: \Processor(_total)\%
> Processor
> > Time: PdhGetFormattedCounterValue failed: A counter with a
> negative
> > denominator value was detected.   (87D6)
> > 2011-06-30 15:46:25:
> error:modules\CheckSystem\PDHCollector.cpp:215:
> > Failed to query performance counters: \Processor(_total)\%
> Processor
> > Time: PdhGetFormattedCounterValue failed: A counter with a
> negative
> > denominator value was detected.   (87D6)
> > 2011-06-30 15:46:33:
> error:modules\CheckSystem\PDHCollector.cpp:215:
> > Failed to query performance counters: \Processor(_total)\%
> Processor
> > Time: PdhGetFormattedCounterValue failed: A counter with a
> negative
> > denominator value was detected.   (87D6)
> > 2011-06-30 15:47:34:
> error:modules\CheckSystem\PDHCollector.cpp:215:
> > Failed to query performance counters: \Processor(_total)\%
> Processor
> > Time: PdhGetFormattedCounterValue failed: A counter with a
> negative
> > denominator value was detected.   (87D6)
> > 2011-06-30 15:47:38: message:NSClient++.cpp:93: Running:
> C:\Program
> > Files\NSClient++\\nstray.exe
> > 2011-06-30 15:47:38: message:NSClient++.cpp:94: Running:
> "C:\Program
> > Files\NSClient++\\nstray.exe" -channel __0__
> > 2011-06-30 15:47:39: message:NSClient++.cpp:161: Started
> tray in other
> > user session: 0
> > 2011-06-30 15:47:41:
> >
> 
> message:D:\source\nscp\branches\stable\include\nsclient_session.hpp:776:
> > __0__ says hello!
> > 2011-06-30 16:00:23: message:NSClient++.cpp:93: Running:
> C:\Program
> > Files\NSClient++\\nstray.exe
> > 2011-06-30 16:00:28:
> >
> error:D:\source\nscp\branches\stable\include\nsclient_session.hpp:532:
> > Client channel is down (removing it): Failed to get mutex when
> > attempting to post message: timed out
> > 2011-06-30 16:00:28: message:NSClient++.cpp:94: Running:
> "C:\Program
> > Files\NSClient++\\nstray.exe" -channel __0__
> > 2011-06-30 16:00:29: message:NSClient++.cpp:161: Started
> tray in other
> > user session: 0
> > 2011-06-30 16:00:29:
> 

Re: [Nagios-users] Nagios monitor Windows diskspace

2011-06-30 Thread Assaf Flatto
Change the command to be :

check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90

(drop the ":\")







Marc Haber wrote:
> Hi all.
> I am currently deploying a Nagios installation to monitor several hundreds
> of nodes within our company. I installed NSClient++ on the WXP machines
> and configured Nagios to query it.
> Standard monitoring plugins work flawlessly (CPU load, Memory usage, NSC++
> version), but I can't seem to make the disk space check work.
> The error reported by nagios is "wrong -l argument" and the configuration
> is as follows:
>
> define service{
> use generic-service
> hostgroup_name win-workstations
> service_description C:\ Drive Space
> check_command check_nt!USEDDISKSPACE!-l c:\ -w 80 -c 90
> }
>
> Any clues as why it's not working?
>
> Marc
>
>
> --
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security 
> threats, fraudulent activity, and more. Splunk takes this data and makes 
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> ___
> 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
>   


--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
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] Windows monitoring error

2011-06-30 Thread Assaf Flatto
And you can't see what the problem from the log ?


nag ios wrote:
>
>  
> 2011-06-30 15:45:42: message:modules\FileLogger\FileLogger.cpp:86: 
> Starting to log for: NSClient++ - 0.3.9.306 2011-05-01
> 2011-06-30 15:45:57: debug:CACHENSClient++.cpp:557: Attempting to 
> start NSCLient++ - 0.3.9.306 2011-05-01
> 2011-06-30 15:45:57: message:CACHENSClient++.cpp:607: Enabling shared 
> session...
> 2011-06-30 15:45:57: message:CACHENSClient++.cpp:609: Starting shared 
> session...
> 2011-06-30 15:45:57: 
> message:CACHED:\source\nscp\branches\stable\include\nsclient_session.hpp:459: 
> Created new master session: channel-server= 
> {Global\NSClientPP_channel_server_write, 
> Global\NSClientPP_channel_server_signal, 
> Global\NSClientPP_channel_server_memory}
> 2011-06-30 15:45:57: 
> error:CACHED:\source\nscp\branches\stable\include\nsclient_session.hpp:265: 
> Starting session responder for: server
> 2011-06-30 15:45:57: error:CACHENSClient++.cpp:739: Failed to 
> enumerate sessions:1702: The binding handle is invalid. 
> 2011-06-30 15:45:57: 
> message:CACHEmodules\FileLogger\FileLogger.cpp:87: Log path is: 
> C:\Program Files\NSClient++\\nsclient.log
> 2011-06-30 15:45:57: error:modules\CheckSystem\PDHCollector.cpp:215: 
> Failed to query performance counters: \Processor(_total)\% Processor 
> Time: PdhGetFormattedCounterValue failed: A counter with a negative 
> denominator value was detected.   (87D6)
> 2011-06-30 15:46:25: error:modules\CheckSystem\PDHCollector.cpp:215: 
> Failed to query performance counters: \Processor(_total)\% Processor 
> Time: PdhGetFormattedCounterValue failed: A counter with a negative 
> denominator value was detected.   (87D6)
> 2011-06-30 15:46:33: error:modules\CheckSystem\PDHCollector.cpp:215: 
> Failed to query performance counters: \Processor(_total)\% Processor 
> Time: PdhGetFormattedCounterValue failed: A counter with a negative 
> denominator value was detected.   (87D6)
> 2011-06-30 15:47:34: error:modules\CheckSystem\PDHCollector.cpp:215: 
> Failed to query performance counters: \Processor(_total)\% Processor 
> Time: PdhGetFormattedCounterValue failed: A counter with a negative 
> denominator value was detected.   (87D6)
> 2011-06-30 15:47:38: message:NSClient++.cpp:93: Running: C:\Program 
> Files\NSClient++\\nstray.exe
> 2011-06-30 15:47:38: message:NSClient++.cpp:94: Running: "C:\Program 
> Files\NSClient++\\nstray.exe" -channel __0__
> 2011-06-30 15:47:39: message:NSClient++.cpp:161: Started tray in other 
> user session: 0
> 2011-06-30 15:47:41: 
> message:D:\source\nscp\branches\stable\include\nsclient_session.hpp:776: 
> __0__ says hello!
> 2011-06-30 16:00:23: message:NSClient++.cpp:93: Running: C:\Program 
> Files\NSClient++\\nstray.exe
> 2011-06-30 16:00:28: 
> error:D:\source\nscp\branches\stable\include\nsclient_session.hpp:532: 
> Client channel is down (removing it): Failed to get mutex when 
> attempting to post message: timed out
> 2011-06-30 16:00:28: message:NSClient++.cpp:94: Running: "C:\Program 
> Files\NSClient++\\nstray.exe" -channel __0__
> 2011-06-30 16:00:29: message:NSClient++.cpp:161: Started tray in other 
> user session: 0
> 2011-06-30 16:00:29: 
> message:D:\source\nscp\branches\stable\include\nsclient_session.hpp:776: 
> __0__ says hello!
> 2011-06-30 16:06:08: 
> error:modules\NSClientListener\NSClientListener.cpp:314: Unauthorized 
> access from: 172.x.x.x
> 2011-06-30 16:06:26: 
> error:modules\NSClientListener\NSClientListener.cpp:314: Unauthorized 
> access from: 172.x.x.x
> 2011-06-30 16:08:16: 
> error:modules\NSClientListener\NSClientListener.cpp:314: Unauthorized 
> access from: 172.x.x.x
> 2011-06-30 16:10:25: 
> error:modules\NSClientListener\NSClientListener.cpp:314: Unauthorized 
> access from: 172.x.x.x
> 2011-06-30 16:10:43: 
> error:modules\NSClientListener\NSClientListener.cpp:314: Unauthorized 
> access from: 172.x.x.x
> 2011-06-30 16:12:34: 
> error:modules\NSClientListener\NSClientListener.cpp:314: Unauthorized 
> access from: 172.x.x.x
> 2011-06-30 16:12:52: 
> error:modules\NSClientListener\NSClientListener.cpp:314: Unauthorized 
> access from: 172.x.x.x
> 2011-06-30 16:16:08: 
> error:modules\NSClientListener\NSClientListener.cpp:314: Unauthorized 
> access from: 172.x.x.x
> 2011-06-30 16:16:26: 
> error:modules\NSClientListener\NSClientListener.cpp:314: Unauthorized 
> access from: 172.x.x.x
> 2011-06-30 16:18:16: 
> error:modules\NSClientListener\NSClientListener.cpp:314: Unauthorized 
> access from: 172.x.x.x
> 2011-06-30 16:20:25: 
> error:modules\NSClientListener\NSClientListener.cpp:314: Unauthorized 
> access from: 172.x.x.x
> 2011-06-30 16:20:43: 
> error:modules\NSClientListener\NSClientListener.cpp:314: Unauthorized 
> access from: 172.x.x.x
> 2011-06-30 16:22:34: 
> error:modules\NSClientListener\NSClientListener.cpp:314: Unauthorized 
> access from: 172.x.x.x
> 2011-06-30 16:22:52: 
> error:modules\NSClientListener\NSClientListener.cpp:314: Unauthorized 
> access from: 172.x.x.x
> 20

Re: [Nagios-users] Windows monitoring error

2011-06-30 Thread Assaf Flatto
IF you provide details about your problem (config samples, error logs 
snippets )  then maybe people will respond and try to help.


nag ios wrote:
> Hi ,
>I have a problem while monitoring the windows machine,i'm 
> getting the error as couldnot fetch information from server. I 
> have reconfigured the whole thing on the windows client and host linux 
> machine but i'm getting same error.
>  
> Please help me.
> 


--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
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] how to manage a distributed configuration

2011-06-27 Thread Assaf Flatto
Marco Borsani wrote:
>
> Hi all
>
> Here it is what I’d like to develop.
>
> - In three different sites, I will install three Nagios server
>
> - Every server will control his local computers (about 150 clients 
> each Nagios server) like active hosts/services
>
> - Two of those Nagios server have to report information to the other 
> (central Nagios server), using NSCA/send_nsca , like passive 
> hosts/services
>
> I’d like to use mysql database, but how can I manage this configuration ?
>
> May I use only one mysql DB on central Nagios server , then extract 
> and distribute the configuration or what ?
>
> Regards
>
> Marco
>
I once build a solution similar to that (sans the mysql ) that used rsync .

I used to make the modification for a site on the central server and 
then send via rsync the files to the remote machines , this will also 
trigger another script on each remote machine that changed the 
service/host definition from passive to active (simpel sed or perl will 
to it) , do a check ( nagios -v) and reload ( if any errors found in the 
nagios -v stage it would mail the IT team and exit )



--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
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] NDOUtils problem

2011-06-24 Thread Assaf Flatto
Manish Kumar wrote:
> Hi Frnds,
>
> I am not able to configure NDOUtils-1.4b9 with Nagios Core-3.2.3 on 
> fedora 14. I am getting this error:-
> Support for the specified database server is either not yet supported, 
> or was not found on your system.
>
> I am using Mysql and its running properly. I am able to see the tables 
> populated
> -- 
> Thanks
> Manish Kumar
> http://in.linkedin.com/in/manishkumar85
When you run the configure script on for building NDO , what output and 
DB type does it detect ?

--
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security 
threats, fraudulent activity and more. Splunk takes this data and makes 
sense of it. Business sense. IT sense. Common sense.. 
http://p.sf.net/sfu/splunk-d2d-c1
___
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] Problem in starting nagios

2011-06-18 Thread Assaf Flatto
nag ios wrote:
> I have run the following command
>
> make install-webconf
>
> but its showing the following output
>
> make: *** No rule to make target `install-webconf'.  Stop.
>
> the above output does indicate any 
>
> On Sun, Jun 19, 2011 at 1:11 AM, Manish Kumar  <mailto:manikuma...@gmail.com>> wrote:
>
> Please check your web server configuration...
>
>
> On Sun, Jun 19, 2011 at 12:43 AM, Assaf Flatto  <mailto:nag...@flatto.net>> wrote:
>
> nag ios wrote:
> > Hi my name is krishna i have installed nagios successfully in my
> > system which is ubuntu one,but i'm unable to start nagios
> through
> > browser its giving the error message as
> >
> >
> >   Not Found
> >
> > The requested URL /nagios/ was not found on this server.
> >
> >
> 
> 
> > Apache/2.2.17 (Ubuntu) Server at localhost Port 80
> >
> > Please help me out.
> >
> The error you specify has nothing to do with nagios ,but with
> the apache
> configuration .
>
> Nagios may be running on your system , but the web server
> configuration
> has not gone well.
> read this :
> 
> http://nagios.sourceforge.net/docs/nagioscore/3/en/quickstart-ubuntu.html
>
> and make sure that you have done those steps.
>
>
are you installing from source or via apt-get?


--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
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] Problem in starting nagios

2011-06-18 Thread Assaf Flatto
nag ios wrote:
> Hi my name is krishna i have installed nagios successfully in my 
> system which is ubuntu one,but i'm unable to start nagios through 
> browser its giving the error message as
>
>
>   Not Found
>
> The requested URL /nagios/ was not found on this server.
>
> 
> Apache/2.2.17 (Ubuntu) Server at localhost Port 80
>
> Please help me out.
>
The error you specify has nothing to do with nagios ,but with the apache 
configuration .

Nagios may be running on your system , but the web server configuration 
has not gone well.
read this :
http://nagios.sourceforge.net/docs/nagioscore/3/en/quickstart-ubuntu.html

and make sure that you have done those steps.




--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios Issue of not detecting down/up status of server and delay of mails notifications

2011-06-17 Thread Assaf Flatto
Manish Kumar wrote:
>
> Hi Friends,
>
> I have implemented Nagios Core-3.2.3 on Fedora Core 14 and configured 
> it for monitoring of around 230 network devices for different services 
> like up/down status, uptime, ports link status, similarly configured 
> for monitoring around 30 windows servers for different services.
>
> The problem is that nagios is not able to send e-mail notification as 
> soon as any server/service/network device goes down. Some of the 
> e-mails are delayed around 12 hours and some are not triggered even, 
> for example if a server goes down for around a hour and is up again 
> after that, nagios is not able to detect it. I have setup the fedora 
> 14 to use its sendmail sever to relay the mails to our corporate smtp 
> sever. 
>
> Is this a valid issue with nagios or is there any way to scale it up. 
> How can a network/sever admin can believe on it if this works like this.
>
>
>
> -- 
> Thanks
> Manish Kumar
> http://in.linkedin.com/in/manishkumar85
> 
I can see three factors that may contribute to the problem :
check_interval , notification_interval , enable_notification ( those are 
on the nagios application ) .
beside that , are you seeing any mails stuck in the mailq of the 
sendmail relay ? are you able to sent any email from that machine at all ?
you are saying nagios is unable to detect the UP/DOWN status of the 
nodes/hosts , are there any firewalls along the way? is the routing 
table properly setup ? do you allow ICMP  replyies from the nodes ?


Assaf

--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
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] How to disable all service notifications for a specific hostgroup

2011-06-13 Thread Assaf Flatto
Manish Kumar wrote:
> Hello frnds,
>
> I have a specific requirement to disable all services notifications 
> from a particular hostgroup but the host notifications for that 
> hostgroup should be enabled. How this can be achieved by doing changes 
> in configuration files. I have tried from the front-end but it is 
> taking time to get disabled as i have a very large infrastructure to 
> manage and many hostgroups.
>
> -- 
> Thanks
> Manish Kumar
> http://in.linkedin.com/in/manishkumar85
When viewing the hostgroups you'll see two names , the alias and the 
actual name you gave the hostgroup , if you choose the actual name 
you'll get a list of commands for the group , in there you will have a 
command to disable notifications for all services , when you select hat 
you will have a check box to do the same for the hosts  , if you make 
sure that it is unchecked , you will disable notifications for the 
services but not for the hosts .

Assaf

--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
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] Services are dependent on the host they run on?

2011-05-26 Thread Assaf Flatto
Martin Hugo wrote:
> Hi Robi,
>
> I have never done it but I know you can make hosts/services children that 
> will not report if the parent is down.
>
> Hope this puts you on the right track.
>
> Marty
>
> -Original Message-
> From: Roberto Nunnari [mailto:roberto.nunn...@supsi.ch] 
> Sent: Thursday, May 26, 2011 12:47 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Services are dependent on the host they run on?
>
> Hi all.
>
> Some time ago, I've installed and configured nagios to monitor our IT 
> infrastructure.
>
> It works very well and we're happy with it.
>
> There's still one problem though:
> When a host goes down, nagios sends notifications not only for host 
> down, but also for all services running on that host. When a host goes 
> down, I would like nagios to only send notifications about the host 
> down, and not for all the services running on that host.
>
> How can I achive that?
> May it be a configuration error from my side? I thought that to nagios, 
> services would be dependent from the host running them..
>
> Any hint/advice/guidance is very welcome.
>
> Thank you and best regards.
>
> Robi
>   
check out service dependencies

http://nagios.sourceforge.net/docs/3_0/dependencies.html



--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
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] How to compare two nrpe status information results in Nagios server?

2011-05-26 Thread Assaf Flatto
Janne Leinonen wrote:
> I use NRPE to poll information from two Windows servers running NSclient++
>
> $USER1$/check_nrpe -t 300 -H $HOSTADDRESS$ -c CheckFile2 -a path 
> ...max-dir-depth=1 pattern=*.XT filter+written=lt:4d
>
> The command returns all files named *.XT newer than 4 days and these 
> file names can be seen in status information from the  hosts service  
> detail.
>
> Output is something like this :
>
> server 1 service status information:
> 0305_04192-11_2011-05-24_09-07-13.XT, 
> 0305_05035-11_2011-05-24_08-43-48.XT, 
> 03052_05163-11_2011-05-24_08-46-25.XT,
>
> server 2 service status information:
> 0305_04192-11_2011-05-24_09-07-13.XT, 
> 0305_05035-11_2011-05-24_08-43-48.XT, 
> 0305_05163-11_2011-05-24_08-46-25.XT, 
> 0305_05697-11_2011-05-24_08-48-40.XT, 0305_05701-11_2011-05-24_08-51-05.XT,
>
>
> How can I compare these results in centralized Nagios server and make an 
> email notification if for example the file names differ?
>
> Thank You, Janne Leinonen
>
>   

What you are asking is not a part of nagios , but you can write an 
external script that goes of over the status.dat and gets the data you 
need , it will not be an easy task as you'll need to account for time 
diff ,specific string match and  file position  .


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
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] Unable to get daemon to run at boot

2011-05-07 Thread Assaf Flatto
Matty Sarro wrote:
> Hey everyone,
> First let me start off that I found another post detailing my issue,
> but sadly its in French and I can't read it :(
> I'm trying to get nagios installed on debian squeeze.
> I have created the symlink from /etc/init.d/nagios to
> /etc/rcS.d/S99nagios. Upon booting, nothing happens. There's nothing
> in dmesg, there's nothing in /var/log/messages.
>
> Now, if I go to the nagios webpage it gives me the "Whoops!" error on
> every page. Upon manually running "/etc/init.d/nagios start" the
> service starts just fine, and all of the web pages begin appearing.
>
> I've doublechecked that all permissions are correct.
>
> I've also tried forcing the script with:
> update-init.d nagios defaults
>
> This spits out a ton of errors:
> insserv: warning: script 'S99nagios' missing LSB tags and overrides
> insserv: warning: script 'nagios' missing LSB tags and overrides
> insserv: warning: current start runlevel(s) (S) of script `nagios'
> overwrites defaults (2 3 4 5).
> insserv: warning: current stop runlevel(s) (empty) of script `nagios'
> overwrites defaults (0 1 6).
> insserv: There is a loop between service nagios and
> stop-bootlogd-single if started
> insserv:  loop involving service stop-bootlogd-single at depth 8
> insserv:  loop involving service nagios at depth 7
> insserv:  loop involving service mountnfs at depth 6
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: There is a loop between service nagios and
> stop-bootlogd-single if started
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and therefore
> on system facility `$all' which can not be true!
> insserv: Starting nagios depends on stop-bootlogd-single and th

Re: [Nagios-users] nagios 1.4.1 on centos 5.6 64bit

2011-05-05 Thread Assaf Flatto
Marco Borsani wrote:
>
> Hi all
>
> Are there any limitation regarding nagios 1.4 installed on a Centos 
> 5.6 64bit ?
>
> No problems during the installation, but when I start nagios a receive 
> this error:
>
> Starting network monitor: nagios
>
> /etc/init.d/nagios: line 101: 4015 Segmentation fault $NagiosBin -d 
> $NagiosCfg
>
> No lock file found in /usr/local/nagios/var/nagios.lock
>
> #> dmesg
>
> ……
>
> nagios[3629]: segfault at 362837d4 rip 00411365 rsp 
> 362837dc error 6
>
> I installed many servers with this version, never had this problem.
>
> Any idea ?
>
> Marco Borsani
>
> *Unix and Monitoring Sysadmin*
>
> *Technical Operations Dpt.*
>
> tel: +39 010 4310115
>
> fax: +39 02 30130311
>
> cell: +39 329 5953944
>
> ITnet Srl
>
> Società con socio unico
>
> Direzione e Coordinamento di WIND TELECOM S.p.A.
>

Nagios 1.4.1 ? that is almost prehistoric version , why are you using 
such an old version of nagios ?

try installing a more up-to-date version , that will be a first good step .

Assaf

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
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] How to run a remote script in Nagios

2011-05-03 Thread Assaf Flatto
Tõnis Trei wrote:
> Hello,
>
> Im quite new at Nagios and have run into a small problem.
>
> I need to trigger a script with a parameter on a remote machine and 
> based on the result trigger an alarm or not.
> But im at little loss on how to set it up.
>
> Script is located in /etc/init.d/script.sh on a remote machine and i 
> should run it as "/etc/init.d/script.sh X" where x is the parameter.
> Script returns me the result, eather OK or some text and in case of 
> not being ok, i want to send this text out with an email.
>
> So im wondering that should i specifie a command in command.cfg that 
> would run this script and then create a new service that would trigger 
> this command and mail the results?
>
>
> Thanks,
> Tõnis
The basic way is to do this over nrpe ,
you need to make sure that nrpe ios complied with the command-args 
option and then you can pass the parameter you want to the script  you 
want to trigger .
for more information on NRPE
http://nagios.sourceforge.net/docs/3_0/addons.html#nrpe

Assaf

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nagios with mysql

2011-04-21 Thread Assaf Flatto
You can find out about it when reading on NDO

http://exchange.nagios.org/directory/Addons/Database-Backends/NDOUtils/details

Marco Borsani wrote:
>
> Hi
>
> I am using Nagios since 2004 with all the configuration in the text files.
>
> Now, I’d like using mysql DB.
>
> I do not need a migration procedure, I just need to understand how to 
> configure a Nagios to start with mysql DB.
>
> Regards
>
> Marco Borsani
>
> *Unix and Monitoring Sysadmin*
>
> *Technical Operations Dpt.*
>
> tel: +39 010 4310115
>
> fax: +39 02 30130311
>
> cell: +39 329 5953944
>
> ITnet Srl
>
> Società con socio unico
>
> Direzione e Coordinamento di WIND TELECOM S.p.A.
>
> 
>
> --
> Benefiting from Server Virtualization: Beyond Initial Workload 
> Consolidation -- Increasing the use of server virtualization is a top
> priority.Virtualization can reduce costs, simplify management, and improve 
> application availability and disaster protection. Learn more about boosting 
> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
> 
>
> ___
> 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


--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios from master/slave to chained configuration

2011-04-14 Thread Assaf Flatto
Let me get this right , you want the slave to report to a master , but 
that master is a "pass-through" slave to another server which is the 
final master ?

Why not just send to the final master and the other server as an easier 
way ?

You can add the send line in the send_nsca script to submit the data to 
another server and that way you get the data on both servers , and 
adding the other slaves to the final server is not that complicated .



Guy wrote:
> Hi,
>
> I'm new to Nagios, but have been asked to add another Nagios server to
> our current configuration. Our current setup has a master Nagios
> server (master-nagios1) and a slave (slave-nagios1) that monitors a
> different part of the network. There are also 2 other standalone
> master servers (nagios-master2 and 3) monitoring their own networks.
>
> I've been asked to add another overview Nagios. So all it's checks set
> to passive and the 3 masters replicate to the overview Nagios server.
> Connecting the 2 standalone masters to the overview Nagios seems
> simple enough as a normal master/slave config, but I'm not certain
> whether the master/slave setup can be chained with the overview
> Nagios.
>
> My googlefu hasn't given me any answers but I'm assuming that if it's
> possible, I should set up master-nagios1 with ocdp/nsca/send-nsca so
> it's got the configuration of a master and a slave. So slave-nagios1
> replicates to master-nagios1 which in turn replicates to the overview
> Nagios.
>
> Is anyone aware of obvious problems with the idea or know of any
> documentation covering this sort of configuration? The things I did
> find were all simple master/slave set ups.
>
> Thanks
> Guy
>
>   


--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
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] Remote hosts

2011-04-13 Thread Assaf Flatto
Paul Singh wrote:
> Hi. I'm running nagios core 3.23.
>  
> Can you advise how to set up commands and services that query things 
> on remote hosts such as disk space or pagefile usage like we do for 
> localhost?
> Is there a sample config available somewhere so that I can get a rough 
> idea?
>  
> Trying to use this on Nagwin.
>  
> Thanks, Paul.
>  
>
>  
>
>  
>
>  
>
>  
>
>  
>
>  
>
>  
>
>  
>
>  
>
>  
> Bamford Ltd.
> Registered Office: 11A West Halkin Street London, England. SW1X 8JL
> Registered No. 4950734 England & Wales
>
> The contents of this Email communication are confidential to the addressee.
> If you are not the intended recipient you may not disclose or distribute this 
> communication in any form but should immediately contact the Sender.
> The information, images, documents and views expressed in this Email are 
> personal to the Sender and do not expressly or implicitly represent official 
> positions and policies of the Bamford group of companies and no authority 
> exists on behalf of Bamford to make any agreements, representations or other 
> binding commitment by means of Email.
>
> Certified 100% virus free by Postini
>
> Please consider the environment before printing this email.
>
>
>   

 have a read on this

http://exchange.nagios.org/directory/Addons/Monitoring-Agents/NRPE-%252D-Nagios-Remote-Plugin-Executor/details


--
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
___
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] Service Notification

2011-04-12 Thread Assaf Flatto
Aravind M D wrote:
>
> Hi All,
>
> When the host is down whether the service notification will be send 
> out for all the services.
>
> Rgds,
>
> Aravind M D
>
> 
Yes , the way to circumvent this is to implement dependencies

http://nagios.sourceforge.net/docs/3_0/dependencies.html

Assaf



--
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
___
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] Service failover dependency

2011-04-07 Thread Assaf Flatto
Andrey Mitroshin wrote:
> Hello,
>   
>  
> I'm about to implement simple failover scenario with nagios. It consists of
> host A, host B and nagios host. When host A is down nagios executes
> event handler which performs dynamic dns update on some hostname to
> point it to host B. But when host B is down, nagios should not execute
> event handler as there is nothing to switch to. How can I configure 
> nagios not to execute event hanlder when some service check or host
> check has failed?
> Thanks in advance.
> --
>  mit.
>
>   
When you configure the service , you define event handlers , you can 
create a service definition for each host and service , so you can 
exclude any host or service from running the event handler .

example :
define service {
  hostgroups WEB
  host_name !web1 , !web2
  ...
  eventhandler   change_dns
}


this will cause the service and event handler to work on all hosts in 
the WEB hostgroup excluding the web1 and web2 servers.

hope this helps .

Assaf

--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nagios -error

2011-03-31 Thread Assaf Flatto
geetha ramani wrote:
> hi ,
>  i am getting the following error in nagios
>
> Whoops!
>
> Error: Could not read object configuration data!
>
> Here are some things you should check in order to resolve this error:
>
>1. Verify configuration options using the -v command-line option to
> check for errors.
>2. Check the Nagios log file for messages relating to startup or
> status data errors.
>
> Make sure you read the documentation on installing, configuring and
> running Nagios thoroughly before continuing. If all else fails, try
> sending a message to one of the mailing lists. More information can be
> found at http://www.nagios.org.
>
> i have checked everything and verified the configuration options.
> its works properly in the begining,once i stopped nagios and restarted
> again it creates this problem and am getting the above error.
>
>   
Make sure you do not have mulitiple  nagios processes running on the system.

can you also post the pre load check output or the log section with the 
errors ?

Assaf

--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Distributed Monitoring

2011-03-30 Thread Assaf Flatto
Gerheim wrote:
> Hello folks,
>
> I'm new on Nagios and nagios-users mailing list.
> I was looking for addons for Nagios but i didn't find one wich attends me.
> Let me explain my scenario. If someone could help me, i ll be grateful.
>
> I have one nagios central with centreon. I have another nagios 
> (worker), with centreon, wich i want to configure some hots and 
> hostgroups that i don't want to configure on nagios central. But i 
> want to monitor workers host and hotsgroups with nagios central.
>
> Summarizing, when i manipulate hosts on workers i don't want to put in 
> nagios central.
> I've found NCSA, DNX and Gearman but it don't help.
>
> Could anyone?
> Thanks!
>
> /Wallace Knopp de Menezes Gerheim/
Hello and Welcome.

For distributed nagios you want to start here
http://nagios.sourceforge.net/docs/3_0/distributed.html

The main point that you will need to know is that in order for the 
central nagios to see the hosts monitored by the worker , the definition 
of the remote monitored hosts need to also be on the central nagios ( 
defined as passive checks and hosts) .

Nagios currently has no way of "detecting "the "child" hosts of the 
worker and adding them to it's configuration , there for they have to be 
defined on both servers ( with minor changes : active/passive) .

Assaf

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
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] Service check did not exit properly

2011-03-29 Thread Assaf Flatto
JS wrote:
> On 29.3.2011 13:01, Assaf Flatto wrote:
>   
>> JS wrote:
>> 
>>> When I run a certain service check on my server via the shell it works
>>> fine.
>>>
>>> However after adding it to Nagios, using exactly the same parameters,
>>> it failes and the message "Service check did not exit properly" appears
>>> in my Nagios interface.
>>>
>>> How can I debug this? I've enabled debug logging in nagios.cfg but
>>> the log file still tell me very little.
>>>
>>>   
>> can you provide more detail about your configuration ? and the script
>> exit codes ?
>> 
>
> Sure Assaf.
> Here is my command configuration:
>
> define command{
>  command_namecheck_email_delivery_static
>  command_line/usr/local/nagios/libexec/check_email_delivery
> -H imap.testdomain.local --mailfrom nagios-test@testdomain.local
> --mailto mail-delivery-test@testdomain.local --username
> testdomainmbox.maildelivery --password S0m3p4ss0123 -w 10 -c 90
> --smtp-server 192.168.1.59 --imapssl --libexec /usr/local/nagios/libexec
> }
>
> And when I run this in the shell the output is:
>
> root@nagios:~# /usr/local/nagios/libexec/check_email_delivery -H
> imap.testdomain.local --mailfrom nagios-test@testdomain.local --mailto
> mail-delivery-test@testdomain.local --username
> testdomainmbox.maildelivery --password S0m3p4ss0123 -w 10 -c 90
> --smtp-server 192.168.1.59 --imapssl --libexec /usr/local/nagios/libexec
> EMAIL DELIVERY OK - 6 seconds, 6 delay | delay=6s;10;90;0 elapsed=6s
> root@nagios:~#
>
> And yes, I need 8 backslashes -- i'm using LikewiseOpen on my IMAP
> server so I can log in with Active Directory users. These eight slashes
> are translated to a single one, testdomain\user. Silly but works.
>
> I am using check_email_delivery version 0.6.9, the latest ver. from
> http://buhacoff.net/software/check_email_delivery/
>
> Re,
> JS
>
>   
First thing - try running the script as the nagios user , this might 
give you more information about why it fails .

if memory serves me right , this script is calling some system calls 
that run in a root privileges  space so you may need to sudo the script 
to make it run properly.

Assaf


--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
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] Service check did not exit properly

2011-03-29 Thread Assaf Flatto
JS wrote:
> Hi.
>
> When I run a certain service check on my server via the shell it works
> fine.
>
> However after adding it to Nagios, using exactly the same parameters,
> it failes and the message "Service check did not exit properly" appears
> in my Nagios interface.
>
> How can I debug this? I've enabled debug logging in nagios.cfg but
> the log file still tell me very little.
>
> Re,
> JS
>
>   
can you provide more detail about your configuration ? and the script 
exit codes ?

Assaf


--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios XI question

2011-03-21 Thread Assaf Flatto
Joe Martin wrote:
> Just exploring using Nagios for monitoring network, Windows, unix, 
> Linux and applications in various ways.  We're thinking Nagios XI 
> looks like a good fit with one exception - the documentation states 
> that Nagios XI is only supported on RHEL, CentOS and Fedora - we're a 
> SLES shop.  Anyone out there runing XI on SLES (specifically SLES 11)?
>
> Thanks,
>
> Joe
As Nagios XI is the commercial application and this user list is for the 
free version , i doubt you'll get the info you ask for .

That being said - nagios the free product runs well on SLES , but assume 
nothing , as again as XI is the commercial app - it could be that the 
license and support only work as described in the web and info given.

Assaf

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
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] log file not being rotated

2011-03-14 Thread Assaf Flatto
Jaime Ventura wrote:
> I have a nagios installation not rotating its log file a long time.
> I have been updating nagios regularly since version 2 and i thing it
> stopped rotating after an update (but no sure).
> Now using nagios 3.2.3 and the log file has now grown to  3.8 GB.
>
> The log_rotation_method is set to "d" and should be rotated daily.
>
> Is there any way to manually rotate it? Can I somehow debug why this is
> happening?
>
> Thanks
> Jaime
>   
have you checked the permissions on the var/rw directory ?
is it owned by nagios ?


Assaf

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
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] how to send passive checks with send_nsca

2011-03-14 Thread Assaf Flatto
Marco Borsani wrote:
>
> Hi all
>
> I am reading many and many information regarding NSCA and send_nsca.
>
> I have configured a server with nsca demon running and a client within 
> send_nsca.
>
> 1)
>
> If I use this simple command, everything will go in the right way:
>
> /opt/nagios/bin/send_nsca -H SERVER_NAME -d ';' -c 
> /opt/nagios/etc/send_nsca.cfg < /opt/nagios/etc/objects/passive.txt
>
> The file “passive.txt” is something like this:
>
> host_cliente;CurrentLoad;0;TEST
>
> In the server I have configured a passive_check that run the 
> “check_dummy” command.
>
> 2)
>
> I tried also a script that writes info into Nagios.cmd file like this :
>
> #!/bin/sh
>
> CLOCK=$(date +%s)
>
> HOST=$1
>
> STATUS=$2
>
> OUTPUT=$3
>
> SVC=$4
>
> echo "[$CLOCK] 
> PROCESS_SERVICE_CHECK_RESULT;$HOST;$SVC;$STATUS;$OUTPUT" >> 
> /opt/nagios/var/rw/nagios.cmd
>
> I see information in the client syslog and nagios.log file , but 
> nothing arrives to the Nagios server … probably because nothing send 
> them to it ! J
>
> 3)
>
> Moreover, how can I use the output from a REAL command that is running 
> on my client (check_tcp , check_http, etc.) ?
>
> Perhaps I have to implement something more in the server (specific 
> service, …) and/or in the client
>
> Please, any idea ?
>
> regards
>
> Marco Borsani
>
> *Unix and Monitoring Sysadmin*
>
> *Technical Operations Dpt.*
>
> tel: +39 010 4310115
>
> fax: +39 02 30130311
>
> cell: +39 329 5953944
>
> ITnet Srl
>
> Società con socio unico
>
> Direzione e Coordinamento di WIND TELECOM S.p.A.
>
have you enabled the passive checks in the nagios.cfg ?
by default is it set to 0 - which is disabled
accept_passive_service_checks=0


also have you enabled external commands :
check_external_commands=1

also to help to debug it more you may want to the options:
log_external_commands=1
log_passive_checks=0

plus - have the nagios.debug file enabled - and make sure to add the 
external commands to the output - that might give you more information.

Assaf

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Distributed Nagios

2011-03-07 Thread Assaf Flatto
Marco Borsani wrote:
>
> Hi all.
>
> To separate three sites, I am thinking to implement a distributed 
> Nagios, but I never do it…and have more than 1500 services to check.
>
> I’d like to know which solutions do you use (and why) :
>
> DNX ?
>
> MNTOS ?
>
> NSCA ?
>
> Regards
>
> Marco Borsani
>
> *Unix and Monitoring Sysadmin*
>
> *Technical Operations Dpt.*
>
> tel: +39 010 4310115
>
> fax: +39 02 30130311
>
> cell: +39 329 5953944
>
> ITnet Srl
>
> Società con socio unico
>
> Direzione e Coordinamento di WIND TELECOM S.p.A.
>
Hello

I have used two of this option :DNX and NSCA , and in the end , due to 
network restrictions had to use the NSCA to monitor the remote sites.
DNX is a good option if all your workers and target hosts are on the 
same LAN - as the DNX module does not have a "host affinity" logic which 
means any host will check any other host , and if it can't reach it - 
nagios will get the critical error alert for it .
NSCA gives you the ability to monitor a remote site "locally" with a 
nagios on the site LAN and report it back to the main central server 
with a more fine grained testing , but a bit more overhead in management.

About the DNX issue - you may want to check the mod_gearman 
http://labs.consol.de/lang/de/nagios/mod-gearman/
as it is better designed to a distributed nagios deployment .

Assaf

--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
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] Strange timeout discrepancy

2011-03-04 Thread Assaf Flatto
Boyer, Timothy A. wrote:
>
> I’m getting the usual nrpe timeout on a slow network here. Error 
> messages says
>
> CHECK_NRPE: Socket timeout after 30 seconds.
>
> And normally know how to fix it. The really strange thing is that the 
> client has timeouts set to 60 in nrpe.cfg:
>
> command_timeout=60
>
> and the nrpe call itself is being done with a timeout of 60:
>
> command_line $USER1$/check_nrpe -H cabot -t 60 -c check_local_info
>
> with the check_local_info being my own shell script.
>
> So is there another place that the ‘30’ timeout could possibly be 
> coming from?
>
> Thanks much…
>
On "cabot" check the time out definition in the nrpe.cfg of the daemon , 
that may be the reason for the 30 sec time out.

Change it to the time you want and restart the NRPE .

Assaf

--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Multiple users acces to some check

2011-03-04 Thread Assaf Flatto
Gian Paolo Buono wrote:
> Hi,
>
> I have many users accessing nagios to web interface.
>
> The  autentication of users is on  Apache with to a server ldap,  all 
> users see all the controls.
>
> There is a method to allow only some users to access to some check?
>
> Bye
http://nagios.sourceforge.net/docs/3_0/cgiauth.html

read that , it should explain what you need

Assaf

--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
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


  1   2   3   4   5   6   >