How to add DDos Monitoring Service

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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to add DDos Monitoring Service

Post by scottwilkerson »

Ok, you cannot define a service without defining the host first, you need to add something like:

Code: Select all

define host {
	host_name			XYZ
	use				generic-host
	address				192.168.1.1
	max_check_attempts		5
	check_interval			5
	retry_interval			1
	contacts			nagiosadmin
	notification_interval		60
	register			1
	}
This is just an example, you would need to define the host to YOUR specifications.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: How to add DDos Monitoring Service

Post by rlinux57 »

Host is already added. There's no problem in host.

i've run this command on host.
/usr/local/nagios/libexec/./check_ddos.pl -w 50 -c 60
[Output]
No DDOS attack detected (0/50).

Now its commands are accepted by nagios server. But getting error on nagstamon "no output returned from plugin"
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: How to add DDos Monitoring Service

Post by sreinhardt »

Can you post the following config please?

Code: Select all

/etc/nagios/servers/webs-services.cfg
Also if you could run the following:

Code: Select all

grep -Ri 'XYZ' /etc/nagios/ 
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: How to add DDos Monitoring Service

Post by rlinux57 »

Now it seems to be okay, do you have ddos generating script for counter check ddos nagios plugin.?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to add DDos Monitoring Service

Post by tmcdonald »

A DDoS script is not something we are going to post on this forum, but a Google search will undoubtedly come up with something.
Former Nagios employee
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: How to add DDos Monitoring Service

Post by rlinux57 »

Now you can mark up this post and closed.

Thanks for your coperation.
Locked