CGI Command For Checking Host/Service Status

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
tinut89
Posts: 13
Joined: Tue Mar 05, 2019 6:52 am

CGI Command For Checking Host/Service Status

Post by tinut89 »

Hi

Have a good day.

Actually I am looking for

CGI command for checking host/service status for a machine in Nagios.

Fox Example, I have one cgi command to disable/enable notification for the host. Similarly I need the above one.
------
For Enabling
curl -H 'Authorization: Basic AuthKey' -d 'cmd_typ=28&cmd_mod=2&host='servername'&ahas=on&btnSubmit=Commit' 'http://nagiosmaster.domain.com/nagios/cgi-bin/cmd.cgi'
For Disabling
curl -H 'Authorization: Basic AuthKey' -d 'cmd_typ=29&cmd_mod=2&host='servername'&ahas=on&btnSubmit=Commit' 'http://nagiosmaster.domain.com/nagios/cgi-bin/cmd.cgi'
---


Regards
Tinu
tinut89
Posts: 13
Joined: Tue Mar 05, 2019 6:52 am

Re: CGI Command For Checking Host/Service Status

Post by tinut89 »

Any help will be apperciated
Locked