Guest User

Untitled

a guest
Jun 18th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. define command($command) {
  2. include nagios::target
  3.  
  4. file { "/etc/nagios/nrpe/$title.cfg":
  5. owner => "root",
  6. group => "root",
  7. mode => 0755,
  8. ensure => present,
  9. content => "command[$title]=$command\n",
  10. notify => Service[nrpe],
  11. require => File["/etc/nagios/nrpe"];
  12. }
  13.  
  14. nagios::service { "$title":
  15. command => "check_nrpe",
  16. args => "$title";
  17. }
  18. }
Add Comment
Please, Sign In to add comment