hi Julian,
(while typing this message I realized what I did wrong... leave my explanation here for learning purpose...and you can have a laugh ;-)
Thanks for taking the effort to reply.
here's what I did:
added some windows boxes with checks on four disks (cdfg).
then saw that some of them don't have so many disks. so removed those windows nodes from the services. however, icinga still "thinks" they need to be tested and therefor keeps them in an unknown state.
so this was my cfg before removal:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
define service {
use windows-service (template to set proper servicegroups)
check_command check_nt!USEDDISKSPACE!-l c -w 90 -c 95
hostgroup_name windows-servers
service_description C:\ Drive Space
}
define service {
use windows-service
check_command check_nt!USEDDISKSPACE!-l d -w 90 -c 95
hostgroup_name windows-servers
service_description D:\ Drive Space
}
define service {
use windows-service
check_command check_nt!USEDDISKSPACE!-l f -w 90 -c 95
hostgroup_name windows-servers
service_description F:\ Drive Space
}
define service {
use windows-service
check_command check_nt!USEDDISKSPACE!-l g -w 90 -c 95
hostgroup_name windows-servers
service_description G:\ Drive Space
}
|
then I altered it this way:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
define service {
use windows-service (template to set proper servicegroups)
check_command check_nt!USEDDISKSPACE!-l c -w 90 -c 95
hostgroup_name windows-servers
service_description C:\ Drive Space
}
define service {
use windows-service
check_command check_nt!USEDDISKSPACE!-l d -w 90 -c 95
hostgroup_name windows-servers
service_description D:\ Drive Space
}
define service {
use windows-service
check_command check_nt!USEDDISKSPACE!-l f -w 90 -c 95
host_name servera,serverb
service_description F:\ Drive Space
}
define service {
use windows-service
check_command check_nt!USEDDISKSPACE!-l g -w 90 -c 95
host_name servera,serverb
service_description G:\ Drive Space
}
|
then of course I reloaded icinga. however, those F and G drives still show up in my unknown services view.
This is both on icinga ("old") and icinga-web.
Reason I suspected My IDO is because I have thoroughly checked all my cfg files and there are no other check_nt|USEDDISK commands.
And, I wanted to do it again but then noticed my "use window-service" template also added a "hostgroup_name windows-servers" to the service....
so. I think I found the solution! my stupidity...