Nagios XI Disabling Notifications via API
Posted: Tue Dec 04, 2018 4:05 pm
Hi Team,
Is there a way that I can disable all notifications in nagios xi using an api call by passing the token instead of giving username and password?
The command which works fine at the moment is below:
curl -u USER:PASS "http://<NAGIOSXI>/nagios/cgi-bin/cmd.cgi?cmd_mod=2&cmd_typ=11"
I want to execute above command using an api token that is provided by nagiosxi for every user.
Thanks,
Madhu.
Is there a way that I can disable all notifications in nagios xi using an api call by passing the token instead of giving username and password?
The command which works fine at the moment is below:
curl -u USER:PASS "http://<NAGIOSXI>/nagios/cgi-bin/cmd.cgi?cmd_mod=2&cmd_typ=11"
I want to execute above command using an api token that is provided by nagiosxi for every user.
Thanks,
Madhu.