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?
Links to host or service
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Links to host or service
These types of commands should be executed using the API
In XI click
Help -> System Reference -> system/corecommand
In XI click
Help -> System Reference -> system/corecommand