System Logging Daemon -> NRPE: Unable to read output

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
timlee
Posts: 60
Joined: Mon Jan 12, 2015 10:01 pm

System Logging Daemon -> NRPE: Unable to read output

Post 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!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: System Logging Daemon -> NRPE: Unable to read output

Post by tmcdonald »

http://assets.nagios.com/downloads/nagi ... utions.pdf

Take a look at Section VII, it covers that exact error message.
Former Nagios employee
timlee
Posts: 60
Joined: Mon Jan 12, 2015 10:01 pm

Re: System Logging Daemon -> NRPE: Unable to read output

Post by timlee »

tmcdonald wrote:http://assets.nagios.com/downloads/nagi ... utions.pdf

Take a look at Section VII, it covers that exact error message.
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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: System Logging Daemon -> NRPE: Unable to read output

Post by scottwilkerson »

Do you have syslog running on the remote server?
On machine with agent installed

Code: Select all

service syslog status
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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
timlee
Posts: 60
Joined: Mon Jan 12, 2015 10:01 pm

Re: System Logging Daemon -> NRPE: Unable to read output

Post by timlee »

scottwilkerson wrote:Do you have syslog running on the remote server?
On machine with agent installed

Code: Select all

service syslog status
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?
timlee
Posts: 60
Joined: Mon Jan 12, 2015 10:01 pm

Re: System Logging Daemon -> NRPE: Unable to read output

Post 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...
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: System Logging Daemon -> NRPE: Unable to read output

Post by abrist »

Can you post the full command for the check that is failing?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
timlee
Posts: 60
Joined: Mon Jan 12, 2015 10:01 pm

Re: System Logging Daemon -> NRPE: Unable to read output

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: System Logging Daemon -> NRPE: Unable to read output

Post 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.
Former Nagios employee
timlee
Posts: 60
Joined: Mon Jan 12, 2015 10:01 pm

Re: System Logging Daemon -> NRPE: Unable to read output

Post 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
	}	
Locked