Page 1 of 1

Nagios XI showing different results via GUI than plugin

Posted: Wed Jan 14, 2015 2:50 pm
by tonyleatwork
Hi -

Really odd behavior that I'm hoping someone can address.

I have a website URL monitor service configured in Nagios XI. The service is reporting back a "warning" with a result below in the GUI:

"HTTP WARNING: HTTP/1.1 404 Not Found - 1814 bytes in 0.516 second response time"

So to double check my syntax, I ran the plugin manually with the exact arguments configured in the service, but it is reporting OK. Specifically:

HTTP OK: HTTP/1.1 200 OK - 14522 bytes in 0.062 second response time |time=0.061885s;;;0.000000 size=14522B;;;0

What gives?

Check Command is:

check_xi_service_http

arg1:

-f ok -I 1.1.1.1 -u '/path/to/iMEMS_promo211x115.gif' -p 80

Re: Nagios XI showing different results via GUI than plugin

Posted: Wed Jan 14, 2015 3:03 pm
by tonyleatwork
I found the issue - this service was incorrectly configured for a the wrong host and it has since been corrected.

The new problem is that this entry is not found inside the DB, so I cant delete it. How do I manually delete it? It isn't even in the services/<host>.cfg file either!

Re: Nagios XI showing different results via GUI than plugin

Posted: Wed Jan 14, 2015 3:05 pm
by abrist
If you are running 2014, the easiest way is to re-write all the configs. Go to CCM --> Write Config Files --> Delete --> Write --> Verify. If it verifies ok, go ahead and apply config. If it does not, resolve the issue and rerun Write --> Verify.

Re: Nagios XI showing different results via GUI than plugin

Posted: Wed Jan 14, 2015 3:13 pm
by tonyleatwork
I just tried that and the issue is still persisting.

What I did notice is that there are a lot of:

Warning: Duplicate definition found for service '_ URL Status' on host 'search.analog.com' (config file '/usr/local/nagios/etc/services/www.analog.com.cfg', starting on line 16)
Could that be the cause?
But I didn't find that to be the case when comparing the files. Is the system saying that CCM found a potential duplicate and refused to write it?

The service description is both the generic "_ URL Status"..

Re: Nagios XI showing different results via GUI than plugin

Posted: Wed Jan 14, 2015 3:29 pm
by lmiltchev
Is the system saying that CCM found a potential duplicate and refused to write it?
"Warnings" will not cause configuration to stop, only errors will.

Go to the CCM->Services->find your service, click on the "View Text Config" next to it (the diskette icon), and post the config.

Re: Nagios XI showing different results via GUI than plugin

Posted: Wed Jan 14, 2015 3:58 pm
by tonyleatwork
That's part of the problem, it's not in CCM. I have a ghost service :(

Re: Nagios XI showing different results via GUI than plugin

Posted: Wed Jan 14, 2015 4:29 pm
by sreinhardt
This sounds like something best handled in a ticket, as we will possibly need to do a remote and almost definitely will need to see a current config snapshot. If you could, send in an email with a link to this thread to [email protected]. Please also attach a profile.zip from Admin->System Profile->Download Profile.