Re: [Nagios-users] check_dhcp issue

2009-06-25 Thread Andreas Ericsson
Dei Bertine wrote:
> Ok did that but still error:
> r...@tool:/usr/local/nagios/libexec# chmod 4755 ./check_dhcp
> r...@tool:/usr/local/nagios/libexec# ls -als check_dhcp
> 76 -rwsr-xr-x 1 nagios nagios 72834 2009-04-26 21:06 check_dhcp
> nag...@tool:~/libexec$ ./check_dhcp -s serveip1
> Error: Could not bind socket to interface eth0.  Check your privileges...
> 
> Any other ideas?
> 

Sorry. As root:
chown root:root check_dhcp && chmod 4755 check_dhcp

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
___
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_dhcp issue

2009-06-25 Thread Dei Bertine
Ok did that but still error:
r...@tool:/usr/local/nagios/libexec# chmod 4755 ./check_dhcp
r...@tool:/usr/local/nagios/libexec# ls -als check_dhcp
76 -rwsr-xr-x 1 nagios nagios 72834 2009-04-26 21:06 check_dhcp
nag...@tool:~/libexec$ ./check_dhcp -s serveip1
Error: Could not bind socket to interface eth0.  Check your privileges...

Any other ideas?

Thanks. 





From: Andreas Ericsson 
To: Dei Bertine 
Cc: nagios-users@lists.sourceforge.net
Sent: Thursday, June 25, 2009 10:43:13 PM
Subject: Re: [Nagios-users] check_dhcp issue

Dei Bertine wrote:
> Hi all,
> 
> I need to monitor our dhcp server and came to see the check_dhcp plugin.
> 
> However I'm getting this error when initiating the command:
> 
> nag...@tool:~/libexec$ ./check_dhcp -s serveip1
> Error: Could not bind socket to interface eth0.  Check your privileges...
> 
> But when I am on root, I get this: r...@tool:/usr/local/nagios/libexec# 
> ./check_dhcp -s serveip1
> OK: Received 1 DHCPOFFER(s), max lease time = 86400 sec
> 
> ls -als on check_dhcp:
> 76 -rwxr-xr-x 1 nagios nagios 72834 2009-04-27 13:06 check_dhcp
> 
> Do I need to do something like set permissions on serveip1 server? 
> Please advise.
> 

As root on your nagios server:
chmod 4755 ./check_dhcp

-- Andreas Ericsson  andreas.erics...@op5.se
OP5 ABwww.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.



  --
___
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_dhcp issue

2009-06-25 Thread Andreas Ericsson
Dei Bertine wrote:
> Hi all,
> 
> I need to monitor our dhcp server and came to see the check_dhcp plugin.
> 
> However I'm getting this error when initiating the command:
> 
> nag...@tool:~/libexec$ ./check_dhcp -s serveip1
> Error: Could not bind socket to interface eth0.  Check your privileges...
> 
> But when I am on root, I get this: 
> r...@tool:/usr/local/nagios/libexec# ./check_dhcp -s serveip1
> OK: Received 1 DHCPOFFER(s), max lease time = 86400 sec
> 
> ls -als on check_dhcp:
> 76 -rwxr-xr-x 1 nagios nagios 72834 2009-04-27 13:06 check_dhcp
> 
> Do I need to do something like set permissions on serveip1 server? 
> 
> Please advise.
> 

As root on your nagios server:
chmod 4755 ./check_dhcp

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
___
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_dhcp issue

2009-06-25 Thread Dei Bertine
Hi all,

I need to monitor our dhcp server and came to see the check_dhcp plugin.

However I'm getting this error when initiating the command:

nag...@tool:~/libexec$ ./check_dhcp -s serveip1
Error: Could not bind socket to interface eth0.  Check your privileges...

But when I am on root, I get this: 
r...@tool:/usr/local/nagios/libexec# ./check_dhcp -s serveip1
OK: Received 1 DHCPOFFER(s), max lease time = 86400 sec

ls -als on check_dhcp:
76 -rwxr-xr-x 1 nagios nagios 72834 2009-04-27 13:06 check_dhcp

Do I need to do something like set permissions on serveip1 server? 

Please advise.

Thanks! 
DB



  --
___
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] how can I access data stored by pnp4nagios

2009-06-25 Thread Rahul Nabar
I just updated my nagios installation so that I can get cpu-core
temperatures with lm_sensors. Works fine. I have pnp4nagios which give good
time series trends of temperatures as well.

But the problem is if I want a snapshot of CPU temperatures right now for my
whole server room hardware (or at any other past instance of time)
pnp4nagios is not useful. It gives a time series but not a spatial (trend
over servers at a point in time) graph. If I wanted to hack together my own
graphing tool what's the best place to pull out data from?

Digging in I noticed the /nagios/share/perfdata/serverxxx/ directory which
does have the xml and rrd files. Is this a good spot to pull data out from
for each monitored server?

Unfortunately that would only be for the latest time instance , right? But
since pnp4nagios can plot over a time range it must have access to historic
temperatures too. So, where are these stored? I suspect internally  as a
binary produced my rrdtool?

In which case is there another way for me to access historic_perf_quantity
at a given point in time for all servers? Or perhaps it is possible to
generate something like this using custom rrdtool queries?

Any sugesstions?

-- 
Rahul
--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] how can I access data stored by pnp4nagios

2009-06-25 Thread Rahul Nabar
On Thu, Jun 25, 2009 at 7:31 PM, Rahul Nabar  wrote:

>
>
> In which case is there another way for me to access historic_perf_quantity
> at a given point in time for all servers? Or perhaps it is possible to
> generate something like this using custom rrdtool queries?
>
> Any suggestions?
>

Just noticed that one of my old emails had received a pointed to the "pages"
feature in pnp4nagios. Maybe that will work this time around..

-- 
Rahul
--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] NDOUtils and Mysql libraries assistance needed

2009-06-25 Thread Natalie Aloi
I change it but am still getting could not sink data error...

# DATABASE TABLE PREFIX
# Determines the prefix (if any) that should be prepended to table names.
#db_prefix=
db_prefix=ndo_

then I stopped ndo2db and restarted it, then restarted nagios
[r...@nagios nagios]# ps -ef | grep ndo2db
root 601 1 0 13:04 ? 00:00:00 ndo2db -c /etc/nagios/ndo2db.cfg
root 11550 12431 0 16:01 pts/1 00:00:00 grep ndo2db
[r...@nagios nagios]# kill 601
[r...@nagios nagios]# ps -ef | grep ndo2db
root 13403 12431 0 16:07 pts/1 00:00:00 grep ndo2db
[r...@nagios nagios]# cd /usr/sbin
[r...@nagios sbin]# ndo2db -c /etc/nagios/ndo2db.cfg
[r...@nagios sbin]# sudo service nagios restart
Running configuration check...done
Stopping nagios: .done.
Starting nagios: done.
[r...@nagios sbin]# tail /var/log/nagios/nagios.log
[1245960534] Caught SIGTERM, shutting down...
[1245960534] Successfully shutdown... (PID=3070)
[1245960534] ndomod: Shutdown complete.
[1245960534] Event broker module '/usr/sbin/ndomod.o' deinitialized 
successfully.
[1245960535] Nagios 2.11 starting... (PID=14253)
[1245960535] LOG VERSION: 2.0
[1245960535] ndomod: NDOMOD 1.3.1 Copyright (c) 2005-2006 Ethan Galstad 
(nag...@nagios.org)
[1245960535] ndomod: Could not open data sink! I'll keep trying, but some 
output may get lost...
[1245960535] Event broker module '/usr/sbin/ndomod.o' initialized successfully.
[1245960535] Finished daemonizing... (New PID=14254)

-Original Message-
From: Michael Friedrich [mailto:michael.friedr...@univie.ac.at]
Sent: Thursday, June 25, 2009 02:18 PM
To: 'Natalie Aloi'
Cc: 'Nagios Users Mail-list'
Subject: Re: [Nagios-users] NDOUtils and Mysql libraries assistance needed

Your database table scheme is with prefix "ndo_" so you have to set that in 
your ndo2db.cfg too

and make sure you start ndo2db first and then nagios.


Natalie Aloi wrote: woohoo! Thanks Michael!
[r...@nagios src]# cp ndomod-2x.o /usr/sbin/ndomod.o
cp: overwrite `/usr/sbin/ndomod.o'? y
[r...@nagios src]# cp ndo2db-2x /usr/sbin/ndo2db
[r...@nagios src]# cd /usr/sbin
[r...@nagios sbin]# ndo2db -c /etc/nagios/ndo2db.cfg
[r...@nagios sbin]# ps -ef | grep ndo2db
root 601 1 0 13:04 ? 00:00:00 ndo2db -c /etc/nagios/ndo2db.cfg
root 617 12431 0 13:04 pts/1 00:00:00 grep ndo2db
[r...@nagios sbin]#

Except!...shoot!...I am getting that dumb error but I have those lines verified 
- ndo2db.cfg and ndomod.cfg files included

[r...@nagios nagios]# tail /var/log/nagios/nagios.log
[1245950692] Caught SIGTERM, shutting down...
[1245950692] Successfully shutdown... (PID=739)
[1245950692] ndomod: Shutdown complete.
[1245950692] Event broker module '/usr/sbin/ndomod.o' deinitialized 
successfully.
[1245950693] Nagios 2.11 starting... (PID=1813)
[1245950693] LOG VERSION: 2.0
[1245950693] ndomod: NDOMOD 1.3.1 Copyright (c) 2005-2006 Ethan Galstad 
(nag...@nagios.org)
[1245950693] ndomod: Could not open data sink! I'll keep trying, but some 
output may get lost...
[1245950693] Event broker module '/usr/sbin/ndomod.o' initialized successfully.
[1245950693] Finished daemonizing... (New PID=1814)

[r...@nagios nagios]# more ndomod.cfg
#
# NDOMOD CONFIG FILE
#
# Last Modified: 01-10-2006
#

# INSTANCE NAME
# This option identifies the "name" associated with this particular
# instance of Nagios and is used to seperate data coming from multiple
# instances. Defaults to 'default' (without quotes).
instance_name=default

# OUTPUT TYPE
# This option determines what type of output sink the NDO NEB module
# should use for data output. Valid options include:
# file = standard text file
# tcpsocket = TCP socket
# unixsocket = UNIX domain socket (default)
#output_type=file
#output_type=tcpsocket
output_type=unixsocket

# OUTPUT
# This option determines the name and path of the file or UNIX domain
# socket to which output will be sent if the output type option specified
# above is "file" or "unixsocket", respectively. If the output type
# option is "tcpsocket", this option is used to specify the IP address
# of fully qualified domain name of the host that the module should
# connect to for sending output.
#output=/usr/local/nagios/var/ndo.dat
#output=127.0.0.1
output=/var/run/nagios/ndo.sock

[r...@nagios nagios]# more ndo2db.cfg
#
# NDO2DB DAEMON CONFIG FILE
#
# Last Modified: 02-12-2006
#

# SOCKET TYPE
# This option determines what type of socket the daemon will create
# an accept connections from.
# Value:
# unix = Unix domain socket (default)
# tcp = TCP socket
socket_type=unix
#socket_type=tcp

# SOCKET NAME
# This option determines the name and path of the UNIX domain
# socket that the daemon will create and accept connections from.
# This option is only valid if the socket type specified above
# is "unix".
#socket_name=

Re: [Nagios-users] Problem getting past main page

2009-06-25 Thread Guy Waugh
Hi again Andrew,

OK, now that you've made it to the point where nagios (and apache) appears
to be working, it looks like it doesn't know about some commands, contacts
and contactgroups that are used in the localhost.cfg file. You could read
the nagios documentation, and/or try to find where those things are defined
on your old nagios host and bring them over to the new one. They might be in
files called 'commands.cfg', 'contacts.cfg' and 'contactgroups.cfg'.

Cheers,
Guy.

On Thu, Jun 25, 2009 at 8:44 PM, Kaplan, Andrew H. wrote:

>  I have made some progress. I removed the nagios.conf file from the
> /etc/httpd/conf.d directory.
> Once that was done, I was able to get past the main screen. My next step
> was to configure
> the various cfg files fromt Nagios 2.6 to work with the Nagios 3.1.2
> application. I added several
> lines to the nagios.cfg file that pointed to the location of the files
> that I brought over.
>
> I ran the preflight check again, and now I have the following appearing
> on-screen:
>
> Checking services...
> Error: Contact group 'admins' specified in service 'Current Load' for host
> 'localhost' is not defined anywhere!
> Error: Contact group 'admins' specified in service 'Current Users' for host
> 'localhost' is not defined anywhere!
> Error: Contact group 'admins' specified in service 'HTTP' for host
> 'localhost' is not defined anywhere!
> Error: Contact group 'admins' specified in service 'PING' for host
> 'localhost' is not defined anywhere!
> Error: Contact group 'admins' specified in service 'Root Partition' for
> host 'localhost' is not defined anywhere!
> Error: Service check command 'check_ssh' specified in service 'SSH' for
> host 'localhost' not defined anywhere!
> Error: Contact group 'admins' specified in service 'SSH' for host
> 'localhost' is not defined anywhere!
> Error: Service check command 'check_local_swap' specified in service 'Swap
> Usage' for host 'localhost' not defined anywhere!
> Error: Contact group 'admins' specified in service 'Swap Usage' for host
> 'localhost' is not defined anywhere!
> Error: Contact group 'admins' specified in service 'Total Processes' for
> host 'localhost' is not defined anywhere!
>
> I checked the /usr/local/nagios/etc/ and /usr/local/nagios/etc/objects
> directories, and each has a localhost.cfg file
> in it. The nagios.cfg file points to the latter as the one that it looks to
> for configuration settings. I checked through it,
> and there is no mention of admins anywhere. I also checked the services.cfg
> file in the same directory as localhost,
> with the results being the same.
>
> Where is this cause of complaint originating from, and how can I correct
> it? Thanks.
>
>
>
>
>  --
>  *From:* Guy Waugh [mailto:guid...@gmail.com]
> *Sent:* Thursday, June 25, 2009 10:57 AM
> *To:* Kaplan, Andrew H.
> *Cc:* nagios-users@lists.sourceforge.net
>
> *Subject:* Re: [Nagios-users] Problem getting past main page
>
>   Hi again,
>
> On Thu, Jun 25, 2009 at 3:39 PM, Kaplan, Andrew H. 
> wrote:
>
>>  Hi there --
>>
>> I can answer your questions in the order they were asked:
>>
>> 1. I made sure to restart apache after the changes were made via the "sudo
>> /etc/init.d/httpd restart" command syntax.
>>
>
> OK, great. Just making sure :-)
>
>
>>
>> 2. The output of the apachectl configtest is the following:
>> [Thu Jun 25 10:22:48 2009] [warn] The ScriptAlias directive in
>> /etc/httpd/conf/httpd.conf at line 566 will probably never match because it
>> overlaps an earlier Alias.
>> [Thu Jun 25 10:22:48 2009] [warn] The Alias directive in
>> /etc/httpd/conf/httpd.conf at line 583 will probably never match because it
>> overlaps an earlier Alias.
>> Syntax OK
>>
>
> Right. This indicates that the configuration options for the 'ScriptAlias
> /nagios/cgi-bin /usr/local/nagios/sbin' and 'Alias /nagios
> /usr/local/nagios/share' on lines 566 and 583 of your httpd.conf file aren't
> taking effect. This is probably because there is a file in /etc/httpd/conf.d
> (possibly 'nagios.conf'?) that is being loaded before apache parses those
> lines in your httpd.conf file (see line 210 of your httpd.conf file:
> 'include conf.d/*.conf'). Have a look at the file in /etc/httpd/conf.d and
> see what ScriptAlias and Alias definitions exist in that file. It might in
> fact make more sense to put the nagios web configuration in that file rather
> than in the httpd.conf file... though it's up to you. There should only be
> one definition for the nagios Alias and ScriptAlias definitions, and they
> should be as they currently are in your httpd.conf file.
>
>
>>
>> 3. The files that are located in the /usr/local/nagios/sbin directory are
>> the following:
>> -rwxrwxr-x 1 nagios nagios 229964 Jun 24 15:48 avail.cgi
>> -rwxrwxr-x 1 nagios nagios 225272 Jun 24 15:48 cmd.cgi
>> -rwxrwxr-x 1 nagios nagios 193036 Jun 24 15:48 config.cgi
>> -rwxrwxr-x 1 nagios

Re: [Nagios-users] Server/host Inheritance

2009-06-25 Thread Mark Gius
As far as I know no. 

If you're logged in as a user that hasn't been hardcoded for full-access 
to CGIs, you can only see hosts and services that you're listed as a 
contact for (and as long as you're not going hog-wild with service 
escalations they'll get notified for those hosts/services), so that's 
one way, but if you're using service escalations I'm not aware of any 
way to see that from the web interface.

-Gius

Jason Frisvold wrote:
> Excellent, thanks to you and Mathew .. This is exactly the info I needed.
> One more ..  Is there a way to see, via the interface, who will be
> notified when something happens?  This would help considerably with
> configuration/debugging.
>
> Thanks!
>
>   


--
___
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] Server/host Inheritance

2009-06-25 Thread Jason Frisvold
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/25/2009 12:38 PM, Mark Gius wrote:
> You're going to want to read this:
> http://nagios.sourceforge.net/docs/3_0/objectinheritance.html,
> specifically "implied inheritance" about 3/4 of the way down.

Excellent, thanks to you and Mathew ..  This is exactly the info I needed.

One more ..  Is there a way to see, via the interface, who will be
notified when something happens?  This would help considerably with
configuration/debugging.

Thanks!

> -Gius

- -- 
- ---
Jason Frisvold
Network Engineer
frisv...@lafayette.edu
- ---
"What I cannot create, I do not understand"
   - Richard Feynman
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkpD2egACgkQO80o6DJ8UvkijACePfUOuDdnzLS2+5AjCLNbQkck
gZgAnjL2ZUkm/ODlKa3t4HIGK9C3YID0
=oz4F
-END PGP SIGNATURE-

--
___
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 getting past main page

2009-06-25 Thread Kaplan, Andrew H.
I have made some progress. I removed the nagios.conf file from the
/etc/httpd/conf.d directory.
Once that was done, I was able to get past the main screen. My next step was to
configure 
the various cfg files fromt Nagios 2.6 to work with the Nagios 3.1.2
application. I added several 
lines to the nagios.cfg file that pointed to the location of the files that I
brought over. 
 
I ran the preflight check again, and now I have the following appearing
on-screen:
 
Checking services...
Error: Contact group 'admins' specified in service 'Current Load' for host
'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Current Users' for host
'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'HTTP' for host 'localhost'
is not defined anywhere!
Error: Contact group 'admins' specified in service 'PING' for host 'localhost'
is not defined anywhere!
Error: Contact group 'admins' specified in service 'Root Partition' for host
'localhost' is not defined anywhere!
Error: Service check command 'check_ssh' specified in service 'SSH' for host
'localhost' not defined anywhere!
Error: Contact group 'admins' specified in service 'SSH' for host 'localhost' is
not defined anywhere!
Error: Service check command 'check_local_swap' specified in service 'Swap
Usage' for host 'localhost' not defined anywhere!
Error: Contact group 'admins' specified in service 'Swap Usage' for host
'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Total Processes' for host
'localhost' is not defined anywhere!
 
I checked the /usr/local/nagios/etc/ and /usr/local/nagios/etc/objects
directories, and each has a localhost.cfg file
in it. The nagios.cfg file points to the latter as the one that it looks to for
configuration settings. I checked through it,
and there is no mention of admins anywhere. I also checked the services.cfg file
in the same directory as localhost,
with the results being the same.
 
Where is this cause of complaint originating from, and how can I correct it?
Thanks.
 
 





From: Guy Waugh [mailto:guid...@gmail.com] 
Sent: Thursday, June 25, 2009 10:57 AM
To: Kaplan, Andrew H.
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Problem getting past main page


Hi again,


On Thu, Jun 25, 2009 at 3:39 PM, Kaplan, Andrew H. 
wrote:


Hi there --
 
I can answer your questions in the order they were asked:
 
1. I made sure to restart apache after the changes were made via the
"sudo /etc/init.d/httpd restart" command syntax.


OK, great. Just making sure :-)
 


 
2. The output of the apachectl configtest is the following:
[Thu Jun 25 10:22:48 2009] [warn] The ScriptAlias directive
in /etc/httpd/conf/httpd.conf at line 566 will probably never match because it
overlaps an earlier Alias.
[Thu Jun 25 10:22:48 2009] [warn] The Alias directive in
/etc/httpd/conf/httpd.conf at line 583 will probably never match because it
overlaps an earlier Alias.
Syntax OK


Right. This indicates that the configuration options for the 'ScriptAlias
/nagios/cgi-bin /usr/local/nagios/sbin' and 'Alias /nagios
/usr/local/nagios/share' on lines 566 and 583 of your httpd.conf file aren't
taking effect. This is probably because there is a file in /etc/httpd/conf.d
(possibly 'nagios.conf'?) that is being loaded before apache parses those lines
in your httpd.conf file (see line 210 of your httpd.conf file: 'include
conf.d/*.conf'). Have a look at the file in /etc/httpd/conf.d and see what
ScriptAlias and Alias definitions exist in that file. It might in fact make more
sense to put the nagios web configuration in that file rather than in the
httpd.conf file... though it's up to you. There should only be one definition
for the nagios Alias and ScriptAlias definitions, and they should be as they
currently are in your httpd.conf file.
 


 
3. The files that are located in the /usr/local/nagios/sbin directory
are the following:
-rwxrwxr-x 1 nagios nagios 229964 Jun 24 15:48 avail.cgi
-rwxrwxr-x 1 nagios nagios 225272 Jun 24 15:48 cmd.cgi
-rwxrwxr-x 1 nagios nagios 193036 Jun 24 15:48 config.cgi
-rwxrwxr-x 1 nagios nagios 246284 Jun 24 15:48 extinfo.cgi
-rwxrwxr-x 1 nagios nagios 197292 Jun 24 15:48 histogram.cgi
-rwxrwxr-x 1 nagios nagios 176684 Jun 24 15:48 history.cgi
-rwxrwxr-x 1 nagios nagios 172812 Jun 24 15:48
notifications.cgi
-rwxrwxr-x 1 nagios nagios 168460 Jun 24 15:48 outages.cgi
-rwxrwxr-x 1 nagios nagios 172844 Jun 24 15:48 showlog.cgi
-rwxrwxr-x 1 nagios nagios 234156 Jun 24 15:48 status.cgi
-rwxrwxr-x 1 nagios nagios 190220 Jun 24 15:48 status

[Nagios-users] dynamic service name creation

2009-06-25 Thread shadih rahman
All,
   I am trying to create my service name dynamically.  Can someone tell me a
clever way to do.   What I am tyring to achive is the following.  I have a
servicename "outlet1outputcurrent".  Outlet1 is connected to host1.  I can
get the hostname for host1 by doing a snmp query.  Somehow I want to
generate the servicename to say "host1outputcurrent".  Is it possible to do
this using check_snmp plugin.  Please advise on this.  Thanks

-- 
Cordially,
Shadhin Rahman
--
___
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] adding custom macros/variables/objects

2009-06-25 Thread Eric Pearce
I currently use the two "url" variables for different ways of connecting to a 
host from the nagios webpage:

define host{
use generic-host
host_name   vpn-server
address 192.168.1.1
contact_groups  it
notes_url   https://192.168.1.1
action_url  ssh://192.168.1.1
statusmap_image cisco.png
}

I just click on the "notes" or "action" icon and it fires up a new browser or 
ssh window to the host.  What I would like to do is add more of these "url" 
variables, for example, connect to a digital KVM switch, turn the host power on 
and off with some SNMP commands, connect to the host RAID controller's web 
interface, etc.  Is there an easy way to add more of these variables and have 
them show up in the GUI?   I see the documentation regarding custom object 
variables, but a quick glance at the cgi source code made it appear that all 
this stuff is hard-coded.   I suppose I could use one the existing "url" 
variables to send me to another landing page with my custom buttons, but it 
would nice to have everything in one spot in the GUI.I'm also open to other 
ways to doing the same thing. 
Thanks
-e
--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] NDOUtils and Mysql libraries assistance needed

2009-06-25 Thread Michael Friedrich
Your database table scheme is with prefix "ndo_" so you have to set that 
in your ndo2db.cfg too


and make sure you start ndo2db first and then nagios.


Natalie Aloi wrote:

woohoo! Thanks Michael!
[r...@nagios src]# cp ndomod-2x.o /usr/sbin/ndomod.o
cp: overwrite `/usr/sbin/ndomod.o'? y
[r...@nagios src]# cp ndo2db-2x /usr/sbin/ndo2db
[r...@nagios src]# cd /usr/sbin
[r...@nagios sbin]# ndo2db -c /etc/nagios/ndo2db.cfg
[r...@nagios sbin]# ps -ef | grep ndo2db
root   601 1  0 13:04 ?00:00:00 ndo2db -c 
/etc/nagios/ndo2db.cfg

root   617 12431  0 13:04 pts/100:00:00 grep ndo2db
[r...@nagios sbin]#
 
Except!...shoot!...I am getting that dumb error but I have those lines 
verified - ndo2db.cfg and ndomod.cfg files included
 
[r...@nagios nagios]# tail /var/log/nagios/nagios.log

[1245950692] Caught SIGTERM, shutting down...
[1245950692] Successfully shutdown... (PID=739)
[1245950692] ndomod: Shutdown complete.
[1245950692] Event broker module '/usr/sbin/ndomod.o' deinitialized 
successfully.

[1245950693] Nagios 2.11 starting... (PID=1813)
[1245950693] LOG VERSION: 2.0
[1245950693] ndomod: NDOMOD 1.3.1 Copyright (c) 2005-2006 Ethan 
Galstad (nag...@nagios.org )
[1245950693] ndomod: Could not open data sink!  I'll keep trying, but 
some output may get lost...
[1245950693] Event broker module '/usr/sbin/ndomod.o' initialized 
successfully.

[1245950693] Finished daemonizing... (New PID=1814)
 
[r...@nagios nagios]# more ndomod.cfg

#
# NDOMOD CONFIG FILE
#
# Last Modified: 01-10-2006
#

# INSTANCE NAME
# This option identifies the "name" associated with this particular
# instance of Nagios and is used to seperate data coming from multiple
# instances.  Defaults to 'default' (without quotes).
instance_name=default
 
# OUTPUT TYPE

# This option determines what type of output sink the NDO NEB module
# should use for data output.  Valid options include:
#   file   = standard text file
#   tcpsocket  = TCP socket
#   unixsocket = UNIX domain socket (default)
#output_type=file
#output_type=tcpsocket
output_type=unixsocket
 
# OUTPUT

# This option determines the name and path of the file or UNIX domain
# socket to which output will be sent if the output type option specified
# above is "file" or "unixsocket", respectively.  If the output type
# option is "tcpsocket", this option is used to specify the IP address
# of fully qualified domain name of the host that the module should
# connect to for sending output.
#output=/usr/local/nagios/var/ndo.dat
#output=127.0.0.1
output=/var/run/nagios/ndo.sock
 
[r...@nagios nagios]# more ndo2db.cfg

#
# NDO2DB DAEMON CONFIG FILE
#
# Last Modified: 02-12-2006
#

# SOCKET TYPE
# This option determines what type of socket the daemon will create
# an accept connections from.
# Value:
#   unix = Unix domain socket (default)
#   tcp  = TCP socket
socket_type=unix
#socket_type=tcp

# SOCKET NAME
# This option determines the name and path of the UNIX domain
# socket that the daemon will create and accept connections from.
# This option is only valid if the socket type specified above
# is "unix".
#socket_name=/usr/local/nagios/var/ndo.sock
socket_name=/var/run/nagios/ndo.sock
 
# TCP PORT

# This option determines what port the daemon will listen for
# connections on.  This option is only vlaid if the socket type
# specified above is "tcp".
tcp_port=5668
 
# DATABASE SERVER TYPE

# This option determines what type of DB server the daemon should
# connect to.
# Values:
#   mysql = MySQL
#   pgsql = PostgreSQL
db_servertype=mysql
 
# DATABASE HOST

# This option specifies what host the DB server is running on.
db_host=localhost
 
# DATABASE PORT

# This option specifies the port that the DB server is running on.
# Values:
#   3306 = Default MySQL port
#   5432 = Default PostgreSQL port
db_port=3306
 
# DATABASE NAME

# This option specifies the name of the database that should be used.
db_name=nagios
 
# DATABASE TABLE PREFIX

# Determines the prefix (if any) that should be prepended to table names.
db_prefix=
#db_prefix=ndo_
 
# DATABASE USERNAME/PASSWORD
# This is the username/password that will be used to authenticate to 
the DB.

# The user needs at least SELECT, INSERT, UPDATE, and DELETE privileges on
# the database.
#db_user=ndouser
#db_pass=ndopassword
db_user=nagios
db_pass=nagios

## TABLE TRIMMING OPTIONS
# Several database tables containing Nagios event data can become 
quite large

# over time.  Most admins will want to trim these tables and keep only a
# certain amount of data in them.  The options below are used to 
specify the

# age (in MINUTES) that data should be allowd to remain in various tables
# before it is deleted.  Using a va

Re: [Nagios-users] NDOUtils and Mysql libraries assistance needed

2009-06-25 Thread Natalie Aloi
woohoo! Thanks Michael!
[r...@nagios src]# cp ndomod-2x.o /usr/sbin/ndomod.o
cp: overwrite `/usr/sbin/ndomod.o'? y
[r...@nagios src]# cp ndo2db-2x /usr/sbin/ndo2db
[r...@nagios src]# cd /usr/sbin
[r...@nagios sbin]# ndo2db -c /etc/nagios/ndo2db.cfg
[r...@nagios sbin]# ps -ef | grep ndo2db
root 601 1 0 13:04 ? 00:00:00 ndo2db -c /etc/nagios/ndo2db.cfg
root 617 12431 0 13:04 pts/1 00:00:00 grep ndo2db
[r...@nagios sbin]#

Except!...shoot!...I am getting that dumb error but I have those lines verified 
- ndo2db.cfg and ndomod.cfg files included

[r...@nagios nagios]# tail /var/log/nagios/nagios.log
[1245950692] Caught SIGTERM, shutting down...
[1245950692] Successfully shutdown... (PID=739)
[1245950692] ndomod: Shutdown complete.
[1245950692] Event broker module '/usr/sbin/ndomod.o' deinitialized 
successfully.
[1245950693] Nagios 2.11 starting... (PID=1813)
[1245950693] LOG VERSION: 2.0
[1245950693] ndomod: NDOMOD 1.3.1 Copyright (c) 2005-2006 Ethan Galstad 
(nag...@nagios.org)
[1245950693] ndomod: Could not open data sink! I'll keep trying, but some 
output may get lost...
[1245950693] Event broker module '/usr/sbin/ndomod.o' initialized successfully.
[1245950693] Finished daemonizing... (New PID=1814)

[r...@nagios nagios]# more ndomod.cfg
#
# NDOMOD CONFIG FILE
#
# Last Modified: 01-10-2006
#

# INSTANCE NAME
# This option identifies the "name" associated with this particular
# instance of Nagios and is used to seperate data coming from multiple
# instances. Defaults to 'default' (without quotes).
instance_name=default

# OUTPUT TYPE
# This option determines what type of output sink the NDO NEB module
# should use for data output. Valid options include:
# file = standard text file
# tcpsocket = TCP socket
# unixsocket = UNIX domain socket (default)
#output_type=file
#output_type=tcpsocket
output_type=unixsocket

# OUTPUT
# This option determines the name and path of the file or UNIX domain
# socket to which output will be sent if the output type option specified
# above is "file" or "unixsocket", respectively. If the output type
# option is "tcpsocket", this option is used to specify the IP address
# of fully qualified domain name of the host that the module should
# connect to for sending output.
#output=/usr/local/nagios/var/ndo.dat
#output=127.0.0.1
output=/var/run/nagios/ndo.sock

[r...@nagios nagios]# more ndo2db.cfg
#
# NDO2DB DAEMON CONFIG FILE
#
# Last Modified: 02-12-2006
#

# SOCKET TYPE
# This option determines what type of socket the daemon will create
# an accept connections from.
# Value:
# unix = Unix domain socket (default)
# tcp = TCP socket
socket_type=unix
#socket_type=tcp

# SOCKET NAME
# This option determines the name and path of the UNIX domain
# socket that the daemon will create and accept connections from.
# This option is only valid if the socket type specified above
# is "unix".
#socket_name=/usr/local/nagios/var/ndo.sock
socket_name=/var/run/nagios/ndo.sock

# TCP PORT
# This option determines what port the daemon will listen for
# connections on. This option is only vlaid if the socket type
# specified above is "tcp".
tcp_port=5668

# DATABASE SERVER TYPE
# This option determines what type of DB server the daemon should
# connect to.
# Values:
# mysql = MySQL
# pgsql = PostgreSQL
db_servertype=mysql

# DATABASE HOST
# This option specifies what host the DB server is running on.
db_host=localhost

# DATABASE PORT
# This option specifies the port that the DB server is running on.
# Values:
# 3306 = Default MySQL port
# 5432 = Default PostgreSQL port
db_port=3306

# DATABASE NAME
# This option specifies the name of the database that should be used.
db_name=nagios

# DATABASE TABLE PREFIX
# Determines the prefix (if any) that should be prepended to table names.
db_prefix=
#db_prefix=ndo_

# DATABASE USERNAME/PASSWORD
# This is the username/password that will be used to authenticate to the DB.
# The user needs at least SELECT, INSERT, UPDATE, and DELETE privileges on
# the database.
#db_user=ndouser
#db_pass=ndopassword
db_user=nagios
db_pass=nagios

## TABLE TRIMMING OPTIONS
# Several database tables containing Nagios event data can become quite large
# over time. Most admins will want to trim these tables and keep only a
# certain amount of data in them. The options below are used to specify the
# age (in MINUTES) that data should be allowd to remain in various tables
# before it is deleted. Using a value of zero (0) for any value means that
# that particular table should NOT be automatically trimmed.
# Keep timed events for 24 hours
max_timedevents_age=1440
# Keep system commands for 1 week
max_systemcommands_age=10080
# Keep service checks for 1 week
max_servicechecks_age=10080
# Keep host checks for 1 week
ma

Re: [Nagios-users] Server/host Inheritance

2009-06-25 Thread Mathew Walker

The documentation on this is actually pretty good... 

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

 

If you have a host that use's the template... then in that host's config you 
define the same value again, it will override... except if you use the "!" and 
"+" signs to change the behavior.

 

in the case of contacts and hosts (like in a group)... 

 

eg, 

contact_group   +management 


Using the line above will add the management group in addition to what was 
assigned via the template.

If you used "!management", it should not send to the management group even if 
it was defined in the template.

 

If you just used it without the ! or +, it will override the template and just 
email management.

 

I think I got that all straight... dont' quote me, quote the documentation.  :-)


-- 
Mat W. - http://www.techadre.com


 
> Date: Thu, 25 Jun 2009 12:12:33 -0400
> From: frisv...@lafayette.edu
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Server/host Inheritance
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Greetings,
> 
> I have a question about inheritance within a service/host. First,
> these are completely separate, correct? ie, if I define a host with a
> contactgroup of foo, the service does not use that contactgroup, but
> rather uses the one defined by the service template, correct? Or does
> it fall back to the host contact group if a service contact group is
> undefined?
> 
> Next, if I have an existing service/host template with a contactgroup
> and I define a new service using that template, under what conditions is
> that contactgroup superseded? If I define single contacts, will it
> still use the contactgroup? How about if I specify a new contactgroup?
> Can I add/delete contacts and contactgroups without specifying the
> inherited ones?
> 
> Thanks,
> 
> - -- 
> - ---
> Jason Frisvold
> Network Engineer
> frisv...@lafayette.edu
> - ---
> "What I cannot create, I do not understand"
> - Richard Feynman
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAkpDofEACgkQO80o6DJ8Uvm2nACdFmFRNDxIXwRITu1WSMt88KeS
> XT4AoJOMUNf0zl5tC17Qhba+85dn0WH0
> =eXAn
> -END PGP SIGNATURE-
> 
> --
> ___
> 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

_
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290--
___
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] Server/host Inheritance

2009-06-25 Thread Mark Gius
You're going to want to read this: 
http://nagios.sourceforge.net/docs/3_0/objectinheritance.html, 
specifically "implied inheritance" about 3/4 of the way down.

Host and service inheritance is (mostly) separate.  There are some 
implied inheritance rules however.  For example, if a service doesn't 
define contact_groups anywhere, it will inherit contact_groups from its 
host.  If you override contact_groups in the service somewhere, it will 
use that instead.

You can add things using the "+" syntax (see additive inheritance), and 
you can kind of delete things with "!", but I've not played with that 
very much.

-Gius

Jason Frisvold wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Greetings,
>
>   I have a question about inheritance within a service/host.  First,
> these are completely separate, correct?  ie, if I define a host with a
> contactgroup of foo, the service does not use that contactgroup, but
> rather uses the one defined by the service template, correct?  Or does
> it fall back to the host contact group if a service contact group is
> undefined?
>
>   Next, if I have an existing service/host template with a contactgroup
> and I define a new service using that template, under what conditions is
> that contactgroup superseded?  If I define single contacts, will it
> still use the contactgroup?  How about if I specify a new contactgroup?
>  Can I add/delete contacts and contactgroups without specifying the
> inherited ones?
>
> Thanks,
>
> - -- 
> - ---
> Jason Frisvold
> Network Engineer
> frisv...@lafayette.edu
> - ---
> "What I cannot create, I do not understand"
>- Richard Feynman
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkpDofEACgkQO80o6DJ8Uvm2nACdFmFRNDxIXwRITu1WSMt88KeS
> XT4AoJOMUNf0zl5tC17Qhba+85dn0WH0
> =eXAn
> -END PGP SIGNATURE-
>
> --
> ___
> 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 mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] NDOUtils and Mysql libraries assistance needed

2009-06-25 Thread Michael Friedrich
uhm... you should copy the new compiled binary to your nagios/bin 
directory, but i don't think that will resolv the error anyways.


give us a plot of your ndo2db.cfg please.



Natalie Aloi wrote:
I guess I'm a timid user..(not running make earlier) 
So ran make - I didn't get any errors but it still says support for 
database servers not found does that mean I need to re-run for 
postgresql?
 
[r...@nagios ndoutils-1.3.1]# make

cd ./src/; make ; cd ..
make[1]: Entering directory `/tmp/ndoutils-1.3.1/src'
gcc -g -O2 -DHAVE_CONFIG_H  -c -o io.o io.c
gcc -g -O2 -DHAVE_CONFIG_H  -c -o utils.o utils.c
gcc -g -O2 -DHAVE_CONFIG_H  -o file2sock file2sock.c io.o utils.o   
-lm -lnsl

gcc -g -O2 -DHAVE_CONFIG_H  -o log2ndo log2ndo.c io.o utils.o   -lm -lnsl
make ndo2db-2x
make[2]: Entering directory `/tmp/ndoutils-1.3.1/src'
gcc -g -O2 -DHAVE_CONFIG_H  -c -o db.o db.c
gcc -g -O2 -DHAVE_CONFIG_H  -D BUILD_NAGIOS_2X -c -o dbhandlers-2x.o 
dbhandlers.c
gcc -g -O2 -DHAVE_CONFIG_H   -D BUILD_NAGIOS_2X -o ndo2db-2x ndo2db.c 
dbhandlers-2x.o io.o utils.o db.o  -L/usr/lib/mysql  -lnsl -lmysqlclient

make[2]: Leaving directory `/tmp/ndoutils-1.3.1/src'
make ndo2db-3x
make[2]: Entering directory `/tmp/ndoutils-1.3.1/src'
gcc -g -O2 -DHAVE_CONFIG_H  -D BUILD_NAGIOS_3X -c -o dbhandlers-3x.o 
dbhandlers.c
gcc -g -O2 -DHAVE_CONFIG_H   -D BUILD_NAGIOS_3X -o ndo2db-3x ndo2db.c 
dbhandlers-3x.o io.o utils.o db.o  -L/usr/lib/mysql  -lnsl -lmysqlclient

make[2]: Leaving directory `/tmp/ndoutils-1.3.1/src'
make ndomod-2x.o
make[2]: Entering directory `/tmp/ndoutils-1.3.1/src'
gcc -fPIC -g -O2 -DHAVE_CONFIG_H  -D BUILD_NAGIOS_2X -o ndomod-2x.o 
ndomod.c io.o utils.o -shared   -lnsl

make[2]: Leaving directory `/tmp/ndoutils-1.3.1/src'
make ndomod-3x.o
make[2]: Entering directory `/tmp/ndoutils-1.3.1/src'
gcc -fPIC -g -O2 -DHAVE_CONFIG_H  -D BUILD_NAGIOS_3X -o ndomod-3x.o 
ndomod.c io.o utils.o -shared   -lnsl

make[2]: Leaving directory `/tmp/ndoutils-1.3.1/src'
gcc -g -O2 -DHAVE_CONFIG_H  -o sockdebug sockdebug.c io.o utils.o   
-lm -lnsl

make[1]: Leaving directory `/tmp/ndoutils-1.3.1/src'
[r...@nagios /]# cd /tmp/ndoutils-1.3.1
[r...@nagios ndoutils-1.3.1]# ndo2db-2x -c /etc/nagios/ndo2db.cfg
Support for the specified database server is either not yet supported, 
or was not found on your system.

[r...@nagios ndoutils-1.3.1]#

-Original Message-
*From:* Natalie Aloi [mailto:na...@experisdatacenters.com]
*Sent:* Thursday, June 25, 2009 09:41 AM
*To:* 'Nagios Users Mail-list'
*Subject:* Re: [Nagios-users] NDOUtils and Mysql libraries
assistance needed

Ok...making progress...after rerunning the config the sql
libraries were found but now I get about postgresql supportDo
I need this? Or Can I just run make?
MySQL library and include file(s) were found!
checking for PQconnectdb in -lpq... no

*** PostgreSQL library could not be located... *
You chose to compile NDBXT with PostgreSQL support, but I was
unable to locate the PostgreSQL library on your system.  If the
library is installed,  use the --with-pgsql-lib argument to specify
the location of the PostgreSQL library.
NOTE: After you install the necessary libraries on your system:
  1. Make sure /etc/ld.so.conf has an entry for the directory in
 which the PostgreSQL libraries are installed.
  2. Run 'ldconfig' to update the run-time linker options.
  3. Run 'make devclean' in the NDBXT distribution to clean out
 any old references to your previous compile.
  4. Rerun the configure script.


checking libpq-fe.h usability... no
checking libpq-fe.h presence... no
checking for libpq-fe.h... no

*** PostgreSQL include file could not be located... 
You chose to compile NDBXT with PostgreSQL support, but I was unable
to locate  on your system.  If the include file is
installed, use the --with-pgsql-inc argument to specify the location
of the PostgreSQL include file.


configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/config.h

*** ndoutils 1.3.1 02-15-2006 ***

Type 'make' to compile the NDO utilities.
[r...@nagios ndoutils-1.3.1]#

-Original Message-
*From:* Natalie Aloi [mailto:na...@experisdatacenters.com]
*Sent:* Thursday, June 25, 2009 09:29 AM
*To:* 'Nagios Users Mail-list'
*Subject:* Re: [Nagios-users] NDOUtils and Mysql libraries
assistance needed

So this is what's in ld.so.conf.ddo I just do steps 2-4
now since there is already a file that points to it - or do I
need to rename mysql-i386.conf to mysql.conf?
 
[r...@nagios ld

[Nagios-users] Server/host Inheritance

2009-06-25 Thread Jason Frisvold
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Greetings,

I have a question about inheritance within a service/host.  First,
these are completely separate, correct?  ie, if I define a host with a
contactgroup of foo, the service does not use that contactgroup, but
rather uses the one defined by the service template, correct?  Or does
it fall back to the host contact group if a service contact group is
undefined?

Next, if I have an existing service/host template with a contactgroup
and I define a new service using that template, under what conditions is
that contactgroup superseded?  If I define single contacts, will it
still use the contactgroup?  How about if I specify a new contactgroup?
 Can I add/delete contacts and contactgroups without specifying the
inherited ones?

Thanks,

- -- 
- ---
Jason Frisvold
Network Engineer
frisv...@lafayette.edu
- ---
"What I cannot create, I do not understand"
   - Richard Feynman
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkpDofEACgkQO80o6DJ8Uvm2nACdFmFRNDxIXwRITu1WSMt88KeS
XT4AoJOMUNf0zl5tC17Qhba+85dn0WH0
=eXAn
-END PGP SIGNATURE-

--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] NDOUtils and Mysql libraries assistance needed

2009-06-25 Thread Natalie Aloi
I guess I'm a timid user..(not running make earlier)
So ran make - I didn't get any errors but it still says support for database 
servers not found does that mean I need to re-run for postgresql?

[r...@nagios ndoutils-1.3.1]# make
cd ./src/; make ; cd ..
make[1]: Entering directory `/tmp/ndoutils-1.3.1/src'
gcc -g -O2 -DHAVE_CONFIG_H -c -o io.o io.c
gcc -g -O2 -DHAVE_CONFIG_H -c -o utils.o utils.c
gcc -g -O2 -DHAVE_CONFIG_H -o file2sock file2sock.c io.o utils.o -lm -lnsl
gcc -g -O2 -DHAVE_CONFIG_H -o log2ndo log2ndo.c io.o utils.o -lm -lnsl
make ndo2db-2x
make[2]: Entering directory `/tmp/ndoutils-1.3.1/src'
gcc -g -O2 -DHAVE_CONFIG_H -c -o db.o db.c
gcc -g -O2 -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -c -o dbhandlers-2x.o dbhandlers.c
gcc -g -O2 -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -o ndo2db-2x ndo2db.c 
dbhandlers-2x.o io.o utils.o db.o -L/usr/lib/mysql -lnsl -lmysqlclient
make[2]: Leaving directory `/tmp/ndoutils-1.3.1/src'
make ndo2db-3x
make[2]: Entering directory `/tmp/ndoutils-1.3.1/src'
gcc -g -O2 -DHAVE_CONFIG_H -D BUILD_NAGIOS_3X -c -o dbhandlers-3x.o dbhandlers.c
gcc -g -O2 -DHAVE_CONFIG_H -D BUILD_NAGIOS_3X -o ndo2db-3x ndo2db.c 
dbhandlers-3x.o io.o utils.o db.o -L/usr/lib/mysql -lnsl -lmysqlclient
make[2]: Leaving directory `/tmp/ndoutils-1.3.1/src'
make ndomod-2x.o
make[2]: Entering directory `/tmp/ndoutils-1.3.1/src'
gcc -fPIC -g -O2 -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -o ndomod-2x.o ndomod.c 
io.o utils.o -shared -lnsl
make[2]: Leaving directory `/tmp/ndoutils-1.3.1/src'
make ndomod-3x.o
make[2]: Entering directory `/tmp/ndoutils-1.3.1/src'
gcc -fPIC -g -O2 -DHAVE_CONFIG_H -D BUILD_NAGIOS_3X -o ndomod-3x.o ndomod.c 
io.o utils.o -shared -lnsl
make[2]: Leaving directory `/tmp/ndoutils-1.3.1/src'
gcc -g -O2 -DHAVE_CONFIG_H -o sockdebug sockdebug.c io.o utils.o -lm -lnsl
make[1]: Leaving directory `/tmp/ndoutils-1.3.1/src'
[r...@nagios /]# cd /tmp/ndoutils-1.3.1

[r...@nagios ndoutils-1.3.1]# ndo2db-2x -c /etc/nagios/ndo2db.cfg
Support for the specified database server is either not yet supported, or was 
not found on your system.
[r...@nagios ndoutils-1.3.1]#

-Original Message-
From: Natalie Aloi [mailto:na...@experisdatacenters.com]
Sent: Thursday, June 25, 2009 09:41 AM
To: 'Nagios Users Mail-list'
Subject: Re: [Nagios-users] NDOUtils and Mysql libraries assistance needed

Ok...making progress...after rerunning the config the sql libraries were found 
but now I get about postgresql supportDo I need this? Or Can I just run 
make?
MySQL library and include file(s) were found!
checking for PQconnectdb in -lpq... no

*** PostgreSQL library could not be located... *
You chose to compile NDBXT with PostgreSQL support, but I was
unable to locate the PostgreSQL library on your system. If the
library is installed, use the --with-pgsql-lib argument to specify
the location of the PostgreSQL library.
NOTE: After you install the necessary libraries on your system:
 1. Make sure /etc/ld.so.conf has an entry for the directory in
 which the PostgreSQL libraries are installed.
 2. Run 'ldconfig' to update the run-time linker options.
 3. Run 'make devclean' in the NDBXT distribution to clean out
 any old references to your previous compile.
 4. Rerun the configure script.


checking libpq-fe.h usability... no
checking libpq-fe.h presence... no
checking for libpq-fe.h... no

*** PostgreSQL include file could not be located... 
You chose to compile NDBXT with PostgreSQL support, but I was unable
to locate  on your system. If the include file is
installed, use the --with-pgsql-inc argument to specify the location
of the PostgreSQL include file.


configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/config.h

*** ndoutils 1.3.1 02-15-2006 ***

Type 'make' to compile the NDO utilities.
[r...@nagios ndoutils-1.3.1]#

-Original Message-
From: Natalie Aloi [mailto:na...@experisdatacenters.com]
Sent: Thursday, June 25, 2009 09:29 AM
To: 'Nagios Users Mail-list'
Subject: Re: [Nagios-users] NDOUtils and Mysql libraries assistance needed

So this is what's in ld.so.conf.ddo I just do steps 2-4 now since there is 
already a file that points to it - or do I need to rename mysql-i386.conf to 
mysql.conf?

[r...@nagios ld.so.conf.d]# ls -lat
total 32
drwxr-xr-x 144 root root 12288 2009-06-23 04:06 ..
drwxr-xr-x 2 root root 4096 2009-04-28 16:01 .
-rw-r--r-- 1 root root 23 2009-04-27 08:31 xulrunner-32.conf
-rw-r--r-- 1 root root 15 2009-03-07 18:39 mysql-i386.conf
-rw-r--r-- 1 root root 16 2008-10-21 05:02 tix-i386.conf
-rw-r--r-- 1 root root 20 2008-07-07 15:49 qt-i386.conf
[r...@nagios ld.so.conf.d]# more mysql-i386.conf
/usr/lib/mysql
[r...@nagios ld.so.conf.d]#

-Original Message-
From: Guy Waugh [mailto:guid...@gmail.com]
Sent: Thursday, J

Re: [Nagios-users] FW: NDO Utils Question

2009-06-25 Thread Christopher McAtackney
2009/6/25 Wheeler, JF (Jonathan) :
>> -Original Message-
>> From: Christopher McAtackney [mailto:crist...@gmail.com]
>> Sent: 25 June 2009 14:51
>>
>> Hi everyone,
>>
>> I have a quick question about Nagios and NDOUtils I was hoping someone
>> could answer.
>>
>> What happens if the database that NDO Utils is using becomes
>> unavailable? (e.g. the server has crashed).
>
> The answer depends a lot on whether you are using Nagios v2 or Nagios
> v3; we are using Nagios v2.11.  My understanding is that in Nagios v2,
> the code that communicates with the event broker module in
> single-threaded.  Therefore a problem with the SQL server can jam up
> Nagios to the extent that it effectively stops running commands.  In
> Nagios v3, threading has been rewritten and this problem no longer
> exists.

Sorry, should have specified that. I'm running 3.0.6.

>> I'm assuming Nagios will continue to monitor and send notifications as
>> normal, is this correct?
>
> In Nagios v2 it seems that almost all activity is suspended when you are
> using NDOutils and the MySQL server is unavailable; this continues until
> the SQL server is restored.  One solution is to restart Nagios without
> the broker_module.
>
>> What about the service check results that would normally be passed to
>> NDO Utils and then stored in the database? Are they queued somewhere?
>> And if so, how is the capacity of this queue defined? If they are not
>> queued, what happens? Will NDO Utils just throw an error for each
>> result it tries to store in the database and fails? Will this affect
>> the core Nagios process?
>
> Results passing into the command pipe are stored.  The relevant
> parameters are in nagios.cfg; they are external_command_buffer_slots and
> check_result_buffer_slots - by default these are set to 4096 (see
> documentation within the configuration file).

Great, that's what I was hoping for. Do you have any experience of
setting this buffer to much higher values? Not that I necessarily
intend to, but it's always useful to know the effects of pushing the
system to its limits.

>> Hopefully someone can provide some insight.
>
> Hopefully this has

Yes, this has been very helpful, thanks for your answer. Thanks as
well Carsten, much appreciated.


> Jonathan Wheeler
> e-Science Centre
> Rutherford Appleton Laboratory

--
___
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 getting past main page

2009-06-25 Thread Kaplan, Andrew H.
Hi there --
 
I have to be at a meeting, so I won't be able to follow up for the next several
hours. As soon as I 
get back, I will post my findings. Thanks again for the help. 
 
 



From: Guy Waugh [mailto:guid...@gmail.com] 
Sent: Thursday, June 25, 2009 10:57 AM
To: Kaplan, Andrew H.
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Problem getting past main page


Hi again,


On Thu, Jun 25, 2009 at 3:39 PM, Kaplan, Andrew H. 
wrote:


Hi there --
 
I can answer your questions in the order they were asked:
 
1. I made sure to restart apache after the changes were made via the
"sudo /etc/init.d/httpd restart" command syntax.


OK, great. Just making sure :-)
 


 
2. The output of the apachectl configtest is the following:
[Thu Jun 25 10:22:48 2009] [warn] The ScriptAlias directive
in /etc/httpd/conf/httpd.conf at line 566 will probably never match because it
overlaps an earlier Alias.
[Thu Jun 25 10:22:48 2009] [warn] The Alias directive in
/etc/httpd/conf/httpd.conf at line 583 will probably never match because it
overlaps an earlier Alias.
Syntax OK


Right. This indicates that the configuration options for the 'ScriptAlias
/nagios/cgi-bin /usr/local/nagios/sbin' and 'Alias /nagios
/usr/local/nagios/share' on lines 566 and 583 of your httpd.conf file aren't
taking effect. This is probably because there is a file in /etc/httpd/conf.d
(possibly 'nagios.conf'?) that is being loaded before apache parses those lines
in your httpd.conf file (see line 210 of your httpd.conf file: 'include
conf.d/*.conf'). Have a look at the file in /etc/httpd/conf.d and see what
ScriptAlias and Alias definitions exist in that file. It might in fact make more
sense to put the nagios web configuration in that file rather than in the
httpd.conf file... though it's up to you. There should only be one definition
for the nagios Alias and ScriptAlias definitions, and they should be as they
currently are in your httpd.conf file.
 


 
3. The files that are located in the /usr/local/nagios/sbin directory
are the following:
-rwxrwxr-x 1 nagios nagios 229964 Jun 24 15:48 avail.cgi
-rwxrwxr-x 1 nagios nagios 225272 Jun 24 15:48 cmd.cgi
-rwxrwxr-x 1 nagios nagios 193036 Jun 24 15:48 config.cgi
-rwxrwxr-x 1 nagios nagios 246284 Jun 24 15:48 extinfo.cgi
-rwxrwxr-x 1 nagios nagios 197292 Jun 24 15:48 histogram.cgi
-rwxrwxr-x 1 nagios nagios 176684 Jun 24 15:48 history.cgi
-rwxrwxr-x 1 nagios nagios 172812 Jun 24 15:48
notifications.cgi
-rwxrwxr-x 1 nagios nagios 168460 Jun 24 15:48 outages.cgi
-rwxrwxr-x 1 nagios nagios 172844 Jun 24 15:48 showlog.cgi
-rwxrwxr-x 1 nagios nagios 234156 Jun 24 15:48 status.cgi
-rwxrwxr-x 1 nagios nagios 190220 Jun 24 15:48 statusmap.cgi
-rwxrwxr-x 1 nagios nagios 188940 Jun 24 15:48 statuswml.cgi
-rwxrwxr-x 1 nagios nagios 172588 Jun 24 15:48 statuswrl.cgi
-rwxrwxr-x 1 nagios nagios 193100 Jun 24 15:48 summary.cgi
-rwxrwxr-x 1 nagios nagios 184940 Jun 24 15:48 tac.cgi
-rwxrwxr-x 1 nagios nagios 201388 Jun 24 15:48 trends.cgi


That all looks good, because these files are executable by everybody, so the
apache user will be able to execute them.
 


 
4. The permissions of the files would seem to indicate the apache user
has read and execute permissions. If necessary, I can change the permissions
to match those of the owner and group.


No, it looks fine.
 



 
5. I ran the tail -f command on the error_log file, and went through the
motions of clicking on the links of the main page. The error messages appeared
   on-screen, while the following entries appeared in the log file:
 
  [Thu Jun 25 10:29:38 2009] [error] [] File does not
exist: /usr/local/nagios/share/cgi-bin, referer: http:///nagios/side.php  
  [Thu Jun 25 10:29:44 2009] [error] [] File does not
exist: /usr/local/nagios/share/cgi-bin, referer: http:///nagios/side.php  
  [Thu Jun 25 10:29:48 2009] [error] [] File does not
exist: /usr/local/nagios/share/cgi-bin, referer: http:///nagios/side.php  


OK... you can see here that apache has been configured to look for the CGIs in
/usr/local/nagios/share/cgi-bin, not /usr/local/nagios/sbin. This must be the
definition in the apache configuration file in /etc/httpd/conf.d .
 

 

6. When I go to the http:///

[Nagios-users] FW: NDO Utils Question

2009-06-25 Thread Wheeler, JF (Jonathan)
> -Original Message-
> From: Christopher McAtackney [mailto:crist...@gmail.com]
> Sent: 25 June 2009 14:51
> 
> Hi everyone,
> 
> I have a quick question about Nagios and NDOUtils I was hoping someone
> could answer.
> 
> What happens if the database that NDO Utils is using becomes
> unavailable? (e.g. the server has crashed).

The answer depends a lot on whether you are using Nagios v2 or Nagios
v3; we are using Nagios v2.11.  My understanding is that in Nagios v2,
the code that communicates with the event broker module in
single-threaded.  Therefore a problem with the SQL server can jam up
Nagios to the extent that it effectively stops running commands.  In
Nagios v3, threading has been rewritten and this problem no longer
exists.

> I'm assuming Nagios will continue to monitor and send notifications as
> normal, is this correct?

In Nagios v2 it seems that almost all activity is suspended when you are
using NDOutils and the MySQL server is unavailable; this continues until
the SQL server is restored.  One solution is to restart Nagios without
the broker_module.
 
> What about the service check results that would normally be passed to
> NDO Utils and then stored in the database? Are they queued somewhere?
> And if so, how is the capacity of this queue defined? If they are not
> queued, what happens? Will NDO Utils just throw an error for each
> result it tries to store in the database and fails? Will this affect
> the core Nagios process?

Results passing into the command pipe are stored.  The relevant
parameters are in nagios.cfg; they are external_command_buffer_slots and
check_result_buffer_slots - by default these are set to 4096 (see
documentation within the configuration file).

> Hopefully someone can provide some insight.

Hopefully this has

Jonathan Wheeler 
e-Science Centre 
Rutherford Appleton Laboratory
-- 
Scanned by iCritical.

--
___
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 getting past main page

2009-06-25 Thread Guy Waugh
Hi again,

On Thu, Jun 25, 2009 at 3:39 PM, Kaplan, Andrew H. wrote:

>  Hi there --
>
> I can answer your questions in the order they were asked:
>
> 1. I made sure to restart apache after the changes were made via the "sudo
> /etc/init.d/httpd restart" command syntax.
>

OK, great. Just making sure :-)


>
> 2. The output of the apachectl configtest is the following:
> [Thu Jun 25 10:22:48 2009] [warn] The ScriptAlias directive in
> /etc/httpd/conf/httpd.conf at line 566 will probably never match because it
> overlaps an earlier Alias.
> [Thu Jun 25 10:22:48 2009] [warn] The Alias directive in
> /etc/httpd/conf/httpd.conf at line 583 will probably never match because it
> overlaps an earlier Alias.
> Syntax OK
>

Right. This indicates that the configuration options for the 'ScriptAlias
/nagios/cgi-bin /usr/local/nagios/sbin' and 'Alias /nagios
/usr/local/nagios/share' on lines 566 and 583 of your httpd.conf file aren't
taking effect. This is probably because there is a file in /etc/httpd/conf.d
(possibly 'nagios.conf'?) that is being loaded before apache parses those
lines in your httpd.conf file (see line 210 of your httpd.conf file:
'include conf.d/*.conf'). Have a look at the file in /etc/httpd/conf.d and
see what ScriptAlias and Alias definitions exist in that file. It might in
fact make more sense to put the nagios web configuration in that file rather
than in the httpd.conf file... though it's up to you. There should only be
one definition for the nagios Alias and ScriptAlias definitions, and they
should be as they currently are in your httpd.conf file.


>
> 3. The files that are located in the /usr/local/nagios/sbin directory are
> the following:
> -rwxrwxr-x 1 nagios nagios 229964 Jun 24 15:48 avail.cgi
> -rwxrwxr-x 1 nagios nagios 225272 Jun 24 15:48 cmd.cgi
> -rwxrwxr-x 1 nagios nagios 193036 Jun 24 15:48 config.cgi
> -rwxrwxr-x 1 nagios nagios 246284 Jun 24 15:48 extinfo.cgi
> -rwxrwxr-x 1 nagios nagios 197292 Jun 24 15:48 histogram.cgi
> -rwxrwxr-x 1 nagios nagios 176684 Jun 24 15:48 history.cgi
> -rwxrwxr-x 1 nagios nagios 172812 Jun 24 15:48
> notifications.cgi
> -rwxrwxr-x 1 nagios nagios 168460 Jun 24 15:48 outages.cgi
> -rwxrwxr-x 1 nagios nagios 172844 Jun 24 15:48 showlog.cgi
> -rwxrwxr-x 1 nagios nagios 234156 Jun 24 15:48 status.cgi
> -rwxrwxr-x 1 nagios nagios 190220 Jun 24 15:48 statusmap.cgi
> -rwxrwxr-x 1 nagios nagios 188940 Jun 24 15:48 statuswml.cgi
> -rwxrwxr-x 1 nagios nagios 172588 Jun 24 15:48 statuswrl.cgi
> -rwxrwxr-x 1 nagios nagios 193100 Jun 24 15:48 summary.cgi
> -rwxrwxr-x 1 nagios nagios 184940 Jun 24 15:48 tac.cgi
> -rwxrwxr-x 1 nagios nagios 201388 Jun 24 15:48 trends.cgi
>

That all looks good, because these files are executable by everybody, so the
apache user will be able to execute them.


>
> 4. The permissions of the files would seem to indicate the apache user has
> read and execute permissions. If necessary, I can change the permissions
> to match those of the owner and group.
>

No, it looks fine.


>
> 5. I ran the tail -f command on the error_log file, and went through the
> motions of clicking on the links of the main page. The error messages
> appeared
>on-screen, while the following entries appeared in the log file:
>
>   [Thu Jun 25 10:29:38 2009] [error] [] File does not
> exist: /usr/local/nagios/share/cgi-bin, referer: http:// server>/nagios/side.php 
>   [Thu Jun 25 10:29:44 2009] [error] [] File does not
> exist: /usr/local/nagios/share/cgi-bin, referer: http:// server>/nagios/side.php 
>   [Thu Jun 25 10:29:48 2009] [error] [] File does not
> exist: /usr/local/nagios/share/cgi-bin, referer: http:// server>/nagios/side.php 
>

OK... you can see here that apache has been configured to look for the CGIs
in /usr/local/nagios/share/cgi-bin, not /usr/local/nagios/sbin. This must be
the definition in the apache configuration file in /etc/httpd/conf.d .


> 
> 6. When I go to the http:///nagios page, I get the splash
> screen for the Nagios application. The error occurs whenever I click on any
> of the
> links starting from the Current Status group and going down the list.
>

OK.


>
> 7. The host in question is a CentOS 5.3 system running on the i386
> architecture.
>
> 8. The original Nagios 2.6 directory was copied as a tar file and via sftp
> from the original Nagios server to the new one. The tar file was extracted
> into the
> /usr/local directory. The nagios user and group were created, with the
> former being given a home directory and utilizing the nologin shell. The
> Nagios
>3.1.2 application was compiled from source on the new se

Re: [Nagios-users] Problem getting past main page

2009-06-25 Thread Kaplan, Andrew H.
Hi there --
 
I can answer your questions in the order they were asked:
 
1. I made sure to restart apache after the changes were made via the "sudo
/etc/init.d/httpd restart" command syntax.
 
2. The output of the apachectl configtest is the following:
[Thu Jun 25 10:22:48 2009] [warn] The ScriptAlias directive in
/etc/httpd/conf/httpd.conf at line 566 will probably never match because it
overlaps an earlier Alias.
[Thu Jun 25 10:22:48 2009] [warn] The Alias directive in
/etc/httpd/conf/httpd.conf at line 583 will probably never match because it
overlaps an earlier Alias.
Syntax OK
 
3. The files that are located in the /usr/local/nagios/sbin directory are the
following:
-rwxrwxr-x 1 nagios nagios 229964 Jun 24 15:48 avail.cgi
-rwxrwxr-x 1 nagios nagios 225272 Jun 24 15:48 cmd.cgi
-rwxrwxr-x 1 nagios nagios 193036 Jun 24 15:48 config.cgi
-rwxrwxr-x 1 nagios nagios 246284 Jun 24 15:48 extinfo.cgi
-rwxrwxr-x 1 nagios nagios 197292 Jun 24 15:48 histogram.cgi
-rwxrwxr-x 1 nagios nagios 176684 Jun 24 15:48 history.cgi
-rwxrwxr-x 1 nagios nagios 172812 Jun 24 15:48 notifications.cgi
-rwxrwxr-x 1 nagios nagios 168460 Jun 24 15:48 outages.cgi
-rwxrwxr-x 1 nagios nagios 172844 Jun 24 15:48 showlog.cgi
-rwxrwxr-x 1 nagios nagios 234156 Jun 24 15:48 status.cgi
-rwxrwxr-x 1 nagios nagios 190220 Jun 24 15:48 statusmap.cgi
-rwxrwxr-x 1 nagios nagios 188940 Jun 24 15:48 statuswml.cgi
-rwxrwxr-x 1 nagios nagios 172588 Jun 24 15:48 statuswrl.cgi
-rwxrwxr-x 1 nagios nagios 193100 Jun 24 15:48 summary.cgi
-rwxrwxr-x 1 nagios nagios 184940 Jun 24 15:48 tac.cgi
-rwxrwxr-x 1 nagios nagios 201388 Jun 24 15:48 trends.cgi
 
4. The permissions of the files would seem to indicate the apache user has read
and execute permissions. If necessary, I can change the permissions
to match those of the owner and group.
 
5. I ran the tail -f command on the error_log file, and went through the motions
of clicking on the links of the main page. The error messages appeared
   on-screen, while the following entries appeared in the log file:
 
  [Thu Jun 25 10:29:38 2009] [error] [] File does not exist:
/usr/local/nagios/share/cgi-bin, referer: http:///nagios/side.php
 
  [Thu Jun 25 10:29:44 2009] [error] [] File does not exist:
/usr/local/nagios/share/cgi-bin, referer: http:///nagios/side.php
 
  [Thu Jun 25 10:29:48 2009] [error] [] File does not exist:
/usr/local/nagios/share/cgi-bin, referer: http:///nagios/side.php
 

6. When I go to the http:///nagios page, I get the splash screen for
the Nagios application. The error occurs whenever I click on any of the
links starting from the Current Status group and going down the list. 
 
7. The host in question is a CentOS 5.3 system running on the i386 architecture.
 
8. The original Nagios 2.6 directory was copied as a tar file and via sftp from
the original Nagios server to the new one. The tar file was extracted into the
/usr/local directory. The nagios user and group were created, with the
former being given a home directory and utilizing the nologin shell. The Nagios 
   3.1.2 application was compiled from source on the new server, with the
following arguments:
 
configured by ./configure, generated by GNU Autoconf 2.61, with options
\"'--prefix=/usr/local/nagios' '--with-nagios-user=nagios'
'--with-nagios-grp=nagios'\"
 
What do you think?
 
 
 
 





From: Guy Waugh [mailto:guid...@gmail.com] 
Sent: Thursday, June 25, 2009 9:57 AM
To: Kaplan, Andrew H.; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Problem getting past main page


Hi again,

Strange...

Some questions:

You're sure you restarted apache after editing httpd.conf?
What is the output of 'apachectl configtest'?
What files are in /usr/local/nagios/sbin -- are they files like 'status.cgi',
'avail.cgi', 'cmd.cgi' etc.? Are they executable by the user that apache is
running as?
Is there anything useful in the apache error logs?
What do you see when you go to http:///nagios with your web browser?
Is that when you get the error below?
Is the nagios host a Linux or Unix host (sorry, can't remember if you've
specified this before)? If so, which flavour/version?
Did you compile nagios on this host, install it via a package manager, or copy
it from another host?

Cheers,
Guy.


On Thu, Jun 25, 2009 at 2:35 PM, Kaplan, Andrew H. 
wrote:


Hi there --
 
Thanks for your reply. I made the change that you suggested, and
subsequently restarted the Apache and Nagios applications.
 
Unfortunately, the problem still occurs. Here is the output that I am
seeing:
 


Not Fou

Re: [Nagios-users] NDOUtils and Mysql libraries assistance needed

2009-06-25 Thread Michael Friedrich

Give make a try and see yourself.

Natalie Aloi wrote the following on 25.06.2009 15:41:
Ok...making progress...after rerunning the config the sql libraries 
were found but now I get about postgresql supportDo I need this? 
Or Can I just run make?

MySQL library and include file(s) were found!
checking for PQconnectdb in -lpq... no

*** PostgreSQL library could not be located... *
You chose to compile NDBXT with PostgreSQL support, but I was
unable to locate the PostgreSQL library on your system.  If the
library is installed,  use the --with-pgsql-lib argument to specify
the location of the PostgreSQL library.
NOTE: After you install the necessary libraries on your system:
  1. Make sure /etc/ld.so.conf has an entry for the directory in
 which the PostgreSQL libraries are installed.
  2. Run 'ldconfig' to update the run-time linker options.
  3. Run 'make devclean' in the NDBXT distribution to clean out
 any old references to your previous compile.
  4. Rerun the configure script.


checking libpq-fe.h usability... no
checking libpq-fe.h presence... no
checking for libpq-fe.h... no

*** PostgreSQL include file could not be located... 
You chose to compile NDBXT with PostgreSQL support, but I was unable
to locate  on your system.  If the include file is
installed, use the --with-pgsql-inc argument to specify the location
of the PostgreSQL include file.


configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/config.h

*** ndoutils 1.3.1 02-15-2006 ***

Type 'make' to compile the NDO utilities.
[r...@nagios ndoutils-1.3.1]#

-Original Message-
*From:* Natalie Aloi [mailto:na...@experisdatacenters.com]
*Sent:* Thursday, June 25, 2009 09:29 AM
*To:* 'Nagios Users Mail-list'
*Subject:* Re: [Nagios-users] NDOUtils and Mysql libraries
assistance needed

So this is what's in ld.so.conf.ddo I just do steps 2-4 now
since there is already a file that points to it - or do I need to
rename mysql-i386.conf to mysql.conf?
 
[r...@nagios ld.so.conf.d]# ls -lat

total 32
drwxr-xr-x 144 root root 12288 2009-06-23 04:06 ..
drwxr-xr-x   2 root root  4096 2009-04-28 16:01 .
-rw-r--r--   1 root root23 2009-04-27 08:31 xulrunner-32.conf
-rw-r--r--   1 root root15 2009-03-07 18:39 mysql-i386.conf
-rw-r--r--   1 root root16 2008-10-21 05:02 tix-i386.conf
-rw-r--r--   1 root root20 2008-07-07 15:49 qt-i386.conf
[r...@nagios ld.so.conf.d]# more mysql-i386.conf
/usr/lib/mysql
[r...@nagios ld.so.conf.d]#

-Original Message-
*From:* Guy Waugh [mailto:guid...@gmail.com]
*Sent:* Thursday, June 25, 2009 09:07 AM
*To:* 'Natalie Aloi'
*Subject:* Re: [Nagios-users] NDOUtils and Mysql libraries
assistance needed

Hello,

On Thu, Jun 25, 2009 at 1:57 PM, Natalie Aloi
mailto:na...@experisdatacenters.com>> wrote:

Hi I am having trouble getting ndoutils to work
during my install I found this information logged:
 
*** MySQL library could not be located...

**
You chose to compile NDBXT with MySQL support, but I was
unable to
locate the MySQL library on your system.  If the library is
installed,  use the --with-mysql-lib argument to specify the
location of the MySQL library.
NOTE: After you install the necessary libraries on your
system:
  1. Make sure /etc/ld.so.conf has an entry for the
directory in
 which the MySQL libraries are installed.
  2. Run 'ldconfig' to update the run-time linker options.
  3. Run 'make devclean' in the NDBXT distribution to
clean out
 any old references to your previous compile.
  4. Rerun the configure script.
TIP: Try the following
 ./configure --with-mysql-lib=/usr/lib/mysql
I have a question about step 1. When I more the file all
it has in it is this information:
 
[r...@nagios etc]# more ld.so.conf

include ld.so.conf.d/*.conf
 
My question is what is the syntax of the libraries I have

no idea what to add into this file.
Do I just add "/usr/lib/mysql" ?


The best thing to do would be to create a file in
'/etc/ld.so.conf.d' called 'mysql.conf' that contains, as you
suggest, one line thus: '/usr/lib/mysql' (without the quotes).
Then, proceed with steps 2, 3 and 4 above.


[Nagios-users] Get custom host variabels from extinfo.cgi

2009-06-25 Thread Tore Lønøy
Hello,
Im currently modifying our GUI to better suit our needs. However, one thing
I haven't been able to do (so far), is to extract all host macros that are
custom made, in extinfo.cgi.

Have anyone done this before?
Thanks in advance

Tore
--
___
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 getting past main page

2009-06-25 Thread Guy Waugh
Hi again,

Strange...

Some questions:

You're sure you restarted apache after editing httpd.conf?
What is the output of 'apachectl configtest'?
What files are in /usr/local/nagios/sbin -- are they files like
'status.cgi', 'avail.cgi', 'cmd.cgi' etc.? Are they executable by the user
that apache is running as?
Is there anything useful in the apache error logs?
What do you see when you go to http:///nagios with your web
browser? Is that when you get the error below?
Is the nagios host a Linux or Unix host (sorry, can't remember if you've
specified this before)? If so, which flavour/version?
Did you compile nagios on this host, install it via a package manager, or
copy it from another host?

Cheers,
Guy.

On Thu, Jun 25, 2009 at 2:35 PM, Kaplan, Andrew H. wrote:

>  Hi there --
>
> Thanks for your reply. I made the change that you suggested, and
> subsequently restarted the Apache and Nagios applications.
>
> Unfortunately, the problem still occurs. Here is the output that I am
> seeing:
>
>  Not Found
>
> The requested URL /nagios/cgi-bin/status.cgi was not found on this server.
>
> I can't figure out what is going on with this. Enclosed is the updated
> version of the httpd.conf with the changes that were suggested.
>
> I am desperate at this point...
>
>
>
>
>
>
>  --
> *From:* Guy Waugh [mailto:guid...@gmail.com]
> *Sent:* Thursday, June 25, 2009 4:15 AM
> *To:* Kaplan, Andrew H.; nagios-users@lists.sourceforge.net
> *Subject:* Re: [Nagios-users] Problem getting past main page
>
> Hi Andrew,
>
> On Thu, Jun 25, 2009 at 12:24 AM, Kaplan, Andrew H.  > wrote:
>
>>  This issue is an offshoot of the Problem in preflight check with
>> commands.cfg.
>>
>> I went ahead and copied the nagios directory from our original server to
>> the new
>> one. Once that was done, I did the upgrade to version 3.1.2 of nagios. The
>> main page
>> of the application appears without a problem. However, whenever I try to
>> go to any one
>> of the links from the main page, an error message similar to the one below
>> appears
>> on-screen:
>>
>> *Not Found*
>> *The requested URL /nagios/cgi-bin/status.cgi was not found on this
>> server.*
>>
>
> Looking at your attached httpd.conf file, you seem to have configured the
> URL '/cgi-bin/nagios' to be the ScriptAlias for the nagios CGIs, but then
> you are trying to access them with the URL '/nagios/cgi-bin'. Provided the
> Nagios CGI scripts are in /usr/local/nagios/sbin, as they are by default,
> you should probably define your ScriptAlias like this:
>
> ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
>
> Cheers,
> Guy.
>
>
>>  **
>>
>> I noticed that after I inserted the snippets from the nagios.conf file
>> into the
>> httpd.conf file, and subsequently restarted the Apache server, the
>> following
>> errors appeared on-screen:
>>
>> *Starting httpd: The ScriptAlias directive in /etc/httpd/conf/httpd.conf
>> at line*
>> *566 will probably never match because it overlaps an earlier
>> ScriptAlias.*
>> *[warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 583
>> will*
>> *probably never match because it overlaps an earlier Alias.*
>>
>> I have enclosed a copy of the httpd.conf file in its present version. I am
>> at a
>> lossas to why the error message is occurring, and I would really
>> appreciate help on
>> this.
>>
>> <>
>>
>> The information in this e-mail is intended only for the person to whom it is
>> addressed. If you believe this e-mail was sent to you in error and the e-mail
>> contains patient information, please contact the Partners Compliance 
>> HelpLine athttp://www.partners.org/complianceline . If the e-mail was sent 
>> to you in error
>> but does not contain patient information, please contact the sender and 
>> properly
>> dispose of the e-mail.
>>
>>
>>
>> --
>>
>> ___
>> 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 mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] NDOUtils and Mysql libraries assistance needed

2009-06-25 Thread Natalie Aloi
Ok...making progress...after rerunning the config the sql libraries were found 
but now I get about postgresql supportDo I need this? Or Can I just run 
make?
MySQL library and include file(s) were found!
checking for PQconnectdb in -lpq... no

*** PostgreSQL library could not be located... *
You chose to compile NDBXT with PostgreSQL support, but I was
unable to locate the PostgreSQL library on your system. If the
library is installed, use the --with-pgsql-lib argument to specify
the location of the PostgreSQL library.
NOTE: After you install the necessary libraries on your system:
 1. Make sure /etc/ld.so.conf has an entry for the directory in
 which the PostgreSQL libraries are installed.
 2. Run 'ldconfig' to update the run-time linker options.
 3. Run 'make devclean' in the NDBXT distribution to clean out
 any old references to your previous compile.
 4. Rerun the configure script.


checking libpq-fe.h usability... no
checking libpq-fe.h presence... no
checking for libpq-fe.h... no

*** PostgreSQL include file could not be located... 
You chose to compile NDBXT with PostgreSQL support, but I was unable
to locate  on your system. If the include file is
installed, use the --with-pgsql-inc argument to specify the location
of the PostgreSQL include file.


configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/config.h

*** ndoutils 1.3.1 02-15-2006 ***

Type 'make' to compile the NDO utilities.
[r...@nagios ndoutils-1.3.1]#

-Original Message-
From: Natalie Aloi [mailto:na...@experisdatacenters.com]
Sent: Thursday, June 25, 2009 09:29 AM
To: 'Nagios Users Mail-list'
Subject: Re: [Nagios-users] NDOUtils and Mysql libraries assistance needed

So this is what's in ld.so.conf.ddo I just do steps 2-4 now since there is 
already a file that points to it - or do I need to rename mysql-i386.conf to 
mysql.conf?

[r...@nagios ld.so.conf.d]# ls -lat
total 32
drwxr-xr-x 144 root root 12288 2009-06-23 04:06 ..
drwxr-xr-x 2 root root 4096 2009-04-28 16:01 .
-rw-r--r-- 1 root root 23 2009-04-27 08:31 xulrunner-32.conf
-rw-r--r-- 1 root root 15 2009-03-07 18:39 mysql-i386.conf
-rw-r--r-- 1 root root 16 2008-10-21 05:02 tix-i386.conf
-rw-r--r-- 1 root root 20 2008-07-07 15:49 qt-i386.conf
[r...@nagios ld.so.conf.d]# more mysql-i386.conf
/usr/lib/mysql
[r...@nagios ld.so.conf.d]#

-Original Message-
From: Guy Waugh [mailto:guid...@gmail.com]
Sent: Thursday, June 25, 2009 09:07 AM
To: 'Natalie Aloi'
Subject: Re: [Nagios-users] NDOUtils and Mysql libraries assistance needed

Hello,

On Thu, Jun 25, 2009 at 1:57 PM, Natalie Aloi  
wrote:

Hi I am having trouble getting ndoutils to work
during my install I found this information logged:

*** MySQL library could not be located... **
You chose to compile NDBXT with MySQL support, but I was unable to
locate the MySQL library on your system. If the library is
installed, use the --with-mysql-lib argument to specify the
location of the MySQL library.
NOTE: After you install the necessary libraries on your system:
 1. Make sure /etc/ld.so.conf has an entry for the directory in
 which the MySQL libraries are installed.
 2. Run 'ldconfig' to update the run-time linker options.
 3. Run 'make devclean' in the NDBXT distribution to clean out
 any old references to your previous compile.
 4. Rerun the configure script.
TIP: Try the following
 ./configure --with-mysql-lib=/usr/lib/mysql
I have a question about step 1. When I more the file all it has in it is this 
information:

[r...@nagios etc]# more ld.so.conf
include ld.so.conf.d/*.conf

My question is what is the syntax of the libraries I have no idea what to add 
into this file.
Do I just add "/usr/lib/mysql" ?


The best thing to do would be to create a file in '/etc/ld.so.conf.d' called 
'mysql.conf' that contains, as you suggest, one line thus: '/usr/lib/mysql' 
(without the quotes). Then, proceed with steps 2, 3 and 4 above.

Cheers,
Guy.



I am running Fedora 9
mysql has been installed (see below:)
[r...@nagios etc]# rpm -qa | grep mysql
qt-mysql-4.5.0-14.fc9.i386
mysql-administrator-5.0r12-8.fc9.i386
mysql-server-5.0.77-1.fc9.i386
mysql-devel-5.0.77-1.fc9.i386
mysql-connector-odbc-3.51.24r1071-1.fc9.i386
mysql-connector-java-3.1.12-5.fc9.i386
php-mysql-5.2.6-2.fc9.i386
mysql-5.0.77-1.fc9.i386
libdbi-dbd-mysql-0.8.3-2.fc9.i386
mysql-libs-5.0.77-1.fc9.i386
nagios-plugins-mysql-1.4.13-9.fc9.i386
mysql-gui-common-5.0r12-8.fc9.i386
below is infor from mysql for nagios db for ndoutils
mysql> use nagios
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables;
+-+
| Tables_in_nagios |

[Nagios-users] NDO Utils Question

2009-06-25 Thread Christopher McAtackney
Hi everyone,

I have a quick question about Nagios and NDOUtils I was hoping someone
could answer.

What happens if the database that NDO Utils is using becomes
unavailable? (e.g. the server has crashed).

I'm assuming Nagios will continue to monitor and send notifications as
normal, is this correct?

What about the service check results that would normally be passed to
NDO Utils and then stored in the database? Are they queued somewhere?
And if so, how is the capacity of this queue defined? If they are not
queued, what happens? Will NDO Utils just throw an error for each
result it tries to store in the database and fails? Will this affect
the core Nagios process?

Hopefully someone can provide some insight.

Cheers,
Chris

--
___
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 getting past main page

2009-06-25 Thread Andrew Davis
Ah, now I understand. My apologies. I missed the part where you were 
upgrading and reading the emails showed errors that are very common to 
first time installations.


That said, all I can say is "read the log files". Quite a few issues 
I've encountered were solved when consulting various log files (httpd 
logs, /var/log/messages, mysql logs, etc).


 A. Davis
 Email: ncc...@gmail.com

 "There is no limit to what a man can accomplish
  if he doesn't care who gets the credit." - Ronald Reagan



Kaplan, Andrew H. wrote:

Hi there --
 
Thank-you for your reply. I did indeed check out several books prior 
to posting my messages,  and while all of them are thorough with
doing a scratch installation, there were none that I read which delved 
deeply into doing an upgrade. The upgrade scenario is what I am
involved with at this time. The purpose of this exercise is to be able 
to preserve the configuration, and have it available in the newer
version of the Nagios application. I am hoping to avoid having to 
rebuild all checks from the beginning. The amount of checks that I have
in place would require a great deal of time that I am hoping I will 
not have to commit. My previous upgrading experince, from Nagios 1.x

to Nagios 2.x was not very difficult. I am hoping to accomplish that here.
 
 



*From:* Andrew Davis [mailto:ncc...@gmail.com]
*Sent:* Thursday, June 25, 2009 9:19 AM
*To:* nagios-users@lists.sourceforge.net
*Subject:* Re: [Nagios-users] Problem getting past main page

I recognize this may sound a little terse and I don't mean it to be 
so... but as I've seen all the emails from you that are indicative of 
a first time setup, might I suggest getting a Nagios book to assist 
you? There's quite a few out there. I personally use Nagios 2nd 
Edition from Wolfgang Barth and its proven to very valuable...


Just a thought...
  A. Davis
  Email: ncc...@gmail.com

  "There is no limit to what a man can accomplish
   if he doesn't care who gets the credit." - Ronald Reagan
  



Kaplan, Andrew H. wrote:


This issue is an offshoot of the Problem in preflight check with 
commands.cfg.


I went ahead and copied the nagios directory from our original server 
to the new
one. Once that was done, I did the upgrade to version 3.1.2 of 
nagios. The main page
of the application appears without a problem. However, whenever I try 
to go to any one
of the links from the main page, an error message similar to the one 
below appears

on-screen:

*Not Found*
*The requested URL /nagios/cgi-bin/status.cgi was not found on this 
server. *



I noticed that after I inserted the snippets from the nagios.conf 
file into the
httpd.conf file, and subsequently restarted the Apache server, the 
following

errors appeared on-screen:

*Starting httpd: The ScriptAlias directive in 
/etc/httpd/conf/httpd.conf at line*
*566 will probably never match because it overlaps an earlier 
ScriptAlias.*
*[warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 583 
will*

*probably never match because it overlaps an earlier Alias.*

I have enclosed a copy of the httpd.conf file in its present version. 
I am at a
lossas to why the error message is occurring, and I would really 
appreciate help on

this.

<>

The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
  



--


___
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 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 getting past main page

2009-06-25 Thread Kaplan, Andrew H.
Hi there --
 
Thank-you for your reply. I did indeed check out several books prior to posting
my messages,  and while all of them are thorough with
doing a scratch installation, there were none that I read which delved deeply
into doing an upgrade. The upgrade scenario is what I am
involved with at this time. The purpose of this exercise is to be able to
preserve the configuration, and have it available in the newer
version of the Nagios application. I am hoping to avoid having to rebuild all
checks from the beginning. The amount of checks that I have
in place would require a great deal of time that I am hoping I will not have to
commit. My previous upgrading experince, from Nagios 1.x
to Nagios 2.x was not very difficult. I am hoping to accomplish that here.
 
 



From: Andrew Davis [mailto:ncc...@gmail.com] 
Sent: Thursday, June 25, 2009 9:19 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Problem getting past main page


I recognize this may sound a little terse and I don't mean it to be so... but as
I've seen all the emails from you that are indicative of a first time setup,
might I suggest getting a Nagios book to assist you? There's quite a few out
there. I personally use Nagios 2nd Edition from Wolfgang Barth and its proven to
very valuable...

Just a thought...

  A. Davis
  Email: ncc...@gmail.com

  "There is no limit to what a man can accomplish
   if he doesn't care who gets the credit." - Ronald Reagan


Kaplan, Andrew H. wrote: 

This issue is an offshoot of the Problem in preflight check with
commands.cfg. 

I went ahead and copied the nagios directory from our original server to
the new 
one. Once that was done, I did the upgrade to version 3.1.2 of nagios.
The main page 
of the application appears without a problem. However, whenever I try to
go to any one 
of the links from the main page, an error message similar to the one
below appears 
on-screen: 

Not Found 
The requested URL /nagios/cgi-bin/status.cgi was not found on this
server. 


I noticed that after I inserted the snippets from the nagios.conf file
into the 
httpd.conf file, and subsequently restarted the Apache server, the
following 
errors appeared on-screen: 

Starting httpd: The ScriptAlias directive in /etc/httpd/conf/httpd.conf
at line 
566 will probably never match because it overlaps an earlier
ScriptAlias. 
[warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 583
will 
probably never match because it overlaps an earlier Alias. 

I have enclosed a copy of the httpd.conf file in its present version. I
am at a 
lossas to why the error message is occurring, and I would really
appreciate help on 
this. 

<> 

The information in this e-mail is intended only for the person to whom
it is
addressed. If you believe this e-mail was sent to you in error and the
e-mail
contains patient information, please contact the Partners Compliance
HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you
in error
but does not contain patient information, please contact the sender and
properly
dispose of the e-mail.
  





--




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

Re: [Nagios-users] NDOUtils and Mysql libraries assistance needed

2009-06-25 Thread Michael Friedrich

Once again,

./configure --help

gives you all the help you need.

Try

ls /usr/lib/mysql | grep libmysqlclient.so

and check the output. If there is nothing found, try

find /usr/lib/ | grep libmysqlclient.so

The path to the found file (in case) is the one you need for configure e.g.

./configure --with-mysql-lib=/usr/lib/mysql

Same thing for mysql.h

find /usr/include/ | grep 'mysql.h'

and adjust this to your needs e.g.

./configure --with-mysql-lib=/usr/lib/mysql 
--with-mysql-inc=/usr/include/mysql


and then give the whole configure output.

but PLEASE REPLY, do _not_ start another thread.

Kind regards,
Michael



Natalie Aloi wrote the following on 25.06.2009 14:57:

Hi I am having trouble getting ndoutils to work
during my install I found this information logged:
 
*** MySQL library could not be located... **

You chose to compile NDBXT with MySQL support, but I was unable to
locate the MySQL library on your system.  If the library is
installed,  use the --with-mysql-lib argument to specify the
location of the MySQL library.
NOTE: After you install the necessary libraries on your system:
  1. Make sure /etc/ld.so.conf has an entry for the directory in
 which the MySQL libraries are installed.
  2. Run 'ldconfig' to update the run-time linker options.
  3. Run 'make devclean' in the NDBXT distribution to clean out
 any old references to your previous compile.
  4. Rerun the configure script.
TIP: Try the following
 ./configure --with-mysql-lib=/usr/lib/mysql
I have a question about step 1. When I more the file all it has in it 
is this information:
 
[r...@nagios etc]# more ld.so.conf

include ld.so.conf.d/*.conf
 
My question is what is the syntax of the libraries I have no idea what 
to add into this file.

Do I just add "/usr/lib/mysql" ?
 
I am running Fedora 9

mysql has been installed (see below:)
[r...@nagios etc]# rpm -qa | grep mysql
qt-mysql-4.5.0-14.fc9.i386
mysql-administrator-5.0r12-8.fc9.i386
mysql-server-5.0.77-1.fc9.i386
mysql-devel-5.0.77-1.fc9.i386
mysql-connector-odbc-3.51.24r1071-1.fc9.i386
mysql-connector-java-3.1.12-5.fc9.i386
php-mysql-5.2.6-2.fc9.i386
mysql-5.0.77-1.fc9.i386
libdbi-dbd-mysql-0.8.3-2.fc9.i386
mysql-libs-5.0.77-1.fc9.i386
nagios-plugins-mysql-1.4.13-9.fc9.i386
mysql-gui-common-5.0r12-8.fc9.i386
below is infor from mysql for nagios db for ndoutils
mysql> use nagios
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables;
+-+
| Tables_in_nagios|
+-+
| ndo_acknowledgements|
| ndo_commands|
| ndo_commenthistory  |
| ndo_comments|
| ndo_configfiles |
| ndo_configfilevariables |
| ndo_conninfo|
| ndo_contact_addresses   |
| ndo_contact_notificationcommands|
| ndo_contactgroup_members|
| ndo_contactgroups   |
| ndo_contactnotificationmethods  |
| ndo_contactnotifications|
| ndo_contacts|
| ndo_customobjectvariables   |
| ndo_downtimehistory |
| ndo_eventhandlers   |
| ndo_externalcommands|
| ndo_flappinghistory |
| ndo_host_contactgroups  |
| ndo_host_parenthosts|
| ndo_hostchecks  |
| ndo_hostdependencies|
| ndo_hostescalation_contactgroups|
| ndo_hostescalations |
| ndo_hostextinfo |
| ndo_hostgroup_members   |
| ndo_hostgroups  |
| ndo_hosts   |
| ndo_hoststatus  |
| ndo_instances   |
| ndo_logentries  |
| ndo_notifications   |
| ndo_objects |
| ndo_processevents   |
| ndo_programstatus   |
| ndo_runtimevariables|
| ndo_scheduleddowntime   |
| ndo_service_contactgroups   |
| ndo_servicechecks   |
| ndo_servicedependencies |
| ndo_serviceescalation_contactgroups |
| ndo_serviceescalations  |
| ndo_serviceextinfo  |
| ndo_servicegroup_members|
| ndo_servicegroups   |
| ndo_services|
| ndo_servicestatus   |
| ndo_statehistory|
| ndo_systemcommands  |
| ndo_timedeventqueue |
| ndo_timedevents |
| ndo_timeperiod_timeranges   |
| ndo_timeperiods |
+-+
54 rows in set (0.00 sec)
mysql>
 
Network Operations Center Manager

Experis Data Ce

Re: [Nagios-users] NDOUtils and Mysql libraries assistance needed

2009-06-25 Thread Natalie Aloi
So this is what's in ld.so.conf.ddo I just do steps 2-4 now since there is 
already a file that points to it - or do I need to rename mysql-i386.conf to 
mysql.conf?

[r...@nagios ld.so.conf.d]# ls -lat
total 32
drwxr-xr-x 144 root root 12288 2009-06-23 04:06 ..
drwxr-xr-x 2 root root 4096 2009-04-28 16:01 .
-rw-r--r-- 1 root root 23 2009-04-27 08:31 xulrunner-32.conf
-rw-r--r-- 1 root root 15 2009-03-07 18:39 mysql-i386.conf
-rw-r--r-- 1 root root 16 2008-10-21 05:02 tix-i386.conf
-rw-r--r-- 1 root root 20 2008-07-07 15:49 qt-i386.conf
[r...@nagios ld.so.conf.d]# more mysql-i386.conf
/usr/lib/mysql
[r...@nagios ld.so.conf.d]#

-Original Message-
From: Guy Waugh [mailto:guid...@gmail.com]
Sent: Thursday, June 25, 2009 09:07 AM
To: 'Natalie Aloi'
Subject: Re: [Nagios-users] NDOUtils and Mysql libraries assistance needed

Hello,

On Thu, Jun 25, 2009 at 1:57 PM, Natalie Aloi  
wrote:

Hi I am having trouble getting ndoutils to work
during my install I found this information logged:

*** MySQL library could not be located... **
You chose to compile NDBXT with MySQL support, but I was unable to
locate the MySQL library on your system. If the library is
installed, use the --with-mysql-lib argument to specify the
location of the MySQL library.
NOTE: After you install the necessary libraries on your system:
 1. Make sure /etc/ld.so.conf has an entry for the directory in
 which the MySQL libraries are installed.
 2. Run 'ldconfig' to update the run-time linker options.
 3. Run 'make devclean' in the NDBXT distribution to clean out
 any old references to your previous compile.
 4. Rerun the configure script.
TIP: Try the following
 ./configure --with-mysql-lib=/usr/lib/mysql
I have a question about step 1. When I more the file all it has in it is this 
information:

[r...@nagios etc]# more ld.so.conf
include ld.so.conf.d/*.conf

My question is what is the syntax of the libraries I have no idea what to add 
into this file.
Do I just add "/usr/lib/mysql" ?


The best thing to do would be to create a file in '/etc/ld.so.conf.d' called 
'mysql.conf' that contains, as you suggest, one line thus: '/usr/lib/mysql' 
(without the quotes). Then, proceed with steps 2, 3 and 4 above.

Cheers,
Guy.



I am running Fedora 9
mysql has been installed (see below:)
[r...@nagios etc]# rpm -qa | grep mysql
qt-mysql-4.5.0-14.fc9.i386
mysql-administrator-5.0r12-8.fc9.i386
mysql-server-5.0.77-1.fc9.i386
mysql-devel-5.0.77-1.fc9.i386
mysql-connector-odbc-3.51.24r1071-1.fc9.i386
mysql-connector-java-3.1.12-5.fc9.i386
php-mysql-5.2.6-2.fc9.i386
mysql-5.0.77-1.fc9.i386
libdbi-dbd-mysql-0.8.3-2.fc9.i386
mysql-libs-5.0.77-1.fc9.i386
nagios-plugins-mysql-1.4.13-9.fc9.i386
mysql-gui-common-5.0r12-8.fc9.i386
below is infor from mysql for nagios db for ndoutils
mysql> use nagios
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables;
+-+
| Tables_in_nagios |
+-+
| ndo_acknowledgements |
| ndo_commands |
| ndo_commenthistory |
| ndo_comments |
| ndo_configfiles |
| ndo_configfilevariables |
| ndo_conninfo |
| ndo_contact_addresses |
| ndo_contact_notificationcommands |
| ndo_contactgroup_members |
| ndo_contactgroups |
| ndo_contactnotificationmethods |
| ndo_contactnotifications |
| ndo_contacts |
| ndo_customobjectvariables |
| ndo_downtimehistory |
| ndo_eventhandlers |
| ndo_externalcommands |
| ndo_flappinghistory |
| ndo_host_contactgroups |
| ndo_host_parenthosts |
| ndo_hostchecks |
| ndo_hostdependencies |
| ndo_hostescalation_contactgroups |
| ndo_hostescalations |
| ndo_hostextinfo |
| ndo_hostgroup_members |
| ndo_hostgroups |
| ndo_hosts |
| ndo_hoststatus |
| ndo_instances |
| ndo_logentries |
| ndo_notifications |
| ndo_objects |
| ndo_processevents |
| ndo_programstatus |
| ndo_runtimevariables |
| ndo_scheduleddowntime |
| ndo_service_contactgroups |
| ndo_servicechecks |
| ndo_servicedependencies |
| ndo_serviceescalation_contactgroups |
| ndo_serviceescalations |
| ndo_serviceextinfo |
| ndo_servicegroup_members |
| ndo_servicegroups |
| ndo_services |
| ndo_servicestatus |
| ndo_statehistory |
| ndo_systemcommands |
| ndo_timedeventqueue |
| ndo_timedevents |
| ndo_timeperiod_timeranges |
| ndo_timeperiods |
+-+
54 rows in set (0.00 sec)
mysql>

Network Operations Center Manager
Experis Data Center LLC
8209 Valley Pike
PO Box 535
Middletown,VA 22645
phone:540-869-8702
cell:240-988-3267
fax:540-869-8710
mailto:e-mail%3ana...@experisdatacenters.com

--

___
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 

Re: [Nagios-users] Problem getting past main page

2009-06-25 Thread Andrew Davis
I recognize this may sound a little terse and I don't mean it to be 
so... but as I've seen all the emails from you that are indicative of a 
first time setup, might I suggest getting a Nagios book to assist you? 
There's quite a few out there. I personally use Nagios 2nd Edition from 
Wolfgang Barth and its proven to very valuable...


Just a thought...

 A. Davis
 Email: ncc...@gmail.com

 "There is no limit to what a man can accomplish
  if he doesn't care who gets the credit." - Ronald Reagan



Kaplan, Andrew H. wrote:


This issue is an offshoot of the Problem in preflight check with 
commands.cfg.


I went ahead and copied the nagios directory from our original server 
to the new
one. Once that was done, I did the upgrade to version 3.1.2 of nagios. 
The main page
of the application appears without a problem. However, whenever I try 
to go to any one
of the links from the main page, an error message similar to the one 
below appears

on-screen:

*Not Found*
*The requested URL /nagios/cgi-bin/status.cgi was not found on this 
server. *



I noticed that after I inserted the snippets from the nagios.conf file 
into the
httpd.conf file, and subsequently restarted the Apache server, the 
following

errors appeared on-screen:

*Starting httpd: The ScriptAlias directive in 
/etc/httpd/conf/httpd.conf at line*
*566 will probably never match because it overlaps an earlier 
ScriptAlias.*
*[warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 583 
will*

*probably never match because it overlaps an earlier Alias.*

I have enclosed a copy of the httpd.conf file in its present version. 
I am at a
lossas to why the error message is occurring, and I would really 
appreciate help on

this.

<>

The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
  



--


___
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 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] NDO Utils is not running even after repeated attempts

2009-06-25 Thread Kevin Keane
The error message says that ndoutils is running, but can't connect to 
the database.

Can you try and see if port 3306 is open? That is the one MySQL should 
be listening on. The command to do that is:

netstat -ltunp

Next, check if there might be a firewall blocking access. For instance, 
to see the rules for iptables:

iptables -vnL

I hope this helps!

rajashekar.s wrote:
> Hello all,
>
> I request your help for this problem of mine.
> Please refer this mail down for all the configuration settings.
>
> I am still getting the same message
>
> Jun 25 18:23:12 excel-desktop nagios: Nagios 3.0.6 starting... (PID=464)
> Jun 25 18:23:12 excel-desktop nagios: Local time is Thu Jun 25 
> 18:23:12 IST 2009
> Jun 25 18:23:12 excel-desktop nagios: LOG VERSION: 2.0
> Jun 25 18:23:12 excel-desktop nagios: ndomod: NDOMOD 1.4b7 
> (10-31-2007) Copyright (c) 2005-2007 Ethan Galstad (nag...@nagios.org)
> Jun 25 18:23:12 excel-desktop nagios: ndomod: Could not open data 
> sink!  I'll keep trying, but some output may get lost...
> Jun 25 18:23:12 excel-desktop nagios: Event broker module 
> '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully.
> Jun 25 18:23:12 excel-desktop nagios: Finished daemonizing... (New 
> PID=465)
> Jun 25 18:23:28 excel-desktop nagios: ndomod: Still unable to connect 
> to data sink.  394 items lost, 5000 queued items to flush.
> Jun 25 18:23:44 excel-desktop nagios: ndomod: Still unable to connect 
> to data sink.  482 items lost, 5000 queued items to flush.
> Jun 25 18:24:00 excel-desktop nagios: ndomod: Still unable to connect 
> to data sink.  579 items lost, 5000 queued items to flush.
>
> Thanks
> Rajshekar
>
>
>
> rajashekar.s wrote:
>> Dear Kevin,
>>
>> I did as you said, but still it is not connected (same message is coming)
>> when I run the command
>>
>> # /usr/local/nagios/bin/ndo2db-3x -c /usr/local/nagios/etc/ndo2db.cfg
>> Error processing config file '/usr/local/nagios/etc/ndo2db.cfg'.
>>
>> I do not know the what is the error?
>>
>> I restarted both Nagios and MySQL
>>
>> Thanks
>> Rajshekar
>>
>> Kevin Keane wrote:
>>> OK, that explains it. Use 127.0.01 instead.
>>>
>>> MySQL tries to be "smart" and in the process confuses everybody; it 
>>> interprets "localhost" to mean "I want to use Unix sockets". But based 
>>> on your configuration file, you obviously want to use TCP sockets. Using 
>>> the IP address instead tells MySQL to use TCP sockets even when 
>>> connecting locally.
>>>
>>> And please respond back to the group so others benefit from the answer 
>>> as well.
>>>
>>> rajashekar.s wrote:
>>>   
 Dear kevin,
 Sorry i have missed it while doing copy paste operation
 *db_host = localhost*
 I have defined in ndo2db.cfg file

 Thanks
 Rajshekar

 Kevin Keane wrote:
 
> I don't see where you specified the db_host in ndo2db.cfg.
>
> rajashekar.s wrote:
>   
>   
>> Hi all,
>> I have installed Nagios 3.0.6 and Nagios Plugin-1.4.13 and NDO 
>> Utils1.4b7 as given in the installtion manual. but I get message
>> ndomod:Still unable to connect to data sink
>>
>> The following are the related config settings
>> *_ndo2db.cfg_*
>>
>> ndo2db_user=nagios
>> ndo2db_group=nagios
>> socket_type=tcp
>> tcp_port=5668
>> db_servertype=MySQL
>> db_port=3306
>> db_name=nagios
>> db_prefix=nagios_
>> db_user=nagios
>> db_pass=nagios
>> max_timedevents_age=1440
>> max_systemcommands_age=10080
>> max_servicechecks_age=10080
>> max_hostchecks_age=10080
>> max_eventhandlers_age=44640
>> debug_level=-1
>> debug_verbosity=1
>> debug_file=/usr/local/nagios/var/ndo2db.debug
>> max_debug_file_size=100
>>
>> *_ndomod_*
>>
>> instance_name=default
>> output_type=tcpsocket
>> output=127.0.0.1
>> tcp_port=5668
>> output_buffer_items=5000
>> buffer_file=/usr/local/nagios/var/ndomod.tmp
>> file_rotation_interval=14400
>> file_rotation_timeout=60
>> reconnect_interval=15
>> reconnect_warning_interval=15
>> data_processing_options=-1
>> config_output_options=2
>>
>> *_my.cnf (MySQL)_*
>>
>> [client]
>> port= 3306
>> socket= /var/run/mysqld/mysqld.sock
>>
>> [mysqld_safe]
>> socket= /var/run/mysqld/mysqld.sock
>> nice= 0
>>
>> [mysqld]
>>
>> user= mysql
>> pid-file= /var/run/mysqld/mysqld.pid
>> socket= /var/run/mysqld/mysqld.sock
>> port= 3306
>> basedir= /usr
>> datadir= /var/lib/mysql
>> tmpdir= /tmp
>> language= /usr/share/mysql/english
>> skip-external-locking
>>
>> key_buffer= 16M
>> max_allowed_packet= 16M
>> thread_stack= 128K
>> thread_cache_size= 8
>> max_connections= 100
>> table_cache= 64
>> thread_concurre

[Nagios-users] Fwd: NDOUtils and Mysql libraries assistance needed

2009-06-25 Thread Guy Waugh
Hello,

On Thu, Jun 25, 2009 at 1:57 PM, Natalie Aloi
wrote:

>  Hi I am having trouble getting ndoutils to work
> during my install I found this information logged:
>
> *** MySQL library could not be located... **
> You chose to compile NDBXT with MySQL support, but I was unable to
> locate the MySQL library on your system.  If the library is
> installed,  use the --with-mysql-lib argument to specify the
> location of the MySQL library.
> NOTE: After you install the necessary libraries on your system:
>   1. Make sure /etc/ld.so.conf has an entry for the directory in
>  which the MySQL libraries are installed.
>   2. Run 'ldconfig' to update the run-time linker options.
>   3. Run 'make devclean' in the NDBXT distribution to clean out
>  any old references to your previous compile.
>   4. Rerun the configure script.
> TIP: Try the following
>  ./configure --with-mysql-lib=/usr/lib/mysql
> I have a question about step 1. When I more the file all it has in it is
> this information:
>
> [r...@nagios etc]# more ld.so.conf
> include ld.so.conf.d/*.conf
>
> My question is what is the syntax of the libraries I have no idea what to
> add into this file.
> Do I just add "/usr/lib/mysql" ?
>

The best thing to do would be to create a file in '/etc/ld.so.conf.d' called
'mysql.conf' that contains, as you suggest, one line thus: '/usr/lib/mysql'
(without the quotes). Then, proceed with steps 2, 3 and 4 above.

Cheers,
Guy.


>
> I am running Fedora 9
> mysql has been installed (see below:)
> [r...@nagios etc]# rpm -qa | grep mysql
> qt-mysql-4.5.0-14.fc9.i386
> mysql-administrator-5.0r12-8.fc9.i386
> mysql-server-5.0.77-1.fc9.i386
> mysql-devel-5.0.77-1.fc9.i386
> mysql-connector-odbc-3.51.24r1071-1.fc9.i386
> mysql-connector-java-3.1.12-5.fc9.i386
> php-mysql-5.2.6-2.fc9.i386
> mysql-5.0.77-1.fc9.i386
> libdbi-dbd-mysql-0.8.3-2.fc9.i386
> mysql-libs-5.0.77-1.fc9.i386
> nagios-plugins-mysql-1.4.13-9.fc9.i386
> mysql-gui-common-5.0r12-8.fc9.i386
> below is infor from mysql for nagios db for ndoutils
> mysql> use nagios
> Reading table information for completion of table and column names
> You can turn off this feature to get a quicker startup with -A
> Database changed
> mysql> show tables;
> +-+
> | Tables_in_nagios|
> +-+
> | ndo_acknowledgements|
> | ndo_commands|
> | ndo_commenthistory  |
> | ndo_comments|
> | ndo_configfiles |
> | ndo_configfilevariables |
> | ndo_conninfo|
> | ndo_contact_addresses   |
> | ndo_contact_notificationcommands|
> | ndo_contactgroup_members|
> | ndo_contactgroups   |
> | ndo_contactnotificationmethods  |
> | ndo_contactnotifications|
> | ndo_contacts|
> | ndo_customobjectvariables   |
> | ndo_downtimehistory |
> | ndo_eventhandlers   |
> | ndo_externalcommands|
> | ndo_flappinghistory |
> | ndo_host_contactgroups  |
> | ndo_host_parenthosts|
> | ndo_hostchecks  |
> | ndo_hostdependencies|
> | ndo_hostescalation_contactgroups|
> | ndo_hostescalations |
> | ndo_hostextinfo |
> | ndo_hostgroup_members   |
> | ndo_hostgroups  |
> | ndo_hosts   |
> | ndo_hoststatus  |
> | ndo_instances   |
> | ndo_logentries  |
> | ndo_notifications   |
> | ndo_objects |
> | ndo_processevents   |
> | ndo_programstatus   |
> | ndo_runtimevariables|
> | ndo_scheduleddowntime   |
> | ndo_service_contactgroups   |
> | ndo_servicechecks   |
> | ndo_servicedependencies |
> | ndo_serviceescalation_contactgroups |
> | ndo_serviceescalations  |
> | ndo_serviceextinfo  |
> | ndo_servicegroup_members|
> | ndo_servicegroups   |
> | ndo_services|
> | ndo_servicestatus   |
> | ndo_statehistory|
> | ndo_systemcommands  |
> | ndo_timedeventqueue |
> | ndo_timedevents |
> | ndo_timeperiod_timeranges   |
> | ndo_timeperiods |
> +-+
> 54 rows in set (0.00 sec)
> mysql>
>
> Network Operations Center Manager
> Experis Data Center LLC
> 8209 Valley Pike
> PO Box 535
> Middletown,VA 22645
> phone:540-869-8702
> cell:240-988-3267
> fax:540-869-8710
> e-mail:na...@experisdatacenters.com
>
>
> ---

[Nagios-users] NDOUtils and Mysql libraries assistance needed

2009-06-25 Thread Natalie Aloi

Hi I am having trouble getting ndoutils to work 
during my install I found this information logged:

*** MySQL library could not be located... **
You chose to compile NDBXT with MySQL support, but I was unable to
locate the MySQL library on your system. If the library is
installed, use the --with-mysql-lib argument to specify the
location of the MySQL library.
NOTE: After you install the necessary libraries on your system:
 1. Make sure /etc/ld.so.conf has an entry for the directory in
 which the MySQL libraries are installed.
 2. Run 'ldconfig' to update the run-time linker options.
 3. Run 'make devclean' in the NDBXT distribution to clean out
 any old references to your previous compile.
 4. Rerun the configure script.
TIP: Try the following
 ./configure --with-mysql-lib=/usr/lib/mysql
I have a question about step 1. When I more the file all it has in it is this 
information:

[r...@nagios etc]# more ld.so.conf
include ld.so.conf.d/*.conf

My question is what is the syntax of the libraries I have no idea what to add 
into this file.
Do I just add "/usr/lib/mysql" ?

I am running Fedora 9
mysql has been installed (see below:)
[r...@nagios etc]# rpm -qa | grep mysql
qt-mysql-4.5.0-14.fc9.i386
mysql-administrator-5.0r12-8.fc9.i386
mysql-server-5.0.77-1.fc9.i386
mysql-devel-5.0.77-1.fc9.i386
mysql-connector-odbc-3.51.24r1071-1.fc9.i386
mysql-connector-java-3.1.12-5.fc9.i386
php-mysql-5.2.6-2.fc9.i386
mysql-5.0.77-1.fc9.i386
libdbi-dbd-mysql-0.8.3-2.fc9.i386
mysql-libs-5.0.77-1.fc9.i386
nagios-plugins-mysql-1.4.13-9.fc9.i386
mysql-gui-common-5.0r12-8.fc9.i386
below is infor from mysql for nagios db for ndoutils
mysql> use nagios
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables;
+-+
| Tables_in_nagios |
+-+
| ndo_acknowledgements |
| ndo_commands |
| ndo_commenthistory |
| ndo_comments |
| ndo_configfiles |
| ndo_configfilevariables |
| ndo_conninfo |
| ndo_contact_addresses |
| ndo_contact_notificationcommands |
| ndo_contactgroup_members |
| ndo_contactgroups |
| ndo_contactnotificationmethods |
| ndo_contactnotifications |
| ndo_contacts |
| ndo_customobjectvariables |
| ndo_downtimehistory |
| ndo_eventhandlers |
| ndo_externalcommands |
| ndo_flappinghistory |
| ndo_host_contactgroups |
| ndo_host_parenthosts |
| ndo_hostchecks |
| ndo_hostdependencies |
| ndo_hostescalation_contactgroups |
| ndo_hostescalations |
| ndo_hostextinfo |
| ndo_hostgroup_members |
| ndo_hostgroups |
| ndo_hosts |
| ndo_hoststatus |
| ndo_instances |
| ndo_logentries |
| ndo_notifications |
| ndo_objects |
| ndo_processevents |
| ndo_programstatus |
| ndo_runtimevariables |
| ndo_scheduleddowntime |
| ndo_service_contactgroups |
| ndo_servicechecks |
| ndo_servicedependencies |
| ndo_serviceescalation_contactgroups |
| ndo_serviceescalations |
| ndo_serviceextinfo |
| ndo_servicegroup_members |
| ndo_servicegroups |
| ndo_services |
| ndo_servicestatus |
| ndo_statehistory |
| ndo_systemcommands |
| ndo_timedeventqueue |
| ndo_timedevents |
| ndo_timeperiod_timeranges |
| ndo_timeperiods |
+-+
54 rows in set (0.00 sec)
mysql>

Network Operations Center Manager 
Experis Data Center LLC 
8209 Valley Pike 
PO Box 535 
Middletown,VA 22645 
phone:540-869-8702 
cell:240-988-3267 
fax:540-869-8710 
e-mail:na...@experisdatacenters.com
--
___
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] Escaping broke i 3.1.1 ?

2009-06-25 Thread Pallavolu Reddi Sekhar Reddy
Hi,
I am not able to get info of linux server disk space uptime and all.

Any help is suggestable. Thanks in advance..

Thanks
Sekhar Reddy

On Tue, Jun 23, 2009 at 2:42 PM, Tore Lønøy  wrote:

> Hello,
>
> I just recently upgraded to the latest version, and now my escaping of '$'
> is broken.
>
> Before it was \$, but what is it now?
>
> Best regards, Tore
>
>
> --
> Are you an open source citizen? Join us for the Open Source Bridge
> conference!
> Portland, OR, June 17-19. Two days of sessions, one day of unconference:
> $250.
> Need another reason to go? 24-hour hacker lounge. Register today!
>
> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
> ___
> 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
>



-- 
P.R.Sekhar Reddy
+91-9916727650
--
___
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] Escaping broke i 3.1.1 ?

2009-06-25 Thread Pallavolu Reddi Sekhar Reddy
All LAN Servers. Do i need to install NRPE in all the server. Help me out. I
am new to Linux.
Thanks in advance.


On Thu, Jun 25, 2009 at 2:28 PM, Pallavolu Reddi Sekhar Reddy <
pr.sekharre...@gmail.com> wrote:

> Hi,
> I am not able to get info of linux server disk space uptime and all.
>
> Any help is suggestable. Thanks in advance..
>
> Thanks
> Sekhar Reddy
>
> On Tue, Jun 23, 2009 at 2:42 PM, Tore Lønøy  wrote:
>
>> Hello,
>>
>> I just recently upgraded to the latest version, and now my escaping of '$'
>> is broken.
>>
>> Before it was \$, but what is it now?
>>
>> Best regards, Tore
>>
>>
>> --
>> Are you an open source citizen? Join us for the Open Source Bridge
>> conference!
>> Portland, OR, June 17-19. Two days of sessions, one day of unconference:
>> $250.
>> Need another reason to go? 24-hour hacker lounge. Register today!
>>
>> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
>> ___
>> 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
>>
>
>
>
> --
> P.R.Sekhar Reddy
> +91-9916727650
>



-- 
P.R.Sekhar Reddy
+91-9916727650
--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] nrpe-2.12

2009-06-25 Thread Meyer Jerome
Hi Werner

Thanks for the link and your help...
Now,I easily could installed the package rpm for the version 2.12!

I didn't know the command "zypper", it's really nice...

Regards
jerome

> -Ursprüngliche Nachricht-
> Von: Werner Flamme [mailto:werner.fla...@ufz.de]
> Gesendet: Donnerstag, 25. Juni 2009 09:36
> An: Nagios-users@lists.sourceforge.net
> Betreff: Re: [Nagios-users] nrpe-2.12
> 
> Meyer Jerome [25.06.2009 08:24]:
> > I couldn't use "yum" on SLES11, that's the problem! There'isbt
> > openssl-devel on the openssl.org website...
> 
> My second thought:
> 
> For SLES11, you may include the repository at
> http://download.opensuse.org/repositories/server:/monitoring/SLE_11/.
> There are prcompiled packages of nagios and nrpe. Plus you don't confuse
> your server with packages that are installed alongside the package
> management ;-)
> 
> HTH
> Werner
> 
> 
> >
> >
> >
> > regards
> >
> > jm
> >
> >
> >
> > Von: Mathew Walker [mailto:lmw94...@hotmail.com]
> > Gesendet: Mittwoch, 24. Juni 2009 18:22
> > An: Meyer Jerome; nagios-users@lists.sourceforge.net;
> > nagios-de...@lists.sourceforge.net
> > Betreff: RE: [Nagios-users] nrpe-2.12
> >
> >
> >
> > you can probably easilly fix with openssl-devel
> >
> > if you have yum... "yum install openssl-devel" is all you have to do.
> >
> 
> -
> -
> ___
> 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 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] Escaping broke i 3.1.1 ?

2009-06-25 Thread Ton Voon
Tore,Aren't you missing a $ at the end of $_HOSTCRM_SERVICES$ in your services definition?See Custom variables in http://nagios.sourceforge.net/docs/3_0/macros.htmlYou could also have some debugging set in Nagios to show the exact command being run.TonOn 24 Jun 2009, at 14:12, Tore Lønøy wrote:Hello,Sorry for double posting, but wrong subject.Ton:Command line:/nagios/libexec/check_nrpe -H  -c CheckServiceState -a AOS\$01 ShowAll=longOK: AOS$01: started Here is the host def:define host { use Xhost_name   Xaddress Xalias   Xhostgroups  +CRM4#max_check_attempts 3#check_interval 2 #retry_interval 1#contact_groups +#notifications_enabled  1_CRM_SERVICES   AOS\$01# Macros_REQUESTOR}The service definition:define service { # Which _template_* to use. # (e.g. standard-service-60)use standard-service-1# Service spesificservice_description CRM Servicescheck_command   check_nrpe_parameters!CheckServiceState!ShowAll=long $_HOSTCRM_SERVICES  hostgroup_name  CRM4# Per service optionsfirst_notification_delay    10process_perf_data   0notifications_enabled   1max_check_attempts  2retry_interval  5 }The check command definition:define command {    command_name check_nrpe_parameters    command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 15 -c $ARG1$ -a $ARG2$}It worked on Nagios 3.0.6. I've tried almost any combination of escaping the dollar sign, $$, \$, \\$$,\\\$ You name it! Thanks for your help,Tore  Date: Tue, 23 Jun 2009 19:52:07 +0100 From: Ton Voon  Subject: Re: [Nagios-users] Escaping broke i 3.1.1 ? To: Nagios Users Mailinglist  Message-ID: <864af918-0779-4585-885d-afe784e69...@opsera.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes  Tore,  Can you send the configuration for the host and service too? Can you also send the check_nrpe_parameters command definition.  On the command line, what works?  Also, you said a previous version of Nagios worked with this definition - which version of Nagios was that?  Ton  On 23 Jun 2009, at 15:09, Tore L?n?y wrote:  > Let me see, this should be enough i think: > > define host { >         host_name       X >         alias   X >         address X >         check_period    24x7 >         check_command   check-host-alive >         contact_groups >         notification_period     24x7 >         initial_state   o >         check_interval  15.00 >         retry_interval  5.00 >         max_check_attempts      3 >         active_checks_enabled   1 >         passive_checks_enabled  0 >         obsess_over_host        1 >         event_handler_enabled   0 >         low_flap_threshold      0.00 >         high_flap_threshold     0.00 >         flap_detection_enabled  1 >         flap_detection_options  o,d,u >         freshness_threshold     0 >         check_freshness 0 >         notification_options    d,r >         notifications_enabled   1 >         notification_interval   60.00 >         first_notification_delay        60.00 >         stalking_options        n >         process_perf_data       1 >         failure_prediction_enabled      1 >         notes_url >         retain_status_information       1 >         retain_nonstatus_information    1 >         _REQUESTOR >         _CRM_SERVICES   "AOS$\$01" >         } > > define service { >         host_name       X >         service_description     X >         check_period    24x7 >         check_command   check_nrpe_parameters!CheckServiceState! > ShowAll=long $_HOSTCRM_SERVICES >         contact_groups >         notification_period     24x7 >         initial_state   o >         check_interval  1.00 >         retry_interval  5.00 >         max_check_attempts      2 >         is_volatile     0 >         parallelize_check       1 >         active_checks_enabled   1 >         passive_checks_enabled  0 >         obsess_over_service     0 >         event_handler_enabled   0 >         low_flap_threshold      0.00 >         high_flap_threshold     0.00 >         flap_detection_enabled  1 >         flap_detection_options  o,w,u,c >         freshness_threshold     0 >         check_freshness 0 >         notification_options    c,r >         notifications_enabled   1 >         notification_interval   60.00 >         first_notification_delay        10.00 >         stalking_options        n >         process_perf_data       0 >         failure_prediction_enabled      1 >         notes >         retain_status_information       1 >         retain_nonstatus_information    1 >         } > > The problem for me it seems is when nagios is parsing the data just > before it is going to execute the command. It is no problem executes > check_nrpe with ah backslash (\) as the escape char. But the problem

Re: [Nagios-users] Problem getting past main page

2009-06-25 Thread Guy Waugh
Hi Andrew,

On Thu, Jun 25, 2009 at 12:24 AM, Kaplan, Andrew H.
wrote:

>  This issue is an offshoot of the Problem in preflight check with
> commands.cfg.
>
> I went ahead and copied the nagios directory from our original server to
> the new
> one. Once that was done, I did the upgrade to version 3.1.2 of nagios. The
> main page
> of the application appears without a problem. However, whenever I try to go
> to any one
> of the links from the main page, an error message similar to the one below
> appears
> on-screen:
>
> *Not Found*
> *The requested URL /nagios/cgi-bin/status.cgi was not found on this
> server.*
>

Looking at your attached httpd.conf file, you seem to have configured the
URL '/cgi-bin/nagios' to be the ScriptAlias for the nagios CGIs, but then
you are trying to access them with the URL '/nagios/cgi-bin'. Provided the
Nagios CGI scripts are in /usr/local/nagios/sbin, as they are by default,
you should probably define your ScriptAlias like this:

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"

Cheers,
Guy.


> * *
>
> I noticed that after I inserted the snippets from the nagios.conf file into
> the
> httpd.conf file, and subsequently restarted the Apache server, the
> following
> errors appeared on-screen:
>
> *Starting httpd: The ScriptAlias directive in /etc/httpd/conf/httpd.conf
> at line*
> *566 will probably never match because it overlaps an earlier ScriptAlias.
> *
> *[warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 583 will
> *
> *probably never match because it overlaps an earlier Alias.*
>
> I have enclosed a copy of the httpd.conf file in its present version. I am
> at a
> lossas to why the error message is occurring, and I would really appreciate
> help on
> this.
>
> <>
>
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the e-mail
> contains patient information, please contact the Partners Compliance HelpLine 
> athttp://www.partners.org/complianceline . If the e-mail was sent to you in 
> error
> but does not contain patient information, please contact the sender and 
> properly
> dispose of the e-mail.
>
>
>
> --
>
> ___
> 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 mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] nrpe-2.12

2009-06-25 Thread Werner Flamme
Meyer Jerome [25.06.2009 08:24]:
> I couldn't use "yum" on SLES11, that's the problem! There'isbt
> openssl-devel on the openssl.org website...

My second thought:

For SLES11, you may include the repository at
http://download.opensuse.org/repositories/server:/monitoring/SLE_11/.
There are prcompiled packages of nagios and nrpe. Plus you don't confuse
your server with packages that are installed alongside the package
management ;-)

HTH
Werner


> 
>  
> 
> regards
> 
> jm
> 
>  
> 
> Von: Mathew Walker [mailto:lmw94...@hotmail.com] 
> Gesendet: Mittwoch, 24. Juni 2009 18:22
> An: Meyer Jerome; nagios-users@lists.sourceforge.net;
> nagios-de...@lists.sourceforge.net
> Betreff: RE: [Nagios-users] nrpe-2.12
> 
>  
> 
> you can probably easilly fix with openssl-devel 
>  
> if you have yum... "yum install openssl-devel" is all you have to do.
> 

--
___
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] Escaping broke i 3.1.1 ?

2009-06-25 Thread Tore Lønøy
The service name is "AOS$01", not "AOS\$01". The backslash is added to
escape the $.

I've tried the following combination:
$$
\$
\\$
$$$
\\\$
\\\$$

But no luck :(



2009/6/24 Mathew Walker 

>  I think you may need to escape the backslash itself with another backslash
> ... vaguely recall having to do that myself in some checks when passing
> values that had a backslash in it.
>
> --
> Mat W. - http://www.techadre.com
>
>
>
> --
> Date: Wed, 24 Jun 2009 15:12:20 +0200
> From: tore.lo...@gmail.com
> To: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Escaping broke i 3.1.1 ?
>
> Hello,
>
> Sorry for double posting, but wrong subject.
>
> Ton:
>
> Command line:
> /nagios/libexec/check_nrpe -H  -c CheckServiceState -a AOS\$01
> ShowAll=long
> OK: AOS$01: started
>
> Here is the host def:
> define host {
> use X
>
> host_name   X
> address X
> alias   X
>
>
> hostgroups  +CRM4
>
> #max_check_attempts 3
> #check_interval 2
> #retry_interval 1
>
> #contact_groups +
> #notifications_enabled  1
>
> _CRM_SERVICES   AOS\$01
>
> # Macros
> _REQUESTOR
>
> }
>
> The service definition:
> define service {
> # Which _template_* to use.
> # (e.g. standard-service-60)
> use standard-service-1
>
> # Service spesific
> service_description CRM Services
> check_command
> check_nrpe_parameters!CheckServiceState!ShowAll=long $_HOSTCRM_SERVICES
> hostgroup_name  CRM4
>
> # Per service options
> first_notification_delay10
> process_perf_data   0
> notifications_enabled   1
> max_check_attempts  2
> retry_interval  5
> }
>
> The check command definition:
> define command {
> command_name check_nrpe_parameters
> command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 15 -c $ARG1$ -a
> $ARG2$
> }
>
>
> It worked on Nagios 3.0.6. I've tried almost any combination of escaping
> the dollar sign, $$, \$, \\$$,\\\$ You name it!
>
> Thanks for your help,
>
> Tore
>
>
>
> Date: Tue, 23 Jun 2009 19:52:07 +0100
> From: Ton Voon 
> Subject: Re: [Nagios-users] Escaping broke i 3.1.1 ?
> To: Nagios Users Mailinglist 
> Message-ID: <864af918-0779-4585-885d-afe784e69...@opsera.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes
>
> Tore,
>
> Can you send the configuration for the host and service too? Can you
> also send the check_nrpe_parameters command definition.
>
> On the command line, what works?
>
> Also, you said a previous version of Nagios worked with this
> definition - which version of Nagios was that?
>
> Ton
>
> On 23 Jun 2009, at 15:09, Tore L?n?y wrote:
>
> > Let me see, this should be enough i think:
> >
> > define host {
> > host_name   X
> > alias   X
> > address X
> > check_period24x7
> > check_command   check-host-alive
> > contact_groups
> > notification_period 24x7
> > initial_state   o
> > check_interval  15.00
> > retry_interval  5.00
> > max_check_attempts  3
> > active_checks_enabled   1
> > passive_checks_enabled  0
> > obsess_over_host1
> > event_handler_enabled   0
> > low_flap_threshold  0.00
> > high_flap_threshold 0.00
> > flap_detection_enabled  1
> > flap_detection_options  o,d,u
> > freshness_threshold 0
> > check_freshness 0
> > notification_optionsd,r
> > notifications_enabled   1
> > notification_interval   60.00
> > first_notification_delay60.00
> > stalking_optionsn
> > process_perf_data   1
> > failure_prediction_enabled  1
> > notes_url
> > retain_status_information   1
> > retain_nonstatus_information1
> > _REQUESTOR
> > _CRM_SERVICES   "AOS$\$01"
> > }
> >
> > define service {
> > host_name   X
> > service_description X
> > check_period24x7
> > check_command   check_nrpe_parameters!CheckServiceState!
> > ShowAll=long $_HOSTCRM_SERVICES
> > contact_groups
> > notification_period 24x7
> > initial_state   o
> > check_interval  1.00
> > retry_interval  5.00
> > max_check_attempts  2
> > is_volatile 0
> > parallelize_check   1
> > active_checks_enabled   1
> > passive_checks_enabled  0
> > obsess_over_service 0
> > event_handler_enabled   0
> > low_flap_threshold  0.00
> > high_flap_threshold 0.00
> > flap_detection_enabled  1
> > flap_detection_options  o,w,u,c
> > freshness_threshold 0
> > check_freshness 0
> > no

Re: [Nagios-users] nrpe-2.12

2009-06-25 Thread David Gutierrez Gutierrez




Hi!

You can try : ./configure --with-ssl-lib=/usr/local/ssl/lib
make all 
make instal

I had the same problem and I've solved adding the ssl libraries.

Regards

Meyer Jerome escribió:

  
  

  
  
  
  I couldn’t use „yum“ on SLES11, that’s the problem!
There’isbt
openssl-devel on the openssl.org website…
   
  regards
  jm
  
   
  
  
  
  Von:
Mathew
Walker [mailto:lmw94...@hotmail.com] 
  Gesendet: Mittwoch, 24. Juni 2009 18:22
  An: Meyer Jerome; nagios-users@lists.sourceforge.net;
nagios-de...@lists.sourceforge.net
  Betreff: RE: [Nagios-users] nrpe-2.12
  
  
   
  you
can probably easilly fix with openssl-devel 
 
if you have yum... "yum install openssl-devel" is all you have to do.
  
-- 
Mat W. - http://www.techadre.com
  
  
 
  
  
  Date:
Wed, 24 Jun 2009 15:22:51 +0200
From: jerome.me...@baldata.ch
To: Nagios-users@lists.sourceforge.net;
nagios-de...@lists.sourceforge.net
Subject: [Nagios-users] nrpe-2.12
  
  Hi
   
  I’m
trying to install nrpe-2.12 on the nagios server and I receive
this
message :
  ./configure
  […]
  checking
for SSL headers... SSL headers found in /usr/local/ssl
  checking
for SSL libraries... configure: error: Cannot find ssl libraries
   
  The
openssl’s version is : openssl-0.9.8h-30.11 and there’s not
openssl.devel package available… on the other hand the version nrpe-2.8
is running !
   
  On
some forums, I’ve read that I could install this patch (see attach
file).
   
   
  How
could I run this patch?
  Which
version is better to use: nrpe-2.8 or nrpe-2.12?
   
  Thanks
  jerome
   
  
   
  
  
  Lauren
found her dream laptop. Find the PC that’s right for you.
  
  
  

--
  
  

___
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












  



Por favor, antes de imprimir este correo, valore si es estrictamente necesario. La naturaleza y el medio ambiente lo agradecerán

.



  

  















Le informamos, como destinatario de este mensaje, que el correo electrónico y las comunicaciones por medio de Internet no permiten asegurar ni garantizar la confidencialidad de los mensajes transmitidos, así como tampoco su integridad o su correcta recepción, por lo que TELECABLE DE ASTURIAS, S.A.U no asume responsabilidad alguna por tales circunstancias.

Si no consintiese en la utilización del correo electrónico o de las comunicaciones vía Internet le rogamos nos lo comunique y ponga en nuestro conocimiento de manera inmediata. Este mensaje va dirigido, de manera exclusiva, a su destinatario y contiene información confidencial y sujeta al secreto profesional, cuya divulgación no está permitida por la ley. En caso de haber recibido este mensaje por error, le rogamos que, de forma inmediata, nos lo comunique mediante correo electrónico remitido a nuestra atención o a través del teléfono (+ 34) 984191000 y proceda a su eliminación, así como a la de cualquier documento adjunto al mismo. Asimismo, le comunicamos que la distribución, copia o utilización de este mensaje, o de cualquier documento adjunto al mismo, cualquiera que fuera su finalidad, están prohibidas por la ley.



















begin:vcard
fn;quoted-printable:David  Guti=C3=A9rrez Guti=C3=A9rrez
n;quoted-printable: Guti=C3=A9rrez Guti=C3=A9rrez;David
org;quoted-printable;quoted-printable:Fijo:+34984191264 - M=C3=B3vil:+34684696358  -  TeleCable S.A.U.;Ingenier=C3=ADa y operaci=C3=B3n Servicios Avanzados
adr;quoted-printable;quoted-printable;quoted-printable;quoted-printable:Carretera de Cabue=C3=B1es S/N;;Parque Cientifico y Tecnol=C3=B3gico de Gij=C3=B3n ;Gij=C3=B3n;Asturias;33203;Espa=C3=B1a
email;internet:dggutier...@telecable.com
title;quoted-printable:=C3=81rea de Servicios Avanzados
tel;work:+34 984191264
tel;cell:+34 684696358
url:http://web.telecable.es
version:2.1
end:vcard

--
___
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] nagvis requires ndoutils; how stable is ndoutils?

2009-06-25 Thread Michael Friedrich

Hi there,

you can use Nagvis not depending on installing NDOUtils - try NDO2fs 
which is a new module and fully compatible to current NagVis version. It 
gets the data from Nagios via NDO Event Broker and writes it to a 
filebased structure from where NagVis will select the data from.


http://www.vertical-visions.de/2009/01/13/introducing-ndo2fs/
http://www.vertical-visions.de/projects/nagvis-project/
http://www.nagvis.org/

"We added two backends to the main NagVis code. You can now connect 
NagVis to ndo2fs . Ndo2fs is a 
lightweight alternative to the default MySQL based NDO."


Kind regards,
Michael


Rahul Nabar wrote the following on 25.06.2009 01:24:



On Tue, Jun 16, 2009 at 6:47 AM, Kevin Keane > wrote:


I just installed ndoutils with mysql. There indeed was one
pitfall: the
database is growing quite large very quickly. Eventually, the DB got
sluggish and couldn't keep up with the data Nagios threw at it (the DB
server is quite underpowered). It got so bad that after a week or so,
Nagios wouldn't even start up.

It turned out that it wasn't primarily the database itself, but binary
logging. It is turned on by default (at least on CentOS) but you only
need it for replication. If you are not using replication, simply turn
off binary logging and you should be good to go. At least, I hope
so; I
only made that change yesterday, so I won't know for another week
or so.


Thanks for all those helpful comments guys! You might have saved me 
from a few disasters here. I think I am staying away from Nagvis (and 
ndoutils ) for now.


Nagviz seems to me one of those tools that simply look great but the 
back-end still needs quite some work before I'd be brave enough to 
unleash it in a production environment!


--
Rahul



--



___
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


--
DI (FH) Michael Friedrich
michael.friedr...@univie.ac.at
Tel: +43 1 4277 14359

Vienna University Computer Center
Universitaetsstrasse 7 
A-1010 Vienna, Austria  

--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] nrpe-2.12

2009-06-25 Thread Werner Flamme
Meyer Jerome [25.06.2009 08:24]:
> I couldn't use "yum" on SLES11, that's the problem! There'isbt
> openssl-devel on the openssl.org website...

A "zypper se openssl" will show you all known packages containing
openssl in their names. Maybe libopenssl-devel ist the package you're
looking for. Try "zypper in libopenssl-devel" to install it and retry
compiling.

HTH
Werner

> 
>  
> 
> regards
> 
> jm
> 
>  
> 
> Von: Mathew Walker [mailto:lmw94...@hotmail.com] 
> Gesendet: Mittwoch, 24. Juni 2009 18:22
> An: Meyer Jerome; nagios-users@lists.sourceforge.net;
> nagios-de...@lists.sourceforge.net
> Betreff: RE: [Nagios-users] nrpe-2.12
> 
>  
> 
> you can probably easilly fix with openssl-devel 
>  
> if you have yum... "yum install openssl-devel" is all you have to do.
> 

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