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.
NLS Alerts to an external SNMP Trap Receiver – NOT WORKING
Re: NLS Alerts to an external SNMP Trap Receiver – NOT WORKI
Make sure you have php-xml and php-snmp installed:
Then restart apache and try again:
I'm labbing this up now.
Code: Select all
apt-get install php-xml php-snmpCode: Select all
systemctl restart apache2Re: NLS Alerts to an external SNMP Trap Receiver – NOT WORKI
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?
Any other suggestion?
ssax wrote:Make sure you have php-xml and php-snmp installed:
Then restart apache and try again:Code: Select all
apt-get install php-xml php-snmp
I'm labbing this up now.Code: Select all
systemctl restart apache2
Re: NLS Alerts to an external SNMP Trap Receiver – NOT WORKI
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:
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.
Run this command as root and leave it running:
Code: Select all
tail -Fn0 /var/log/apache2/error.logRight 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.