The following file :
rsyslog server on Redhat Linux;
/etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.1.9.76 linux
192.168.200.20 t24_as02
192.168.200.153 t24_db02
/etc/rsyslog.conf
# Below find some samples of what a template can do. Have a good
# time finding out what they do [or just tun them]
# A template that resambles traditional syslogd file output:
$template TraditionalFormat,"%timegenerated% %HOSTNAME% %syslogtag%%msg:::drop-last-lf%\n"
# A template that tells you a little more about the message:
$template precise,"%syslogpriority%,%syslogfacility%,%timegenerated:::fulltime%,%HOSTNAME%,%syslogtag%,%msg%\n"
# A template that resembles RFC 3164 on-the-wire format:
# (yes, there is NO space betwen syslogtag and msg! that's important!)
$template RFC3164fmt,"<%PRI%>%TIMESTAMP% %HOSTNAME% %syslogtag%%msg%"
# a template resembling traditional wallmessage format:
$template wallmsg,"\r\n\7Message from syslogd@%HOSTNAME% at %timegenerated% ...\r\n %syslogtag%%msg%\n\r"
# The template below emulates winsyslog format, but we need to check the time
# stamps used. for now, it is good enough

This format works best with
# other members of the MonitorWare product family. It is also a good sample
# where you can see the property replacer in action.
$template WinSyslogFmt,"%HOSTNAME%,%timegenerated:1:10:date-rfc3339%,%timegenerated:12:19:date-rfc3339%,%timegenerated:1:10:date-rfc3339%,%timegenerated:12:19:date-rfc3339%,%syslogfacility%,%syslogpriority%,%syslogtag%%msg%\n"
# A template used for database writing (notice it *is* an actual
# sql-statement):
$template dbFormat,"insert into SystemEvents (Message, Facility,FromHost, Priority, DeviceReportedTime, ReceivedAt, InfoUnitID, SysLogTag) values ('%msg%', %syslogfacility%, '%HOSTNAME%',%syslogpriority%, '%timereported:::date-mysql%', '%timegenerated:::date-mysql%', %iut%, '%syslogtag%')",sql
# Selector lines are somewhat different from stock syslogd. With
# rsyslog, you can add a semicolon ";" after the target and then
# the template name. That will assign this template to the respective
# action. If no template name is given, a hardcoded template is used.
# If a template name is given, but the template was not defined, the
# selector line is DEACTIVATED.
#
# #############
# # IMPORTANT #
# #############
# #############
# # IMPORTANT #
# #############
# Templates MUST be defined BEFORE they are used! It is OK to
# intermix template definitions and selector lines within the
# config file, but each template MUST be defined before it is
# used the first time!
#
# We have some very rough samples here - This sample file focusses
# on the new syntax, so we do NOT describe all possible selections.
# Use the syslog.conf if you are interested to see how to select
# based on facility and severits (aka priority).
# And this finally is a database action
# The semicolon at the end is theoreticaly not necessary,
# but the current rsyslogd has a bug that makes it abort if
# it is missing. As Dennis Olvany pointed out, it would e
# extremely nice to have this semicolon in the sample conf
*.* >localhost,Syslog,root,123456;dbFormat
# It uses the default schema (MonitorWare format). The parameters
# should be self-explanatory.
ON AIX Server (192.168.200.153)
/etc/hosts
127.0.0.1 loopback localhost
192.168.200.153 t24_db02
10.1.9.76 linux
/etc/syslog.conf
*.debug @linux
Output PHPlogCon
Event 1 to 20 from 11914 «« « 1 2 3 4 » »»
Date Facility Severity InfoUnit
Host Message
16:29:32 3 DEBUG SL
Message from t24_db02: nrpe[17674]: Host is asking for command 'check_disk/opt' to be run...
16:29:32 3 DEBUG SL Message from t24_db02: nrpe[17674]: Running command: /usr/local/nagios/nagios/libexec/check_disk -w 10% -c 1% -p /dev/hd10opt
16:29:32 3 DEBUG SL Message from t24_db02: nrpe[17674]: Command completed with return code 0 and output: DISK OK - free space: /opt 91 MB (18%);| /opt=421MB;460;506;0;512
16:29:32 3 DEBUG SL Message from t24_db02: nrpe[17674]: Return Code: 0, Output: DISK OK - free space: /opt 91 MB (18%);| /opt=421MB;460;506;0;512
16:29:32 3 DEBUG SL Message from t24_db02: nrpe[17674]: Connection from 10.1.10.100 closed.
16:29:31 3 DEBUG SL Message from t24_db02: nrpe[17674]: Connection from 10.1.10.100 port 51576
16:29:31 3 DEBUG SL Message from t24_db02: nrpe[17674]: Host address is in allowed_hosts
16:29:31 3 DEBUG SL Message from t24_db02: nrpe[17674]: Handling the connection...
16:29:24 3 DEBUG SL Message from t24_db02: nrpe[39792]: Host is asking for command 'check_disk/globus' to be run...
Please help me!