Does Nagios have any macros that uniquely identifies a service for a particular host?
Eg:
Host A - CPU Check ID = 100
Host B - CPU Check ID = 200
Host B - Mem Check ID = 500
etc
We need to automate creating of ticket in ITSM software and we are still figuring out what is the best way to avoid creating duplicate tickets for the same event.
Right now looking into these macros below.
$HOSTEVENTID$
$LASTHOSTEVENTID$
$HOSTPROBLEMID$
$LASTHOSTPROBLEMID$
$SERVICEEVENTID$
$LASTSERVICEEVENTID$
$SERVICEPROBLEMID$
$LASTSERVICEPROBLEMID$
$HOSTNOTIFICATIONID$
$SERVICENOTIFICATIONNUMBER$
$SERVICENOTIFICATIONID$
Thanks
Unique ID for a Service
Unique ID for a Service
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: Unique ID for a Service
How are you generating these tickets? I don't know of anything that adds a unique id directly on the service, but you could potentially MD5 the string "service_description:host_name" and get a unique ID to use.
Former Nagios employee
Re: Unique ID for a Service
The interface is via email.tmcdonald wrote:How are you generating these tickets? I don't know of anything that adds a unique id directly on the service, but you could potentially MD5 the string "service_description:host_name" and get a unique ID to use.
That's a good idea on the MD5 usage, we will try it.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: Unique ID for a Service
Great, let us know how it goes and if you have any additional questions.