[Nagios-users] Customized map for customers

2006-11-16 Thread Varaillon Jean Cristophe
Hi,

We are an ISP and we have a lot of customers set-up with VRF.

Using Nagios, would I be able to provide a customized map to my customer
where the would see:

Their_Remote_Office_Router---Their_Central_Office_Rou
ter

Can Nagios provide a web access where my customer would see:
- A networking diagram CE1--CE2
- The traffic rate going between the two Customer Equipment routers.

Thank you for your time!

Christophe

Disclaimer
The information in this e-mail and any attachments is confidential. It is 
intended solely for the attention and use of the named addressee(s). If you are 
not the intended recipient, or person responsible for delivering this 
information to the intended recipient, please notify the sender immediately. 
Unless you are the intended recipient or his/her representative you are not 
authorized to, and must not, read, copy, distribute, use or retain this message 
or any part of it. E-mail transmission cannot be guaranteed to be secure or 
error-free as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.


-
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] 3D-display on Nagios

2006-11-16 Thread John Longland
Hi all 


I'd like to use the 3D display on Nagios in my call-center.
Got the basic display going and I can change the structure
( circle , tree etc )

2 Questions.

1. I'd like to change to the type where I supply the coordinates.
I have done the following:
 Created /usr/local/nagios/etc/hostextinfo.cfg containing entries for my
hosts
define hostextinfo{
host_name
icon_image
.
.   
3D-coords
}

Entered the following line in /usr/local/nagios/etc/cgi.cfg
xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg

I have selected user-coordinates (0) for
default_statusmap_layout
default_statuswrl_layout
in cgi.cfg

When I restart nagios and view the 3D-display, it says that I have not
created 3D-corrdinates.

I thought I covered everything ??


**

2. If I revert back to display type 3 ( eg ) I get the tree-display, but oh
my goodness
the colors looks awfull. Is this my browser ( konqueror ) ???



Thanks !!
JOhn

-
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] 3D-display on Nagios

2006-11-16 Thread David Gerbec
'lo

John Longland pravi:
> Hi all 
> 
> 
> I'd like to use the 3D display on Nagios in my call-center.
> Got the basic display going and I can change the structure
> ( circle , tree etc )
> 
> 2 Questions.
> 
> 1. I'd like to change to the type where I supply the coordinates.
> I have done the following:
>  Created /usr/local/nagios/etc/hostextinfo.cfg containing entries for my
> hosts
> define hostextinfo{
> host_name
> icon_image
> .
> .  
> 3D-coords

Unless you want to you WRML, change the 3D-coords to: 2d_coords and it
should be fine. 3D is for WRML...



Regards,
David

> }
> 
> Entered the following line in /usr/local/nagios/etc/cgi.cfg
> xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg
> 
> I have selected user-coordinates (0) for
> default_statusmap_layout
> default_statuswrl_layout
> in cgi.cfg
> 
> When I restart nagios and view the 3D-display, it says that I have not
> created 3D-corrdinates.
> 
> I thought I covered everything ??
> 
> **
> 
> 
> 2. If I revert back to display type 3 ( eg ) I get the tree-display, but
> oh my goodness
> the colors looks awfull. Is this my browser ( konqueror ) ???
> 
> 
> 
> Thanks !!
> JOhn
> 
> 
> 
> 
> -
> 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


-
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] All hosts template trick not working

2006-11-16 Thread Serveur-Faucon Surveillance
Here : 

http://nagios.sourceforge.net/docs/2_0/templatetricks.html#hostgroup

on the official Nagios documentation, there is a template trick for creating a 
hostgroup that has all hosts.

define hostgroup{
   hostgroup_name  TOUTESLESMACHINES
   alias   TOUTESLESMACHINES
   members *
   }

But it does not work. Someone has find a trick for that?


The idear is to have the PNP graphs 
(http://www.ederdrom.de/doku.php/nagios/pnp_en) logo beside every hosts.

Thanks.

---
Alexandre Racine - Gardien Virtuel - Sécurité Informatique 
www.gardienvirtuel.com
Montréal, Québec, Canada


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


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

2006-11-16 Thread David Gerbec
'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=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


-
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/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null


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

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

2006-11-16 Thread Marc Powell
Apparently no and that wouldn't be unusual for a custom plugin. Is
nagios compiled with ePN? If so, have you verified that your plugin
meets the ePN requirements
(http://nagios.sourceforge.net/docs/2_0/embeddedperl.html). I can see at
a glance that you're not (you don't use strict). You can also test your
script with the mini_epn program in the contrib directory.

--
Marc

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Javier Castillo Alcibar
> Sent: Thursday, November 16, 2006 8:34 AM
> To: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Plugin error: Remote cisco command via
> SSHnotworking
> 
> 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:

[chop]


-
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] All hosts template trick not working

2006-11-16 Thread Hari Sekhon
That is a link for the version 2.0 documentation. Are you sure you are 
not using version 1.4.x? I am using 1.4.1 for example because this is 
the latest stable in my distros package repository...

-h

Hari Sekhon



Serveur-Faucon Surveillance wrote:
> Here : 
>
> http://nagios.sourceforge.net/docs/2_0/templatetricks.html#hostgroup
>
> on the official Nagios documentation, there is a template trick for creating 
> a hostgroup that has all hosts.
>
> define hostgroup{
>hostgroup_name  TOUTESLESMACHINES
>alias   TOUTESLESMACHINES
>members *
>}
>
> But it does not work. Someone has find a trick for that?
>
>
> The idear is to have the PNP graphs 
> (http://www.ederdrom.de/doku.php/nagios/pnp_en) logo beside every hosts.
>
> Thanks.
>
> ---
> Alexandre Racine - Gardien Virtuel - Sécurité Informatique 
> www.gardienvirtuel.com
> Montréal, Québec, Canada
>
>
> -
> 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
>
>   

-
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] nagios2 stops checking

2006-11-16 Thread Rogers, Nick
I noticed this on my Nagios 2.5 server as well, and fixed it with

  check_for_orphaned_services=1

in my nagios.cfg file. In my case, it was affecting a hostgroup - when one
failed, the checks to the entire hostgroup stopped.


On 11/15/06 11:54 AM, "frank" <[EMAIL PROTECTED]> wrote:

> On Wed, 15 Nov 2006, Jörgen Hägg wrote:
> 
>> 
>> Something strange happens sometimes to a service.
>> 
>> I got a warning that was checked  09:41:36. Next scheduled active
>> check was due for 09:42:36.
>> 
>> But there was no further check done, it is now more than four hours
>> since the last check. I can confirm it because I'm running
>> nagios-grapher and it has no data after 09:41.
>> 
>> The warning disappeared after I manually re-scheduled next check of the
>> service.
> 
> 
> I've seen the same problem on 2.0b4 (yes, I know I need to upgrade, but
> try to convince upper management that it's a good idea and they'll read
> you the riot act.) Passive checks continued to be handled properly and the
> status.dat file was being updated on a regular basis so the check_nagios
> plugin was useless to determine any error. But all active checks stopped
> dead. This has happened more than once. I don't think I was able to
> un-wedge it by forcing a new check tho. I'll try that next time it
> happens.
> 
> 
>> Here is the detailed service page:
>> (This info was reloaded around 14:24)
>> 
>> Current Status: WARNING
>> Status Information: WARNING - load average: 7.66, 2.76, 1.29
>> Performance Data: load1=7.660;5.000;10.000;0; load5=2.760;4.000;8.000;0;
>> load15=1.290;3.000;5.000;0;
>> Current Attempt: 1/3
>> State Type: SOFT
>> Last Check Type: ACTIVE
>> Last Check Time: 2006-11-15 09:41:36
>> Status Data Age: 0d 4h 40m 45s
>> Next Scheduled Active Check:   2006-11-15 09:42:36
>> Latency: 0.356 seconds
>> Check Duration: 1.023 seconds
>> Last State Change: 2006-11-15 09:41:36
>> Current State Duration: 0d 4h 40m 45s
>> Last Service Notification: N/A
>> Current Notification Number: 0
>> Is This Service Flapping? NO
>> Percent State Change: 0.00%
>> In Scheduled Downtime? NO
>> Last Update: 2006-11-15 14:22:15
>> Active Checks: ENABLED
>> Passive Checks: ENABLED
>> Obsessing: ENABLED
>> Notifications: ENABLED
>> Event Handler: ENABLED
>> Flap Detection: ENABLED
>> 
>> 
>> This is nagios 2.5-1 in Debian.
>> 
>> -
>> 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
>> 
> -
> 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


-
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 via SSH notworking

2006-11-16 Thread Andreas Ericsson
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

-
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] All hosts template trick not working

2006-11-16 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Hari Sekhon
> Sent: Thursday, November 16, 2006 9:25 AM
> To: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] All hosts template trick not working
> 
> That is a link for the version 2.0 documentation. Are you sure you are
> not using version 1.4.x? I am using 1.4.1 for example because this is
> the latest stable in my distros package repository...

It would still work. There was nothing new introduced with 2.0 along
these lines.

> 
> Serveur-Faucon Surveillance wrote:
> > Here :
> >
> > http://nagios.sourceforge.net/docs/2_0/templatetricks.html#hostgroup
> >
> > on the official Nagios documentation, there is a template trick for
> creating a hostgroup that has all hosts.
> >
> > define hostgroup{
> >hostgroup_name  TOUTESLESMACHINES
> >alias   TOUTESLESMACHINES
> >members *
> >}
> >
> > But it does not work. Someone has find a trick for that?

All your hosts are not in the TOUTESLESMACHINES hostgroup or the logo
below doesn't appear? I would expect this to work. I'm not aware of this
ever _not_ working.

> > The idear is to have the PNP graphs
> (http://www.ederdrom.de/doku.php/nagios/pnp_en) logo beside every
hosts.

Adding a host to a hostgroup doesn't add any icons/logos ever. I've not
used PNP but the docs show that you need a serviceextinfo{} definition.
That's what causes the display of the icon. Do you have those
definitions?

--
Marc


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.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] 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] All hosts template trick not working

2006-11-16 Thread Serveur-Faucon Surveillance
I use Nagios 2.5 for the infos.

> > define hostgroup{
> >hostgroup_name  TOUTESLESMACHINES
> >alias   TOUTESLESMACHINES
> >members *
> >}
> >
> > But it does not work. Someone has find a trick for that?

>> "Marc Powell" <[EMAIL PROTECTED]> 2006-11-16 10:58:43 >>>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Hari Sekhon
> Sent: Thursday, November 16, 2006 9:25 AM
> To: nagios-users@lists.sourceforge.net 
> Subject: Re: [Nagios-users] All hosts template trick not working
> 
> That is a link for the version 2.0 documentation. Are you sure you are
> not using version 1.4.x? I am using 1.4.1 for example because this is
> the latest stable in my distros package repository...

It would still work. There was nothing new introduced with 2.0 along
these lines.

> 
> Serveur-Faucon Surveillance wrote:
> > Here :
> >
> > http://nagios.sourceforge.net/docs/2_0/templatetricks.html#hostgroup 
> >
> > on the official Nagios documentation, there is a template trick for
> creating a hostgroup that has all hosts.
> >
> > define hostgroup{
> >hostgroup_name  TOUTESLESMACHINES
> >alias   TOUTESLESMACHINES
> >members *
> >}
> >
> > But it does not work. Someone has find a trick for that?

All your hosts are not in the TOUTESLESMACHINES hostgroup or the logo
below doesn't appear? I would expect this to work. I'm not aware of this
ever _not_ working.

> > The idear is to have the PNP graphs
> (http://www.ederdrom.de/doku.php/nagios/pnp_en) logo beside every
hosts.

Adding a host to a hostgroup doesn't add any icons/logos ever. I've not
used PNP but the docs show that you need a serviceextinfo{} definition.
That's what causes the display of the icon. Do you have those
definitions?

--
Marc


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.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


-
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 command via SSH notworking

2006-11-16 Thread Donnell Lewis
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!!.
> > 
> 
> 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://l

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

2006-11-16 Thread Don Lewis
nagiosexchange.org...(.com was force of habit.;))

-DL
On Thu, 2006-11-16 at 11:33 -0500, Donnell Lewis wrote:
> 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!!.
> > > 
> > 
> > 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
> > 
> > 
> > --

[Nagios-users] work time

2006-11-16 Thread Brian Loe
When you all report on availability, how do you go about working out
any scheduled maintenance periods?

For instance, I'd like to report on a specific hostgroup. The time
period is 24x7 except 2-6 on Sundays.

Ideas?

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

Re: [Nagios-users] Customized map for customers

2006-11-16 Thread Donnell Lewis
On Thu, 2006-11-16 at 11:54 +0200, Varaillon Jean Cristophe wrote:
> Hi,
> 
> We are an ISP and we have a lot of customers set-up with VRF.
> 
> Using Nagios, would I be able to provide a customized map to my customer
> where the would see:
> 
> Their_Remote_Office_Router---Their_Central_Office_Rou
> ter
> 
Yes, this can be achieved using the web authentication that you setup to
login to nagios.  You would make your .htaccess or auth schema user the
same as the user you put them into contacts.cfg as.  Then you would have
to create a group just for them in contactgroup.cfg.

After that you would then add their contactgroup to the host/services
for which they have with you.  The ISP cloud will basically show as the
central nagios host that's doing the checks, unless you add a host and
just name it that for viewing purposes on the map.

Then, after you have added them to the auth files, contacts.cfg,
contactgroups.cfg and put their group name into the hosts/services they
are to see you would also need to make sure that in the hosts/services
definitions that you are using the 'parent ' option so
that things will fall correctly on the map.

Hope that helps somewhat, didn't describe as best as I probably could.

-Don Lewis


> Can Nagios provide a web access where my customer would see:
> - A networking diagram CE1--CE2
> - The traffic rate going between the two Customer Equipment routers.
> 
> Thank you for your time!
> 
> Christophe
> 
> Disclaimer
> The information in this e-mail and any attachments is confidential. It is 
> intended solely for the attention and use of the named addressee(s). If you 
> are not the intended recipient, or person responsible for delivering this 
> information to the intended recipient, please notify the sender immediately. 
> Unless you are the intended recipient or his/her representative you are not 
> authorized to, and must not, read, copy, distribute, use or retain this 
> message or any part of it. E-mail transmission cannot be guaranteed to be 
> secure or error-free as information could be intercepted, corrupted, lost, 
> destroyed, arrive late or incomplete, or contain viruses.
> 
> 
> -
> 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


-
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] work time

2006-11-16 Thread Max H.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Brian Loe wrote:
> When you all report on availability, how do you go about working out
> any scheduled maintenance periods?
> 
> For instance, I'd like to report on a specific hostgroup. The time
> period is 24x7 except 2-6 on Sundays.
> 
> Ideas?

#(12am to 2pm, 6pm to 12am)
define timeperiod{
timeperiod_name 24x7
alias   24 Hours A Day, 7 Days A Week, Except on Sundays
sunday  00:00-14:00,18:00-24:00
monday  00:00-24:00
tuesday 00:00-24:00
wednesday   00:00-24:00
thursday00:00-24:00
friday  00:00-24:00
saturday00:00-24:00
}

I'm assuming you mean 2pm to 6pm. If you meant 2am to 6am, then Sunday
would like like:

sunday 00:00-02:00,06:00-24:00 (12am to 2am, 6am to 12pm)

Max
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org

iD8DBQFFXJogHoeeepPau2ERAjqZAJ4rpO2jGU5PZ64ZpwKWL7DA+qboTgCeOx6j
WRW1rMs4wjZ0uoPlf0tufBY=
=C2Mu
-END PGP SIGNATURE-

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

2006-11-16 Thread Ugo Bellavance
Hi there,

 I'm trying to configure check_dns_random.pl on my nagios server 
(contrib).

I get this error:

**ePN /usr/lib64/nagios/plugins/contrib/check_dns_random.pl: "Argument 
"25/etc/nagios/.list" isn't numeric in rand at (eval 6) line 55,".

I'm using /etc/nagios/domains.list for domain list file and the check 
runs fine when run by user nagios.

/usr/lib64/nagios/plugins/contrib/check_dns_random.pl 127.0.0.1
DNS OK: 0.005 seconds response time. iweb.ca returns 
209.172.41.170|time=0.005172s;;;0.00

Here is my command definition:

# 'check_dns1_random' command definition
define command{
 command_namecheck_dns1_random
 command_line$USER1$/contrib/check_dns_random.pl 127.0.0.1
}

Any idea?


-
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] work time

2006-11-16 Thread Brian Loe
Doh! I knew that!!

Now its just a matter of getting that into a script for e-mailing... thank you!



On 11/16/06, Max H. <[EMAIL PROTECTED]> wrote:

> I'm assuming you mean 2pm to 6pm. If you meant 2am to 6am, then Sunday
> would like like:
>
> sunday 00:00-02:00,06:00-24:00 (12am to 2am, 6am to 12pm)
>
> Max

-
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] Nagios as an SLA monitoring tool

2006-11-16 Thread Kevin Millman
Hi,

 

I've been requested to come up with a solution to monitor some of our
network services externally (to simulate the clients enviroment) for
things like www, email, ftp, etc to try and get a sense of what the
external availablity of each cluster is.   I'd like to setup machines on
a couple of DSL networks and have a host machine collect this data and
only report a service as down if both external checks confirm it as down
(possibly just a DSL network is having routing problems or something) -
then take the data from the host machine and graph it to show the
management.

 

I'm having a hard time coming up with a great solution for this but
thought that maybe the Nagios list could help.   Doing some reading it
seems this could be done using passive checks and perfparse maybe?  Does
anyone know of an article I could read over where someone has done
something similar?   Alternatively does anyone think this is just a bad
idea and have a better solution for gathering SLA information.

 

Right now I'm in the information gathering stage before I start making a
proof of concept -- any suggestions are welcome.

 

Regards,

Kevin

 

 

 

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

2006-11-16 Thread Donnell Lewis
On Thu, 2006-11-16 at 12:20 -0500, Ugo Bellavance wrote:
> # 'check_dns1_random' command definition
> define command{
>  command_namecheck_dns1_random
>  command_line$USER1$/contrib/check_dns_random.pl 127.0.0.1
> } 

Just out of curiousity have you tried:

# 'check_dns1_random' command definition
define command{
 command_namecheck_dns1_random
 command_line$USER1$/contrib/check_dns_random.pl "127.0.0.1"
}

and make sure the perms of course are correct on the plugin check.
Don't know if that will help but sometimes I have had to use "" for
things on the command line being executed.

-Don Lewis


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

2006-11-16 Thread Ugo Bellavance
Donnell Lewis wrote:
> On Thu, 2006-11-16 at 12:20 -0500, Ugo Bellavance wrote:
>> # 'check_dns1_random' command definition
>> define command{
>>  command_namecheck_dns1_random
>>  command_line$USER1$/contrib/check_dns_random.pl 127.0.0.1
>> } 
> 
> Just out of curiousity have you tried:
> 
> # 'check_dns1_random' command definition
> define command{
>  command_namecheck_dns1_random
>  command_line$USER1$/contrib/check_dns_random.pl "127.0.0.1"
> }
> 

I tried that, no change.

> and make sure the perms of course are correct on the plugin check.
> Don't know if that will help but sometimes I have had to use "" for
> things on the command line being executed.

The permissions are ok and it runs ok when I run it manually using the 
nagios user.

Thanks,


-
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] All hosts template trick not working

2006-11-16 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Serveur-Faucon
Surveillance
> Sent: Thursday, November 16, 2006 10:14 AM
> To: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] All hosts template trick not working
> 
> I use Nagios 2.5 for the infos.
> 
> > > define hostgroup{
> > >hostgroup_name  TOUTESLESMACHINES
> > >alias   TOUTESLESMACHINES
> > >members *
> > >}
> > >
> > > But it does not work. Someone has find a trick for that?
> 
>
> Actually, I get this while testing the files.
> 
> [EMAIL PROTECTED] etc]# /usr/local/nagios/bin/nagios -v
> /usr/local/nagios/etc/nagios.cfg
> 
> Nagios 2.5
> [...]
> Reading configuration data...
> 
> Error: Could not find any host matching '*'
> Error: Could not expand member hosts specified in hostgroup (config
file
> '/usr/local/nagios/etc/touteslesmachines.cfg', starting on line 14)
> 
> ---
> 
> After that I have tried to remove the "*" from the illegal host name,
but
> I get the same result.
> 

You must enable regular expression matching for this to work.
http://nagios.sourceforge.net/docs/2_0/configmain.html#use_regexp_matchi
ng

--
Marc

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.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] nagios-plugins on Solaris 9 --with-ps-command

2006-11-16 Thread Andy Harrison
Could anyone please help me with the proper syntax for the configure line?

No matter what I use, during the configure process I get:

checking for ps... /usr/bin/ps
checking for ps syntax... using nagios-plugins internal ps for solaris

The pst3 command does not work for me.  check_procs is broken anyway,
so it just hangs until timeout when pst3 fails.

When I run pst3 manually as root, I get...
# /usr/local/nagios/libexec/pst3
/usr/local/nagios/libexec/pst3: /dev/ksyms is not a 32-bit kernel namelist
pst3: Failed to open kernel memory: Error 0

I figured that --with-ps-command=/usr/ucb/ps in my configure line
would do the trick, but it always picks up /usr/bin/ps instead.

This box is a sunfire v440 sparc running Solaris 9 with gcc-3.4.5
installed and I'm compiling from the most recent nagios-plugins-1.4.5
source tarball.

Any suggestions appreciated.  Thanks!

-- 
Andy Harrison

-
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] previously supplied script

2006-11-16 Thread Brian Loe
I can find no record of the original e-mail, but whomever it was that
was nice enough to post their availability reporting script could
provide a way for the script to either send an e-mail rather than
create a file - or, better, both - I would again appreciate it.

I played with it as much as I know how and its not enough...couldn't
get any output to anything other than the file.

-
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] Problems seeing host and service detail

2006-11-16 Thread Frank Moore
I have just installed nagios 1.3.6 on SLES 10 and can not get hosts and
services to show up.  I am just trying a simple install using
minimal.cfg and the localhost.

The apache authentication works and I can see the main web console web
page but as soon as I try to see services or host details I get the
following error.  I can see the event log. 

I also can not get any configuration information

It appears as though you do not have permission to view information for
any of the hosts you requested

I have checked all the cfg files, done the nagios -v and get no errors,
and checked to make sure the contact name is the same as the htpasswd
user name.

What else can I check?   Is there something else to configure?

Thanks for the help

Frank 




Frank Moore
ATT Engineer/Instructor
WW Training Services
801-861-4134

Sent from a SUSE Linux Desktop


-
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] Problems seeing host and service detail

2006-11-16 Thread Ryan Steele
Frank,

The current version of Nagios is 2.5 ...if you're just starting out, 
it's probably advisable to begin with that.

Best,
Ryan

Frank Moore wrote:
> I have just installed nagios 1.3.6 on SLES 10 and can not get hosts and
> services to show up.  I am just trying a simple install using
> minimal.cfg and the localhost.
>
> The apache authentication works and I can see the main web console web
> page but as soon as I try to see services or host details I get the
> following error.  I can see the event log. 
>
> I also can not get any configuration information
>
> It appears as though you do not have permission to view information for
> any of the hosts you requested
>
> I have checked all the cfg files, done the nagios -v and get no errors,
> and checked to make sure the contact name is the same as the htpasswd
> user name.
>
> What else can I check?   Is there something else to configure?
>
> Thanks for the help
>
> Frank 
>
>
>
>
> Frank Moore
> ATT Engineer/Instructor
> WW Training Services
> 801-861-4134
>
> Sent from a SUSE Linux Desktop
>
>
> -
> 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
>   


-- 
Ryan Steele 
Systems Administrator   [EMAIL PROTECTED]
AgoraNet, Inc.  (302) 224-2475
314 E. Main Street, Suite 1 (302) 224-2552 (fax)
Newark, DE 19711http://www.agora-net.com


-
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] Mass Acknowledgement from Command Line

2006-11-16 Thread Aaron Segura
I know a few people have asked about this in the past, so here goes...

 

http://www.nagiosexchange.org/Notifications.35.0.html?&tx_netnagext_pi1[
p_view]=793
  

This PHP script will allow you to perform mass-acknowledgements of
nagios problems from the command line. Both the 'host' and 'service'
parameters are treated as perl regular expressions, so you can do things
like: 

# nagios_ack webprod httpd "I shot all of the httpd processes with
psDOOM by accident"

To acknowledge alarms for any services matching 'httpd' (eg,
httpd_response_time, httpd_process, etc...) on any hosts matching
'webprod' (eg, webprod01, webprod02, test-webprod01, etc...) with the
admission that you often like to admin your system using WASD.

You may also use the keyword 'all' in place of either parameter... 

# nagios_ack all "Power Outage in Texas" 

To acknowledge ALL current host and service problems. 

# nagios_ack webprod all "Power Outage in Web Server Rack" 

To acknowledge ALL services in alarm on any host matching 'webprod'. 



The script uses the status.log (or status.dat) and nagios.cmd files.
You will need to edit the top of the script to let it know where you
keep yours.I use Groundworks/nagios so the current paths are
customized for that purpose.

 

See the README for config/cmdline information.


Enjoy!

-
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] Could not find any host matching in Nagios.

2006-11-16 Thread sarma nmrk

Hi

I am new to Nagios.I installed nagios succcesffuly and able to monitor the
local host services.

But when i am trying to add new host to the configuration i am receving
following error.

Can any one help me in this.I am using Nagios 2.5

Nagios 2.5
Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 07-13-2006
License: GPL

Reading configuration data...

Error: Could not find any host matching "10.10.1.2"

Error: Could not expand member hosts specified in hostgroup (config file
'/usr/local/nagios/etc/minimal.cfg', starting on line 223)

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

Pls help me in this regard.Thanks in advance.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.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] Could not find any host matching in Nagios

2006-11-16 Thread nmrk sharma
Hi list

I am new to Nagios.I installed nagios succcesffuly and able to monitor the 
local host services.
 
But when i am trying to add new host to the configuration i am receving 
following error.
 
Can any one help me in this.I am using Nagios 2.5
 
Nagios 2.5
Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 07-13-2006
License: GPL
Reading configuration data...

Error: Could not find any host matching "10.10.1.2"

Error: Could not expand member hosts specified in hostgroup (config file 
'/usr/local/nagios/etc/minimal.cfg', starting on line 223)

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

Pls help me in this regard.Thanks in advance


- nmrk sharma (nmrksharma)

---
The mailing list archive is found here:
http://www.nagiosexchange.org/nagios-users.34.0.html


-
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] Could not find any host matching in Nagios

2006-11-16 Thread nmrk sharma
Hi list

I am new to Nagios.I installed nagios succcesffuly and able to monitor the 
local host services.
 
But when i am trying to add new host to the configuration i am receving 
following error.
 
Can any one help me in this.I am using Nagios 2.5
 
Nagios 2.5
Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 07-13-2006
License: GPL
Reading configuration data...

Error: Could not find any host matching "10.10.1.2"

Error: Could not expand member hosts specified in hostgroup (config file 
'/usr/local/nagios/etc/minimal.cfg', starting on line 223)

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

Pls help me in this regard.Thanks in advance


- nmrk sharma (nmrksharma)

---
The mailing list archive is found here:
http://www.nagiosexchange.org/nagios-users.34.0.html


-
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] Could not find any host matching in Nagios

2006-11-16 Thread nmrk sharma
Hi list

 am new to Nagios.I installed nagios succcesffuly and able to monitor the local 
host services.

But when i am trying to add new host to the configuration i am receving 
following error.

Can any one help me in this.I am using Nagios 2.5

Nagios 2.5
Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 07-13-2006
License: GPL
Reading configuration data...

Error: Could not find any host matching "10.10.1.2"

Error: Could not expand member hosts specified in hostgroup (config file 
'/usr/local/nagios/etc/minimal.cfg', starting on line 223)

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

Pls help me in this regard.Thanks in advance



- nmrk sharma (nmrksharma)

---
The mailing list archive is found here:
http://www.nagiosexchange.org/nagios-users.34.0.html


-
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] nagios "browser"

2006-11-16 Thread Jochen Maes
Hey all,


I'm looking for a webpage that shows all the errors/warnings and 
pendings in a list. And a simple checkbox next to each to acknowledge 
the problem or to manually reset to OK.
This is handy for when our serverpark has gone through a downtime for 
one or the other reason.

Does anyone know of it's existance? And if not would people use it if it 
would be developped?

kind regards,

Jochen

-- 
"Defer no time, delays have dangerous ends"
"Ne humanus crede"

Jochen Maes
http://sejo.be

-
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] Could not find any host matching in Nagios

2006-11-16 Thread Morris, Patrick
> Can any one help me in this.I am using Nagios 2.5
> 
> Nagios 2.5
> Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org) 
> Last Modified: 07-13-2006
> License: GPL
> Reading configuration data...
> 
> Error: Could not find any host matching "10.10.1.2"
> 
> Error: Could not expand member hosts specified in hostgroup 
> (config file '/usr/local/nagios/etc/minimal.cfg', starting on 
> line 223)

You have added a host to a hostgroup, but that host has not been
defined.

-
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