Check Returns OK on CLI, but WARNING in GUI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hixavier
Posts: 12
Joined: Tue Jul 30, 2019 6:57 am

Check Returns OK on CLI, but WARNING in GUI

Post by hixavier »

Hello,

I just finished setting up a powerpath service check on multiple hosts. The check returns OK on all the hosts except for one. The particular settings for this check are mirrored across all the hosts with this check, so I'm really confused. The weird thing is that when I run the check on that host in from the command line, as Nagios, it returns OK. It also returns OK, when I "Run Check Command" in the CCM. It's very odd. Any help?




Thanks !
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Check Returns OK on CLI, but WARNING in GUI

Post by benjaminsmith »

Hi @hixavier,

Indeed this is odd. Make sure there is no difference in the command arguments for this service compared to the others. Can you send me the sudoers file along with a system profile?

Also, when you are testing this from the command line, are you logged in as root or the nagios user account? If root, try testing again as the nagios users account.

Code: Select all

su - nagios

To send us your system profile
.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share in a private message or upload it to the post/ticket, and then reply to this post to bring it up in the queue.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
hixavier
Posts: 12
Joined: Tue Jul 30, 2019 6:57 am

Re: Check Returns OK on CLI, but WARNING in GUI

Post by hixavier »

Turns out the host's IP address, in Nagios, was incorrect. Check is now cleared. Thanks !
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check Returns OK on CLI, but WARNING in GUI

Post by scottwilkerson »

hixavier wrote:Turns out the host's IP address, in Nagios, was incorrect. Check is now cleared. Thanks !
Great

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked