Page 1 of 1

How to enable the particular host and service pages to email

Posted: Fri Mar 15, 2019 1:33 pm
by grayloglearn
Hi Team,

How to enable the host and service pages to our email I'd.
Example: we have X host and Service.
We want host and service pages to our email I'd. Could you please help us how to enable this.

Re: How to enable the particular host and service pages to e

Posted: Fri Mar 15, 2019 2:25 pm
by cdienger
There isn't functionality in core to email a host or service pages. This is available in XI however.

Re: How to enable the particular host and service pages to e

Posted: Sun Mar 17, 2019 8:31 pm
by grayloglearn
Hi Team,
In nagiosXI i know, Could you please tell in core. Is there any script, Could you please check and reply back I hope there is way to enable this.

Re: How to enable the particular host and service pages to e

Posted: Mon Mar 18, 2019 2:44 pm
by cdienger
There isn't functionality in core to email a host or service page. It would need to be added. For example, writing something that would call the status.cgi:

Code: Select all

curl -u username:password"http://nagios_ip/nagios/cgi-bin/status.cgi?hostgroup=all&style=hostdetail" -v

Re: How to enable the particular host and service pages to e

Posted: Tue Mar 19, 2019 4:15 am
by grayloglearn
curl -u username:password"http://nagios_ip/nagios/cgi-bin/status.cgi?hostgroup=all&style=hostdetail" -v


Hi Team,

I have X host in Y hostgroup. Could you please tell that the below one is right way, I just placed the Y and X in below. Please correct me if i am wrong.

curl -u username:password"http://nagios_ip/nagios/cgi-bin/status.cgi?hostgroup=Y &style=X " -v

Re: How to enable the particular host and service pages to e

Posted: Tue Mar 19, 2019 3:59 pm
by cdienger
It would be:

Code: Select all

curl -u username:password"http://nagios_ip/nagios/cgi-bin/status.cgi?hostgroup=Y&style=hostdetail" -v
if you just wanted details on the host:

Code: Select all

curl -u username:password"http://nagios_ip/nagios/cgi-bin/status.cgi?host=X" -v