Very weird check result issue after server migration
Posted: Wed Feb 27, 2019 9:02 am
Hello,
We more or less successfully migrated our Nagios server today from CentOS 6 to CentOS 7. But We are experiencing a very weird issue with some checks using a custom plugin of ours. When we dit this plugin and add some string, like "TEST" in the output, this is not reflected in the output in Nagios XI.
TESTED FROM XI UI:
TESTED FROM CLI:
What could cause this behaviour. It's like the service has cached an old version of the plugin?? Is this even possible..? Already did a delete, write, verify, restart..
Any advice is welcome
We more or less successfully migrated our Nagios server today from CentOS 6 to CentOS 7. But We are experiencing a very weird issue with some checks using a custom plugin of ours. When we dit this plugin and add some string, like "TEST" in the output, this is not reflected in the output in Nagios XI.
TESTED FROM XI UI:
Code: Select all
019-02-27 14:55:43,584: check_curl_result.sh: Info: Debug mode
2019-02-27 14:55:43,591: check_curl_result.sh: Info: Curl action sbcAlarms started
2019-02-27 14:55:43,597: check_curl_result.sh: Info: Executing CheckSBCAlarms with url https://hostname.domain/api/v1/alarms/active
2019-02-27 14:55:43,921: check_curl_result.sh: Info: Result: curl: (18) transfer closed with outstanding read data remaining
HTTP Status: 204, Url: https://srvtelsbcqa01.gentgrp.gent.be/api/v1/alarms/active, Stats: 0 bytes in 0.307 second response timeCode: Select all
/usr/local/nagios/libexec/check_curl_result.sh --url https://hostname.domain/api/v1/alarms/active --type sbcAlarms --user Admin --password password
2019-02-27 14:59:29,921: check_curl_result.sh: Info: TEST Executing TEST CheckSBCAlarms with url https://hostname.domain/api/v1/alarms/active
2019-02-27 14:59:30,192: check_curl_result.sh: Info: Result:
HTTP Status: 204, Url: https://hostname.domain/api/v1/alarms/active, Stats: 0 bytes in 0.259 second response time, | time=0.259s time_first_byte=0.259s time_tcp_connect=0.006s size=0B,
2019-02-27 14:59:30,197: check_curl_result.sh: Info: Verifying Curl exitcode 0
2019-02-27 14:59:30,203: check_curl_result.sh: Info: Verifying HTTP Status Code
2019-02-27 14:59:30,210: check_curl_result.sh: Info: Output: TEST
2019-02-27 14:59:30,215: check_curl_result.sh: Info: Curl action sbcAlarms finished. Exitcode 0
OK: TESTAny advice is welcome