Page 1 of 1

CGI Command For Checking Host/Service Status

Posted: Thu Dec 09, 2021 6:38 am
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

Re: CGI Command For Checking Host/Service Status

Posted: Mon Dec 13, 2021 1:59 am
by tinut89
Any help will be apperciated