Links to host or service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gha
Posts: 1
Joined: Wed Feb 27, 2019 3:07 am

Links to host or service

Post by gha »

Hi!

I'm trying to link a external website to nagiosxi cmd enable host

If i use a link to force login and redirect to cmd with escapes characters like that:

/nagiosxi/login.php?redirect=/nagiosxi/includes/components/nagioscore/ui/cmd.php%3fcmd_typ%3D47%26host%3DHOST%2BNAME

Works like a charm only if i'm not logged into nagiosxi before, but if already logged don't works and i have to used the direct option without escaping characters:

/nagiosxi/includes/components/nagioscore/ui/cmd.php?cmd_typ=47&host=HOST+NAME

but if I'm not logged a "session timeout" screen appears

¿There is a form with a single link, have both options logged or not logged, working together?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Links to host or service

Post by scottwilkerson »

These types of commands should be executed using the API
In XI click
Help -> System Reference -> system/corecommand
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked