'SERVICEPROBLEMID' Questions
Posted: Thu May 09, 2013 4:46 pm
We have Nagios configured so that, every time it sends an alert, it sends an e-mail to our CRM system. This logs a ticket, which we can then use for reporting, customer notifications etc. Currently, we do not send 'OK' notifications, or repeat notifications, because both would log a new ticket. We also only send 'CRITICAL' notifications, and we'd rather send 'WARNING' notifications too, so we get the complete picture.
Ideally, we'd like to send the OK notifications and have the ticket close automatically. If I can get the right information out of Nagios, this should be possible with our CRM system (Salesforce.com Service Cloud). Before I start this... does my logic below seem sound?
* ServiceA is WARNING
** E-Mail CRM with $SERVICEPROBLEMID$ and problem description.
** CRM system compares $SERVICEPROBLEMID$ with all current SERVICEPROBLEMIDs, fails to find it, and creates a new ticket.
* ServiceA is CRITICAL
** E-Mail CRM with $SERVICEPROBLEMID$ and problem description.
** CRM system compares $SERVICEPROBLEMID$ with all current SERVICEPROBLEMIDs, finds it, and updates the existing ticket.
* ServiceA is CRITICAL (repeat notification)
** E-Mail CRM with $SERVICEPROBLEMID$ and problem description.
** CRM system compares $SERVICEPROBLEMID$ with all current SERVICEPROBLEMIDs, finds it, and updates the existing ticket.
* ServiceA is OK
** E-Mail CRM with $LASTSERVICEPROBLEMID$, problem description, and a keyword that signifies the message is a recovery message.
** CRM system compares $LASTSERVICEPROBLEMID$ with all current SERVICEPROBLEMID, finds it, and closes the existing ticket.
It all seems pretty straightforward to me, can anyone see any issues with doing the above? Also, the Nagios documentation says that the 'SERVICEPROBLEMID' does not change between Non-OK state transitions - does 'UNKNOWN' count as 'Non-OK'? What about flapping? I assume that it remains the same until the service is 'OK' and 'HARD'?
It'd be really nice if we could get this working properly, and I'd post a brief guide on the Exchange for getting this set up with Salesforce, as we can't be the only people doing this!
Thanks,
Gavin
Ideally, we'd like to send the OK notifications and have the ticket close automatically. If I can get the right information out of Nagios, this should be possible with our CRM system (Salesforce.com Service Cloud). Before I start this... does my logic below seem sound?
* ServiceA is WARNING
** E-Mail CRM with $SERVICEPROBLEMID$ and problem description.
** CRM system compares $SERVICEPROBLEMID$ with all current SERVICEPROBLEMIDs, fails to find it, and creates a new ticket.
* ServiceA is CRITICAL
** E-Mail CRM with $SERVICEPROBLEMID$ and problem description.
** CRM system compares $SERVICEPROBLEMID$ with all current SERVICEPROBLEMIDs, finds it, and updates the existing ticket.
* ServiceA is CRITICAL (repeat notification)
** E-Mail CRM with $SERVICEPROBLEMID$ and problem description.
** CRM system compares $SERVICEPROBLEMID$ with all current SERVICEPROBLEMIDs, finds it, and updates the existing ticket.
* ServiceA is OK
** E-Mail CRM with $LASTSERVICEPROBLEMID$, problem description, and a keyword that signifies the message is a recovery message.
** CRM system compares $LASTSERVICEPROBLEMID$ with all current SERVICEPROBLEMID, finds it, and closes the existing ticket.
It all seems pretty straightforward to me, can anyone see any issues with doing the above? Also, the Nagios documentation says that the 'SERVICEPROBLEMID' does not change between Non-OK state transitions - does 'UNKNOWN' count as 'Non-OK'? What about flapping? I assume that it remains the same until the service is 'OK' and 'HARD'?
It'd be really nice if we could get this working properly, and I'd post a brief guide on the Exchange for getting this set up with Salesforce, as we can't be the only people doing this!
Thanks,
Gavin