We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hiya,
the alert_history is not returning any output. I have nagios monitoring a server, and there is a critical alert in hard state.
When I do a print of alert_history(:state_type => :hard, :type => :all), it is giving me an empty array. Does anybody know why that might be?
This is how I am calling the alert_history function
nagios_address = http://<host_name>/nagios/cgi-bin user = 'user' pass = 'password' version = 3 time_format = 'euro'
nag = NagiosHarder::Site.new(nagios_address, user, pass, version, time_format) print nag.alert_history(:state_type => hard, :type => all)
Thank you.
The text was updated successfully, but these errors were encountered:
Try using symbols:
This
:state_type => :hard, :type => :all
instead of this
:state_type => hard, :type => all
Sorry, something went wrong.
Oh sorry. This is exactly what I did. Did have symbols. And I received an empty array.
No branches or pull requests
Hiya,
the alert_history is not returning any output.
I have nagios monitoring a server, and there is a critical alert in hard state.
When I do a print of alert_history(:state_type => :hard, :type => :all), it is giving me an empty array.
Does anybody know why that might be?
This is how I am calling the alert_history function
I have my cgi defined
nagios_address = http://<host_name>/nagios/cgi-bin
user = 'user'
pass = 'password'
version = 3
time_format = 'euro'
nag = NagiosHarder::Site.new(nagios_address, user, pass, version, time_format)
print nag.alert_history(:state_type => hard, :type => all)
Thank you.
The text was updated successfully, but these errors were encountered: