简体   繁体   中英

Is there a way to login to Nagios server from the backend and keep the session alive?

I was told that Nagios supports basic authentication. But the following doesn't seem to work. What should be done to authenticate and keep session alive?

    s = requests.Session()
    s.auth = ('username', 'password')
    result = s.get("www.nagios_server.com")
    print result.text

I just found out that there is no need to do that. Nagios services can be accessed with username and ticket after configuring CGI accesses.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM