Search found 11 matches

by gavnor
Wed May 15, 2019 9:23 am
Forum: Nagios XI
Topic: Command works on CLI but not in SNMPTT event handler
Replies: 21
Views: 8603

Re: Command works on CLI but not in SNMPTT event handler

I apologize for the delayed response. This did resolve my issue. Traps are now being received and processed. If I don't have reverse-dns entries for my servers, is there any way to tie an IP back to a host name? It seems right now that the only way to receive traps for my hosts without reverse dns e...
by gavnor
Wed May 08, 2019 5:30 pm
Forum: Nagios XI
Topic: Command works on CLI but not in SNMPTT event handler
Replies: 21
Views: 8603

Re: Command works on CLI but not in SNMPTT event handler

I've made the recommended changes and I now see traps logging in the received traps log however services aren't updating. Passive Service Setup: Host Name: $aR (IP) Service Description: LostPowerEvent Severity: Parse Severity Level ($s) Service Output: SNMP Trap Received at $@ with variables $+* Ser...
by gavnor
Wed May 08, 2019 3:10 pm
Forum: Nagios XI
Topic: Command works on CLI but not in SNMPTT event handler
Replies: 21
Views: 8603

Re: Command works on CLI but not in SNMPTT event handler

Thank you for clarifying. I believe our results are aligned.
by gavnor
Wed May 08, 2019 12:49 pm
Forum: Nagios XI
Topic: Command works on CLI but not in SNMPTT event handler
Replies: 21
Views: 8603

Re: Command works on CLI but not in SNMPTT event handler

Thank you very much for the update. I updated the nxti.php file as directed. I then ran the following: chmod g+w /var/lib/snmp usermod -a -G Debian-snmp www-data And also gave snmptt a shell: usermod -s /bin/bash snmptt After analyzing the changes to the php command, I appended >> /usr/local/nagiosx...
by gavnor
Tue May 07, 2019 2:49 pm
Forum: Nagios XI
Topic: Command works on CLI but not in SNMPTT event handler
Replies: 21
Views: 8603

Re: Command works on CLI but not in SNMPTT event handler

Debian GNU/Linux 9 (stretch) running as a VM on a Xen Hypervisor. The file system is ext4 on an LVM. -rwxr-xr-x 1 nagios nagios 1325 Apr 25 15:47 /usr/local/nagiosxi/scripts/nxti.php -rwxr-xr-x 1 www-data nagcmd 1185 May 7 12:45 /usr/local/nagios/libexec/submit_passive_service.sh snmptt : snmptt nag...
by gavnor
Tue May 07, 2019 1:36 pm
Forum: Nagios XI
Topic: Command works on CLI but not in SNMPTT event handler
Replies: 21
Views: 8603

Re: Command works on CLI but not in SNMPTT event handler

What I also found interesting was that, in the admin UI SNMP Trap Interface, the Received Traps is always empty even though I've sent numerous traps, including the packaged "NXTI_Event" test trap. I know the traps are received and being matched because the event handlers that write to the ...
by gavnor
Tue May 07, 2019 1:30 pm
Forum: Nagios XI
Topic: Command works on CLI but not in SNMPTT event handler
Replies: 21
Views: 8603

Re: Command works on CLI but not in SNMPTT event handler

prw-rw---- 1 nagios nagcmd 0 May 7 13:25 /usr/local/nagios/var/rw/nagios.cmd I've also just turned on logging for external commands, passive service checks and event handlers. When run from command line. [1557253622] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;G407-7032;LostPowerEvent;2;Device h...
by gavnor
Tue May 07, 2019 1:17 pm
Forum: Nagios XI
Topic: Command works on CLI but not in SNMPTT event handler
Replies: 21
Views: 8603

Re: Command works on CLI but not in SNMPTT event handler

I did but the only thing logged was the host down state from the active host check.
by gavnor
Tue May 07, 2019 12:49 pm
Forum: Nagios XI
Topic: Command works on CLI but not in SNMPTT event handler
Replies: 21
Views: 8603

Re: Command works on CLI but not in SNMPTT event handler

I can confirm that this exec is running EXEC echo "$A - $aA - $c - $Fz - $N - $R - $r - $s" >> /usr/local/nagiosxi/var/NXTI_Write_Test I'm not sure about the others but the Trap service isn't updating so I would assume not. I made the recommended changes to the submit script and manually r...
by gavnor
Tue May 07, 2019 12:01 pm
Forum: Nagios XI
Topic: Command works on CLI but not in SNMPTT event handler
Replies: 21
Views: 8603

Re: Command works on CLI but not in SNMPTT event handler

This is the SNMPTT Definition that calls the command. I've tried multiple variations of the command including echoing directly into the pipe. ### AUTO-GENERATED BY NXTI. DO NOT HAND-EDIT THIS FILE. ### EVENT LostPowerEvent .1.3.6.1.4.1.22420.1.1.0.1 "Power Failure" Critical FORMAT Received...