I have a pretty simple script that basically reports to Nagios the stats of a particular process. Reporting back with CPU%, MEM%, CPU-TIME, etc...
Now when I execute the script from Nagios using check_nrpe I get an extra line in the output that contains strange symbols.
But when I execute the script from the server that has NRPE running on it, i.e. executing it directly without using NRPE, it works just fine.
Executing through NRPE:
Code: Select all
./check_nrpe -H 192.168.4.115 -t 10 -c check_javaProcess -n
OK: The CPU-Usage(%) is below ALL Warning Levels. CPU: 0.0%, RAM: 0.0%, CPU-TIME: 113 Min | CPU=0.0; Memory=0.0; PID=450688; CPU-Time=113; Virtual-Mem=18496; Physical-Mem=18548
¼h/ñî°
./check_nrpe -H 192.168.4.115 -t 10 -c check_connectionMonitor -n
CRITICAL: Process is not running!
ÿÿ 7ûð&0 7X/ñëð'¤ÌÐzP
./check_nrpe -H 192.168.4.115 -t 10 -c check_WebSrv -n
WARNING: The CPU-Usage(%) is higher than the WARNING Level. CPU: 19.5%, RAM: 9.0%, CPU-TIME: 239608 Min | CPU=19.5; Memory=9.0; PID=381174; CPU-Time=239608; Virtual-Mem=481584; Physical-Mem=481636
ÿÿÿð'¤Ìð&0ð&0Hÿÿÿÿ 7èð&0 7X/ñëÀð'¤ÌÐzP
But like I mentioned above it doesn't print these symbols when executing locally.... I'm Stumped!!!!
Anyone have any idea what would cause NRPE to print these weird symbols..?
Any thoughts at all would be GREATLY appreciated...
EDIT:
Forgot to mention the host OS is AIX. And also this is happening for any script. I tried a couple of basic check commands, i.e. check_users, and the result is the same.
Thanks in Advance,
Matt