LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-19-2005, 09:40 AM   #1
dwarf007
Member
 
Registered: Sep 2004
Location: Malaysia
Posts: 181

Rep: Reputation: 30
How to use Nagios plugin?


Can i know how to use nagios plugin? What are the common plugin that you all use? I know nagios can be able to check FTP, HTTP, PING, MYSQL,POP,SMTP,etc.

How does all this works? I had treid with PING and thats the only plugin i really know how it works. I am still study the others usage of nagios.

Anyonw knows, please help.

Thank You.....
 
Old 02-19-2005, 10:09 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
The plugins are essentially just clients for each of the servers, if they receive the expected response from the server then the check shows up as ok. If there is a problem it will fall into a warning, critical or unknown state.
 
Old 02-21-2005, 06:40 AM   #3
dwarf007
Member
 
Registered: Sep 2004
Location: Malaysia
Posts: 181

Original Poster
Rep: Reputation: 30
Did anyone of you all write own plugins? Is it hard to write it?

Anyone use SMS notification rather than email notification. It saw from Nagios FAQ and stated we need to use yaps (Yet Another Pager Software). Anyone knows how to use it?

Anyone know please help....
Thank You.....
 
Old 02-21-2005, 02:46 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
I've written a few, nothing really worthy of a release but I have one that connects to a gkrellm server to report on sensor information which I just need to clean up a bit. You can write them in any language so you aren't tied to anything in particular.

I also use sms notification but it uses an existing e-mail to sms gateway./
 
Old 02-25-2005, 08:50 PM   #5
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Hi David,

Can you post a simple nagios plugin shell script? I don't quite know the syntax of how these plugins work? I've tried looking online and it doesn't really help much. I need to write a tomcat plugin. Thanks...

-twantrd
 
Old 02-26-2005, 02:57 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
The documentation can explain it better than me:
http://nagiosplug.sourceforge.net/de...uidelines.html

Generally you just need to provide an exit status depeding on the service state.
 
Old 02-27-2005, 02:34 AM   #7
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Thanks!

-twantrd
 
Old 03-02-2005, 03:51 AM   #8
dwarf007
Member
 
Registered: Sep 2004
Location: Malaysia
Posts: 181

Original Poster
Rep: Reputation: 30
Is there any plugin to check VNC server? Do i need to write my own plugin? What programming language should be use to write plugin and is it tough?

Anyone knows, please help...
Thank you...
 
Old 03-02-2005, 12:16 PM   #9
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
There is no plugin to check if VNC service is up and running. Why not just use 'check_tcp' and specify the port that your VNC service is listening on? It's an easy check.

-twantrd
 
Old 03-02-2005, 09:50 PM   #10
dwarf007
Member
 
Registered: Sep 2004
Location: Malaysia
Posts: 181

Original Poster
Rep: Reputation: 30
Thanks, I also just found out the use of check_tcp
 
Old 03-14-2005, 06:08 PM   #11
dwarf007
Member
 
Registered: Sep 2004
Location: Malaysia
Posts: 181

Original Poster
Rep: Reputation: 30
Guys, is this the correct way to define 'check_swap'

Code:
# 'check_local_swap' command definition
define command{
        command_name    check_swap
        command_line    $USER1$/check_swap -w $ARG1$ -c $ARG2$
        }

In services.cfg, i use the below command,

---------------------------------------------------------------------------------
# Service definition
define service{
use generic-service

host_name DatabaseServer
service_description Check Local Swap
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
contact_groups Support-Team
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_local_swap!70%!60%
}
-------------------------------------------------------------------------------------------------------

I realize this will only check to my nagios server, even i had define teh host with a different IP in hosts.cfg

Anyone know how to 'check_swap' on particular server? How to define in checkcommands.cfg and service.cfg

Anyone know please help
Thank You.....
 
Old 03-14-2005, 11:10 PM   #12
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Do it through snmp. I think there is a also a plugin toi check swap through samba too.

-twantrd
 
Old 03-17-2005, 06:28 PM   #13
dwarf007
Member
 
Registered: Sep 2004
Location: Malaysia
Posts: 181

Original Poster
Rep: Reputation: 30
Thanks twantrd, but my question havent been asnswer yet. I need to check all the servers in the network, but i only know how to check on nagios (local) server. Do i need to define anything in checkcommands.cfg?

Anyone knows nagios having plugin to "trace route"?

Thank You for all the help
 
Old 03-18-2005, 03:07 PM   #14
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Take a look at npre:
http://nagios.sourceforge.net/docs/1_0/addons.html#nrpe

I'm not sure what you would want from a traceroute plugin. This is what nagios does with the parent host feature.
 
Old 03-18-2005, 05:59 PM   #15
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Hi Dwarf,

Did you take a look at the documents that nagios provides? It tells you how to check services on different servers. The syntax is there. You should get an idea on how to set it up.

-twantrd
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to apt-get mplayer-plugin (mozilla plugin)? hkl8324 Debian 2 06-29-2005 10:28 AM
Nagios: Raid Plugin kegwell Linux - Software 2 05-01-2005 12:38 PM
Nagios Plugin Compile Anarusis Linux - Software 3 04-10-2005 03:31 PM
Flash Plugin in Opera 7.11. Not showing up on plugin list even. binarynova Linux - Software 4 02-05-2004 08:21 AM
Nagios markus1982 Linux - Software 1 04-01-2003 07:04 AM


All times are GMT -5. The time now is 10:36 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration