Cybersecurity
DevOps Cloud (ADM)
IT Operations Cloud
command[check_oes_edir_ver]=sudo /usr/lib/nagios/plugins/check_oes_stat -v DSVER
command[check_oes_conns]=sudo /usr/lib/nagios/plugins/check_oes_stat -v CONNS
command[check_oes_uptime]=sudo /usr/lib/nagios/plugins/check_oes_stat -v UPTIME
command[check_oes_ofiles]=sudo /usr/lib/nagios/plugins/check_oes_stat -v OFILES
nagios ALL=NOPASSWD:/usr/lib/nagios/plugins/
define service{
use oes-service
service_description NCP Connections
check_command check_nrpe!check_oes_conns
service_groups oesservices
hostgroup_name oesservers
}
define service{
use oes-service
service_description NCP Open files
check_command check_nrpe!check_oes_ofiles
service_groups oesservices
hostgroup_name oesservers
}
# Service type: NCP connections (OES2 servers)
# output: NCP Conn Slots Used = 415, NotLoggedIn Conns = 264, Licensed Conns = 34
# perfdata: ncpconns=415;264;34
/output:NCP Conn Slots Used = (\d ), NotLoggedIn Conns = (\d ), Licensed Conns = (\d )/
and push @s, [ ncpconns,
[ slots_used, GAUGE, $1 ],
[ nli_cons, GAUGE, $2 ],
[ licensed, GAUGE, $3 ],
];