<div dir="ltr"><div><font color="red"><font color="#000000"><font face="monospace,monospace">Things to check:<br>command_check_interval=-1<br>command_file=/usr/local/nagios/var/rw/nagios.cmd<br><br></font></font></font></div><div><font color="red"><font color="#000000"><font face="monospace,monospace">Make sure command_file is readable by nagios user.<br><br></font></font></font></div><div><font color="red"><font color="#000000"><font face="monospace,monospace">What does the nagios log say?  <br></font></font></font></div><div><font color="red"><font color="#000000"><font face="monospace,monospace">  /var/log/nagios/nagios.log  (or somesuch)<br><br></font></font></font></div><div><font color="red"><font color="#000000"><font face="monospace,monospace">Usually it is a permissions error.<br></font></font></font></div><font color="red"><font color="#000000"><font face="monospace,monospace"><br></font></font></font><div><font color="red"><font color="#000000"><font face="monospace,monospace"><br><br></font></font></font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 30, 2015 at 1:46 PM, Kenny Lussier <span dir="ltr">&lt;<a href="mailto:klussier@gmail.com" target="_blank">klussier@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>Hi All,<br><br></div>I find myself back to working with Nagios after a long hiatus of using much friendlier monitoring systems.... <br><br></div>I&#39;m trying to set up snmp trap monitoring, which I&#39;ve dome in the past, but I&#39;m missing something that I just can&#39;t seem get. I can send a trap from a system, the trap is received by the trap catcher, it&#39;s handed off to snmptt for translation, which uses the EXEC line to put an external command in the nagios.cmd file. That all works. But notifications aren&#39;t sent, and the status of the service never changes. <br><br></div>So:<br><br>snmptrap -v 2c -c public util1 &#39;&#39; .1.3.6.1.6.3.1.1.5.5 ## runs on util2<br><br><br>Fri Oct 30 17:42:03 2015 .1.3.6.1.6.3.1.1.5.5 Normal &quot;Status Events&quot; util2 - An authenticationFailure trap signifies that the SNMP  ## Shows up on util1 in snmptt.log<br><br>[1446226923] PROCESS_SERVICE_CHECK_RESULT;util2;TRAP;1;An authenticationFailure trap signifies that the SNMP  ## Shows up in nagios.cmd<br><br></div>So, it appears that everything is set up correctly, but Nagios isn&#39;t processing the external service check command and setting the status to warning and sending me an email. <br><br><br></div>Any ideas?<br><br></div>TIA,<br></div>Kenny<br><br><div><div><div><div><br><br>My configs look like this:<br><br>define service {<br>name                            TRAP<br>service_description             TRAP<br>active_checks_enabled           0       ; Active service checks are enabled<br>passive_checks_enabled          1       ; Passive service checks are enabled/accepted<br>process_perf_data               0<br>obsess_over_service             0       ; We should obsess over this service (if necessary)<br>check_freshness                 1       ; Default is to NOT check service &#39;freshness&#39;<br>freshness_threshold             93600<br>notifications_enabled           1       ; Service notifications are enabled<br>event_handler_enabled           1       ; Service event handler is enabled<br>flap_detection_enabled          0       ; Flap detection is enabled<br>process_perf_data               1       ; Process performance data<br>retain_status_information       1       ; Retain status information across program restarts<br>retain_nonstatus_information    1       ; Retain non-status information across program restarts<br>check_command                   check-host-alive      ; This will be used to reset the service to &quot;OK&quot;<br>is_volatile                     1<br>check_period                    24x7<br>max_check_attempts              1<br>normal_check_interval           1<br>retry_check_interval            100<br>notification_interval           1<br>notification_period             24x7<br>notification_options            w,u,c,r<br>contact_groups                  klussier       ; Modify this to match your Nagios contact group definitions<br>register                        0<br>}<br><br>define contact{<br>        contact_name                    klussier<br>        alias                           klussier<br>        service_notification_period     24x7<br>        host_notification_period        24x7<br>        service_notification_options    w,u,c,r<br>        host_notification_options       d,u,r<br>        service_notification_commands   notify-by-email<br>        host_notification_commands      host-notify-by-email<br>        email                           klussier@<br>        }<br><br>define contactgroup{<br>        contactgroup_name       klussier<br>        alias                   klussier<br>        members                 klussier<br>        }<br><br><br>define service{<br>   host_name               util2<br>   use                     TRAP<br>   contact_groups          klussier<br>}<br></div></div></div></div></div>
<br>_______________________________________________<br>
gnhlug-discuss mailing list<br>
<a href="mailto:gnhlug-discuss@mail.gnhlug.org">gnhlug-discuss@mail.gnhlug.org</a><br>
<a href="http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/" rel="noreferrer" target="_blank">http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/</a><br>
<br></blockquote></div><br></div>