[Nagios-users] check_nrpe Connection refused by host

2013-04-27 Thread Jim Miller
Hello everyone,

I'm sure this is common issue.  But I'm stumped.  I can run check_nrpe from the 
command line on the monitoring server w/out any problem.  But for all of the 
nrpe_checks the server runs, I see:

LOGS:
[1367058676] SERVICE NOTIFICATION: icingaadmin;xio99cdejump02.example.com;Free 
Space of sda1;CRITICAL;notify-service-by-email;Connection refused by host
[1367059156] SERVICE NOTIFICATION: 
icingaadmin;xio99cdejump02.example.com;Current 
Users;CRITICAL;notify-service-by-email;Connection refused by host
[1367059216] SERVICE NOTIFICATION: icingaadmin;xio99cdejump02.example.com;Total 
Processes;CRITICAL;notify-service-by-email;Connection refused by host
[1367059276] SERVICE NOTIFICATION: 
icingaadmin;xio99cdejump02.example.com;Zombie 
Processes;CRITICAL;notify-service-by-email;Connection refused by host
[1367059646] SERVICE NOTIFICATION: icingaadmin;xio99cdejump02.example.com;CPU 
Load;CRITICAL;notify-service-by-email;Connection refused by host

MANUAL CHECKS:
[root@xio99cdejump01 icinga]# /usr/lib64/nagios/plugins/check_nrpe  -H 
xio99cdejump02.example.com -c check_users_count -a 5 10
USERS OK - 1 users currently logged in |users=1;5;10;0

[root@xio99cdejump01 icinga]# /usr/lib64/nagios/plugins/check_nrpe  -H 
xio99cdejump02.example.com -c check_load_avg -a 15,10,5 30,25,20
OK - load average: 0.00, 0.00, 0.00|load1=0.000;15.000;30.000;0; 
load5=0.000;10.000;25.000;0; load15=0.000;5.000;20.000;0;

[root@xio99cdejump01 icinga]# /usr/lib64/nagios/plugins/check_nrpe  -H 
xio99cdejump02.example.com -c check_sda1
DISK OK - free space: /boot 379 MB (82% inode=99%);| /boot=79MB;387;435;0;484

[root@xio99cdejump01 icinga]# /usr/lib64/nagios/plugins/check_nrpe  -H 
xio99cdejump02.example.com -c check_swap_usage
SWAP OK - 100% free (5119 MB out of 5119 MB) |swap=5119MB;1023;511;0;5119

[root@xio99cdejump01 icinga]# /usr/lib64/nagios/plugins/check_nrpe  -H 
xio99cdejump02.example.com -c check_zombie_procs
PROCS OK: 0 processes with STATE = Z

[root@xio99cdejump01 icinga]# /usr/lib64/nagios/plugins/check_nrpe  -H 
xio99cdejump02.example.com -c check_total_procs
PROCS OK: 106 processes

==
Monitored Client:
RHEL 6.3
NRPE - nrpe-2.13-1.el6.x86_64

[root@xio99cdejump02 nagios]# netstat -anp |grep nrpe
tcp0  0 0.0.0.0:56660.0.0.0:*   
LISTEN  5418/nrpe


[root@xio99cdejump02 nagios]# /etc/init.d/nrpe restart
Shutting down nrpe: Apr 27 09:53:33 xio99cdejump02 nrpe[5418]: Caught SIGTERM - 
shutting down...
Apr 27 09:53:33 xio99cdejump02 nrpe[5418]: Daemon shutdown
   [  OK  ]
Starting nrpe: Apr 27 09:53:33 xio99cdejump02 nrpe[5502]: INFO: SSL/TLS 
initialized. All network traffic will be encrypted.
   [  OK  ]
[root@xio99cdejump02 nagios]# Apr 27 09:53:33 xio99cdejump02 nrpe[5503]: 
Starting up daemon
Apr 27 09:53:33 xio99cdejump02 nrpe[5503]: Warning: Daemon is configured to 
accept command arguments from clients!
Apr 27 09:53:33 xio99cdejump02 nrpe[5503]: Listening for connections on port 
5666
Apr 27 09:53:33 xio99cdejump02 nrpe[5503]: Allowing connections from: 
127.0.0.1, 10.xxx.0.110

Command Config Lines /etc/nagios/nrpe.cfg
command[check_users_count]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10
command[check_load_avg]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 
30,25,20
command[check_sda1]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p 
/dev/sda1
command[check_swap_usage]=/usr/lib64/nagios/plugins/check_swap -w 20% -c 10%
command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s 
Z
command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 150 -c 200

Monitoring Server:
Nagios Plugins - v.1.4.16-5

Config files:
---
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}
---

define host {
use linux-server
host_name xio99cdejump02.example.com
alias xio99cdejump02
address 10.xxx.0.110
}

define service {
use generic-service
host_name xio99cdejump02.example.com
service_description CPU Load
check_command check_nrpe!check_load_avg
}

define service {
use generic-service
host_name xio99cdejump02.example.com
service_description Current Users
check_command check_nrpe!check_users_count
}

define service {
use generic-service
host_name xio99cdejump02.example.com
service_description Check Swap
check_command check_nrpe!check_swap_usage
}

define service {
use generic-service
host_name xio99cdejump02.example.com
service_description Free Space of sda1
check_command check_nrpe!check_sda1
}

---

Thanks for any suggestions,
Jim

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. 

[Nagios-users] Hardware specs

2008-07-02 Thread Jim Miller
Is there an offical minimum hardware requirements document for nagios? If 
not, can someone tell me if nagios can run effectively on a beefed up desktop 
or do I need to run it on a server?-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
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] Hardware specs

2008-07-02 Thread Jim Miller
Never mind... I am a bone head. It's in the documentation. RTFM eh?



- Original Message 
From: Jim Miller [EMAIL PROTECTED]
To: nagios-users@lists.sourceforge.net
Sent: Wednesday, July 2, 2008 9:50:53 AM
Subject: [Nagios-users] Hardware specs


Is there an offical minimum hardware requirements document for nagios? If 
not, can someone tell me if nagios can run effectively on a beefed up desktop 
or do I need to run it on a server?-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Monitoring capabilities question

2008-06-19 Thread Jim Miller
Does anyone know, is Nagios capable of monitoring object counts within a folder?
Jim-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Service monitoring question

2008-06-18 Thread Jim Miller
I have the following in my windows.cfg file
define service{
use           generic-service   
host_name       my host name
service_description     DICOM
check_command       check_tcp! -H my ip -p 104
}

but it returns a status of unknown in the Nagios dashboard. I get the following 
message.
check_tcp: Port must be a positive integer 
I have run the check_tcp command from the command line (minus the !) 
successfully with that same syntax. Any ideas?-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Service monitoring question

2008-06-18 Thread Jim Miller
I'm afraid I don't follow. Are you referring to the way the command is defined 
in the command.cfg file? If that's the case it looks like this.
define command{
            command_name        check_tcp
    command_line            $USER1$/check_tcp -H $HOSTADDRESS$ -p 
$ARGS1$ $ARGS2$
            }
Is that what you mean?



- Original Message 
From: Aaron M. Segura [EMAIL PROTECTED]
To: Jim Miller [EMAIL PROTECTED]
Cc: nagios-users@lists.sourceforge.net
Sent: Wednesday, June 18, 2008 1:29:38 PM
Subject: Re: [Nagios-users] Service monitoring question

Your check command is incorrect.  We'll need to see your command
definition for 'check_tcp' to tell you for sure what's wrong, though.

http://nagios.sourceforge.net/docs/2_0/xodtemplate.html

On Wed, 2008-06-18 at 10:20 -0700, Jim Miller wrote:
 I have the following in my windows.cfg file
 define service{
     use                  generic-service        
     host_name            my host name
     service_description        DICOM
     check_command        check_tcp! -H my ip -p 104
     }
 but it returns a status of unknown in the Nagios dashboard. I get the 
 following message.
 check_tcp: Port must be a positive integer 
 I have run the check_tcp command from the command line (minus the !) 
 successfully with that same syntax. Any ideas?
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___ 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
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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] Install difficulty

2008-06-17 Thread Jim Miller
This did not work either.



- Original Message 
From: Yost, Karl [EMAIL PROTECTED]
To: Jim Miller [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net
Sent: Tuesday, June 17, 2008 11:14:39 AM
Subject: RE: [Nagios-users] Install difficulty

Try using http://localhost/nagios/ 
The trailing slash may be needed

-Original Message-
From: Jim Miller [EMAIL PROTECTED]
Sent: Tuesday, June 17, 2008 11:11 AM
To: nagios-users@lists.sourceforge.net nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Install difficulty

Hello everyone
I have downloaded and installed Nagios per the instructions posted for Fedora. 
Everything worked according to the instructions however when I start Nagios 
and try to navigate to http://localhost/nagios I get a 404 error. I suspect My 
webserver is unaware of nagios' exsistance however I am unsure how to begin to 
trouble shoot this problem. Can someone offer some guidance? Thank you.
Jim
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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] Install difficulty

2008-06-17 Thread Jim Miller
Yes. I could be going down the wrong path but, how does the Nagios install know 
what the document root of the webserver is? It would seem to me that there 
should be some reference to nagios in the document root so the webserver know 
where to direct the requests, or does nagios not work that way? 



- Original Message 
From: Yost, Karl [EMAIL PROTECTED]
To: Jim Miller [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net
Sent: Tuesday, June 17, 2008 11:26:46 AM
Subject: RE: [Nagios-users] Install difficulty


Did you restart apache after you configured the aliases and directory options?
 
Thanks,
Karl
 
From:Jim Miller [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 17, 2008 11:21 AM
To: Yost, Karl; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Install difficulty
 
This did not work either. 
 
- Original Message 
From: Yost, Karl [EMAIL PROTECTED]
To: Jim Miller [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net
Sent: Tuesday, June 17, 2008 11:14:39 AM
Subject: RE: [Nagios-users] Install difficulty

Try using http://localhost/nagios/ 
The trailing slash may be needed

-Original Message-
From: Jim Miller [EMAIL PROTECTED]
Sent: Tuesday, June 17, 2008 11:11 AM
To: nagios-users@lists.sourceforge.net nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Install difficulty

Hello everyone
I have downloaded and installed Nagios per the instructions posted for Fedora. 
Everything worked according to the instructions however when I start Nagios 
and try to navigate to http://localhost/nagios I get a 404 error. I suspect My 
webserver is unaware of nagios' exsistance however I am unsure how to begin to 
trouble shoot this problem. Can someone offer some guidance? Thank you.
Jim-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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