Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

name 'html' is not defined send_nrdp.py #60

Open
jaroja4 opened this issue Sep 16, 2021 · 0 comments
Open

name 'html' is not defined send_nrdp.py #60

jaroja4 opened this issue Sep 16, 2021 · 0 comments

Comments

@jaroja4
Copy link

jaroja4 commented Sep 16, 2021

Ubuntu 20.04
python 3.8

python3 ./send_nrdp.py -u http://[NagiosIP]/nrdp/ -t TOKENXXX -H centos01 -S 0 -o "The host is up and OK"

Result:
"name 'html' is not defined"

I change:
in line 48= import argparse, sys
for =
import argparse, sys, html

And now the result is:
Cannot connect to url.
XML or text declaration not at start of entity: line 3, column 0

or

ERROR - Cannot connect to url: HTTP Error 500: Internal Server Error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant