Configuring nmap on nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
eng_m_g
Posts: 19
Joined: Tue Mar 27, 2012 4:12 pm

Configuring nmap on nagios

Post 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
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Configuring nmap on nagios

Post 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.
Locked