Page 2 of 2

Re: How to know the host problem id and service problem id i

Posted: Fri Feb 23, 2018 12:37 pm
by scottwilkerson
I understand your example, and you could enter $HOSTPROBLEMID$ and $SERVICEPROBLEMID$ to the commands, but these macros do not contain a list of all problems, just the current problem state. Here's the documentation:
https://assets.nagios.com/downloads/nag ... tproblemid

There is no macro that is available that holds the historical values for all checks of each host/service, which is why I directed you to the State History report because it does contain this information.

Re: How to know the host problem id and service problem id i

Posted: Thu Mar 01, 2018 8:33 am
by grayloglearn
Hi Team,

Thanks for the reply. I understand that $problem ID or $Service problem ID will take from status.dat which is having temporary status right ? Correct me if am wrong.

In status.dat $problem Id means last_problem Id or Current problem_Id we have two problem ID what is exact one in both of them which is equal to $Problem_ID.

Re: How to know the host problem id and service problem id i

Posted: Thu Mar 01, 2018 9:57 am
by scottwilkerson
in the status.dat
current_problem_id == $HOSTPROBLEMID$ or $SERVICEPROBLEMID$ depending on the type of object

last_problem_id == $LASTHOSTPROBLEMID$ or $LASTSERVICEPROBLEMID$ depending on the type of object