Hi all,<br><br>I use a script to notify service problems. The script run well with perl but not with ePN. The error it sent to the /var/log/messages is:<br><br>nagios: **ePN failed to compile /usr/lib/nagios/eventhandlers/<a href="http://notify-service-by-email.pl">notify-service-by-email.pl</a>: "String found where operator expected at (eval 8) line 52, near "case "PROBLEM""" at /usr/bin/<a href="http://p1.pl">p1.pl</a> line 159.<br>
<br>In the script I use the Switch.pm to assign a different text depending on the notification type. The switch is like this:<br><br>switch ($optnotiftype) {<br>        case "PROBLEM"                            { $NOTIFTYPE='Problem' }<br>
        case "RECOVERY"                          { $NOTIFTYPE='Recovery' }<br>        case "ACKNOWLEDGEMENT"          { $NOTIFTYPE='Notification Acknowkedge' }<br>        case "DOWNTIMESTART"                { $NOTIFTYPE='Start of Planned Stop' }<br>
        case "DOWNTIMEEND"                    { $NOTIFTYPE='End of Planned Stop' }<br>        case "DOWNTIMECANCELLED"        { $NOTIFTYPE='Planned Stop Canceled' }<br>        else                                                  { $NOTIFTYPE=$optnotiftype }<br>
}<br><br>All the vars are defined and the script run OK with perl.<br><br>Can someone help me to fix this problem?<br>