Posts

Showing posts with the label custom port

Nagios: Monitoring a custom

I'm using Debian 6 and Nagios3. Sometimes, it becomes essential to monitor a non-standard port in Nagios. An example may be monitoring TCP port 5555. Before we start, there is something that needs to be known-  Nagios has included a bunch of custom command. The commands are defined in the directory /etc/nagios-plugins/config / The executable for these defined commands are located in /usr/lib/nagios/plugins/ Since we want to monitor a custom TCP port, we will use Nagios's existing TCP checking tool. We will just add port 5555 as an argument to the command. Checking root@dragonfly:~# /usr/lib/nagios/plugins/check_tcp -H 192.168.10.2 -p 5555 TCP OK - 0.001 second response time on port 55|time=0.000502s;;;0.000000;10.000000 So, we can certainly conclude that port 5555 is accessible. Defining the command vim /etc/nagios-plugins/config/tcp_udp.cfg #### ADD THE CUSTOM SECTION #### define command{ command_name check_tcp_5555 command_line $USER1$/c...