Service Description for Host Check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
meganwilliford
Posts: 101
Joined: Tue Aug 06, 2019 7:49 am

Service Description for Host Check

Post by meganwilliford »

Is it possible to populate the service_description field in the objects/statehistory api for host checks?

Instead of the service_description being blank, we are looking to populate it. In the CCM Host Management there is no description field to fill out that could potentially populate this field. Is there a way to do so?

Example from object/statehistory api:

{
"instance_id": "1",
"state_time": "2020-01-06 11:32:06",
"object_id": "13247",
"objecttype_id": "1",
"host_name": "[remotehost]",
"service_description": {

},
"state_change": "1",
"state": "0",
"state_type": "0",
"current_check_attempt": "1",
"max_check_attempts": "5",
"last_state": "0",
"last_hard_state": "-1",
"output": "HTTP OK: HTTP\/1.1 200 OK - 133 bytes in 0.332 second response time"
},
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Service Description for Host Check

Post by lmiltchev »

Is it possible to populate the service_description field in the objects/statehistory api for host checks?
No, not really. Host objects don't have a "service_description" directive... Services do.

https://assets.nagios.com/downloads/nag ... .html#host

The "service_description" is added to the services, but cannot be added to hosts. It just doesn't make sense.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked