NRPE plug in resulting wrong output.

Hi I am facing a weird issue. </p>

I have installed NAGIOS and using NRPE plugin for remote host monitoring.

I have written a small script to check log files on remote host , the script is working fine from remote host. but from Nagios server ( NRPE plugin the out put is wrong )

Output from Remote host

Server1:/usr/local/nagios/libexec> ./check_batch_status -I air
OK: Batch is successfully submitted for hour 01</p>

NRPE.cfg entry on Remote host

Server1:/usr/local/nagios/libexec> cat ../etc/nrpe.cfg | grep air
command[check_batch_status_air]=/usr/local/nagios/libexec/check_batch_status -I air

Output from Nagios server via NRPE

-bash-3.1$ ./check_nrpe -H Server1-c check_batch_status_air
 CRITICAL:Batch missing for hour 01

it was all about due to permission issue.

From host machine I was logged in as a normal user and Nagios server ( NRPE plug in was using Nagios user )

Changing in few permission structure solved the issue. </div>

comments powered by Disqus