Page 1 of 1

Configuring nmap on nagios

Posted: Tue Sep 04, 2012 12:40 pm
by eng_m_g
Dears,

I'm trying to monitor some boxes but the ping option was closed , i contacted the boxes support and they informed me that i can only monitor these boxes through (nmap) and send me the command
#nmap -sU 192.168.232.239 -p1599

but i'm new on nagios and don't know how to make it working, could you please help on figuring this out

appreciated ASAP

Re: Configuring nmap on nagios

Posted: Tue Sep 04, 2012 2:12 pm
by agriffin
That nmap command just monitors a UDP port for responses, and is not a Nagios plugin. The Nagios equivalent is check_udp. The full command line will be something like this:

Code: Select all

/usr/local/nagios/libexec/check_udp -H 192.168.232.239 -p 1599 -w 4 -c 8
If you started from the default Nagios configuration, the command that you're going to put into your service definitions is:

Code: Select all

check_udp!1599!-w 4 -c 8
If you're really starting from scratch and haven't set up anything yet, you'll want to start by reading about Nagios either from a book or the documentation.