I have recently downloaded and applied this script I found from the community:
http://exchange.nagios.org/directory/Pl ... ts/details
I created several commands.cfg using this Perl script and the results are appearing on my Nagios web server webpage, after adding it to a client host
The defined commands are :
Code: Select all
define command {
command_name check_load_usage
command_line /usr/local/nagios/libexec/check_linux_stats.pl -L -w 10,8,5 -c 20,18,15
}
define command {
command_name check_network_usage
command_line /usr/local/nagios/libexec/check_linux_stats.pl -N -w 30000 -c 45000 -p eth0
}
define command {
command_name check_socket_usage
command_line /usr/local/nagios/libexec/check_linux_stats.pl -S -w 1000 -c 2000
}
define command {
command_name check_processes_num
command_line /usr/local/nagios/libexec/check_linux_stats.pl -P -w 1000 -c 2000
}
define command {
command_name check_open_files
command_line /usr/local/nagios/libexec/check_linux_stats.pl -F -w 10000,150000 -c 15000,250000
}
My map file is in nagiosgraph directory:
Code: Select all
my-mnag0:/usr/local/nagiosgraph # ls -ld map
-rwxr-xr-x 1 nagios nagios 19634 Dec 21 00:54 mapThank you in advance
Rgds
priti