Page 1 of 2
System Logging Daemon -> NRPE: Unable to read output
Posted: Wed Jan 21, 2015 3:29 am
by timlee
Hi, I'm a newbie to nagios and need your help.
I used the VM images from the download library for both my server and the other to be monitored (which i will call client here).
I have install on server: nrpe-2.14.tar.gz
On the client: linux-nrpe-agent.tar.gz
and using the wizard, all the monitoring status is ok, however only the System Logging Daemon give the status information of (critical) NRPE: Unable to read output
What should i do from here as the i have already tried the troubleshooting document from the library. Please try to be as detailed as possible! Thank you!
Re: System Logging Daemon -> NRPE: Unable to read output
Posted: Wed Jan 21, 2015 10:52 am
by tmcdonald
http://assets.nagios.com/downloads/nagi ... utions.pdf
Take a look at Section VII, it covers that exact error message.
Re: System Logging Daemon -> NRPE: Unable to read output
Posted: Fri Jan 23, 2015 5:08 am
by timlee
Hi, I have already covered that. I even went to re-install the whole vm image and installed the linux-nrpe-agent.tar.gz again. All services are working except the "System Logging Daemon" which gives the error of NRPE: Unable to read output.
Where should I start to troubleshoot?
Re: System Logging Daemon -> NRPE: Unable to read output
Posted: Fri Jan 23, 2015 12:05 pm
by scottwilkerson
Do you have syslog running on the remote server?
On machine with agent installed
Maybe is is named rsyslog, and you need to change the
"init.d Service" area in the wizard. What is in there by default are just examples.
Re: System Logging Daemon -> NRPE: Unable to read output
Posted: Sun Jan 25, 2015 9:24 pm
by timlee
scottwilkerson wrote:Do you have syslog running on the remote server?
On machine with agent installed
Maybe is is named rsyslog, and you need to change the
"init.d Service" area in the wizard. What is in there by default are just examples.
Hi Scott,
Seems like the syslog service is not installed.
Code: Select all
[root@localhost ~]# service syslog status
syslog: unrecognized service
How should I go about doing it?
Re: System Logging Daemon -> NRPE: Unable to read output
Posted: Sun Jan 25, 2015 10:53 pm
by timlee
Hi I tried another command, it is using rsyslog instead of syslog
Code: Select all
[root@localhost ~]# service rsyslog status
rsyslogd (pid 1095) is running...
Re: System Logging Daemon -> NRPE: Unable to read output
Posted: Mon Jan 26, 2015 12:39 pm
by abrist
Can you post the full command for the check that is failing?
Re: System Logging Daemon -> NRPE: Unable to read output
Posted: Mon Jan 26, 2015 9:58 pm
by timlee
abrist wrote:Can you post the full command for the check that is failing?
Where can I find it?
Here is from the var log messages:
Code: Select all
[root@NagiosServer ~]# tail /var/log/messages
Jan 27 10:52:10 NagiosServer nagios: ndomod registered for state change data'
Jan 27 10:52:10 NagiosServer nagios: ndomod registered for contact status data'
Jan 27 10:52:10 NagiosServer nagios: ndomod registered for adaptive contact data'
Jan 27 10:52:10 NagiosServer nagios: Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.
Jan 27 10:52:10 NagiosServer nagios: Warning: Service recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify critical and/or warning options as well
Jan 27 10:52:10 NagiosServer nagios: Successfully launched command file worker with pid 25859
Jan 27 10:53:48 NagiosServer kernel: Kernel logging (proc) stopped.
Jan 27 10:53:48 NagiosServer rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="1022" x-info="http://www.rsyslog.com"] exiting on signal 15.
Jan 27 10:53:48 NagiosServer kernel: imklog 5.8.10, log source = /proc/kmsg started.
Jan 27 10:53:48 NagiosServer rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="26272" x-info="http://www.rsyslog.com"] start
Re: System Logging Daemon -> NRPE: Unable to read output
Posted: Tue Jan 27, 2015 11:43 am
by tmcdonald
timlee wrote:Where can I find it?
In your XI web interface, go to Configure -> Core Config Manager -> Services. Find the service that is misbehaving and click the blue diskette icon to the right. Show us that output.
Re: System Logging Daemon -> NRPE: Unable to read output
Posted: Wed Jan 28, 2015 3:23 am
by timlee
tmcdonald wrote:timlee wrote:Where can I find it?
In your XI web interface, go to Configure -> Core Config Manager -> Services. Find the service that is misbehaving and click the blue diskette icon to the right. Show us that output.
Thanks for the hint. This is the default one i used using the wizard. Not sure what to edit...
Code: Select all
define service {
host_name 192.168.168.123
service_description / Disk Usage
use xiwizard_nrpe_service
check_command check_nrpe!check_disk!-a '-w 20% -c 10% -p /'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.168.123
service_description CPU Stats
use xiwizard_nrpe_service
check_command check_nrpe!check_cpu_stats!-a '-w 85 -c 95'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.168.123
service_description Cron Scheduling Daemon
use xiwizard_nrpe_service
check_command check_nrpe!check_init_service!-a 'crond'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.168.123
service_description Load
use xiwizard_nrpe_service
check_command check_nrpe!check_load!-a '-w 15,10,5 -c 30,20,10'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.168.123
service_description Memory Usage
use xiwizard_nrpe_service
check_command check_nrpe!check_mem!-a '-w 20 -c 10'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.168.123
service_description Open Files
use xiwizard_nrpe_service
check_command check_nrpe!check_open_files!-a '-w 30 -c 50'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.168.123
service_description Ping
use xiwizard_linuxserver_ping_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.168.123
service_description SSH Server
use xiwizard_nrpe_service
check_command check_nrpe!check_init_service!-a 'sshd'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.168.123
service_description Swap Usage
use xiwizard_nrpe_service
check_command check_nrpe!check_swap!-a '-w 50 -c 20'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.168.123
service_description System Logging Daemon
use xiwizard_nrpe_service
check_command check_nrpe!check_init_service!-a 'syslog'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.168.123
service_description Total Processes
use xiwizard_nrpe_service
check_command check_nrpe!check_procs!-a '-w 150 -c 250'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.168.123
service_description Users
use xiwizard_nrpe_service
check_command check_nrpe!check_users!-a '-w 5 -c 10'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.168.123
service_description Yum Updates
use xiwizard_nrpe_service
check_command check_nrpe!check_yum!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}