Check_MK MRPE
Although the documentation of MRPE is very comprehensive but today I messed the whole day with small issue.
I had written small script which can connect to another host by ssh and collect some facts. The problem started when I was using the same command two times with different parameters.
e.g. check my mrpe.cfg
[root@appmon2 tmp]# cat mrpe.cfg</p>### Just a Test
TEST1 ./test.sh ALL
TEST2 ./test.sh COLO
so despite I have defined two services , check_mk_agent is recongnizing only one,
[root@tiber tmp]# check_mk_agent
<<>>
(test.sh) TEST1 0 OK: ALL is Green
The whole issue was in the script test.sh I have used ssh to connect to remote host and which is causing the issue.
To fix this need to append the
[root@tiber tmp]# diff test.sh test1.sh
52,53c52
> /tmp/juned.txt
---
>
> /tmp/juned.txt
And now check_mk_agent is happy
<<>></p>(test.sh) TEST1 0 OK: ALL is Green
(test.sh) TEST2 0 OK: app is Green