How to enable the particular host and service pages to email

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
grayloglearn
Posts: 222
Joined: Thu Jul 06, 2017 8:55 am

How to enable the particular host and service pages to email

Post 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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

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

Post by cdienger »

There isn't functionality in core to email a host or service pages. This is available in XI however.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
grayloglearn
Posts: 222
Joined: Thu Jul 06, 2017 8:55 am

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

Post 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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

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

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
grayloglearn
Posts: 222
Joined: Thu Jul 06, 2017 8:55 am

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

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

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

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked