[Nagios-users] Could not complete SSL handshake

2009-08-17 Thread Shashank Rachamalla
Hi 

I am using Nagios with NRPE to monitor my lab infrastructure and I am
facing this issue of SSL handshake failing with NRPE. The exact error as
displayed in syslog is:

Aug 18 04:15:23 nrpe[15581]: Error: Could not complete SSL handshake. 5 


The following is displayed in /var/log/nrpe at the same time:

09/8/1...@04:15:39: START: nrpe pid=16259 from=10.201.214.90
09/8/1...@04:15:41: START: nrpe pid=16260 from=10.201.214.90
09/8/1...@04:15:46: START: nrpe pid=16274 from=10.201.214.90
09/8/1...@04:15:49: START: nrpe pid=16275 from=10.201.214.90
09/8/1...@04:15:56: START: nrpe pid=16276 from=10.201.214.90
09/8/1...@04:16:02: EXIT: nrpe status=0 pid=16128 duration=286(sec)
09/8/1...@04:16:02: EXIT: nrpe status=0 pid=16199 duration=156(sec)
09/8/1...@04:16:16: START: nrpe pid=16291 from=10.201.214.90
09/8/1...@04:16:25: EXIT: nrpe status=0 pid=16176 duration=220(sec)
09/8/1...@04:16:26: START: nrpe pid=16292 from=10.201.214.90
09/8/1...@04:16:34: EXIT: nrpe status=0 pid=16260 duration=53(sec)
09/8/1...@04:16:36: EXIT: nrpe status=0 pid=16229 duration=125(sec)
09/8/1...@04:16:51: EXIT: nrpe status=0 pid=16194 duration=215(sec)
09/8/1...@04:17:07: START: nrpe pid=16307 from=10.201.214.90
09/8/1...@04:17:17: START: nrpe pid=16308 from=10.201.214.90
09/8/1...@04:17:21: EXIT: nrpe status=0 pid=16275 duration=92(sec)
09/8/1...@04:17:35: EXIT: nrpe status=0 pid=16274 duration=109(sec)
09/8/1...@04:17:46: EXIT: nrpe status=0 pid=16291 duration=90(sec)
09/8/1...@04:17:46: EXIT: nrpe status=0 pid=16292 duration=80(sec)


What does the above error mean?

Does it have anything to do with network issues? 

Why is the duration high at this time for a few requests while normally
it is less than 5 sec?


I am running nrpe as a service under xinetd with the following
configuration: ( /etc/xinetd.d/nrpe )

# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags   = REUSE
socket_type = stream
port= 5666
wait= no
user= nagios
group   = nagios
server  = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_type= FILE /var/log/nrpe
log_on_failure  += USERID ATTEMPT
disable = no
only_from   = 10.201.214.90 
per_source  = UNLIMITED
cps = 50 30
}


Thanks,
Shashank.





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


[Nagios-users] check_mysql and check_pgsql plugins install on RHEL 5.3

2009-08-17 Thread Chris
I need check_mysql and check_pgsql; I have downloaded the plugin tgz
from http://nagios.org/download/plugins and I can see the .c files for
Postgres and MySQL.

but when I compile with ./configure --prefix=/plugin
--with-mysql=/usr/ && make && make install
I don't get any mysql binary.

Not sure how to include postgres - ./configure --help | grep pgsql says:

"--with-pgsql=DIRsets path to pgsql installation"

The system is Redhat 5.3 x86.

Thanks for any help.

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


[Nagios-users] obama biden health plan

2009-08-17 Thread shadih rahman
forwarded to cynthia

www.barack*obama*.com/pdf/issues/*HealthCare*FullPlan.pdf

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

Re: [Nagios-users] How to detect MSSQL cluster failover?

2009-08-17 Thread Anthony Montibello
NC_net as well as some other plugins also offer WMI query capability.
NC_net can do this through Active checks, using check_nc_net instead of
check_nt.
(Check_nc_net is compatible with all windows plugins that use check_nt).


Tony (Author of NC_Net)

On Mon, Aug 17, 2009 at 10:38 AM, Marco Tirado wrote:

> Hello Jon:
>
> Thank you for the information, I guess the snmp option is the quick and
> dirty way to go. I have never worked with WMI before, however I it is never
> late to start.
>
> Is it possible to access the MSCluster namespace using NSClient++?
>
> We use NSClient++ for accessing performance counters at the moment but we
> have not experimented with WMI yet.
>
> Regards
>
> Marco
>
> On Fri, Aug 14, 2009 at 6:51 AM, Jon Angliss  wrote:
>
>> On Wed, 12 Aug 2009 15:08:56 +0200, Marco Tirado
>>  wrote:
>>
>> >Hello users:
>> >
>> >I would like to know what is the easiest way to detect when a failover
>> >occurs in an MSSQL cluster. I need a simple check that tells me when our
>> >database cluster fails from physical node "X" to node physical node "Y"
>> >
>> >Has anybody done this? Maybe with a passive check?
>>
>> I used to do a quick and dirty way and use the SNMP sysName, and look
>> for a specific value.  If it changed from one name to another, it had
>> failed over...
>>
>> ./check_snmp -H host -v 1 -c public -o .1.3.6.1.2.1.1.5.0 -s
>> "expectedname"
>>
>> Or, if you've had experience with WMI, you can hit the MSCluster
>> namespace...
>>
>>  
>> http://technet.microsoft.com/en-us/library/cc780572(WS.10).aspx
>>
>> Enjoy :)
>> --
>> Jonathan Angliss
>> 
>>
>>
>>
>> --
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>> trial. Simplify your report design, integration and deployment - and focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
>> reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>
>
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] is this a nagios bug?

2009-08-17 Thread Hardip Zhim
Hi,

I just upgraded to nagios 3.2.0 with ubuntu 9.4.x. 

Everything was working fine. And after couple of hours, I started to get
the following error messages:

08-17-2009 13:26:39] Successfully shutdown... (PID=11397)
08-17-2009 13:26:39] Caught SIGTERM, shutting down...
08-17-2009 13:26:36] SERVICE NOTIFICATION:
nagiosadmin;THOR-MAIL;NSClient++
Version;WARNING;notify-service-by-email;could not fetch information from
server



Any help?


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


Re: [Nagios-users] groups acknowledgment on web enterface

2009-08-17 Thread Marc Powell

On Aug 17, 2009, at 2:13 PM, shadih rahman wrote:

> All,
>I am running nagios version 3.0.6.   When in hostgroup or  
> servicegroup window on web interface like 
> https://example.com/nagios/cgi-bin/extinfo.cgi?type=5&hostgroup=example-groups
>  
> , there is no option to do group acknowledgment.  Are we offering  
> this option in nagios 3.2.0?  I think this is a very useful feature  
> that all can appreciate.  Please advise on this.  Thanks

Group acknowledgment has never been supported, nor can I recall ever  
having seen it discussed as a feature request. There are a number of  
things you can do with groups but that's not one of them. You should  
submit it to http://ideas.nagios.org.

The Mass-Ack addon script might be useful to you. It's command line  
but can be fairly easily modded to accept input from a web interface.

--
Marc


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


[Nagios-users] groups acknowledgment on web enterface

2009-08-17 Thread shadih rahman
All,
   I am running nagios version 3.0.6.   When in hostgroup or servicegroup
window on web interface like
https://example.com/nagios/cgi-bin/extinfo.cgi?type=5&hostgroup=example-groups,
there is no option to do group acknowledgment.  Are we offering this option
in nagios 3.2.0?  I think this is a very useful feature that all can
appreciate.  Please advise on this.  Thanks

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

Re: [Nagios-users] post upgrade issue (to 3.2)

2009-08-17 Thread Marc Powell

On Aug 17, 2009, at 11:08 AM, Tomasz Zajączkowski wrote:

> Hi all,
>
> I was wondering if you could help me. I upgraded 3.1.2 to 3.2 this  
> week. I moved all hosts/services files from the system and wanted to  
> start from scratch. I created bunch of .cfg files one for each host  
> and despite the template was the same I am receiving:
>
> "
> Warning: Duplicate definition found for host 'gbsr32' (config file '/ 
> usr/local/nagios/etc/hosts/config/gbsr32.cfg', starting on line 1)

[snip]

> so I am quite amused why I am getting this error while simillar  
> config file works fine for rest 30 hosts..?

You have a misconfiguration. You have either --
- multiple host{} definitions with the host_name of gbsr32
- the file gbsr32.cfg specified as a cfg_file in nagios.cfg multiple  
times
- the file gbsr32.cfg specified as a cfg_file in nagios.cfg _and_ it  
is in a directory structure that you include as a cfg_dir
- a symlink loop such that the file gbsr32.cfg is seen multiple times  
while processing a cfg_dir.

--
Marc


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

[Nagios-users] post upgrade issue (to 3.2)

2009-08-17 Thread Tomasz Zajączkowski
Hi all,

I was wondering if you could help me. I upgraded 3.1.2 to 3.2 this week. I
moved all hosts/services files from the system and wanted to start from
scratch. I created bunch of .cfg files one for each host and despite the
template was the same I am receiving:

"
Warning: Duplicate definition found for host 'gbsr32' (config file
'/usr/local/nagios/etc/hosts/config/gbsr32.cfg', starting on line 1)
Error: Could not add object property in file
'/usr/local/nagios/etc/hosts/config/gbsr32.cfg' on line 3.
Error processing object config files!
"

gbsr32.cfg looks like this:

define host{
use generic-host
host_name  gbsr32
alias   GBSR32
address  10.10.4.141
hostgroups  windows,config_group
}

so I am quite amused why I am getting this error while simillar config file
works fine for rest 30 hosts..? All windows/config_group are created, as
well as generic-host template.

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

Re: [Nagios-users] (Service Check Timed Out) returns critical

2009-08-17 Thread Jim Avery
2009/8/17 Marco Tirado :
> Hello Users:
>
>  I believe this question has popped out before in the forum but I still have
> not seen any direct answer. I have some problems with a couple of checks
> that return (Service Check Timed Out) with a critical state. I would ike to
> know if it is possible to configure these timeouts to returns status unknown
> instead.


It depends a little on which plugin it is you are using.  I think I've
seen some plugins which let you choose whether they will output
'UNKNOWN' or 'CRITICAL' on timeout.  Run the plugin yourself from the
command line with the "--help" option to check what options are
available.

If the plugin won't do it, you can change it yourself so it does (if
it's a script just edit it, if a binary then edit the source and
re-compile).  Alternatively, you can write a wrapper plugin which
alters the output of the original plugin (less efficient, but maybe
more convenient to implement in some circumstances).

Of course you could also increase the plugin timeout setting to the
point where it doesn't time-out, but that might not be entirely wise
if there are a lot of them running in your system.  You'd need to
check whether Nagios itself will time them out eventually too - see
the "TIMEOUT VALUES" section in your nagios.cfg file, expecially
service_check_timeout and host_check_timeout.
http://nagios.sourceforge.net/docs/3_0/configmain.html#service_check_timeout

hth,

Jim

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


Re: [Nagios-users] (Service Check Timed Out) returns critical

2009-08-17 Thread Marc Powell

On Aug 17, 2009, at 10:02 AM, Marco Tirado wrote:

> Hello Users:
>
>  I believe this question has popped out before in the forum but I  
> still have not seen any direct answer. I have some problems with a  
> couple of checks that return (Service Check Timed Out) with a  
> critical state. I would ike to know if it is possible to configure  
> these timeouts to returns status unknown instead.


It's not configurable but you can edit the source and recompile. There  
might be a better way to do this but I would --

In base/utils.c, look for  --

/* handle timeouts when executing service checks */
/* 07/16/08 EG also called when parent process gets a TERM signal */
void service_check_sighandler(int sig){
 struct timeval end_time;

 /* get the current time */
 gettimeofday(&end_time,NULL);

#ifdef SERVICE_CHECK_TIMEOUTS_RETURN_UNKNOWN
 check_result_info.return_code=STATE_UNKNOWN;
#else
 check_result_info.return_code=STATE_CRITICAL;
#endif


and add the single line --

#define SERVICE_CHECK_TIMEOUTS_RETURN_UNKNOWN

/* handle timeouts when executing service checks */
/* 07/16/08 EG also called when parent process gets a TERM signal */
void service_check_sighandler(int sig){
 struct timeval end_time;

...

--
Marc


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


[Nagios-users] (Service Check Timed Out) returns critical

2009-08-17 Thread Marco Tirado
Hello Users:

 I believe this question has popped out before in the forum but I still have
not seen any direct answer. I have some problems with a couple of checks
that return (Service Check Timed Out) with a critical state. I would ike to
know if it is possible to configure these timeouts to returns status unknown
instead.

Regards

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

Re: [Nagios-users] Attempting to compile Nagios 3.1.2 on Solaris 10

2009-08-17 Thread Juergen Arndt
Hi Rich,

edit / patch the configure script like this:

-s,@SOCKETLIBS@,$SOCKETLIBS,;t t
+s,@SOCKETLIBS@,-lnsl -lsocket,;t t

This includes the nsl and socket libraries and your problem should be  
solved. Both libs are contained in the package SUNWcsl which is a part of  
the Core Solaris, so they should be installed on your system by default.

Editing the configure script is maybe not the best solution but for me it  
was the easiest.

Hope that helps,

Juergen

On Mon, 17 Aug 2009 16:48:47 +0200, Rich Smith   
wrote:

> gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -o nagios
> nagios.c broker.o nebmods.o checks.o config.o commands.o events.o
> flapping.o logging.o macros-base.o netutils.o notifications.o
> sehandlers.o skiplist.o utils.o retention-base.o xretention-base.o
> comments-base.o xcomments-base.o objects-base.o xobjects-base.o
> statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o
> downtime-base.o xdowntime-base.o  ../common/snprintf.o   -L/usr/local/
> lib  -lm  -lpthread -ldl -lrt
> Undefined   first referenced
>   symbol in file
> recvnetutils.o
> sendnetutils.o
> socket  netutils.o
> getsockopt  netutils.o
> connect netutils.o
> getaddrinfo netutils.o
> freeaddrinfonetutils.o
> ld: fatal: Symbol referencing errors. No output written to nagios
> collect2: ld returned 1 exit status
> gmake[1]: *** [nagios] Error 1
> gmake[1]: Leaving directory `/export/home/nagios/nagios-src/
> nagios-3.1.2/base'
> gmake: *** [all] Error 2

-- 
Juergen Arndt

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


Re: [Nagios-users] Attempting to compile Nagios 3.1.2 on Solaris 10

2009-08-17 Thread James Pratt

>> -Original Message-
>> From: Rich Smith [mailto:rich.sm...@queensu.ca]
>> Sent: Monday, August 17, 2009 10:49 AM
>> To: nagios-users@lists.sourceforge.net
>> Subject: [Nagios-users] Attempting to compile Nagios 3.1.2 on Solaris
10
>> 
>> I'm trying to compile Nagios 3.1.2 on Solaris 10 Sparc.
>> 
>> I've installed the following from sunfreeware.com:
>> 
>> expat-2.0.1-sol10-sparc-local
>> fontconfig-2.4.2-sol10-sparc-local
>> freetype-2.3.9-sol10-sparc-local
>> gcc-3.4.6-sol10-sparc-local
>> gd-2.0.35-sol10-sparc-local
>> jpeg-7-sol10-sparc-local
>> libiconv-1.11-sol10-sparc-local
>> libintl-3.4.0-sol10-sparc-local
>> libpng-1.2.39-sol10-sparc-local
>> openssl-0.9.8k-sol10-sparc-local
>> t1lib-5.1.0-sol10-sparc-local
>> xpdf-3.02pl3-sol10-sparc-local
>> xpm-3.4k-sol10-sparc-local
>> zlib-1.2.3-sol10-sparc-local
>> 
>> 
>> env of user: Nagios
>> 
>> HOME=/export/home/nagios
>> PATH=/export/home/nagios/apps/local/bin:/usr/local/bin:/usr/sfw/bin:/
>> usr/bin:/etc:/usr/etc:/opt/local/bin:/home/ccs/qlib/bin:/usr/openwin/
>> bin:/usr/dt/bin:/usr/ccs/bin:/usr/opt/SUNWmd/sbin:/usr/ucb
>> SHELL=/bin/csh
>> PWD=/export/home/nagios/nagios-src/nagios-3.1.2
>>
LD_LIBRARY_PATH=/export/home/nagios/apps/local/lib:/usr/local/lib:/usr/
>> local/ssl/lib:/usr/sfw/lib
>> CC=gcc
>> 
>> Configure:
>>  > ./configure --prefix=/export/home/nagios/apps/local/nagios --with-
>> nagios-user=nagios --with-nagios-group=nagios
--with-gd-lib=/usr/local/
>> lib --with-gd-inc=/usr/local/include --with-httpd-conf=/export/home/
>> nagios
>>  > gmake all
>> 
>> gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -o nagios
>> nagios.c broker.o nebmods.o checks.o config.o commands.o events.o
>> flapping.o logging.o macros-base.o netutils.o notifications.o
>> sehandlers.o skiplist.o utils.o retention-base.o xretention-base.o
>> comments-base.o xcomments-base.o objects-base.o xobjects-base.o
>> statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o
>> downtime-base.o xdowntime-base.o  ../common/snprintf.o
-L/usr/local/
>> lib  -lm  -lpthread -ldl -lrt
>> Undefined   first referenced
>>   symbol in file
>> recvnetutils.o
>> sendnetutils.o
>> socket  netutils.o
>> getsockopt  netutils.o
>> connect netutils.o
>> getaddrinfo netutils.o
>> freeaddrinfonetutils.o
>> ld: fatal: Symbol referencing errors. No output written to nagios
>> collect2: ld returned 1 exit status
>> gmake[1]: *** [nagios] Error 1
>> gmake[1]: Leaving directory `/export/home/nagios/nagios-src/
>> nagios-3.1.2/base'
>> gmake: *** [all] Error 2
>> 
>> No matter what I keep getting hit with this. ANyone get past this?
>> 
>> Thanks,
>> Rich

Not positive, but this may help:

http://thread.gmane.org/gmane.network.nagios.devel/6123

cheers,
Jamie

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


Re: [Nagios-users] searching "howto use snmp"

2009-08-17 Thread David Rosenstrauch
On 08/14/2009 03:26 PM, irado furioso com tudo wrote:
> hi, all
> 
> I found (google) lots of crypt information on how to query remote hosts
> about disk usage but none I can understand :(
> 
> also, there are no search engine for previouos posts on the subject in
> older lists, so:
> 
> can anyone point me WHERE can I found a non-cryptographic information
> on "how to get info on disk usage on remote hosts"?
> 
> Nagios 2.12 on FreeBSD 7.2
> 
> TIA

Easiest options are either:

1) run NRPE on the remote box, and have the main Nagios machine 
communicate with the remote NRPE daemon (using the check_nrpe plugin) to 
perform a disk usage check, or

2) same as #1, but using SSH instead of NRPE (using the check_by_ssh plugin)

You can check the --help for both of those plugins for more info, and 
there's also a whole document about NRPE up at the Nagios web site.

HTH,

DR

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


[Nagios-users] Attempting to compile Nagios 3.1.2 on Solaris 10

2009-08-17 Thread Rich Smith
I'm trying to compile Nagios 3.1.2 on Solaris 10 Sparc.

I've installed the following from sunfreeware.com:

expat-2.0.1-sol10-sparc-local
fontconfig-2.4.2-sol10-sparc-local
freetype-2.3.9-sol10-sparc-local
gcc-3.4.6-sol10-sparc-local
gd-2.0.35-sol10-sparc-local
jpeg-7-sol10-sparc-local
libiconv-1.11-sol10-sparc-local
libintl-3.4.0-sol10-sparc-local
libpng-1.2.39-sol10-sparc-local
openssl-0.9.8k-sol10-sparc-local
t1lib-5.1.0-sol10-sparc-local
xpdf-3.02pl3-sol10-sparc-local
xpm-3.4k-sol10-sparc-local
zlib-1.2.3-sol10-sparc-local


env of user: Nagios

HOME=/export/home/nagios
PATH=/export/home/nagios/apps/local/bin:/usr/local/bin:/usr/sfw/bin:/ 
usr/bin:/etc:/usr/etc:/opt/local/bin:/home/ccs/qlib/bin:/usr/openwin/ 
bin:/usr/dt/bin:/usr/ccs/bin:/usr/opt/SUNWmd/sbin:/usr/ucb
SHELL=/bin/csh
PWD=/export/home/nagios/nagios-src/nagios-3.1.2
LD_LIBRARY_PATH=/export/home/nagios/apps/local/lib:/usr/local/lib:/usr/ 
local/ssl/lib:/usr/sfw/lib
CC=gcc

Configure:
 > ./configure --prefix=/export/home/nagios/apps/local/nagios --with- 
nagios-user=nagios --with-nagios-group=nagios --with-gd-lib=/usr/local/ 
lib --with-gd-inc=/usr/local/include --with-httpd-conf=/export/home/ 
nagios
 > gmake all

gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -o nagios  
nagios.c broker.o nebmods.o checks.o config.o commands.o events.o  
flapping.o logging.o macros-base.o netutils.o notifications.o  
sehandlers.o skiplist.o utils.o retention-base.o xretention-base.o  
comments-base.o xcomments-base.o objects-base.o xobjects-base.o  
statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o  
downtime-base.o xdowntime-base.o  ../common/snprintf.o   -L/usr/local/ 
lib  -lm  -lpthread -ldl -lrt
Undefined   first referenced
  symbol in file
recvnetutils.o
sendnetutils.o
socket  netutils.o
getsockopt  netutils.o
connect netutils.o
getaddrinfo netutils.o
freeaddrinfonetutils.o
ld: fatal: Symbol referencing errors. No output written to nagios
collect2: ld returned 1 exit status
gmake[1]: *** [nagios] Error 1
gmake[1]: Leaving directory `/export/home/nagios/nagios-src/ 
nagios-3.1.2/base'
gmake: *** [all] Error 2

No matter what I keep getting hit with this. ANyone get past this?

Thanks,
Rich

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


Re: [Nagios-users] How to detect MSSQL cluster failover?

2009-08-17 Thread Marco Tirado
Hello Jon:

Thank you for the information, I guess the snmp option is the quick and
dirty way to go. I have never worked with WMI before, however I it is never
late to start.

Is it possible to access the MSCluster namespace using NSClient++?

We use NSClient++ for accessing performance counters at the moment but we
have not experimented with WMI yet.

Regards

Marco

On Fri, Aug 14, 2009 at 6:51 AM, Jon Angliss  wrote:

> On Wed, 12 Aug 2009 15:08:56 +0200, Marco Tirado
>  wrote:
>
> >Hello users:
> >
> >I would like to know what is the easiest way to detect when a failover
> >occurs in an MSSQL cluster. I need a simple check that tells me when our
> >database cluster fails from physical node "X" to node physical node "Y"
> >
> >Has anybody done this? Maybe with a passive check?
>
> I used to do a quick and dirty way and use the SNMP sysName, and look
> for a specific value.  If it changed from one name to another, it had
> failed over...
>
> ./check_snmp -H host -v 1 -c public -o .1.3.6.1.2.1.1.5.0 -s
> "expectedname"
>
> Or, if you've had experience with WMI, you can hit the MSCluster
> namespace...
>
>  
> http://technet.microsoft.com/en-us/library/cc780572(WS.10).aspx
>
> Enjoy :)
> --
> Jonathan Angliss
> 
>
>
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Comment on service

2009-08-17 Thread Marc Powell

On Aug 17, 2009, at 9:12 AM, mirko stefanelli wrote:

> Hi to all,
>
> I run nagios ver. 3.2.0 on ubutnu server kernel 2.6.24-23. I have  
> seen that when a service is change state from normal to warning  I  
> put some comment for this kind of event. When the state of the  
> service is restored also the comments are cancelled. There is any  
> way to maintain the comment?

Select 'Persistent Comment' when acknowledging the problem. From the  
Command Description box on that same page --

"If you would like the service comment to remain once the  
acknowledgement is removed, check the 'Persistent Comment' checkbox."

--
Marc


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


Re: [Nagios-users] Web interface issues

2009-08-17 Thread Marc Powell

On Aug 17, 2009, at 6:45 AM, Gabriel - IP Guys wrote:

> Dear All,
>
> I have the following problem – I click in the tactical overview, and  
> I am greeted with the message
>
> “Whoops! Error could not read object configuration data”

Nagios must be running. It sounds like it is not.

>
> All files belong to nagios, and are in the group nagcmd and nagios  
> is also in the group called nagcmd. Apache is also in this group.  
> When I run nagios –v nagios.config.file I get no errors, but if I  
> do /etc/init.d/nagios restart – It fails.

How does it fail? What does nagios.log show? Is the nagios process  
started?

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


[Nagios-users] Comment on service

2009-08-17 Thread mirko stefanelli
Hi to all,

I run nagios ver. 3.2.0 on ubutnu server kernel 2.6.24-23. I have seen that
when a service is change state from normal to warning  I put some comment
for this kind of event. When the state of the service is restored also the
comments are cancelled. There is any way to maintain the comment?

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

Re: [Nagios-users] Web interface issues

2009-08-17 Thread Jim Avery
2009/8/17 Gabriel - IP Guys :
> When I run nagios
> –v nagios.config.file I get no errors, but if I do /etc/init.d/nagios
> restart – It fails.

Where is the file "nagios.config.file"?  Any idea why you're not using
the usual standard nagios config file /usr/local/nagios/etc/nagios.cfg
?


Try:

/etc/init.d/nagios stop

then  "ps -ef | grep nagios" to make sure the daemon really has
stopped.  When you're happy it has, then:

/etc/init.d/nagios start



What happens when you say "it fails"?  Do you get any error message on
the screen?  Do you have a "nagios" process running?  Is there
anything in the log file (usually /usr/local/nagios/var/nagios.log)?

Cheers,

Jim

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


Re: [Nagios-users] searching "howto use snmp"

2009-08-17 Thread Paul Weaver
> From: Menard, Chris [mailto:chris.men...@aspect.com] 
>
> nrpe is a small agent that is installed on remote server.  
> The main nagios process makes requests to nrpe to collect 
> remote stats.

Many network devices will have SNMP running already, for some
(especially 
nat-in-a-box devices) it's the only way. Many corporations will prefer 
monitoring systems use SNMP to their own agents.

> can anyone point me WHERE can I found a non-cryptographic information
> on "how to get info on disk usage on remote hosts"?

Using SNMP and Nagios, you could run the following plugin
http://www.monitoringexchange.org/cgi-bin/page.cgi?g=Detailed%2F2045.htm
l;d=1

(We've made a few additions)
http://195.50.87.86/check_hd.txt

However as Jim has said, getting a good book on nagios (like the
Wolfgang 
book) is a good start if you don't understand now the nagios system
works, 
once you understand the basics, you can add in plugins from
monitoringexchange.

--
Paul Weaver 
Systems Development Engineer
News Production Facilities, BBC News


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


[Nagios-users] Web interface issues

2009-08-17 Thread Gabriel - IP Guys
Dear All,

 

I have the following problem - I click in the tactical overview, and I
am greeted with the message

 

"Whoops! Error could not read object configuration data"

 

All files belong to nagios, and are in the group nagcmd and nagios is
also in the group called nagcmd. Apache is also in this group. When I
run nagios -v nagios.config.file I get no errors, but if I do
/etc/init.d/nagios restart - It fails.

 

I am running on a centos  box, with a 64 bit install, and all available
updates - and ideas? 

 

---

Kind Regards,

Mr Gabriel

 

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