Page 1 of 1

Transform Nagios Report to NagiosGraph

Posted: Tue Dec 20, 2011 5:18 am
by hedkandi
Hi all

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
}
Now, while the results are appearing in the web page, I am lost as to how to create the graph for the reports above. Can someone please help me out on this?

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 map
The map file looks confusing as it is and I am not sure which options to enable/disable, and how to integrate it with the earlier definitions
Thank you in advance

Rgds

priti

Re: Transform Nagios Report to NagiosGraph

Posted: Tue Jan 22, 2013 1:26 am
by jayattarde
Hi,

While getting details of remote systems I receive error like : NRPE: Command '/usr/local/nagios/libexec/check_linux_stats.pl' not defined
Kindly let me know how to resolve it....

Re: Transform Nagios Report to NagiosGraph

Posted: Tue Jan 22, 2013 2:55 pm
by abrist
jayattarde wrote:Hi,

While getting details of remote systems I receive error like : NRPE: Command '/usr/local/nagios/libexec/check_linux_stats.pl' not defined
Kindly let me know how to resolve it....
Have you configured the corresponding command in remote host's nrpe.cfg?

The check_linux_stats.pl plugin does support perfdata, per its page on exchange, so this must be a configuration issue. You need to sort out the 'not defined' error first.

Re: Transform Nagios Report to NagiosGraph

Posted: Tue Jan 22, 2013 3:34 pm
by slansing
Hello jaya, we ask that you move your question to a new thread as to keep the clutter down and allow us and other community members to focus on one thread at a time. Thank you!