9
votes
Accepted
How to set icinga2 downtime across midnight
You could assign the service.vars.backup_downtime value "22:00-24:00,00:00-05:00" so that you get downtime from 22:00 to 05:00 the next day.
ie. service definition will be:
apply Service "foo" {
...
4
votes
Accepted
Icinga: max_attempts vs max_check_attempts
max_attempts is an old definition for services and hosts and it's no longer used in the nagios Core 4. See that to know the possibles definitions for yours objects:
Objects definition
With Icinga2
...
4
votes
How to restrict a hostgroup to a specific user group? (icinga2/icingaweb2)
In icingaweb2 go to configuration -> authorization -> roles -> create new role.
Under monitoring/filter/objects you can enter any filter that you would use in icingaweb2. So you can just go to ...
4
votes
Accepted
How to raise alert if a tcp port is responding in Icinga2?
I found the solution. There is a plugin called "negate" that does exactly this. That's how you configure it:
object Host "hostname" {
address = "192.168.1.11"
vars.negate_command = "/...
4
votes
icinga2: query check results from command line?
With icinga2 you can use icingacli, see https://github.com/Icinga/icingaweb2/blob/master/modules/monitoring/application/clicommands/ListCommand.php for options, look at this ascii movie for some ...
4
votes
Accepted
Nagios Plugin API: return N results, not just one
All Nagios cares about is the return code, and there's only one return code.
Ultimately, you can only have one status per check, sorry.
You can sort of work around this with something like check_mk, ...
4
votes
Accepted
Why would I need/want idomod, ido2db, etc.?
IDO is used for modern interfaces (Icinga Web) and things like graphing support to interact with Icinga. Basically, it writes all status information, checks etc. into an SQL database (that's ido2db's ...
3
votes
Setting up icinga2 nodes via Ansible: how do I get the ticket from the master?
Ansible allows to get facts from other hosts with the delegate_to parameter.
To grab the ticket from the icinga2 server you will need something like this:
- name: Get ticket.
command: icinga2 pki ...
3
votes
There is currently no icinga instance writing to the IDO
On Debian systems, after the default installation and configuration of the IDO package, this file is actually pre-generated in /etc/icinga2/features-available/ido-pgsql.conf or similar, you just need ...
2
votes
Accepted
Something for Icinga like sensu-metrics-relay
There is a Python tool called graphios, Icinga 2 has its own graphite writer.
2
votes
Accepted
Using the service.check_command variable in Icinga2 action_url query string
You cannot really use macros for that, because *_url is a configuration field.
The web interfaces try to do some expansion, but can't handle everything.
I'd recommend something like this in apply ...
2
votes
Accepted
Icinga2 - ExternalCommands filling my DB
You can safely delete them.
You can also configure which categories should be written. The default value attempts to set anything required for Icinga Web 2.
https://docs.icinga.com/icinga2/latest/...
2
votes
Icinga Agent Security
In short: SSL certificates
Longer: It's all in the docs
Note about ApiListener in Distributed Monitoring
ApiListener Configuration
Same Listener is used for the Icinga 2 API
2
votes
Using Icinga 1 object configuration files with Icinga 2
Please don't just port your old config, re-think it and enjoy a clean config.
There is a whole doc guide to help you understand the differences: https://www.icinga.com/docs/icinga2/latest/doc/23-...
1
vote
Exclude partition in Icinga2 check disk [check_disk] not working
I've been able to fix it by checking existing partitions on the system
root@icinga2:/etc/icinga2/conf.d# sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME FSTYPE SIZE MOUNTPOINT LABEL
...
1
vote
Accepted
Can a service-check be limited to hosts with a custom attribute defined?
Icinga 2.x supports this. I don't believe v1 does. See the documentation here. Look specifically at the Apply, Assign Where, and Custom Attributes
1
vote
Accepted
How to trigger a service-check by a change in a host-status?
You could define an event handler on the host which basically is a small script "doing something based on parameters". You can pass the host's state attributes from runtime macros as command ...
1
vote
How do I change trap alert from unknown to critical in Icinga 1?
TL;DR: Update your script to set $return_code to 2.
Thank you for your clarification. You mentioned you're using combination of ncsa and send_ncsa.
/usr/bin/printf "%s\t%s\t%s\t%s\n" "$1" "$2" "$...
1
vote
Accepted
Icinga not expanding contactemail variable
According to the macro list, macros are only valid in the context of host/service checks, notifications, event handlers, and performance data.
In short: you can't.
1
vote
How do I monitor the NRPE daemon on remote Icinga servers
/facepalm
check_nrpe is the answer. Needed more coffee.
1
vote
Accepted
Problems in RAID not being reported by Nagios/Icinga - using check_raid
The nagios script is matching 3 of your 4 return conditions, which is why it returns OK.
From check_snmp documentation:
-r, --ereg=REGEX
Return OK state (for that OID) if extended regular ...
1
vote
nagios/icinga flapping notifications not sent?
You also need to add f to the service_notification_options.
The set of emails that a contact actually receives is the intersection of the service's (or host's) options and the contact's options.
1
vote
Setting up icinga2 nodes via Ansible: how do I get the ticket from the master?
In addition to knowhy's answer, you can also generate the ticket on the Ansible system, with a crypto/hashing algorithm called PKDF2.
I did something similar in the Puppet module, you would only need ...
1
vote
Icinga 2 sends notifications outside of specified time period
Apply rules are evaluated on their own. If your assign/ignore where expressions match (as with "assign where host.vars.notification.mail" probably matching all hosts) they will generate a notification ...
1
vote
Create custom plugin for Icinga2
A nice way to get some more information is to run this command: icinga2 daemon -C.
It does pretty much the same as /etc/init.d/icinga2 checkconfig pointed out by 7171u.
1
vote
nginx subdirectory to subdomain icingaweb2
Found a solution here - Nginx redirect failure for icingaweb2
The rewrite line in the second location block is what makes the magic happen.
Something like this should work in your case:
location ~ ^...
1
vote
check_http!--ssl actually checks http
Small addendum to Keith's answer : nowadays, Icinga2 on Debian can include /usr/share/icinga2/include/command-plugins.conf instead of /etc/nagios-plugins, which doesn't automatically duplicate the $...
1
vote
install icinga2 and icinga-web in different servers
For the icingaweb2 to connect to backend server icinga2, you should setup icingaweb2 transport to use icinga2 api (enabling api, and creating api user is required on icinga2). Documentation for ...
1
vote
Icinga Web no hosts/services showing up
Please check the whether the web user has access to view the hosts/services that you've added. This can be set using the Icinga roles. For icinga2 have a look at /etc/icingaweb2/roles.ini. The link ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
icinga × 151nagios × 60
monitoring × 44
icinga2 × 19
linux × 12
system-monitoring × 10
nrpe × 8
debian × 5
network-monitoring × 5
nsclient++ × 5
apache-2.2 × 4
ubuntu × 4
mysql × 4
ubuntu-14.04 × 4
snmp × 4
nginx × 3
check-mk × 3
backup × 2
postgresql × 2
scripting × 2
service × 2
debian-squeeze × 2
cacti × 2
graphite × 2
windows × 1