How to enable the particular host and service pages to email

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

How to enable the particular host and service pages to email

Postby grayloglearn » Fri Mar 15, 2019 1:33 pm

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

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

Postby cdienger » Fri Mar 15, 2019 2:25 pm

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

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

Postby grayloglearn » Sun Mar 17, 2019 8:31 pm

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

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

Postby cdienger » Mon Mar 18, 2019 2:44 pm

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

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

Postby grayloglearn » Tue Mar 19, 2019 4:15 am

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

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

Postby cdienger » Tue Mar 19, 2019 3:59 pm

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


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 28 guests