System Logging Daemon : NRPE: Unable to read output
Posted: Thu Jan 10, 2013 6:06 am
Hi All,
We have installed Nagios Xi Version--- Nagios XI 2011R1.9
and one linux host group and we assign one service System logging daemon in the group level so that every host coming under this group is using the service.
below is the definition
Service Definition
define service {
service_description System Logging Daemon
use linux
hostgroup_name Linux
check_command check_nrpe!check_init_service!-a 'rsyslog'!!!!!!
register 1
}
our aim is to keep all the linux servers in a single group and assign the service in a group level but we have different version of servers running. Since the service is trying to execute the rsyslog command in the remote host . and some of the servers are RHEL 5.x it is not supporting this version instead looking for syslog.
Just for experiment i changed the command argument from rsyslog to syslog in the nagios then i observed
system logging daemon for all the servers with version RHEL 5.x starts working but for RHEL 6.x through the nrpe unable to read and vice verse .
what i am trying to know is , is there any way through which we can use both the command(rsyslog and syslog) in the same command definition and will execute the appropriate command with respect to the version(RHEL 5/6).
or do we need to create a separate host group for different version and will use one different command for that ?
Please suggest us what approach we need to follow.
Thanks in advance,
Bijay Ojha
We have installed Nagios Xi Version--- Nagios XI 2011R1.9
and one linux host group and we assign one service System logging daemon in the group level so that every host coming under this group is using the service.
below is the definition
Service Definition
define service {
service_description System Logging Daemon
use linux
hostgroup_name Linux
check_command check_nrpe!check_init_service!-a 'rsyslog'!!!!!!
register 1
}
our aim is to keep all the linux servers in a single group and assign the service in a group level but we have different version of servers running. Since the service is trying to execute the rsyslog command in the remote host . and some of the servers are RHEL 5.x it is not supporting this version instead looking for syslog.
Just for experiment i changed the command argument from rsyslog to syslog in the nagios then i observed
system logging daemon for all the servers with version RHEL 5.x starts working but for RHEL 6.x through the nrpe unable to read and vice verse .
what i am trying to know is , is there any way through which we can use both the command(rsyslog and syslog) in the same command definition and will execute the appropriate command with respect to the version(RHEL 5/6).
or do we need to create a separate host group for different version and will use one different command for that ?
Please suggest us what approach we need to follow.
Thanks in advance,
Bijay Ojha