Alarm output state is different from service state

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nms
Posts: 222
Joined: Wed Sep 28, 2016 9:35 am

Alarm output state is different from service state

Post by nms »

alarmspage.PNG
ccmalarmoutput.PNG
Hi,

We have a situation where under "All Service Problems", a particular service is listed with unknown state.
When checking the service from CCM, and executing the "Run check command", the output is listed as OK. { state OK for Nagios } .
When checking from the alarm page, and executing the "Force an immediate check", we get that process has been submitted, page is refreshed, however we end up with blank page.

I confirmed that service is under the correct host.

What else can be checked from our side?
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Alarm output state is different from service state

Post by ssax »

Please PM me a copy of your profile so that I can look through your configuration, you can download it from Admin > System Profile > Download Profile.

PM me the .sh script that you're running on the remote server as well so that I can see what it contains.

Thank you
nms
Posts: 222
Joined: Wed Sep 28, 2016 9:35 am

Re: Alarm output state is different from service state

Post by nms »

Attached are the nagios script and system nagios profile

profile.zip
nagios_cert_expiry.txt
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Alarm output state is different from service state

Post by ssax »

Please attach this file (this is likely where the error is coming from):

Code: Select all

/home/nagios/bin/nagios_CommonCheck.sh
nms
Posts: 222
Joined: Wed Sep 28, 2016 9:35 am

Re: Alarm output state is different from service state

Post by nms »

Attached
nagios_common_check.txt
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Alarm output state is different from service state

Post by ssax »

On the remote server please run these commands and send me the full output:

Code: Select all

su - nagios
uname -a | grep -i linux
find /var/opt/Aspider-NGI/nms/output/cron_T-Linux050-CertificateExpiry.jira.aspider-ngi.com -mmin -250
ls -la /var/opt/Aspider-NGI/nms/output/cron_T-Linux050-CertificateExpiry.jira.aspider-ngi.com
Locked