Re: [Nagios-users] Question regarding Availability Report

2013-02-04 Thread Javier Garces Asensio
¿Perhaps a timeout in the web server because the archive logs are too long
and the avail.cgi script needs a lot of time to process them?
Good luck

-Mensaje original-
De: Götz Reinicke - IT Koordinator [mailto:goetz.reini...@filmakademie.de] 
Enviado el: lunes, 04 de febrero de 2013 17:20
Para: nagios-users@lists.sourceforge.net
Asunto: [Nagios-users] Question regarding Availability Report

Hi,

we run Nagios for a some years now and only from time to time I had to
generate Host Availability Reports.

Now that I updated to the latest 3.4.4 (we hat 3.4.1 installed) I wanted to
generate some reports for host availability in 2012.

So I select the host, set "Report Period:" to "Last Year" and leave the
other options untouched.

Hitting the create report button fires up the avail.cgi on the nagios system
ad it is doing some work with up to 99% of CPU.

But after some time, the command is ended the webpage is still empty. No
report. No error or anything else.

So my question: What might be wrong? What might I check/adjust?

Thanks for any hint and suggestion. Regards . Götz
--
Götz Reinicke
IT-Koordinator

Tel. +49 7141 969 82 420
Fax  +49 7141 969 55 420
E-Mail goetz.reini...@filmakademie.de

Filmakademie Baden-Württemberg GmbH
Akademiehof 10
71638 Ludwigsburg
www.filmakademie.de

Eintragung Amtsgericht Stuttgart HRB 205016

Vorsitzender des Aufsichtsrats: Jürgen Walter MdL Staatssekretär im
Ministerium für Wissenschaft, Forschung und Kunst Baden-Württemberg

Geschäftsführer: Prof. Thomas Schadt



--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
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] ADAPTIVE CHECK CHANGE_SVC_CHECK_COMMAND

2013-01-09 Thread Javier Garces Asensio
Hello everybody


I would like to use the external command change_svc_check_command to change
dinamically the warning and critical values of the checks. 
However it doesn´t work
I think the cause that it doesn't work is the modification introduced in the
version 3.0.6 (Disabled adaptive check and eventhandler commands for
security reasons ) as you can see in the URL:

http://www.nagios.org/projects/nagiosco ... ry/core-3x
 

I’m using the 3.2.1 version. 
In this version and also in the latest version 3.4.3, I can see the next
source code in the base/commands.c file

/* SECURITY PATCH - disable these for the time being */
switch(cmd) {
case CMD_CHANGE_GLOBAL_HOST_EVENT_HANDLER:
case CMD_CHANGE_GLOBAL_SVC_EVENT_HANDLER:
case CMD_CHANGE_HOST_EVENT_HANDLER:
case CMD_CHANGE_SVC_EVENT_HANDLER:
case CMD_CHANGE_HOST_CHECK_COMMAND:
case CMD_CHANGE_SVC_CHECK_COMMAND:
return ERROR;
}

I guess if I delete the above code, the external command
change_svc_check_command will work

Is not recommended to enable this external command?
Why was it disabled in the version 3.0.6? This is not resolved in the latest
version?
I haven´t found any official documentation about this

Thanks

 

--
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] High check latency in a machine with low load

2011-10-11 Thread Javier Vela Diago
No, I don't stop mysql when I launch the optimize and repair. Should I?

In order to  launch mysqlcheck --repair and mysqlcheck --optimize, the 
database has to be started, no? I thougth that optimize and repair lock 
the tables by itself

Checks per second? I don't now for sure but 4000 services with 5 min of 
interval  gives us 14 checks/seconds. Moreover i know that i have a lots 
of times more than 80 concurrents checks at the same time (In the past i 
got some errors when reached the old limit of max_concurrent_checks=80)

Javi
-- 
Javier Vela Diago
S2 GRUPO
Ramiro de Maeztu, 7 bajo. 46022 Valencia
Tel: 963.110.300 Fax: 963.106.086
e-mail : jvela arroba s2grupo punto es
http://www.s2grupo.es



De: Mike Guthrie 
Para:   Nagios Users List 
Fecha:  11/10/2011 17:17
Asunto: Re: [Nagios-users] High check latency in a machine with low load



Just to double check, are you locking your tables or stopping mysql when 
you do your repair runs?  You'll actually risk corrupting your DB tables 
which will tank your CPU if the tables are being written to while a 
repair run is occurring. 

As far as the checks go, how many checks per second is your machine 
running (on average)? 


Javier Vela Diago wrote:
> Thank you for the advise, but due some problems in the past, I already 
> have the mysql database in another machine with 2 cpus and 2GB of ram.
>
> Also, because of the problems I suffered, I have a script that every 
> nigth optimizes and repairs the ndoutils database. My goal now is to 
> change the engine from MyISAM to INNODB and apply some tunnig to the 
> database. The engine change is because when  problems start, with 
> MyISAM I have to truncate the database because optimize hangs out, but 
> with InnoDB, in the tests I've made, works fine.
>
> Javi
>
>
>
> De:Mike Guthrie 
> Para:Nagios Users List 
> Fecha:11/10/2011 16:39
> Asunto:Re: [Nagios-users] High check latency in a machine with 
> low load
> 
>
>
>
> If ndoutils starts to create a heavy burden on the system you can also
> offload ndoutils/mysql to a second machine.  We wrote the below document
> for Nagios XI, but the doc has the info you'd need to make it work for
> Nagios Core as well.
>
> 
http://library.nagios.com/library/products/nagiosxi/documentation/462-offloading-mysql-to-remote-server

>
>
>
> Javier Vela Diago wrote:
> > I have a lot of custom checks, written mostly in perl, bash and some
> > in python. And some take a lo of time.
> >
> > Nevermind, I think I found the solution, or at least one part. I
> > configured to 1 the enable_large_instalallation_tweaks. This options,
> > 6 months ago, almost crashed my system, so i discarded it. Now, with
> > bigger problems, is the last thing that I wanted to test, but finally
> > this afternoon I tested  it.
> >
> > When I restarted Nagios, the load has started to grow until 6-8,  and
> > the latency problems dissapeared. I was sceptical about the utility of
> > this options but when the load changes form 2,5 to 6, it means that
> > the machine is doing a lot of work that before wasn't doing.
> >
> > Now the problem is that NDOUtils is causing  some latency because of
> > MYSQL, but well, at least I know what to optimize. Some tips will be
> > apreciated :)
> >
> > Thank you and sorry for your time.
> >
> >
> > De:Daniel Wittenberg 
> > Para:Nagios Users List 
> > Fecha:11/10/2011 16:02
> > Asunto:Re: [Nagios-users] High check latency in a machine with
> > low load
> > 
--------
> >
> >
> >
> > I think you have the enable_high_latency option enabled J  j/k
> > 
> > Do you have any particular checks that are taking a long time?  i.e.
> > can you watch top and see checks taking a while?
> > 
> > Dan
> > 
> > 
> > *From:* Javier Vela Diago [mailto:jv...@s2grupo.es] *
> > Sent:* Tuesday, October 11, 2011 6:23 AM*
> > To:* nagios-users@lists.sourceforge.net*
> > Subject:* [Nagios-users] High check latency in a machine with low load
> > 
> > Hi,
> >
> > I have a Nagios 3.2.3 deployment with 1000+ Hosts and 3000+ services.
> > This Nagios runs together with NDO and PNP (in bulk mode) in a server
> > with 4GB of Ram and 4 cpus.
> >
> > One day I realized that the check delay in the performance CGI was
> > very high (300-400 seconds). It was very strange so I took the tunning
> > guide form nagios
> > (_http://nagios.sourceforge.net/docs/3_0/tuning.html_)

Re: [Nagios-users] High check latency in a machine with low load

2011-10-11 Thread Javier Vela Diago
Thank you for the advise, but due some problems in the past, I already 
have the mysql database in another machine with 2 cpus and 2GB of ram. 

Also, because of the problems I suffered, I have a script that every nigth 
optimizes and repairs the ndoutils database. My goal now is to change the 
engine from MyISAM to INNODB and apply some tunnig to the database. The 
engine change is because when  problems start, with MyISAM I have to 
truncate the database because optimize hangs out, but with InnoDB, in the 
tests I've made, works fine.

Javi



De: Mike Guthrie 
Para:   Nagios Users List 
Fecha:  11/10/2011 16:39
Asunto: Re: [Nagios-users] High check latency in a machine with low load



If ndoutils starts to create a heavy burden on the system you can also 
offload ndoutils/mysql to a second machine.  We wrote the below document 
for Nagios XI, but the doc has the info you'd need to make it work for 
Nagios Core as well. 

http://library.nagios.com/library/products/nagiosxi/documentation/462-offloading-mysql-to-remote-server




Javier Vela Diago wrote:
> I have a lot of custom checks, written mostly in perl, bash and some 
> in python. And some take a lo of time.
>
> Nevermind, I think I found the solution, or at least one part. I 
> configured to 1 the enable_large_instalallation_tweaks. This options, 
> 6 months ago, almost crashed my system, so i discarded it. Now, with 
> bigger problems, is the last thing that I wanted to test, but finally 
> this afternoon I tested  it.
>
> When I restarted Nagios, the load has started to grow until 6-8,  and 
> the latency problems dissapeared. I was sceptical about the utility of 
> this options but when the load changes form 2,5 to 6, it means that 
> the machine is doing a lot of work that before wasn't doing.
>
> Now the problem is that NDOUtils is causing  some latency because of 
> MYSQL, but well, at least I know what to optimize. Some tips will be 
> apreciated :)
>
> Thank you and sorry for your time.
>
>
> De:Daniel Wittenberg 
> Para:Nagios Users List 
> Fecha:11/10/2011 16:02
> Asunto:Re: [Nagios-users] High check latency in a machine with 
> low load
> 
>
>
>
> I think you have the enable_high_latency option enabled J  j/k
> 
> Do you have any particular checks that are taking a long time?  i.e. 
> can you watch top and see checks taking a while?
> 
> Dan
> 
> 
> *From:* Javier Vela Diago [mailto:jv...@s2grupo.es] *
> Sent:* Tuesday, October 11, 2011 6:23 AM*
> To:* nagios-users@lists.sourceforge.net*
> Subject:* [Nagios-users] High check latency in a machine with low load
> 
> Hi,
>
> I have a Nagios 3.2.3 deployment with 1000+ Hosts and 3000+ services. 
> This Nagios runs together with NDO and PNP (in bulk mode) in a server 
> with 4GB of Ram and 4 cpus.
>
> One day I realized that the check delay in the performance CGI was 
> very high (300-400 seconds). It was very strange so I took the tunning 
> guide form nagios 
> (_http://nagios.sourceforge.net/docs/3_0/tuning.html_) and applied all 
> the points I could. In particular I adjusted the max_concurrent_checks 
> to zero (no limit):
>
> max_concurrent_checks=0
>
> The reaper event:
>
> service_reaper_frequency=5
> max_check_result_reaper_time=15
>
> and checked that the host checks where not forced. In addition I 
> configured 15 seconds of host check cache.
>
> cached_host_check_horizon=15
>
> But the problem remains. And the load of the server is not very high. 
> Load of 2,5, 2 GB of free memory and an average utilization of disc of 
> 7%. I disabled NDO and PNP but it was useless. After the first round 
> of checks, the delay returns, while the load of the server doesn't grow.
>
> I have searched in google but all the problems area because of the 
> load in the server, but here this is not the main problem. So my 
> question is ¿what can I do now?¿There is some variable that shows me 
> where to look? I'm a bit lost right now and I don't know how to find 
> the problem.
>
> ¿Or maybe the only way is to configure a master-slave nagios in order 
> to maximize the server utilization?
>
> In addition, I have pretty big timeouts (60 seconds) because of the 
> high latency on the network. All your help is appreciated. Thank you 
> in advance.
> *
> nagiostats*
> 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/argos/aplicaciones/nagios/var/status.dat
> Status File Age:

Re: [Nagios-users] High check latency in a machine with low load

2011-10-11 Thread Javier Vela Diago
I have a lot of custom checks, written mostly in perl, bash and some in 
python. And some take a lo of time.

Nevermind, I think I found the solution, or at least one part. I 
configured to 1 the enable_large_instalallation_tweaks. This options, 6 
months ago, almost crashed my system, so i discarded it. Now, with bigger 
problems, is the last thing that I wanted to test, but finally this 
afternoon I tested  it.

When I restarted Nagios, the load has started to grow until 6-8,  and the 
latency problems dissapeared. I was sceptical about the utility of this 
options but when the load changes form 2,5 to 6, it means that the machine 
is doing a lot of work that before wasn't doing.

Now the problem is that NDOUtils is causing  some latency because of 
MYSQL, but well, at least I know what to optimize. Some tips will be 
apreciated :)

Thank you and sorry for your time.


De: Daniel Wittenberg 
Para:   Nagios Users List 
Fecha:  11/10/2011 16:02
Asunto: Re: [Nagios-users] High check latency in a machine with low load



I think you have the enable_high_latency option enabled J  j/k
 
Do you have any particular checks that are taking a long time?  i.e. can 
you watch top and see checks taking a while?
 
Dan
 
 
From: Javier Vela Diago [mailto:jv...@s2grupo.es] 
Sent: Tuesday, October 11, 2011 6:23 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] High check latency in a machine with low load
 
Hi, 

I have a Nagios 3.2.3 deployment with 1000+ Hosts and 3000+ services. This 
Nagios runs together with NDO and PNP (in bulk mode) in a server with 4GB 
of Ram and 4 cpus. 

One day I realized that the check delay in the performance CGI was very 
high (300-400 seconds). It was very strange so I took the tunning guide 
form nagios (http://nagios.sourceforge.net/docs/3_0/tuning.html) and 
applied all the points I could. In particular I adjusted the 
max_concurrent_checks to zero (no limit): 

max_concurrent_checks=0 

The reaper event: 

service_reaper_frequency=5 
max_check_result_reaper_time=15 

and checked that the host checks where not forced. In addition I 
configured 15 seconds of host check cache. 

cached_host_check_horizon=15 

But the problem remains. And the load of the server is not very high. Load 
of 2,5, 2 GB of free memory and an average utilization of disc of 7%. I 
disabled NDO and PNP but it was useless. After the first round of checks, 
the delay returns, while the load of the server doesn't grow. 

I have searched in google but all the problems area because of the load in 
the server, but here this is not the main problem. So my question is ¿what 
can I do now?¿There is some variable that shows me where to look? I'm a 
bit lost right now and I don't know how to find the problem. 

¿Or maybe the only way is to configure a master-slave nagios in order to 
maximize the server utilization? 

In addition, I have pretty big timeouts (60 seconds) because of the high 
latency on the network. All your help is appreciated. Thank you in 
advance. 

nagiostats 
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/argos/aplicaciones/nagios/var/status.dat 
Status File Age:0d 0h 0m 11s 
Status File Version:3.2.3 

Program Running Time:   0d 20h 56m 7s 
Nagios PID: 21834 
Used/High/Total Command Buffers:0 / 0 / 4096 

Total Services: 4032 
Services Checked:   4032 
Services Scheduled: 4030 
Services Actively Checked:  4032 
Services Passively Checked: 0 
Total Service State Change: 0.000 / 37.300 / 0.163 % 
Active Service Latency: 32.876 / 442.138 / 415.816 sec 
Active Service Execution Time:  0.051 / 60.097 / 1.545 sec 
Active Service State Change:0.000 / 37.300 / 0.163 % 
Active Services Last 1/5/15/60 min: 237 / 1530 / 4020 / 4020 
Passive Service Latency:0.000 / 0.000 / 0.000 sec 
Passive Service State Change:   0.000 / 0.000 / 0.000 % 
Passive Services Last 1/5/15/60 min:0 / 0 / 0 / 0 
Services Ok/Warn/Unk/Crit:  3766 / 38 / 44 / 184 
Services Flapping:  0 
Services In Downtime:   0 

Total Hosts:931 
Hosts Checked:  931 
Hosts Scheduled:931 
Hosts Actively Checked: 931 
Host Passively Checked: 0 
Total Host State Change:0.000 / 12.370 / 0.077 % 
Active Host Latency:0.000 / 441.308 / 416.063 sec 
Active Host Execution Time: 0.062 / 10.113 / 0.395 sec 
Active Host State Change:   0.000 / 12.370 / 0.077 % 
Active Hosts Last 1/5/15/60 

[Nagios-users] High check latency in a machine with low load

2011-10-11 Thread Javier Vela Diago
g: comment_file variable ignored.  Comments are now stored in the 
status and retention files.
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.080036 sec
Resolve:  0.010660 sec  *
Recomb Contactgroups: 0.002666 sec  *
Recomb Hostgroups:0.004086 sec  *
Dup Services: 0.034632 sec  *
Recomb Servicegroups: 0.001277 sec  *
Duplicate:0.010939 sec  *
Inherit:  0.005594 sec  *
Recomb Contacts:  0.01 sec  *
Sort: 0.00 sec  *
Register: 0.074413 sec
Free: 0.008730 sec
  
TOTAL:0.234920 sec  * = 0.071741 sec (30.54%) estimated 
savings


RETENTION DATA TIMES
--
Read and Process: 0.495480 sec
  
TOTAL:0.495480 sec


Timing information on configuration verification is listed below.

CONFIG VERIFICATION TIMES  (* = Potential for speedup with -x 
option)
--
Object Relationships: 0.060039 sec
Circular Paths:   0.026557 sec  *
Misc: 0.005999 sec
  
TOTAL:0.092595 sec  * = 0.026557 sec (28.7%) estimated 
savings


EVENT SCHEDULING TIMES
-
Get service info:0.014509 sec
Get host info info:  0.002853 sec
Get service params:  0.78 sec
Schedule service times:  0.039947 sec
Schedule service events: 0.034656 sec
Get host params: 0.01 sec
Schedule host times: 0.007519 sec
Schedule host events:0.029519 sec
 
TOTAL:   0.129082 sec


Projected scheduling information for host and service checks
is listed below.  This information assumes that you are going
to start running Nagios with your current config files.

HOST SCHEDULING INFORMATION
---
Total hosts: 931
Total scheduled hosts:   931
Host inter-check delay method:   SMART
Average host check interval: 259.01 sec
Host inter-check delay:  0.28 sec
Max host check spread:   30 min
First scheduled check:   Tue Oct 11 13:14:08 2011
Last scheduled check:Tue Oct 11 13:18:26 2011


SERVICE SCHEDULING INFORMATION
---
Total services: 4032
Total scheduled services:   4030
Service inter-check delay method:   SMART
Average service check interval: 299.55 sec
Inter-check delay:  0.07 sec
Interleave factor method:   SMART
Average services per host:  4.33
Service interleave factor:  5
Max service check spread:   30 min
First scheduled check:  Tue Oct 11 13:15:07 2011
Last scheduled check:   Tue Oct 11 13:20:07 2011


CHECK PROCESSING INFORMATION

Check result reaper interval:   5 sec
Max concurrent service checks:  Unlimited


PERFORMANCE SUGGESTIONS
---
I have no suggestions - things look okay.
-- 
Javier Vela Diago
S2 GRUPO
Ramiro de Maeztu, 7 bajo. 46022 Valencia
Tel: 963.110.300 Fax: 963.106.086
e-mail : jvela arroba s2grupo punto es
http://www.s2grupo.es--
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-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] CPU performance with Nagios 3.2.3

2011-07-20 Thread Javier González
Thanks

2011/7/20 Yueh-Hung Liu 

> maybe you can check out the cron table to see what are running
> periodically.
> but i think the load is no problem, unless the value remains very high
> for a long time.
>
>
> 2011/7/20 Javier González :
> > Thank you Yueh-Hung Liu,
> > Is it possible to discover what´s the problem with the Load, which
> processes
> > take all the CPU time periodically ???
> > Could i do something to improve the CPU usage ?
> >
> > 2011/7/19 Yueh-Hung Liu 
> >>
> >> load is not the same as cpu usage, load is the number of queued
> >> processes in a period.
> >> maybe there are processes waiting for some events, such as I/O.
> >>
> >>
> >> 2011/7/19 Javier González :
> >> > Hello,
> >> > I have seen a lot peaks on the CPU LOAD of my nagios machine (See
> >> > pnp4nagios
> >> > graphs on pdf document attached).
> >> > I don´t know which process/processes are the ones that use too much
> CPU
> >> > on
> >> > that periods because the PC is only used for Nagios (And plugins used
> >> > with
> >> > it) and all the plugins defined have a check_period of 1 minute and
> >> > there is
> >> > a lot of periods where the load is near to 0 (so what happens every 2
> >> > hours
> >> > more or less that use so much CPU???)
> >> > I have tried to find the process that causes this behavior with the
> >> > "top"
> >> > command but %Cpu idle is always (also on the peaks of the CPU LOAD)
> more
> >> > han
> >> > 70% and no process uses more than 4% of CPU (See three examples of TOP
> >> > command where %CPU idle is always high but Load vary a lot on each
> case)
> >> > **
> >> > top - 11:52:27 up  9:51,  1 user,  load average: 0.09, 0.56, 0.62
> >> > Tasks: 102 total,   1 running, 101 sleeping,   0 stopped,   0 zombie
> >> > Cpu(s):  7.9%us,  1.5%sy,  0.0%ni, 88.4%id,  1.0%wa,  0.3%hi,  0.8%si,
> >> >  0.0%st
> >> > Mem:   2050176k total,   675704k used,  1374472k free,   132628k
> buffers
> >> > Swap:  2096472k total,0k used,  2096472k free,   84k
> cached
> >> > top - 13:30:05 up 11:29,  2 users,  load average: 1.53, 1.27, 0.83
> >> > Tasks: 110 total,   3 running, 107 sleeping,   0 stopped,   0 zombie
> >> > Cpu(s):  9.2%us,  1.5%sy,  0.0%ni, 88.6%id,  0.0%wa,  0.0%hi,  0.7%si,
> >> >  0.0%st
> >> > Mem:   2050176k total,   708540k used,  1341636k free,   139020k
> buffers
> >> > Swap:  2096472k total,0k used,  2096472k free,   334668k
> cached
> >> > top - 13:16:39 up 1 day, 11:15,  2 users,  load average: 2.45, 2.03,
> >> > 1.96
> >> > Tasks: 106 total,   1 running, 105 sleeping,   0 stopped,   0 zombie
> >> > Cpu(s):  7.8%us,  1.4%sy,  0.0%ni, 89.1%id,  1.0%wa,  0.2%hi,  0.5%si,
> >> >  0.0%st
> >> > Mem:   2050176k total,   845668k used,  1204508k free,   167244k
> buffers
> >> > Swap:  2096472k total,0k used,  2096472k free,   351224k
> cached
> >> >
> >> >
> >> >
> >> > 
> >> >
> >> > Is there some way to find wich process cause this high CPU LOAD ?
> (Which
> >> > proccess use sometimes a lot of the CPU time so queuing other
> >> > processes).
> >> > Why sometimes the CPU Load is near to 0 and other times Load_1_min is
> >> > near
> >> > to 4 (On the example 2,45 but there are higher values) if the
> processes
> >> > are
> >> > always the same ???
> >> > Thank you very much
> >> >
> >> >
> *
> >> > Environment Description.
> >> > Intel Core 2 DUO E7500 / 2,93GHz
> >> > DDR2 2GB / 667MHz
> >> > Centos 5.5
> >> > Nagios 3.2.3
> >> > nagios-plugins-1.4.11
> >> > net-snmp-5.6
> >> > snmptt-1.3
> >> > mklivestatus-1.1.8
> >> > nagvis-1.5.6
> >> > pnp4nagios-0.6.10
> >> >
> >> >
> --
> >> > Magic Quadrant for Content-Aware Data Loss Prevention
> >> > Research study explores the data loss preven

Re: [Nagios-users] CPU performance with Nagios 3.2.3

2011-07-19 Thread Javier González
Thank you Yueh-Hung Liu,

Is it possible to discover what´s the problem with the Load, which processes
take all the CPU time periodically ???

Could i do something to improve the CPU usage ?


2011/7/19 Yueh-Hung Liu 

> load is not the same as cpu usage, load is the number of queued
> processes in a period.
> maybe there are processes waiting for some events, such as I/O.
>
>
> 2011/7/19 Javier González :
> > Hello,
> > I have seen a lot peaks on the CPU LOAD of my nagios machine (See
> pnp4nagios
> > graphs on pdf document attached).
> > I don´t know which process/processes are the ones that use too much CPU
> on
> > that periods because the PC is only used for Nagios (And plugins used
> with
> > it) and all the plugins defined have a check_period of 1 minute and there
> is
> > a lot of periods where the load is near to 0 (so what happens every 2
> hours
> > more or less that use so much CPU???)
> > I have tried to find the process that causes this behavior with the "top"
> > command but %Cpu idle is always (also on the peaks of the CPU LOAD) more
> han
> > 70% and no process uses more than 4% of CPU (See three examples of TOP
> > command where %CPU idle is always high but Load vary a lot on each case)
> > **
> > top - 11:52:27 up  9:51,  1 user,  load average: 0.09, 0.56, 0.62
> > Tasks: 102 total,   1 running, 101 sleeping,   0 stopped,   0 zombie
> > Cpu(s):  7.9%us,  1.5%sy,  0.0%ni, 88.4%id,  1.0%wa,  0.3%hi,  0.8%si,
> >  0.0%st
> > Mem:   2050176k total,   675704k used,  1374472k free,   132628k buffers
> > Swap:  2096472k total,0k used,  2096472k free,   84k cached
> > top - 13:30:05 up 11:29,  2 users,  load average: 1.53, 1.27, 0.83
> > Tasks: 110 total,   3 running, 107 sleeping,   0 stopped,   0 zombie
> > Cpu(s):  9.2%us,  1.5%sy,  0.0%ni, 88.6%id,  0.0%wa,  0.0%hi,  0.7%si,
> >  0.0%st
> > Mem:   2050176k total,   708540k used,  1341636k free,   139020k buffers
> > Swap:  2096472k total,0k used,  2096472k free,   334668k cached
> > top - 13:16:39 up 1 day, 11:15,  2 users,  load average: 2.45, 2.03, 1.96
> > Tasks: 106 total,   1 running, 105 sleeping,   0 stopped,   0 zombie
> > Cpu(s):  7.8%us,  1.4%sy,  0.0%ni, 89.1%id,  1.0%wa,  0.2%hi,  0.5%si,
> >  0.0%st
> > Mem:   2050176k total,   845668k used,  1204508k free,   167244k buffers
> > Swap:  2096472k total,0k used,  2096472k free,   351224k cached
> >
> >
> >
> > 
> >
> > Is there some way to find wich process cause this high CPU LOAD ? (Which
> > proccess use sometimes a lot of the CPU time so queuing other processes).
> > Why sometimes the CPU Load is near to 0 and other times Load_1_min is
> near
> > to 4 (On the example 2,45 but there are higher values) if the processes
> are
> > always the same ???
> > Thank you very much
> >
> *
> > Environment Description.
> > Intel Core 2 DUO E7500 / 2,93GHz
> > DDR2 2GB / 667MHz
> > Centos 5.5
> > Nagios 3.2.3
> > nagios-plugins-1.4.11
> > net-snmp-5.6
> > snmptt-1.3
> > mklivestatus-1.1.8
> > nagvis-1.5.6
> > pnp4nagios-0.6.10
> >
> --
> > Magic Quadrant for Content-Aware Data Loss Prevention
> > Research study explores the data loss prevention market. Includes
> in-depth
> > analysis on the changes within the DLP market, and the criteria used to
> > evaluate the strengths and weaknesses of these DLP solutions.
> > http://www.accelacomm.com/jaw/sfnl/114/51385063/
> > ___
> > 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
> >
>
>
> --
> Magic Quadrant for Content-Aware Data Loss Prevention
> Research study explores the data loss prevention market. Includes in-depth
> analysis on the changes within the DLP market, and the criteria used to
> evaluate the strengths and weaknesses of these DLP solutions.
> http://www.accelacomm.com/jaw/sfnl/114/51385063/
> ___
> Nagios-users mailing

[Nagios-users] Fwd: Monitoring unmounted partition

2011-02-08 Thread Javier Rivera


  
  
  Good Morning, 

Im having a problem with check_nrpe. Im monitoring a partition
/mnt/2 f.e. If i dont have this partition mounted, it just
returns the value of "/" witout sending any error. 

How can i get an alert when the partition isn`t mounted.

Thanks in advance.

Sorry for my english. I write it also in spanish, if u use a
translator maybe u understand me better.

Estoy teniendo un problema con check_nrpe. Estoy monitorizando la
partición /mnt/2 por ejemplo. Si no tengo esta partición
montada, me devuelve la información de "/" y no da ningún error. 

¿Como puedo hacer para que salte alerta cuando no esta montada?.


Gracias

   
   
  


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb___
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] Monitoring unmounted partition

2011-02-08 Thread Javier Rivera


  
  
  Good Morning, 

Im having a problem with check_nrpe. Im monitoring a partition
/mnt/2 f.e. If i dont have this partition mounted, it just
returns the value of "/" witout sending any error. 

How can i get an alert when the partition isn`t mounted.

Thanks in advance.

Sorry for my english. I write it also in spanish, if u use a
translator maybe u understand me better.

Estoy teniendo un problema con check_nrpe. Estoy monitorizando la
partición /mnt/2 por ejemplo. Si no tengo esta partición
montada, me devuelve la información de "/" y no da ningún error. 

¿Como puedo hacer para que salte alerta cuando no esta montada?.


Gracias

   
   
  


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb___
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] Advanced notifications configuration questions.

2010-10-30 Thread Javier Domingo
Hi everybody:
I'm working hard with Nagios 3.0.4 on Debian Lenny.
I have some questions. I can't find any information about these issues.
I have hosts with a first_notification_delay of 60 minutes.
And I have the whole day a Nagios controlling the same hosts. It's good to
know if the same host is turned on during the night, but my work period
begins at 10:00 am and it finish at 22:00 pm, I'm not a lucky boy [?]  So I
have configured a notification Period to 10:00 am to 22:00 pm.

Question 1: If a host goes into hard state CRITICAL, I know that Nagios
waits 60 minutes to send a notification, but What happens if the host
recovers before the first_notification_delay period ( for example, 30 min
before)?
Does it send the recovery notification or not?
Question 2: If a hard state happens at 21:59. Does Nagios wait until the
10:00 am of the day after to send the notification?
If the host recovers at 9:00 am of the day after is the notification message
cancelled?

Thanks a lot in advantace.

-- 
Xavier Domingo Navarro

javier.domi...@focusonemotions.com
Mov +34 657 522 736
Gtalk: javier.domi...@focusonemotions.com
Tel +34 93 368 99 85  ext 7015
Fax +34 93 415 39 79
Focus on Emotions S.L
Avda. Diagonal 428 - 1º, 08037 Barcelona
<<33D.gif>>--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-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] RECOVERY in advanced notifications configuration questions.

2010-10-27 Thread Javier Domingo
Hi everybody:
 I'm working hardly with nagios 3.0.X over Debian Lenny.
 I have any questions. I don't find information about these issues
 about notification issues.
 I have any hosts with a first_notification_delay of 60 minutes.
 Question 1: If a host goes in hard critical state I know that
 nagios waits 60 minutes to send the notification CRITICAL, but , What
 happens if host RECOVERS before the first_notification_delay? It send
 the RECOVERY notification or not?

 I have 7x24 monitoring Nagios about the same hosts. It's useful
 because I can know if they are turned on during the night. But for me
 is very important that those hosts must be turned on from 10 to 22
 during the day. I have configured a Notification Period to
 10:00-22:00.
 Question2: if a host goes to CRITICAL STATE at 21:59 Nagios will wait 60
 minutes to send me a notification but, will Nagios wait until the to 10
 of the day after to send the notification? If host Recovers at 9:00 in
 the morning of the day after, nagios will cancel the CRITICAL/RECOVERY
 notifications messages?

 Thanks a lot in advance. Sorry about my English.

 --
> Xavier Domingo Navarro

--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-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] (no subject)

2009-09-14 Thread Javier Polo Cózar
thank you very much!
It worked for me too!



- Mensaje original 
De: "Morris, Patrick" 
Para: Javier Polo Cózar 
CC: "nagios-users@lists.sourceforge.net" 
Enviado: lunes, 14 de septiembre, 2009 17:29:37
Asunto: Re: [Nagios-users] (no subject)

It seems to be something in the way Apache handles PHP.  Since there's 
no PHP code in the index.php page, we've found here that just renaming 
it to index.html brings back the old behavior.

Javier Polo Cózar wrote:
> This problem is relationed with this message
> http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg23953.html
> which I haven't seen solved.
>
> I
> used to reload the page which the status of a service wihch I'd forced
> to check, for seing the update. It was working ok with previous
> versions (3.0.6 included). I've updated my version to 3.2.0 (which uses
> php with frameset) and now, always than I try to reload a nagios page
> different from main one (services, hosts, etc..) I'm redirected to main
> page.
>
> OS: Ubuntu Server 2.6.27-14-server
> nagios version: 3.2.0 (updated from 3.0.6)
>
> thxs in advance!


  


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] (no subject)

2009-09-14 Thread Javier Polo Cózar
This problem is relationed with this message
http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg23953.html
which I haven't seen solved.

I
used to reload the page which the status of a service wihch I'd forced
to check, for seing the update. It was working ok with previous
versions (3.0.6 included). I've updated my version to 3.2.0 (which uses
php with frameset) and now, always than I try to reload a nagios page
different from main one (services, hosts, etc..) I'm redirected to main
page.

OS: Ubuntu Server 2.6.27-14-server
nagios version: 3.2.0 (updated from 3.0.6)

thxs in advance!


  


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] newbie questions

2007-12-20 Thread Javier
hello,

thanks in advance for your kind andwers..

here's what i did on the websphere:

a created a new command definition

# 'check_http_websphere' command definition
define command{
command_namecheck_http_websphere
command_line$USER1$/check_http -H $HOSTADDRESS$ -p 9080 -u
http://172.18.52.141:9080/eibs_bancoagricola/
}

and i created a new command for the tcp as well:


# 'check_tcp_websphere' command definition
define command{
command_namecheck_tcp_websphere
command_line$USER1$/check_tcp -H $HOSTADDRESS$ -p 9060  $ARG1$
}

here's the thing, websphere answers in the 9060 for the management
console, and on the 9080 for the appl, but it redirects to the 9043
(ssl)

is it ok so far what im doing?, i think i'm checking the url in the
hhtp command... should i created a new command for the 9043 port?


2007/12/21, trevor obba <[EMAIL PROTECTED]>:
> you can use check_tcp like check_tcp -H $HOSTADDRESS$ -p $ARG1$
> on commandline ./check_tcp -H foobar -p 9080
> check_tcp basically telnet to a port
>
> or you can use websphere plug-in from 
> http://www.nagiosexchange.org/Search_Projects.43.0.html?tx_netnagext_pi1%5Bphrase%5D=websphere&tx_netnagext_pi1%5Bsubmit%5D=search&tx_netnagext_pi1%5Boptions%5D%5Bshort%5D=1&tx_netnagext_pi1%5Boptions%5D%5Bdescription%5D=1&tx_netnagext_pi1%5Bsearch%5D=1
>
> yes you can use check_tcp for as400
>
> - Original Message 
> From: Javier <[EMAIL PROTECTED]>
> To: nagios-users@lists.sourceforge.net
> Sent: Thursday, 20 December, 2007 6:55:26 AM
> Subject: [Nagios-users] newbie questions
>
> Hello,
>
> i have installed nagios yesterday and i have a check_ping on 4
> servers, a check_http on an apache server and a check_mysql on another
> one
>
> but i have a lot of websphere servers and i would like to add them to
> my nagios platform, they answer on the 9080, 9043 and 9060 ports, is
> there a plugin for websphere?, or do i have to modify only the
> commands.cfg for websphere?
>
> i also have another question, if i want to check a socket on iseries
> (as400), is it ok to use the check_tcp plugin?, has anyone use it
> before?
>
> --
> Ciao, Javier
> linux counter #393724
> GPG Key Fingerprint = 46B76CFEDB0161089D9ECB22FEFDE7EBA8C2007E
>
> -
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
>  reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>
>
>
>
>   ___
> Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
> now.
> http://uk.answers.yahoo.com/
>
>


-- 
Ciao, Javier
linux counter #393724
GPG Key Fingerprint = 46B76CFEDB0161089D9ECB22FEFDE7EBA8C2007E

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] newbie questions

2007-12-19 Thread Javier
Hello,

i have installed nagios yesterday and i have a check_ping on 4
servers, a check_http on an apache server and a check_mysql on another
one

but i have a lot of websphere servers and i would like to add them to
my nagios platform, they answer on the 9080, 9043 and 9060 ports, is
there a plugin for websphere?, or do i have to modify only the
commands.cfg for websphere?

i also have another question, if i want to check a socket on iseries
(as400), is it ok to use the check_tcp plugin?, has anyone use it
before?

-- 
Ciao, Javier
linux counter #393724
GPG Key Fingerprint = 46B76CFEDB0161089D9ECB22FEFDE7EBA8C2007E

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] newbie questions v. 2.0

2006-12-12 Thread javier rojas
hostname:/usr/local/nagios # bin/nagios -v etc/nagios.cfg

Nagios 2.6
Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 11-27-2006
License: GPL

Reading configuration data...

Error: Could not add object property in file
'/usr/local/nagios//etc/hosts.cfg' on line 6.

***> One or more problems was encountered while processing the config files...

 Check your configuration file(s) to ensure that they contain valid
 directives and data defintions.  If you are upgrading from a previous
 version of Nagios, you should be aware that some variables/definitions
 may have been removed or modified in this version.  Make sure to read
 the HTML documentation regarding the config files, as well as the
 'Whats New' section to find out what has changed.


here the hosts.cfg file, in case theres something wrong with it...

define host{
host_name   testserver
alias   test server windows
address 172.18.17.96
parents
check_command   check-host-alive
max_check_attempts  5
check_period24x7
process_perf_data   0
retain_nonstatus_information0
contact_groups  nagios-admins
notification_interval   30
notification_period 24x7
notification_optionsd,u,r
}
i have testserver in /etc/hosts

-- 
Ciao, Javier
linux counter #393724
GPG Key Fingerprint = 46B76CFEDB0161089D9ECB22FEFDE7EBA8C2007E
I'm doing a (free) operating system (just a hobby, won't be big and
professional like gnu)
   --Linus Torvalds

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


Re: [Nagios-users] newbie questions v. 2.0

2006-12-12 Thread javier rojas
hostname:/usr/local/nagios # bin/nagios -v etc/nagios.cfg

Nagios 2.6
Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 11-27-2006
License: GPL

Reading configuration data...

Running pre-flight check on configuration data...

Checking services...
Checked 5 services.
Checking hosts...
Warning: Host 'testserver' has no services associated with it!
Error: Host 'testserver'  has no default contact group(s) defined!
Checked 2 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 22 commands.
Checking time periods...
Checked 4 time periods.
Checking extended host info definitions...
Checked 0 extended host info definitions.
Checking extended service info definitions...
Checked 0 extended service info definitions.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 1
Total Errors:   1

***> One or more problems was encountered while running the pre-flight check...

 Check your configuration file(s) to ensure that they contain valid
 directives and data defintions.  If you are upgrading from a previous
 version of Nagios, you should be aware that some variables/definitions
 may have been removed or modified in this version.  Make sure to read
 the HTML documentation regarding the config files, as well as the
 'Whats New' section to find out what has changed.


thank you all, at least i know whats goin on

-- 
Ciao, Javier
linux counter #393724
GPG Key Fingerprint = 46B76CFEDB0161089D9ECB22FEFDE7EBA8C2007E
I'm doing a (free) operating system (just a hobby, won't be big and
professional like gnu)
   --Linus Torvalds

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


Re: [Nagios-users] newbie questions v. 2.0

2006-12-12 Thread javier rojas
for example, i only have localhost configured on nagios, and it had
the same path

and it's working, but i really tried that before

#cfg_file=/usr/local/nagios//etc/hosts.cfg
#cfg_file=/usr/local/nagios/etc/hosts.cfg

# Command definitions
cfg_file=/usr/local/nagios//etc/commands.cfg

# Host and service definitions for monitoring this machine
cfg_file=/usr/local/nagios//etc/localhost.cfg


-- 
Ciao, Javier
linux counter #393724
GPG Key Fingerprint = 46B76CFEDB0161089D9ECB22FEFDE7EBA8C2007E
I'm doing a (free) operating system (just a hobby, won't be big and
professional like gnu)
   --Linus Torvalds

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


Re: [Nagios-users] newbie questions v. 2.0

2006-12-12 Thread javier rojas
no, i did try that one

On 12/12/06, Ingo Lantschner <[EMAIL PROTECTED]> wrote:
> javier rojas schrieb:
>
> > cfg_file=/usr/local/nagios//etc/hosts.cfg
> change  it to
> cfg_file=/usr/local/nagios/etc/hosts.cfg
>
> does it work now?
>
> regards, ingo
>
>


-- 
Ciao, Javier
linux counter #393724
GPG Key Fingerprint = 46B76CFEDB0161089D9ECB22FEFDE7EBA8C2007E
I'm doing a (free) operating system (just a hobby, won't be big and
professional like gnu)
   --Linus Torvalds

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


[Nagios-users] newbie questions v. 2.0

2006-12-12 Thread javier rojas
Hello,

i know that probably this is a low level questions but i have read the
documentation of nagios and still have some questions...

i have created a hosts.cfg file in order to place my servers, and i
started it with a w$ 2k3 vmware virtual server on my machine heres
the file:

define host{
host_name   testserver
alias   test server windows
address 192.168.0.5
parents
check_command   check-host-alive
max_check_attempts  5
check_period24x7
process_perf_data   0
retain_nonstatus_information0
contact_groups  nagios-admins
notification_interval   30
notification_period 24x7
notification_optionsd,u,r
}

here's my question:

i can resolve hte name from my mahcine of the server, i did not
created a nagios-admins group, and i have the original command.cfg
file, and when i insert in my nagios.cfg the line so it should search
for hosts on the new file i cant restart nagios and i get an error
CONFIG ERROR!  Start aborted.  Check your Nagios configuration

heres the line:
cfg_file=/usr/local/nagios//etc/hosts.cfg

just below object configuration file

i have checked according to the docs, the files and it's order...but i
really can't find the error, i would really like to know how to add
hosts and services to nagios...

-- 
Ciao, Javier
linux counter #393724
GPG Key Fingerprint = 46B76CFEDB0161089D9ECB22FEFDE7EBA8C2007E
I'm doing a (free) operating system (just a hobby, won't be big and
professional like gnu)
   --Linus Torvalds

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


Re: [Nagios-users] problem installing nagios 2.6

2006-12-11 Thread javier rojas
sorry to all...and thank you

it's really embarrasing to post a stu.. question...


-- 
Ciao, Javier
linux counter #393724
GPG Key Fingerprint = 46B76CFEDB0161089D9ECB22FEFDE7EBA8C2007E
I'm doing a (free) operating system (just a hobby, won't be big and
professional like gnu)
   --Linus Torvalds

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


Re: [Nagios-users] problem installing nagios 2.6

2006-12-11 Thread javier rojas
sorry to trouble again folks, but i cannot seem to be able to make it work...

i've tried make install-config before and after make install-init and
in both cases i have the same problem

it actually creates the /etc folder but inside its only:
cgi.cfg-sample  commands.cfg-sample  localhost.cfg-sample
nagios.cfg-sample  resource.cfg-sample

and when i try to browse to localhost/nagios
i get a server error because theres no:
/usr/local/nagios/etc/htpasswd.users

on my /etc directory

i know im a newbie but i really followed the instructions and couldn
get it to workso if anyone can see my istake i would really
appreciate it

-- 
Ciao, Javier
linux counter #393724
GPG Key Fingerprint = 46B76CFEDB0161089D9ECB22FEFDE7EBA8C2007E
I'm doing a (free) operating system (just a hobby, won't be big and
professional like gnu)
   --Linus Torvalds

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


Re: [Nagios-users] problem installing nagios 2.6

2006-12-08 Thread javier rojas
hello,

>
> make install-config

between make install and make install-init?

-- 
Ciao, Javier
linux counter #393724
GPG Key Fingerprint = 46B76CFEDB0161089D9ECB22FEFDE7EBA8C2007E
I'm doing a (free) operating system (just a hobby, won't be big and
professional like gnu)
   --Linus Torvalds

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


[Nagios-users] problem installing nagios 2.6

2006-12-08 Thread javier rojas
Hello,

i'm trying to install nagios 2.6 on my machine but everytime i
configure and compile it i get the same trouble:

it doesnt make and /etc folder on /usr/local/nagios

on that path i get each time the same folders:

bin  libexec  sbin  share  var

i'm following the instructions from
http://nagios.sourceforge.net/docs/2_0/installing.html and i
downloaded the tar.gz from
http://prdownloads.sourceforge.net/nagios/nagios-2.6.tar.gz?download
from the mirror on Curitiba, Brazil

i don't know if it's a bug or if i'm doing something wrong, but i'm
happy to be of service


i really hope that somebody can help me out here


-- 
Ciao, Javier
linux counter #393724
GPG Key Fingerprint = 46B76CFEDB0161089D9ECB22FEFDE7EBA8C2007E
I'm doing a (free) operating system (just a hobby, won't be big and
professional like gnu)
   --Linus Torvalds

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


Re: [Nagios-users] SOLVED: RE: Plugin error: Remote cisco commandvia SSH notworking

2006-11-16 Thread Javier Castillo Alcibar
http://www.nagiosexchange.org/Check_Plugins.21.0.html?&tx_netnagext_pi1[p_view]=792&tx_netnagext_pi1[page]=10%3A10
 


 
 
    
Javier Castillo Alcíbar (2404)
+34 91 787 23 00 [EMAIL PROTECTED]

 
 
 
 
 

-Mensaje original-
De: Donnell Lewis [mailto:[EMAIL PROTECTED] 
Enviado el: jueves, 16 de noviembre de 2006 17:33
Para: Javier Castillo Alcibar
CC: Andreas Ericsson; nagios-users@lists.sourceforge.net
Asunto: Re: [Nagios-users] SOLVED: RE: Plugin error: Remote cisco commandvia 
SSH notworking

Don't forget you may also want to post this on nagiosexchange.com as it's a 
great resource for Nagios related projects.

Thx,

-Don Lewis

On Thu, 2006-11-16 at 17:13 +0100, Javier Castillo Alcibar wrote:
> Hello,
> 
> I think I solved the problem. Notice this command in my perl script: 
> "$ENV{'HOME'} = '/var/lib/nagios';"
>  
> Nagios process was executing the plugin with HOME env varible set to 
> "/root" ¿?¿?.  This made ssh fails when trying to read 
> $HOME/.ssh/config files (root folder is not readable by other 
> users)
> 
> Finally, my contribution to nagios world: check_cisco_ping_ssh (ping from 
> cisco routers, using ssh):
> 
> #!/usr/bin/perl
> # Net::SSH de http://www.stupidfool.org/perl/net-ssh/
> #
> # Use: usr/local/sbin/check_cisco_ping_ssh 
># use strict;
> 
> use Net::SSH::Perl;
> 
> $ENV{'HOME'} = '/var/lib/nagios';
>  
> my $router=$ARGV[0];
> my $port=$ARGV[1];
> 
> my $user=$ARGV[2];
> my $pass=$ARGV[3];
> 
> my $ip=$ARGV[4];
> 
> my $warn=$ARGV[5];
> my $crit=$ARGV[6];
> 
> 
> 
> my $sesion_ssh = Net::SSH::Perl->new($router, protocol=>1, 
> cipher=>'DES', port=>$port, debug=> 'false'); 
> $sesion_ssh->login($user, $pass);
> 
> my $comand="ping $ip";
> 
> my($output, $output_error, $value_exit) = $sesion_ssh->cmd($command);
> 
> $output =~ /Success rate is (\d*) (.*)/;
> 
> my $rate=$1;
> 
> if ( $rate <= $crit ) {
> print "PROBLEM: Rate=$rate%\n";
> exit 2;
> }
> 
> if ( $rate <= $warn ) {
> print "WARNING: Rate=$rate%\n";
> exit 1;
> }
> 
> if ( $rate <= 100 ) {
> print "OK: Rate=$rate%\n"; 
> exit 0;
> }
> 
> exit 3;
> 
>  
> 
> Enjoy it.
> Regards
>   
> Javier Castillo Alcíbar (2404)
> Alhambra Eidos.
> +34 91 787 23 00 [EMAIL PROTECTED]
>   
>  
> 
> 
> 
> 
> 
> -Mensaje original-
> De: Andreas Ericsson [mailto:[EMAIL PROTECTED] Enviado el: jueves, 16 de 
> noviembre de 2006 16:59
> Para: Javier Castillo Alcibar
> CC: nagios-users@lists.sourceforge.net
> Asunto: Re: [Nagios-users] Plugin error: Remote cisco command via SSH 
> notworking
> 
> Javier Castillo Alcibar wrote:
> > 
> > Hello all,
> >  
> > I have some cisco routers that can only be managed using SSH. I 
> > wrote an script, to do remotely some PING's from these routers, 
> > integrated in nagios.
> > 
> > My problem is very strange:
> > - if a execute this script from the command line by myself, it 
> > works as expected.
> > - if nagios process executes the script, it does not work. It looks 
> > like ssh process didn't return anything
> > 
> > I think it's a problem related with ttys.but I'm not sure.
> > 
> > This is my (perl) script:
> > 
> > #!/usr/bin/perl
> > #
> > # Uso: usr/local/sbin/check_cisco_ping_ssh
> > # use Net::SSH::Perl;
> > 
> > $router=$ARGV[0];
> > $port=$ARGV[1];
> > $user=$ARGV[2];
> > $pass=$ARGV[3];
> > $ip=$ARGV[4];
> > $warn=$ARGV[5];
> > $crit=$ARGV[6];
> > 
> > my $sesion_ssh = Net::SSH::Perl->new($router, protocol=>1, 
> > cipher=>'DES', port=>$port); $sesion_ssh->login($user, $pass);
> > 
> > $command="ping $ip";
> > 
> > my($output, $output_error, $val_exit) = $sesion_ssh->cmd($command);
> > 
> > $output =~ /Success rate is (\d*) (.*)/; $rate=$1;
> > 
> > if ( $rate <= $crit ) {
> > print "PROBLEM: PING Rate=$rate%\n";
> > exit 2;
> > }
> > if ( $rate <= $warn ) {
> > print "WARNING: PING Rate=$rate%\n";
> > exit 1;
> > }
> > if ( $rate <= 100 ) {
> > print "OK: PING Rate=$rate%\n"; 
> > exit 0;
> > }
> > exit 3;
> > 
> > 
> > Any help is welcome!!.

[Nagios-users] SOLVED: RE: Plugin error: Remote cisco command via SSH notworking

2006-11-16 Thread Javier Castillo Alcibar
Hello,

I think I solved the problem. Notice this command in my perl script: 
"$ENV{'HOME'} = '/var/lib/nagios';"
 
Nagios process was executing the plugin with HOME env varible set to "/root" 
¿?¿?.  This made ssh fails when trying to read $HOME/.ssh/config files 
(root folder is not readable by other users)

Finally, my contribution to nagios world: check_cisco_ping_ssh (ping from cisco 
routers, using ssh):

#!/usr/bin/perl
# Net::SSH de http://www.stupidfool.org/perl/net-ssh/
#
# Use: usr/local/sbin/check_cisco_ping_ssh  
 
#
use strict;

use Net::SSH::Perl;

$ENV{'HOME'} = '/var/lib/nagios';
 
my $router=$ARGV[0];
my $port=$ARGV[1];

my $user=$ARGV[2]; 
my $pass=$ARGV[3]; 

my $ip=$ARGV[4]; 

my $warn=$ARGV[5]; 
my $crit=$ARGV[6]; 



my $sesion_ssh = Net::SSH::Perl->new($router, protocol=>1, cipher=>'DES', 
port=>$port, debug=> 'false'); 
$sesion_ssh->login($user, $pass);

my $comand="ping $ip";

my($output, $output_error, $value_exit) = $sesion_ssh->cmd($command);

$output =~ /Success rate is (\d*) (.*)/;

my $rate=$1;

if ( $rate <= $crit ) {
print "PROBLEM: Rate=$rate%\n";
exit 2;
}

if ( $rate <= $warn ) {
print "WARNING: Rate=$rate%\n";
exit 1;
}

if ( $rate <= 100 ) {
print "OK: Rate=$rate%\n"; 
exit 0;
}

exit 3;

 

Enjoy it.
Regards

Javier Castillo Alcíbar (2404)
Alhambra Eidos.
+34 91 787 23 00 [EMAIL PROTECTED]
    
 
 
 
 
 

-Mensaje original-
De: Andreas Ericsson [mailto:[EMAIL PROTECTED] 
Enviado el: jueves, 16 de noviembre de 2006 16:59
Para: Javier Castillo Alcibar
CC: nagios-users@lists.sourceforge.net
Asunto: Re: [Nagios-users] Plugin error: Remote cisco command via SSH notworking

Javier Castillo Alcibar wrote:
> 
> Hello all,
>  
> I have some cisco routers that can only be managed using SSH. I wrote 
> an script, to do remotely some PING's from these routers, integrated 
> in nagios.
> 
> My problem is very strange:
>   - if a execute this script from the command line by myself, it works 
> as expected.
>   - if nagios process executes the script, it does not work. It looks 
> like ssh process didn't return anything
> 
> I think it's a problem related with ttys.but I'm not sure.
> 
> This is my (perl) script:
> 
> #!/usr/bin/perl
> #
> # Uso: usr/local/sbin/check_cisco_ping_ssh 
># use Net::SSH::Perl;
> 
> $router=$ARGV[0];
> $port=$ARGV[1];
> $user=$ARGV[2];
> $pass=$ARGV[3];
> $ip=$ARGV[4];
> $warn=$ARGV[5];
> $crit=$ARGV[6];
> 
> my $sesion_ssh = Net::SSH::Perl->new($router, protocol=>1, 
> cipher=>'DES', port=>$port); $sesion_ssh->login($user, $pass);
> 
> $command="ping $ip";
> 
> my($output, $output_error, $val_exit) = $sesion_ssh->cmd($command);
> 
> $output =~ /Success rate is (\d*) (.*)/; $rate=$1;
> 
> if ( $rate <= $crit ) {
> print "PROBLEM: PING Rate=$rate%\n";
> exit 2;
> }
> if ( $rate <= $warn ) {
> print "WARNING: PING Rate=$rate%\n";
> exit 1;
> }
> if ( $rate <= 100 ) {
> print "OK: PING Rate=$rate%\n"; 
> exit 0;
> }
> exit 3;
> 
> 
> Any help is welcome!!.
> 

Have you compiled nagios with embedded perl support? If so, use /usr/bin/perl 
/path/to/your/script.pl

instead of just

/path/to/your/script.pl

in the command definition.

Other than that, make sure that the nagios-user has access to execute the 
script and try it from the command-line *as the nagios user*. If that works, 
you've made some mistake in your configuration.

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

Alhambra-Eidos ha cambiado su dominio de correo electrónico. Por favor revise 
sus contactos, y proceda a actualizar nuestras direcciones a @a-e.es. 


 
Muchas gracias.
Alhambra-Eidos. We solve IT, we solve it


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


Re: [Nagios-users] Plugin error: Remote cisco command viaSSH notworking

2006-11-16 Thread Javier Castillo Alcibar
Pherhaps.. Do you know how to run a plugin from nagios like root. My nagios 
process run as nagios user. (Debian/Sarge)

But, if I run the plugin from a command line, and with user nagios (su - 
nagios), the plugin works as expected.

I am confused.

thx


 
 

Javier Castillo Alcíbar (2404)
+34 91 787 23 00 [EMAIL PROTECTED]

 
 
 
 
 

-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de David Gerbec
Enviado el: jueves, 16 de noviembre de 2006 15:38
Para: nagios-users@lists.sourceforge.net
Asunto: Re: [Nagios-users] Plugin error: Remote cisco command viaSSH notworking

'lo

Javier Castillo Alcibar pravi:
> Hello All,
> 
> No one has faced this problem?? :((
>  
> Kind regards,
> Javier
>  
>  
> 
> -Mensaje original-
> De: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] En nombre de 
> Javier Castillo Alcibar Enviado el: lunes, 13 de noviembre de 2006 
> 10:19
> Para: nagios-users@lists.sourceforge.net
> Asunto: [Nagios-users] Plugin error: Remote cisco command via SSH 
> notworking
> 
> Hello all,
>  
> I have some cisco routers that can only be managed using SSH. I wrote 
> an script, to do remotely some PING's from these routers, integrated 
> in nagios.
> 
> My problem is very strange:
>   - if a execute this script from the command line by myself, it works 
> as expected.
>   - if nagios process executes the script, it does not work. It looks 
> like ssh process didn't return anything
> 
> I think it's a problem related with ttys.but I'm not sure.
> 

Could it be premission related?



Regrads,
David

> This is my (perl) script:
> 
> #!/usr/bin/perl
> #
> # Uso: usr/local/sbin/check_cisco_ping_ssh 
># use Net::SSH::Perl;
> 
> $router=$ARGV[0];
> $port=$ARGV[1];
> $user=$ARGV[2];
> $pass=$ARGV[3];
> $ip=$ARGV[4];
> $warn=$ARGV[5];
> $crit=$ARGV[6];
> 
> my $sesion_ssh = Net::SSH::Perl->new($router, protocol=>1, 
> cipher=>'DES', port=>$port); $sesion_ssh->login($user, $pass);
> 
> $command="ping $ip";
> 
> my($output, $output_error, $val_exit) = $sesion_ssh->cmd($command);
> 
> $output =~ /Success rate is (\d*) (.*)/; $rate=$1;
> 
> if ( $rate <= $crit ) {
> print "PROBLEM: PING Rate=$rate%\n";
> exit 2;
> }
> if ( $rate <= $warn ) {
> print "WARNING: PING Rate=$rate%\n";
> exit 1;
> }
> if ( $rate <= 100 ) {
> print "OK: PING Rate=$rate%\n"; 
> exit 0;
> }
> exit 3;
> 
> 
> Any help is welcome!!.
> 
> Thx in advance.
> Regards
>  
> 
> Alhambra-Eidos ha cambiado su dominio de correo electronico. Por favor 
> revise sus contactos, y proceda a actualizar nuestras direcciones a 
> @a-e.es.
> 
> 
>  
> Muchas gracias.
> Alhambra-Eidos. We solve IT, we solve it
> 
> 
> --
> --
> -
> Using Tomcat but need to do more? Need to support web services, 
> security?
> Get stuff done quickly with pre-integrated technology to make your job 
> easier Download IBM WebSphere Application Server v.1.0.1 based on 
> Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=1216
> 42 ___
> 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
>  
> 
> Alhambra-Eidos ha cambiado su dominio de correo electronico. Por favor revise 
> sus contactos, y proceda a actualizar nuestras direcciones a @a-e.es. 
> 
> 
>  
> Muchas gracias.
> Alhambra-Eidos. We solve IT, we solve it
> 
> 
> --
> --- Take Surveys. Earn Cash. Influence the Future of IT Join 
> SourceForge.net's Techsay panel and you'll get the chance to share 
> your opinions on IT & business topics through brief surveys - and earn 
> cash 
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEV
> DEV ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/n

Re: [Nagios-users] Plugin error: Remote cisco command via SSH notworking

2006-11-16 Thread Javier Castillo Alcibar
Hello All,

No one has faced this problem?? :((
 
Kind regards,
Javier
 
 

-Mensaje original-
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] En nombre de Javier
Castillo Alcibar
Enviado el: lunes, 13 de noviembre de 2006 10:19
Para: nagios-users@lists.sourceforge.net
Asunto: [Nagios-users] Plugin error: Remote cisco command via SSH
notworking

Hello all,
 
I have some cisco routers that can only be managed using SSH. I wrote an
script, to do remotely some PING's from these routers, integrated in
nagios.

My problem is very strange:
- if a execute this script from the command line by myself, it
works as expected.
- if nagios process executes the script, it does not work. It
looks like ssh process didn't return anything

I think it's a problem related with ttys.but I'm not sure.

This is my (perl) script:

#!/usr/bin/perl
#
# Uso: usr/local/sbin/check_cisco_ping_ssh
   # use Net::SSH::Perl;

$router=$ARGV[0];
$port=$ARGV[1];
$user=$ARGV[2];
$pass=$ARGV[3];
$ip=$ARGV[4];
$warn=$ARGV[5];
$crit=$ARGV[6]; 

my $sesion_ssh = Net::SSH::Perl->new($router, protocol=>1,
cipher=>'DES', port=>$port); $sesion_ssh->login($user, $pass);

$command="ping $ip";

my($output, $output_error, $val_exit) = $sesion_ssh->cmd($command);

$output =~ /Success rate is (\d*) (.*)/; $rate=$1;

if ( $rate <= $crit ) {
print "PROBLEM: PING Rate=$rate%\n";
exit 2;
}
if ( $rate <= $warn ) {
print "WARNING: PING Rate=$rate%\n";
exit 1;
}
if ( $rate <= 100 ) {
print "OK: PING Rate=$rate%\n"; 
exit 0;
}
exit 3;


Any help is welcome!!.

Thx in advance.
Regards
 

Alhambra-Eidos ha cambiado su dominio de correo electronico. Por favor
revise sus contactos, y proceda a actualizar nuestras direcciones a
@a-e.es. 


 
Muchas gracias.
Alhambra-Eidos. We solve IT, we solve it



-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
 

Alhambra-Eidos ha cambiado su dominio de correo electronico. Por favor revise 
sus contactos, y proceda a actualizar nuestras direcciones a @a-e.es. 


 
Muchas gracias.
Alhambra-Eidos. We solve IT, we solve it


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


[Nagios-users] Plugin error: Remote cisco command via SSH not working

2006-11-13 Thread Javier Castillo Alcibar
Hello all,
 
I have some cisco routers that can only be managed using SSH. I wrote an
script, to do remotely some PING's from these routers, integrated in
nagios.

My problem is very strange:
- if a execute this script from the command line by myself, it
works as expected.
- if nagios process executes the script, it does not work. It
looks like ssh process didn't return anything

I think it's a problem related with ttys.but I'm not sure.

This is my (perl) script:

#!/usr/bin/perl
#
# Uso: usr/local/sbin/check_cisco_ping_ssh
  
#
use Net::SSH::Perl;

$router=$ARGV[0];
$port=$ARGV[1];
$user=$ARGV[2]; 
$pass=$ARGV[3]; 
$ip=$ARGV[4]; 
$warn=$ARGV[5]; 
$crit=$ARGV[6]; 

my $sesion_ssh = Net::SSH::Perl->new($router, protocol=>1,
cipher=>'DES', port=>$port); 
$sesion_ssh->login($user, $pass);

$command="ping $ip";

my($output, $output_error, $val_exit) = $sesion_ssh->cmd($command);

$output =~ /Success rate is (\d*) (.*)/;
$rate=$1;

if ( $rate <= $crit ) {
print "PROBLEM: PING Rate=$rate%\n";
exit 2;
}
if ( $rate <= $warn ) {
print "WARNING: PING Rate=$rate%\n";
exit 1;
}
if ( $rate <= 100 ) {
print "OK: PING Rate=$rate%\n"; 
exit 0;
}
exit 3;


Any help is welcome!!.

Thx in advance.
Regards
 

Alhambra-Eidos ha cambiado su dominio de correo electronico. Por favor revise 
sus contactos, y proceda a actualizar nuestras direcciones a @a-e.es. 


 
Muchas gracias.
Alhambra-Eidos. We solve IT, we solve it


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Engaging nagios notifications and helpdesk software

2006-03-28 Thread Javier Palacios
Hello,

I'm working to integrate notifications into our helpdesk. It looks
promising and the initial work has been quite successful. The
notification command creates a ticket using a webservice, and  writes
an acknoledgement upon successful creation. This setup is functional,
but does not satisfy me because nagios and helpdesk are quite
decoupled.

I might prefer to get a two direction communication, basically to only
ACK the problem when some human being actually works on the ticket,
and also to close the ticket (the proper one) if the service recovers.
One of the problems I see is how to assign a unique identifier to a
nagios alarm, which might solve most of my problems as our helpdesk is
designed to cooperate with external helpdesk applications.

I would like to get feedback and comments for people who has (or not)
such a setup.

Javi


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