check_http is caching the request somehow!

first time posting! :slight_smile:
but this is driving me crazy. :0

My check_http is working correctly (its tests correctly on the command line, and through the service definition)

It reads as up when the service is running, and as soon as I stop the service it alerts as it should.

however I am having an issue where the service is hanging, however nagios still reports it as up.

however if I browse to the url it cannot be seen.

Nagios must be caching this somewhere. how? where? help!

nagios core 3.2.1
2.6.32-21-generic #32-Ubuntu
check_http v1861 (nagios-plugins 1.4.11)

thanks -

Chek if you have multiple nagios instances running…

nagios stop
ps -ef | grep nagios

kill any survivors :slight_smile: and if there are remember NOT to use nagios restart.

Hope this helps.

root@norwnagios01:~# ps -eaf | grep nagios
avahi 532 1 0 13:05 ? 00:00:00 avahi-daemon: running [norwnagios01.local]
nagios 736 1 0 13:05 ? 00:00:02 /usr/local/nagios/bin/nagios -d /usr/loca
root 5345 5326 0 14:19 pts/0 00:00:00 grep --color=auto nagios

just a single instance…

i do use “service nagios restart” I know bad habit…
but easy…

any other ideas? like where would it cache it? can it?

thanks man!

I don’t think it CAN cache… are you sure you are running the check on the same host? possibly once you use an IP the other time the DNS name and you have a test /etc/hosts entry?

No other ideas… sorry.

Same problem here today.
Did you solved? Or at least, did you find an explanation?