Nagios XI showing different results via GUI than plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tonyleatwork
Posts: 91
Joined: Mon Jul 07, 2014 8:55 am

Nagios XI showing different results via GUI than plugin

Post 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
tonyleatwork
Posts: 91
Joined: Mon Jul 07, 2014 8:55 am

Re: Nagios XI showing different results via GUI than plugin

Post 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!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios XI showing different results via GUI than plugin

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
tonyleatwork
Posts: 91
Joined: Mon Jul 07, 2014 8:55 am

Re: Nagios XI showing different results via GUI than plugin

Post 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"..
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI showing different results via GUI than plugin

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
tonyleatwork
Posts: 91
Joined: Mon Jul 07, 2014 8:55 am

Re: Nagios XI showing different results via GUI than plugin

Post by tonyleatwork »

That's part of the problem, it's not in CCM. I have a ghost service :(
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios XI showing different results via GUI than plugin

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked