Page 1 of 1

Check Returns OK on CLI, but WARNING in GUI

Posted: Thu Nov 19, 2020 8:21 am
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 !

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

Posted: Thu Nov 19, 2020 6:39 pm
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.

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

Posted: Mon Nov 23, 2020 2:55 pm
by hixavier
Turns out the host's IP address, in Nagios, was incorrect. Check is now cleared. Thanks !

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

Posted: Mon Nov 23, 2020 4:22 pm
by scottwilkerson
hixavier wrote:Turns out the host's IP address, in Nagios, was incorrect. Check is now cleared. Thanks !
Great

Locking thread