I am new to nagios, I want to use check_linux_stats(https://exchange.nagios.org/directory/P ... ts/details) to monitor my linux system performance.
So I downloaded check_linux_stats.pl and put it in /usr/lib/nagios/plugins.(I already do
)sudo apt-get install nagios-nrpe-server nagios-plugins libsys-statistics-linux-perl
And I add something in my nrpe.cfg:
after save, I do this commandcommand[check_mem]=/usr/lib/nagios/plugins/check_linux_stats.pl -M -w 100,25 -c 100,50
command[check_cpu]=/usr/lib/nagios/plugins/check_linux_stats.pl -C -w 99 -c 100
then I go to my nagios server device, add this in my {server}.cfgsystemctl restart nagios-nrpe-server
but my nagios show me unknown status (https://imgur.com/a/1XvXZWQ)define service {
host_name node1
service_description check memory
check_command check_nrpe!check_mem
max_check_attempts 2
check_interval 2
retry_interval 2
check_period 24x7
check_freshness 1
contact_groups admins
notification_interval 2
notification_period 24x7
notifications_enabled 1
register 1
}
define service {
host_name node1
service_description check cpu
check_command check_nrpe!check_cpu
max_check_attempts 2
check_interval 2
retry_interval 2
check_period 24x7
check_freshness 1
contact_groups admins
notification_interval 2
notification_period 24x7
notifications_enabled 1
register 1
}
Can anyone help me?
Thanks.