Problem in getting alert service state at CRITICAL

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
anish
Posts: 161
Joined: Tue Jul 19, 2016 5:29 am

Problem in getting alert service state at CRITICAL

Post by anish »

Hi,

I am using custom script to capture windows event log. Script is giving desired output when executed at source.

Problem is I am getting Warning Alert for exit code 2 on nagios end.

I am expecting critical alert.

Please help.
anish
Posts: 161
Joined: Tue Jul 19, 2016 5:29 am

Re: Problem in getting alert service state at CRITICAL

Post by anish »

Hi,

I am able to capture the desired output now..

I was missing "exit($lastexitcode)" in the command definition under ini file.

Please close the thread.

thanks.
Locked