Re: (No output on stdout) stderr: on second check
Posted: Tue Aug 25, 2015 2:29 pm
Yeah. I tried swapping the ip addresses in the configuration of nagios, and I found that the error followed the swap: pgqawww02 was erroring initially but when I changed the ip in the nagios to point to pgqawww01 it started working fine. So there does appear to be something special about the output coming back from the machine that the module does not like.
Code: Select all
[root@usawexx011 ~]# curl -u statususer:mypass "http://10.x.x.1/server-status?auto"
Total Accesses: 562
Total kBytes: 3557
CPULoad: .0386313
Uptime: 36706
ReqPerSec: .0153108
BytesPerSec: 99.2309
BytesPerReq: 6481.08
BusyWorkers: 17
IdleWorkers: 6
Scoreboard: R_RRRR_.RRR_R_R_RRW_R.RR.R......................................................................................................................................................................................................................................
[root@usawepvl011 ~]# echo $?
0
[root@usawexx011 ~]# curl -u statususer:mypass "http://10.x.x.2/server-status?auto"
Total Accesses: 583
Total kBytes: 2378
CPULoad: .0274612
Uptime: 36852
ReqPerSec: .01582
BytesPerSec: 66.0771
BytesPerReq: 4176.8
BusyWorkers: 21
IdleWorkers: 5
Scoreboard: _RRRR_R__RR_RRRRRRRRRRRW.R.R....................................................................................................................................................................................................................................
[root@usawexx011 ~]# echo $?
0