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.
How to know the host problem id and service problem id in XI
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
-
- Posts: 222
- Joined: Thu Jul 06, 2017 8:55 am
Re: How to know the host problem id and service problem id i
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.
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: How to know the host problem id and service problem id i
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
current_problem_id == $HOSTPROBLEMID$ or $SERVICEPROBLEMID$ depending on the type of object
last_problem_id == $LASTHOSTPROBLEMID$ or $LASTSERVICEPROBLEMID$ depending on the type of object