Skip to content

Commit b691986

Browse files
lumuchris256gdamssteelhead31
authored
Adding a check for the machines with the build, windows & x64 labels (#2798)
* checklabelforwindows * changesrequested * changesrequested * changes * Update ansible/playbooks/nagios/README.md Co-authored-by: George Adams <[email protected]> * requested changes * requested changes * syntaxfix Co-authored-by: George Adams <[email protected]> Co-authored-by: Scott Fryer <[email protected]>
1 parent 51c380c commit b691986

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

ansible/playbooks/nagios/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,21 @@ Based off the [installation guide](https://support.nagios.com/kb/article/nagios-
7070
And Off This [GitRepo](https://github.com/Willsparker/AnsibleBoilerPlates/tree/main/Nagios) :
7171
For some useful tips for working with vault files see [here](https://docs.ansible.com/ansible/latest/user_guide/vault.html)
7272

73+
## How to add additional Jenkins Check Label Job To Nagios server group For Windows ##
74+
75+
* Amend the Nagios server config file, e.g ( /usr/local/nagios/etc/objects/localhost.cfg ) to include the entry for the new label check.
76+
77+
```bash
78+
define service{
79+
use local-service
80+
host_name Nagios_Server
81+
check_period once-a-day-at-8
82+
service_description Check Label- build/windows/x64
83+
check_command check_label!build&&windows&&x64!75!30
84+
notifications_enabled 0
85+
}
86+
```
87+
7388
### How to Add Additional Disk Space Check For /tmp on AIX hosts
7489

7590
* The commands configuration file `commands.cfg` can be located at

0 commit comments

Comments
 (0)