Hi Team,
I want to monitor the SNMP traps for network devices and centos. Can anybody tell the step by step procedure to enable the snmp traps on network devices/centos.
we are using nagiosxi 5.4.0 and i have installed below packages in nagios server 5.4.0 and enabled the port 162 from nagios.
wget https://assets.nagios.com/downloads/nag ... p-setup.sh
sh ./NagiosXI-SNMPTrap-setup.sh.
What should i do for next step can anybody help on this.
snmp traps monitoring for network devices and centos in XI
-
grayloglearn
- Posts: 222
- Joined: Thu Jul 06, 2017 8:55 am
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: snmp traps monitoring for network devices and centos in
Hello, @grayloglearn. You could monitor the remote Linux host actively using snmp, or you could have it send snmp traps to the XI.
In the first case, you could use this tutorial:
https://assets.nagios.com/downloads/nag ... g_SNMP.pdf
And in the second you'd need to find a guide for your specific OS. Here's one https://access.redhat.com/documentation ... Traps.html
But there're more online. After you make sure that your device actually sends the traps, you'd go to the Unconfigured Objects menu on the XI server to add recieved traps to the web interface. Use this article for the reference:
https://support.nagios.com/kb/article.php?id=77
When monitoring Network Devices it also depends on whether you're going to be using active snmp checks or snmp traps. For active snmp checks we have a network switch/wizard that takes care of the setup process for you, for many supported models of network devices. For non supported devices, you could add MIBS and still run the wizard.
But if you want to set up SNMP traps on network devices you'd have to refer to the specific owners manual for your device. That is if your network device actually supports snmp traps. Then, again you'd use the Unconfigured Objects Menu to add the received traps to the web interface.
In the first case, you could use this tutorial:
https://assets.nagios.com/downloads/nag ... g_SNMP.pdf
And in the second you'd need to find a guide for your specific OS. Here's one https://access.redhat.com/documentation ... Traps.html
But there're more online. After you make sure that your device actually sends the traps, you'd go to the Unconfigured Objects menu on the XI server to add recieved traps to the web interface. Use this article for the reference:
https://support.nagios.com/kb/article.php?id=77
When monitoring Network Devices it also depends on whether you're going to be using active snmp checks or snmp traps. For active snmp checks we have a network switch/wizard that takes care of the setup process for you, for many supported models of network devices. For non supported devices, you could add MIBS and still run the wizard.
But if you want to set up SNMP traps on network devices you'd have to refer to the specific owners manual for your device. That is if your network device actually supports snmp traps. Then, again you'd use the Unconfigured Objects Menu to add the received traps to the web interface.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
grayloglearn
- Posts: 222
- Joined: Thu Jul 06, 2017 8:55 am
Re: snmp traps monitoring for network devices and centos in
Hi Team,
I gone through document, Is it required two nagios servers to capture the snmp traps,
I have seen in document for snmp traps for centos.
Can't we get the snmp traps with single Nagios XI server.
I gone through document, Is it required two nagios servers to capture the snmp traps,
I have seen in document for snmp traps for centos.
Can't we get the snmp traps with single Nagios XI server.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: snmp traps monitoring for network devices and centos in
@grayloglearn, Yes, that document is using Nagios XI to send SNMP traps but it can also be used with Nagios core. Many people use Nagios Core as a free open source alternative to send snmp traps. The good thing is that you won't have to worry about creating your own system checks, and you could use Nagios plugins to collect the information and send it over snmp traps.
If you are not planning on using nagios to send SNMP traps you'd need to find a manual on how to do that on CentOS. We don't usually provide assistance in setting up SNMP traps on the specific device, so this process would require some initial knowledge on the sys admin's side.
If you are not planning on using nagios to send SNMP traps you'd need to find a manual on how to do that on CentOS. We don't usually provide assistance in setting up SNMP traps on the specific device, so this process would require some initial knowledge on the sys admin's side.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
grayloglearn
- Posts: 222
- Joined: Thu Jul 06, 2017 8:55 am
Re: snmp traps monitoring for network devices and centos in
Hi kyang
forgot to continue in this post. I will continue here only.
Please find the attachment for snmptt.conf file.
Here i observed that i upload total 5 mibs but only one mibs give the all traps oid/event in snmptt.conf that is f5-bigip-common-mib why remaining mibs are not given any traps in snmptt.conf
After uploading the mib file processed_mibs folder is created but no files in that folder.
I went unconfigured object to see the remote device traps but i did not find anything there please find the screen shot for that.
After this we have gone through the snmp trap in configure wizard and we enable the host. Then snmptrap is saying that TRAP-RESET came.
we have enable the 162 port to communicate its working fine. I need one help the below are the details using this how can send the test trap to nagios xi
Ex:EVENT bigipAgentStart .1.3.6.1.4.1.3375.2.4.0.1 "Status Events" Normal
FORMAT $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
SDESC
how to sent the test trap above
forgot to continue in this post. I will continue here only.
Please find the attachment for snmptt.conf file.
Here i observed that i upload total 5 mibs but only one mibs give the all traps oid/event in snmptt.conf that is f5-bigip-common-mib why remaining mibs are not given any traps in snmptt.conf
After uploading the mib file processed_mibs folder is created but no files in that folder.
I went unconfigured object to see the remote device traps but i did not find anything there please find the screen shot for that.
After this we have gone through the snmp trap in configure wizard and we enable the host. Then snmptrap is saying that TRAP-RESET came.
we have enable the 162 port to communicate its working fine. I need one help the below are the details using this how can send the test trap to nagios xi
Ex:EVENT bigipAgentStart .1.3.6.1.4.1.3375.2.4.0.1 "Status Events" Normal
FORMAT $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
SDESC
how to sent the test trap above
You do not have the required permissions to view the files attached to this post.
-
kyang
Re: snmp traps monitoring for network devices and centos in
No problem.
Can we get your XI profile?
Nagios XI Profile --> On the XI Home Page click "Admin" > "System Profile" --> "Download Profile" button
Save the profile.zip file and upload it here or PM me.
If you receive a PROFILE BUILD FAILED
Please follow this article,
https://support.nagios.com/kb/article.p ... ategory=44
After you PM the profile please update this thread, unless you post the profile on here. Thanks
Can we get your XI profile?
Nagios XI Profile --> On the XI Home Page click "Admin" > "System Profile" --> "Download Profile" button
Save the profile.zip file and upload it here or PM me.
If you receive a PROFILE BUILD FAILED
Please follow this article,
https://support.nagios.com/kb/article.p ... ategory=44
After you PM the profile please update this thread, unless you post the profile on here. Thanks