NLS Alerts to an external SNMP Trap Receiver – NOT WORKING

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
akaspar
Posts: 10
Joined: Wed Mar 20, 2019 1:28 pm

NLS Alerts to an external SNMP Trap Receiver – NOT WORKING

Post by akaspar »

Creating NLS Alerts and configuring the SNMP Trap receiver, which is a very easy task, we are willing to send certain alerts to our monitoring system by SNMP traps, the monitoring system, which is a non Nagios related product, already receives some SNMP traps, but not by NLS.

Testing communication in case the used port is closed – I SSH’d to the NLS server (all instances) and send a trap manually, we use Debian so far, and all traps went through successfully by executing manually, the NLS MIB’s were never touched and ACL’s are in place for such traffic flow.

The problem – NLS is not sending any alert even if configured at the alert portion of the product and even if we configured the SNMP Trap Receiver

Any hint of what I may be doing wrong?

NLS version – 2.1.9
Debian OS – Release 10 (Buster)
NLS SNMP Trap – version 2c
Community – public (default but will be changed)
Port – 162 (tested udp)


As per NLS documentation, this is a no brainer, setting up the SNMP Trap Receiver (done), configuring the NLS Alert (done) and triggering an alert (done), but Nagios Log Server product is not sending a bit, only if I send the snmp trap manually by snmptrap, but this is outside NLS instruction.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NLS Alerts to an external SNMP Trap Receiver – NOT WORKI

Post by ssax »

Make sure you have php-xml and php-snmp installed:

Code: Select all

apt-get install php-xml php-snmp
Then restart apache and try again:

Code: Select all

systemctl restart apache2
I'm labbing this up now.
akaspar
Posts: 10
Joined: Wed Mar 20, 2019 1:28 pm

Re: NLS Alerts to an external SNMP Trap Receiver – NOT WORKI

Post by akaspar »

Both are installed, I would also assume this would be installed already by Nagios if such features are being offered (or documented at least).

Any other suggestion?
ssax wrote:Make sure you have php-xml and php-snmp installed:

Code: Select all

apt-get install php-xml php-snmp
Then restart apache and try again:

Code: Select all

systemctl restart apache2
I'm labbing this up now.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NLS Alerts to an external SNMP Trap Receiver – NOT WORKI

Post by ssax »

Yes, it should be installed by default but given yours isn't working I was making sure as I ran into someone else who was missing them.

Run this command as root and leave it running:

Code: Select all

tail -Fn0 /var/log/apache2/error.log
Then manually run the alert so the trap tries to be sent.

Right after, PM me a copy of your profile.zip so I can review the logs and send any output from the tail command as well, you can download it from Admin > System Status by clicking the Download System Profile button​.
Locked