log_service_retries=0 to suppress SOFT Alerts
Posted: Thu Apr 24, 2014 6:56 pm
Good Afternoon
I set log_service_retries=0 in the main config file "nagios.cfg", so that it won't the execute event handlers for SOFT State as per the following Document
http://nagios.sourceforge.net/docs/3_0/statetypes.html
But I noticed that the email Notifications for SOFT state is now suppressed but the execution of event handler is still present.
Below command is my event handler which is a 3rd Party tool.
/usr/ISS/iiNagios/bin/ppi -w /usr/ISS/iiNagios/bin -c /usr/ISS/iiNagios/cfg/ppi.cfg -d -e ' Domain = dom2 | OriginSeverity = SERVICE | Host = $HOSTNAME$ | Service = $SERVICEDESC$ | HostAlias = $HOSTALIAS$ | ServiceState = $SERVICESTATE$ | Hostgroupnames = $HOSTGROUPNAMES$ | ContactGroup = $_SERVICECONTACTGROUP$ | AdditionalInfo = $SERVICEOUTPUT$ | DateTime = $LONGDATETIME$ | Address = $HOSTADDRESS$ '
My event handler registers a ticket for each alert so you can imagine how flooded we are with all of these SOFT status Alerts generating a ticket.
How do I stop my event handler from not executing for a SOFT state ?
Regards.
I set log_service_retries=0 in the main config file "nagios.cfg", so that it won't the execute event handlers for SOFT State as per the following Document
http://nagios.sourceforge.net/docs/3_0/statetypes.html
But I noticed that the email Notifications for SOFT state is now suppressed but the execution of event handler is still present.
Below command is my event handler which is a 3rd Party tool.
/usr/ISS/iiNagios/bin/ppi -w /usr/ISS/iiNagios/bin -c /usr/ISS/iiNagios/cfg/ppi.cfg -d -e ' Domain = dom2 | OriginSeverity = SERVICE | Host = $HOSTNAME$ | Service = $SERVICEDESC$ | HostAlias = $HOSTALIAS$ | ServiceState = $SERVICESTATE$ | Hostgroupnames = $HOSTGROUPNAMES$ | ContactGroup = $_SERVICECONTACTGROUP$ | AdditionalInfo = $SERVICEOUTPUT$ | DateTime = $LONGDATETIME$ | Address = $HOSTADDRESS$ '
My event handler registers a ticket for each alert so you can imagine how flooded we are with all of these SOFT status Alerts generating a ticket.
How do I stop my event handler from not executing for a SOFT state ?
Regards.