Pls help me with following problem:

PNP4NAGIOS
==========
I have installed pnp4nagios in Bulk Mode with NPCD:

/etc/icinga/icinga.cfg
process_performance_data=1

service_perfdata_file=/var/log/pnp4nagios/service-perfdata
service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\
tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$
SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$
HOSTSTATE$\tHOST     STATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE
$\tSERVICESTATETYPE::$SERVICESTATETYPE$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=15
service_perfdata_file_processing_command=process-service-perfdata-file

#
# host performance data starting with Nagios 3.0
#

host_perfdata_file=/var/log/pnp4nagios/host-perfdata
host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\
tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$
HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$
host_perfdata_file_mode=a
host_perfdata_file_processing_interval=15
host_perfdata_file_processing_command=process-host-perfdata-file

misccommands.cfg
 define command {
                 command_name                          process-service-
perfdata-file
                 command_line                          command_line /bin/mv 
  /var/log/pnp4nagios/service-perfdata    /var/spool/pnp4nagios/service-
perfdata.$TIMET$
 }

 define command {
                 command_name                          process-host-perfdata
-file
                 command_line                          command_line  /bin/mv
  /var/log/pnp4nagios/host-perfdata    /var/spool/pnp4nagios/host-perfdata.$
TIMET$
 }



Test with verify_pnp_config script
==================================
verify_pnp_config -mbulk+npcd -c/etc/icinga/icinga.cfg -p/etc/pnp4nagios

is OK:
....
[INFO]  ==== Starting directory checks ====
[OK  ]  RRDPATH is defined
[OK  ]  RRDPATH=/var/lib/pnp4nagios
[OK  ]  Perfdata directory '/var/lib/pnp4nagios' exists
[WARN]  140 hosts/services are not providing performance data
[WARN]  'process_perf_data 1' is set for 24 hosts/services which are not 
providing performance data!
[WARN]  'process_perf_data 0' is set for 118 of your hosts/services
[OK  ]  'process_perf_data 1' is set for 653 of your hosts/services
[INFO]  ==== System sizing ====
[OK  ]  770 hosts/service objects defined
[INFO]  ==== Check statistics ====
[WARN]  Warning: 3, Critical: 0
[WARN]  Checks finished...


Check access
============
 ls -l /var/log/pnp4nagios/
total 6444
-rw-rw-r-- 1 icinga icinga 2153581 May 21 13:20 host-perfdata
drwxrwxr-x 2 icinga icinga    4096 Mar  4  2013 kohana
-rwxrwxr-x 1 icinga icinga   72118 May 21 09:31 perfdata.log
-rw-rw-r-- 1 icinga icinga 4346364 May 21 13:19 service-perfdata
drwxrwxr-x 2 icinga icinga    4096 May 21 09:31 stats

 ls -l /var/spool/
 
 drwxrwxr-x   2 icinga icinga  4096 May 21 09:31 pnp4nagios
 
Packages
======== 
 rpm -qa|grep icinga
icinga-web-1.7.2-2.el6.rf.noarch
icinga-gui-1.8.4-4.el6.rf.x86_64
icinga-api-1.5.1-1.el6.rf.x86_64
icinga-idoutils-libdbi-mysql-1.8.4-4.el6.rf.x86_64
icinga-idoutils-1.8.4-4.el6.rf.x86_64
icinga-1.8.4-4.el6.rf.x86_64
icinga-doc-1.8.4-4.el6.rf.x86_64
icinga-devel-1.8.4-4.el6.rf.x86_64
icinga-web-module-pnp-1.7.2-2.el6.rf.noarch
[root@sx-mon ~]#

 
 
 
Errors
======
tailf /var/log/messages

[1400671437] Warning: Attempting to execute the command "command_line  /bin/
mv  /var/log/pnp4nagios/host-perfdata    /var/spool/pnp4nagios/host-
perfdata.1400671437" resulted in a return code of 127.  Make sure the script
or binary you are trying to execute actually exists...
[1400671437] Warning: Attempting to execute the command "command_line /bin/
mv   /var/log/pnp4nagios/service-perfdata    /var/spool/pnp4nagios/service-
perfdata.1400671437" resulted in a return code of 127.  Make sure the script
or binary you are trying to execute actually exists...

this error is in syslog again and again

ls -l /bin/m*
-rwxr-xr-x 1 root root 113368 Mar 12 12:12 /bin/mv

/bin/mv exists

Mr. Google did not find any idea.
Could anybody offer an any idea, how to resolve this item?
thank you very much



_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to