[Nagios-users] NRPE Problems

2008-08-11 Thread Shoaibi
Server Machine: Prompt is , FreeBSD6 with ipfw. Nagios v2.12, using
nrpe with -n as show afterwards. (192.168.40.1)
Client Machine: Prompt sysadmin#, NRPE v2.12 without SSL running as
daemon (192.168.40.40)


==
On Server:
==

On server on the nagios front-end i am getting:
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server
logs for error messages. 

Alert Configuration file on monitoring server:

### Alerts on SysAdmin Workstation
# service to check load
define service{
   uselocal-service
   host_name  sysadmin
   service_descriptionLoad on sysadmin
   notifications_enabled   0
   check_command  check_nrpe!check_load
}



# service to check users
define service{
   uselocal-service
   host_name  sysadmin
   service_descriptionUsers on sysadmin
   notifications_enabled   0
   check_command  check_nrpe!check_users
}


# service to check hard disk
define service{
   uselocal-service
   host_name  sysadmin
   service_descriptionRoot Partition on  sysadmin
   notifications_enabled   0
   check_command  check_nrpe!check_disk1
}

# service to check total processes
define service{
  use local-service
  host_name   sysadmin
  service_description Total Processes on sysadmin
  notifications_enabled   0
  check_command   check_nrpe!check_total_procs
  }

# service to check zombie processes
define service{
  use local-service
  host_name   sysadmin
  service_description Zombie Processes on sysadmin
  notifications_enabled   0
  check_command   check_nrpe!check_zombie_procs
  }


# service to check swap
define service{
  use local-service
  host_name   sysadmin
  service_description Swap on sysadmin
  notifications_enabled   0
  check_command   check_nrpe!check_swap
  }


=
so you see that i am using check_nrpe, not check_tcp.
=

=
Check command for check_nrpe on server
=

define command{
command_name   check_nrpe
command_line   $USER1$/check_nrpe -n -H $HOSTADDRESS$ -c
$ARG1$ -t 20
}


Firewall on server:
===
 sudo ipfw show | grep 5666
 sudo ipfw show | grep 40.40
02104  369  29160 allow tcp from 192.168.40.40 to me dst-port
22 in recv vr0





===
On Client end
==

=
Some part of the log
=
Aug 11 07:05:31 sysadmin nrpe[3115]: Could not read request from
client, bailing out...
Aug 11 07:05:31 sysadmin nrpe[3113]: Could not read request from
client, bailing out...
Aug 11 07:05:32 sysadmin nrpe[3117]: Could not read request from
client, bailing out...
Aug 11 07:06:03 sysadmin nrpe[3120]: Could not read request from
client, bailing out...
Aug 11 07:07:10 sysadmin nrpe[3127]: Could not read request from
client, bailing out...
Aug 11 07:07:35 sysadmin nrpe[3134]: Could not read request from
client, bailing out...



NRPE on client

sysadmin# ps aux | grep nrp | grep -v grep
nagios   2867  0.0  0.1  3104  1204  ??  Ss6:42AM   0:00.01
/usr/local/sbin/nrpe -c /usr/local/etc/nrpe.cfg --daemon



=
NRPE Config
=
#
# Sample NRPE Config File
# Written by: Ethan Galstad ([EMAIL PROTECTED])
#
# Last Modified: 12-30-2002
#
# NOTES:
# This is a sample configuration file for the NRPE daemon.  It needs to be
# located on the remote host that is running the NRPE daemon, not the host
# from which the check_nrpe client is being executed.
#



# PORT NUMBER
# Port number we should wait for connections on.
# NOTE: This must be a non-priviledged port (i.e.  1024).
# NOTE: This option is ignored if NRPE is running under either inetd or xinetd

server_port=5666



# SERVER ADDRESS
# Address that nrpe should bind to in case there are more than one interface
# and you do not want nrpe to bind on all interfaces.
# NOTE: This option is ignored if NRPE is running under either inetd or xinetd

#server_address=192.168.1.1



# ALLOWED HOST ADDRESSES
# This is a comma-delimited list of IP address of hosts that are allowed
# to talk to the NRPE daemon.
#
# NOTE: The daemon only does rudimentary checking of the client's IP
#   address.  I would highly recommend 

Re: [Nagios-users] [Nagiosplug-help] IPsec/racoon monitoring plugin

2008-08-11 Thread Alex Dehaini
Does racoon listen on a port?

On Mon, Aug 11, 2008 at 8:11 AM, Proskurin Kirill [EMAIL PROTECTED]wrote:

 Hello.

 Is nagios have some plugin to monitoring of FreeBSD racoon daemon?

 --
 Best regards,
 Proskurin Kirill

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Nagiosplug-help mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
 ::: Please include plugins version (-v) and OS when reporting any issue.
 ::: Messages without supporting info will risk being sent to /dev/null




-- 
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - [EMAIL PROTECTED]
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Internal Server Error

2008-08-11 Thread Kulcsar, Stefan
Hi list,

i have a strange error on our nagios system and i don't know where to search

Nagios: 3.0.3

Thanks for your help. 

[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] *** glibc detected *** 
/usr/local/nagios/sbin/tac.cgi: free(): invalid next size (fast): 0x090d0410 
***, referer: http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] === Backtrace: 
=, referer: http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 
/lib/libc.so.6[0x679b16], referer: http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 
/lib/libc.so.6(cfree+0x90)[0x67d070], referer: http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 
/usr/local/nagios/sbin/tac.cgi[0x8068c41], referer: 
http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 
/usr/local/nagios/sbin/tac.cgi[0x804eeae], referer: 
http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 
/usr/local/nagios/sbin/tac.cgi[0x804bcba], referer: 
http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 
/lib/libc.so.6(__libc_start_main+0xdc)[0x626dec], referer: 
http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 
/usr/local/nagios/sbin/tac.cgi[0x8048dd1], referer: 
http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] === Memory map: 
, referer: http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 005f3000-0060d000 r-xp 
 fd:00 12484646   /lib/ld-2.5.so, referer: 
http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 0060d000-0060e000 r--p 
00019000 fd:00 12484646   /lib/ld-2.5.so, referer: 
http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 0060e000-0060f000 rw-p 
0001a000 fd:00 12484646   /lib/ld-2.5.so, referer: 
http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 00611000-0074e000 r-xp 
 fd:00 12484647   /lib/libc-2.5.so, referer: 
http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 0074e000-0075 r--p 
0013c000 fd:00 12484647   /lib/libc-2.5.so, referer: 
http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 0075-00751000 rw-p 
0013e000 fd:00 12484647   /lib/libc-2.5.so, referer: 
http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 00751000-00754000 rw-p 
00751000 00:00 0 , referer: http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 00876000-00881000 r-xp 
 fd:00 12484649   /lib/libgcc_s-4.1.2-20080102.so.1, referer: 
http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 00881000-00882000 rw-p 
a000 fd:00 12484649   /lib/libgcc_s-4.1.2-20080102.so.1, referer: 
http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 00eca000-00ecb000 r-xp 
00eca000 00:00 0  [vdso], referer: http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 08048000-08074000 r-xp 
 fd:00 5341198/usr/local/nagios/sbin/tac.cgi, referer: 
http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 08074000-08075000 rw-p 
0002c000 fd:00 5341198/usr/local/nagios/sbin/tac.cgi, referer: 
http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 08075000-08077000 rw-p 
08075000 00:00 0 , referer: http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] 09061000-095ec000 rw-p 
09061000 00:00 0 , referer: http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] b770-b7721000 rw-p 
b770 00:00 0 , referer: http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] b7721000-b780 ---p 
b7721000 00:00 0 , referer: http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] b7888000-b7f0d000 r--p 
 fd:00 5345444  , referer: http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100]   
/usr/local/nagios/var/status.dat, referer: http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] b7f0d000-b7f0f000 rw-p 
b7f0d000 00:00 0 , referer: http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] bfcd9000-bfcef000 rw-p 
bfcd9000 00:00 0  [stack], referer: http://nagios/nagios/side.html
[Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] Premature end of script 
headers: tac.cgi, referer: http://nagios/nagios/side.html



-- 
Stefan
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based 

Re: [Nagios-users] Nagiosgraph trouble

2008-08-11 Thread Alloo, Vincent
Hello,
Did you check your RRD hearthbeat and your Nagios check_interval? It should be 
in sync.
Regards,

Vincent Alloo
TI France Design Systems Operations Manager
Europe, Middle East and Africa IT Services
Texas Instruments France

E-Mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
Phone: +33 4 93 22 26 97
Mobile: +33 6 82 13 00 80

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Abhishek Dhamija
Sent: Wednesday, August 06, 2008 7:54 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagiosgraph trouble

Hi

I am using Nagiosgraph for generating graphs on services i am monitoring.

I have nagiso version 3.0.3 and nagiosgraph version 0.9.0.http://0.9.0.

The problem is that i am getting nan for all my graphs an localhost machine. I 
am using Ubuntu 7.10.

The nagiosgraph.log shows the rrd files being updated but on dumping the 
contents of the rrdfiles they show nan which is what i am getting on the graphs.

The contents of nagiosgraph.log are


Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ debug - 
processing perfdata: 1218043447||localhost||Root Partition||DISK OK - free 
space: / 14218 MB (83% inode=95%):||/=2835MB;14372;16169;0;17966

Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - Input 
lastcheck:1218043447
Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - Input 
hostname:localhost
Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - Input 
perfdata:/=2835MB;14372;16169;0;17966

Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - Input 
servicedescr:Root Partition
Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - Input 
output:DISK OK - free space: / 14218 MB (83% inode=95%):
Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - 
Creating directory /usr/local/nagios/nagiosgraph/rrd/localhost
Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ debug - 
Checking /usr/local/nagios/nagiosgraph/rrd/localhost/Root%20Partition___%2F.rrd
Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ critical - DS 
= /usr/local/nagios/nagiosgraph/rrd/localhost/Root%20Partition___%2F.rrd 
--start 1218043446 DS:free:GAUGE:400:U:U DS:user:GAUGE:400:U:U 
DS:root:GAUGE:400:U:U DS:max:GAUGE:400:U:U DS:blockpct:GAUGE:400:U:U 
DS:inodepct:GAUGE:400:U:U RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 
RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797
Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - 
RRDs::create 
/usr/local/nagios/nagiosgraph/rrd/localhost/Root%20Partition___%2F.rrd --start 
1218043446 DS:free:GAUGE:400:U:U DS:user:GAUGE:400:U:U DS:root:GAUGE:400:U:U 
DS:max:GAUGE:400:U:U DS:blockpct:GAUGE:400:U:U DS:inodepct:GAUGE:400:U:U 
RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 
RRA:AVERAGE:0.5:288:797
Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - 
RRDs::update 
/usr/local/nagios/nagiosgraph/rrd/localhost/Root%20Partition___%2F.rrd 
1218043447:2972712960:15070134272:16954425344:18838716416:83:95
Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ debug - 
processing perfdata: 1218043456||localhost||PING||PING OK - Packet loss = 0%, 
RTA = 0.07 ms||rta=0.072000ms;100.00;500.00;0.00 pl=0%;20;60;0

Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - Input 
lastcheck:1218043456
Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - Input 
hostname:localhost
Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - Input 
perfdata:rta=0.072000ms;100.00;500.00;0.00 pl=0%;20;60;0

Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - Input 
servicedescr:PING
Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - Input 
output:PING OK - Packet loss = 0%, RTA = 0.07 ms
Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ debug - 
Checking /usr/local/nagios/nagiosgraph/rrd/localhost/PING___ping.rrd
Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ critical - DS 
= /usr/local/nagios/nagiosgraph/rrd/localhost/PING___ping.rrd --start 
1218043455 DS:losspct:GAUGE:400:U:U DS:rta:GAUGE:400:U:U RRA:AVERAGE:0.5:1:600 
RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797
Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - 
RRDs::create /usr/local/nagios/nagiosgraph/rrd/localhost/PING___ping.rrd 
--start 1218043455 DS:losspct:GAUGE:400:U:U DS:rta:GAUGE:400:U:U 
RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 
RRA:AVERAGE:0.5:288:797
Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - 
RRDs::update /usr/local/nagios/nagiosgraph/rrd/localhost/PING___ping.rrd 
1218043456:0:7e-05
Wed Aug 6 10:24:43 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ debug - 
processing perfdata: 1218043464||localhost||Swap Usage||SWAP 

Re: [Nagios-users] [Nagiosplug-help] IPsec/racoon monitoring plugin

2008-08-11 Thread Alex Dehaini
If it listens on a port, use check_udp to listen on port 4500.

I don't understand your second question. You can create a VPN tunnel using
two routers or VPN apps like openvpn or freeswan running unix/linux.
Alternatively, you can use DNAT and send all port 80 requests to your nagios
server.

Lex

On Mon, Aug 11, 2008 at 9:27 AM, Frank Fiene [EMAIL PROTECTED] wrote:

 Am Montag 11 August 2008 10:13:47 schrieb Alex Dehaini:
  Does racoon listen on a port?

 Only if NAT-Traversal is enabled, Port 4500 UDP i think.

 But what i would do is to create a VPN between your Nagios server and the
 VPN
 gateway and try ICMP through the tunnel.

 Regards!

  On Mon, Aug 11, 2008 at 8:11 AM, Proskurin Kirill
 [EMAIL PROTECTED]wrote:
   Hello.
  
   Is nagios have some plugin to monitoring of FreeBSD racoon daemon?



 --
 Frank Fiene / IT-Services
 Fon: +49 2526 29-6200
 Fax: +49 2526 29-16-6200
 mailto: [EMAIL PROTECTED]
 www.veka.com

 VEKA AG
 Dieselstr. 8
 48324 Sendenhorst
 Deutschland/Germany

 Vorstand: Andreas Hartleif (Vorsitzender), Dr. Andreas W. Hillebrand
Bonifatius Eichwald, Elke Hartleif, Dr. Werner Schuler
 Vorsitzender des Aufsichtsrates: Heinrich Laumann
 HRB 8282 AG Münster

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Nagiosplug-help mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
 ::: Please include plugins version (-v) and OS when reporting any issue.
 ::: Messages without supporting info will risk being sent to /dev/null




-- 
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - [EMAIL PROTECTED]
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] [Nagiosplug-help] IPsec/racoon monitoring plugin

2008-08-11 Thread Frank Fiene
Am Montag 11 August 2008 12:03:06 schrieb Alex Dehaini:
 If it listens on a port, use check_udp to listen on port 4500.

 I don't understand your second question. You can create a VPN tunnel using
 two routers or VPN apps like openvpn or freeswan running unix/linux.
 Alternatively, you can use DNAT and send all port 80 requests to your
 nagios server.

 On Mon, Aug 11, 2008 at 9:27 AM, Frank Fiene [EMAIL PROTECTED] wrote:
  Am Montag 11 August 2008 10:13:47 schrieb Alex Dehaini:
   Does racoon listen on a port?
 
  Only if NAT-Traversal is enabled, Port 4500 UDP i think.
 
  But what i would do is to create a VPN between your Nagios server and the
  VPN
  gateway and try ICMP through the tunnel.


This was not a question.

You can create also a VPN between a PC running Linux and a VPN gateway with 
IPSEC.

If you have a VPN you can do a ping to an IP address behind the VPN gateway to 
test if the VPN is up. For example you can use the LAN IP address of the VPN 
gateway.

Regards
-- 
Frank Fiene / IT-Services
Fon: +49 2526 29-6200
Fax: +49 2526 29-16-6200
mailto: [EMAIL PROTECTED]
www.veka.com

VEKA AG
Dieselstr. 8
48324 Sendenhorst
Deutschland/Germany

Vorstand: Andreas Hartleif (Vorsitzender), Dr. Andreas W. Hillebrand
Bonifatius Eichwald, Elke Hartleif, Dr. Werner Schuler
Vorsitzender des Aufsichtsrates: Heinrich Laumann
HRB 8282 AG Münster

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] AIX monitor

2008-08-11 Thread Hoot, Joseph
Good luck.  AIX and SNMP don’t mix real well, in my opinion.  There is a thread 
in the cacti forums where I talk with Tony (aka Rony) a bit on getting Cacti to 
monitor AIX properly.  For my AIX systems, I’ve resorted to NRPE and standard 
NagiosPlugins + other scripts (I have one that monitors vmstat for memory, for 
example) + nagiosgraph to get rrd trends.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mad Unix
Sent: Sunday, August 10, 2008 2:12 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] AIX monitor

 

I have a linux server RHEL5 64bit running cacti/nagios, I am in process to 
capture the snmp data of my AIX5.3 clients (10x), any help how to proceed with 
this. 

-- 
Your search - madunix - did not match any documents. 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Any plugin for a TroubleTicketing System for Nagios??

2008-08-11 Thread Jay R. Ashworth
On Sun, Aug 10, 2008 at 01:31:55PM -0400, Thomas Guyot-Sionnest wrote:
 Nagios does not know anything about SMTP, it just runs commands. Make a
 command or script that sent your emails and just set it up in Nagios.

The secondary implication of which is that if Nagios and your tracker
are on the same box, you can also run it's command-line ticket creation
program, and skip the email entirely.

Cheers,
-- jra
-- 
Jay R. Ashworth   Baylink  [EMAIL PROTECTED]
Designer The Things I Think   RFC 2100
Ashworth  Associates http://baylink.pitas.com '87 e24
St Petersburg FL USA  http://photo.imageinc.us +1 727 647 1274

 Those who cast the vote decide nothing.
 Those who count the vote decide everything.
   -- (Josef Stalin)

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Internal Server Error

2008-08-11 Thread Mark Young
Hi Stefan,

On Aug 11, 2008, at 4:46 AM, Kulcsar, Stefan wrote:

 Hi list,

 i have a strange error on our nagios system and i don't know where  
 to search

 Nagios: 3.0.3

 Thanks for your help.

 [Mon Aug 11 11:24:26 2008] [error] [client 10.9.0.100] *** glibc  
 detected *** /usr/local/nagios/sbin/tac.cgi: free(): invalid next size

You really need to post more details running up to this problem.  What  
version Nagios you are running?  What hardware and distribution are  
you running on?  Is this a new install?  Did you do any system updates  
and then discover this problem?

If I were to guess: It seems like you updated some library files and  
would need to recompile Nagios.

Good luck.

Mark Young
___
Nagios Enterprises, LLC
Web:www.nagios.com

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios-users Digest, Vol 27, Issue 7

2008-08-11 Thread [Serfitech] Tec. Felix D. Sanchez
The reason why this happens is because there's another instance of nagios
running.. Why? I don't know but I fixed that problema quite simple

I would like to share It with other that may have the same problem.

For some bizarre reason, a 90% nagios instance is runing in my server and
that one does not let the original do the monitoring.

I wrote a simple script that check for any nagios proc above 90% and kill
it... It may not be a solution, however my nagios it's being
Working fine since I did that.. ;)


#!/bin/sh
nagiospid=$(ps -aux | awk '{print($3 = 90)?$2:false}' | grep -v false)
if [ -z $nagiospid ] ; then
   echo no nagios pid found
else
   kill -9 $nagiospid
fi


#---


Yes, that's the strange part it keep refreshing with the old pid

If the Nagios is up and you run:
[EMAIL PROTECTED] ~/config/objects]$ /usr/local/nagios/libexec/check_nagios -F
/usr/local/nagios/var/status.dat -e 1 -C '/usr/local/nagios/bin/nagios'
//result
NAGIOS OK: 1 process, status log updated 11 seconds ago

If the Nagios is down and you run:
[EMAIL PROTECTED] ~/config/objects]$ /usr/local/nagios/libexec/check_nagios -F
/usr/local/nagios/var/status.dat -e 1 -C '/usr/local/nagios/bin/nagios'
//result
NAGIOS CRITICAL: Cannot open status log for reading! 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Sunday, August 10, 2008 11:03 AM
To: nagios-users@lists.sourceforge.net
Subject: Nagios-users Digest, Vol 27, Issue 7

Send Nagios-users mailing list submissions to
nagios-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/nagios-users
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than Re: Contents of Nagios-users digest...



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Environment variables

2008-08-11 Thread Ciro Iriarte
Is there other way to set environment variables than modifying the
nagios start script?, I need to set Oracle variables for several
scripts/plugins but I would like it to survive a
reinstallation/migration.

Regards,
Ciro

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios freshness checks randomly think check results are from 1973.

2008-08-11 Thread fevin Kagen
So...is a date sent in the SNMP trap or is the date set to the
time that Nagios receives the alert?

Is there a way to output to both the existing output (the nagios
command file) and a debug output?  It doesn't happen all the time so
trying to capture a bad entry would mean taking the whole system down
for a week plus.
Thanks!
Kevin

On 8/10/08, Thomas Guyot-Sionnest [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 10/08/08 06:28 PM, fevin Kagen wrote:
 Thanks for the quick reply.  My date is correct on both servers, but I
 am using the same two scripts on both.  This could certainly be
 causing the issue.  They are modified versions of Francois Meehan's
 snmptraphandling.py.  I don't know this first thing about python so I
 just hacked around until I got them working the way I wanted.  I don't
 think I changed anything to deal w/ time and date handling, but who
 knows.  Here is one of the scripts 
 ---

 If it happens all the time, try changing the output file and see what it
 writes. Otherwise, you may try adding a debug file where you send the
 same thing, though I don't know python so I can't really help. If you
 manage to do  that then then next time it fails you can look at what it
 wrote.


 - --
 Thomas
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFIn6lz6dZ+Kt5BchYRAivSAJ9gzJkkT5NXC2dn8ClzXhl1HeH0SQCg1MQ+
 fHhgyVGVrfgRpwMwmJsbDxw=
 =us3x
 -END PGP SIGNATURE-


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios freshness checks randomly think check results are from 1973.

2008-08-11 Thread fevin Kagen
Any idea how to troubleshoot or fix that?

On 8/10/08, Brian A. Seklecki [EMAIL PROTECTED] wrote:

 1973 isn't 1969 -- it could be a 64bit integer overflow.

 ~BAS

 On Sun, 10 Aug 2008, fevin Kagen wrote:

 Linux xxx.xxx.local 2.6.25.6-55.fc9.i686 #1 SMP Tue Jun 10 16:27:49
 EDT 2008 i686 i686 i386 GNU/Linux

 Linux xxx 2.6.17-12-386 #2 Tue Feb 12 01:14:09 UTC 2008 i686 GNU/Linux


 On 8/10/08, Brian A. Seklecki [EMAIL PROTECTED] wrote:
 On Sun, 2008-08-10 at 10:46 -0400, fevin Kagen wrote:
 I'm having this exact same issue on two different Nagios servers.  One
 running Fedora and one running Ubuntu.  It is

 You're running the amd64/x86_64 kernel/userland on these platforms,
 right?

 ~BAS




 l8*
   -lava (Brian A. Seklecki - Pittsburgh, PA, USA)
  http://www.spiritual-machines.org/

  Guilty? Yeah. But he knows it. I mean, you're guilty.
  You just don't know it. So who's really in jail?
  ~Maynard James Keenan



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Environment variables

2008-08-11 Thread Hugo van der Kooij
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ciro Iriarte wrote:
| Is there other way to set environment variables than modifying the
| nagios start script?, I need to set Oracle variables for several
| scripts/plugins but I would like it to survive a
| reinstallation/migration.

Create your own wrapper for the plugins.

If you stick to the usage parameters of the plugins that need the
wrapper script you should be fine.

Hugo.

- --
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

A: Yes.
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFIoKtTBvzDRVjxmYERAsrEAJ9n7d1ucCU8vYVLao6lf1ysE9G0DACeK04t
3jNEHbW5OpzhiBFbPHI/EUM=
=tjR/
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 running ndoutils

2008-08-11 Thread Seth Simmons
I don't know what the issue is specifically, but this does not work
under Fedora 9 after multiple tries (not sure if someone else has got it
to work).
I repeated the same steps under Fedora 8 and works fine.

[08-11-2008 17:18:01] Event broker module
'/usr/local/nagios/bin/ndomod-3x.o' initialized successfully.
[08-11-2008 17:18:01] ndomod: Successfully connected to data sink. 0
queued items to flush.
[08-11-2008 17:18:01] ndomod: NDOMOD 1.4b7 (10-31-2007) Copyright (c)
2005-2007 Ethan Galstad ([EMAIL PROTECTED])


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Seth
Simmons
Sent: Friday, August 8, 2008 1:15 PM
To: Mark Young; Nagios User list
Subject: Re: [Nagios-users] problem running ndoutils

I did use package manager to install mysql.
The problem was missing mysql-devel.
Compiled again and no errors. Thanks.

Now the problem I have is this in the Nagios log.

[08-08-2008 12:51:00] ndomod: Error writing to data sink! Some output
may get lost...
[08-08-2008 12:51:00] ndomod: Successfully flushed 80 queued items to
data sink.

I'm guessing this is more of a mysql issue?  I tried mysql with this
user and works fine on the database; checked the config and credentials
are ok.
I gave this user full access to this database.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Young
Sent: Friday, August 8, 2008 12:26 PM
To: Nagios User list
Subject: Re: [Nagios-users] problem running ndoutils

Hi Seth,

On Aug 8, 2008, at 10:58 AM, Seth Simmons wrote:
 Support for the specified database server is either not yet supported,
 or was not found on your system.

I think that you may have compiled NDOutils without the necessary  
mysql development libraries.  When you configured the installation  
were there any errors listed concerning mysql?  An easy solution would  
be to use a package manager and install mysql, mysql-server, mysql- 
devel.  You will then need to create and initialize the database you  
are going to use.

I hope this will get you started.

Mark Young
___
Nagios Enterprises, LLC
Web:www.nagios.com


-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK  win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK  win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios freshness checks randomly think check results are from 1973.

2008-08-11 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11/08/08 04:57 PM, fevin Kagen wrote:
 So...is a date sent in the SNMP trap or is the date set to the
 time that Nagios receives the alert?

It's in the command sent to the Nagios command pipe.

See:

http://nagios.sourceforge.net/docs/3_0/extcommands.html
http://www.nagios.org/developerinfo/externalcommands/commandlist.php

 Is there a way to output to both the existing output (the nagios
 command file) and a debug output?  It doesn't happen all the time so
 trying to capture a bad entry would mean taking the whole system down
 for a week plus.

I never touched python before, but looks plain simple object-oriented
programming. I'd try making the post_results function looks like this:

def post_results(host, job, mondata_res, return_code):
  mytime = time.time()
  mytime = str(mytime)
  mytime = mytime[:-3]
  #print mondata_res
  output = open('/usr/local/nagios/var/rw/nagios.cmd', 'w')
  debug_out = open('/tmp/services-debug.out, 'a')
  results = [ + mytime + ]  + PROCESS_SERVICE_CHECK_RESULT; \
+ host + ; + job + ; \
+ return_code + ; + mondata_res + \n
  output.write(results)
  debug_out.write(results)

The change are oppening a 2nd file in append mode:
  debug_out = open('/tmp/services-debug.out, 'a')

And then writing the same thing as the nagios out to it:
  debug_out.write(results)

As soon as it fails check the end of that file, you should see the same
thing as what nagios received. If the [time] part is the problem thoug I
can't really help. This is the part that generated the time part:

  mytime = time.time()
  mytime = str(mytime)
  mytime = mytime[:-3]

- --
Thomas
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIoQIx6dZ+Kt5BchYRAkQLAJ9M1m7clEuSL9LjEEwNM6hV7gCrdwCgsfK7
M0W2J7uXH1Xcbrck7Tn3ZEA=
=XWSo
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null