NetXMS Support Forum

English Support => General Support => Topic started by: geekton on December 12, 2008, 07:57:39 PM

Title: Does NetXMS support NAGIOS?
Post by: geekton on December 12, 2008, 07:57:39 PM
I was just wondering if there is a way to interact NetXMS with NAGIOS. I'm asking that because me and my team are trying to implement a new tool that can monitor some SNMP traffic on our switches, and we all already work with NAGIOS.

So, can n1 ask me that?

Appreciate.
Title: Re: Does NetXMS support NAGIOS?
Post by: Alex Kirhenshtein on December 15, 2008, 06:38:47 PM
Short answer - yes, you can.

NetXMS gathers data in multiple ways:

Solution depends on integration level you want to achieve.
If you need only events in NetXMS (e.g. "Out of disk space", "Node Down", etc.) - you can setup Nagios to execute nxevent when something happens to push event into NetXMS. This can be done with little effort.

If you want to have not only events but data too (e.g. amount of free space for every minute), you can use two ways:

This should work, but I should warn you that this way can require a lot of effort to make it work (depends on the size of your network). If you want to see all collected in NetXMS - I'd suggest to install our agent on each node.
Title: Re: Does NetXMS support NAGIOS?
Post by: Victor Kirhenshtein on December 15, 2008, 10:00:14 PM
Some additional comments:

Nagios plugin API (http://nagios.sourceforge.net/docs/3_0/pluginapi.html) is very simple - basically, plugin is an executable which return code indicates status of tested service (0 = OK, 1 = WARNING, 2 = CRITICAL, 3 = UNKNOWN), and one or more lines of text. So, you can run any nagios plugin from NetXMS agent as external parameter, and get either status code or first line of text output. For example, to get status code, add following line to nxagentd.conf:


ExternalParameter = NagiosTest1:nagios_plugin > /dev/null ; echo $?


and for capturing first line of plugin's text output simply


ExternalParameter = NagiosTest2:nagios_plugin


Best regards,
Victor