Transform Nagios Report to NagiosGraph

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
hedkandi
Posts: 4
Joined: Thu Nov 24, 2011 3:18 am

Transform Nagios Report to NagiosGraph

Post 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
jayattarde
Posts: 1
Joined: Fri Jan 18, 2013 3:36 am

Re: Transform Nagios Report to NagiosGraph

Post 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....
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Transform Nagios Report to NagiosGraph

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Transform Nagios Report to NagiosGraph

Post 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!
Locked