LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-20-2013, 11:05 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
nagios - nrpe: is it possible to establish warning/critical levels?


Hi!

I'm playing around with nagios. I've seen that it can monitor running processes, users, and other stuff through NRPE.

Now, when I see the definition to check for the server itself (locally) I see this definition:

Code:
define service{
        use                             generic-service         ; Name of service template to use
        host_name                       localhost
        service_description             Current Load
                check_command                   check_load!5.0!4.0!3.0!10.0!6.0!4.0
        }
But the definition I have for another host using nrpe is like this:

Code:
define service {
        use     generic-service
        host_name       memcache
        service_description     CPU Load
        check_command           check_nrpe_1arg!check_load
        }
Nothing about the warning/critital levels. If I check the definition of check_nrpe or check_nrpe_1arg there's no standard way to provide the warning/critital levels (or is there?). What's the solves-all-problems, everybody-uses-it work around for this situation?

Thanks in advance.
 
Old 02-20-2013, 01:09 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
there's no "work around" at all, you just break out whatever commands you need to from the !one!two!three style syntax to -w $ARG1$ -c $ARG2$ etc., like every other command. Don't forget that this is all just a tiny wrapper around running arbitary shell commands. Nagios is painful basic and dumb in this area.

And NRPE is AWFUL (as is Nagios in general) If you want to use Nagios, I'd *very* strongly suggest you ditch check_nrpe for check_by_ssh and remove a nasty service from your network,
 
1 members found this post helpful.
Old 02-20-2013, 02:37 PM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
Good to know. I'll give zenoss a look as well. Any other platforms I should try?
 
Old 02-20-2013, 03:24 PM   #4
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,146
Blog Entries: 4

Rep: Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760
zabbix rocks my world.
 
Old 02-20-2013, 04:17 PM   #5
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
Well, I'm giving zenoss a test drive and I've hit a couple of bumps in the road till now (not the least the fact that it has to be built from source).

Last one looks like this (trying to add a cisco router):
Code:
Traceback (most recent call last):
  File "/usr/local/zenoss/Products/DataCollector/zendisc.py", line 818, in 
    d = ZenDisc()
  File "/usr/local/zenoss/Products/DataCollector/zendisc.py", line 72, in __init__
    self.openPrivilegedPort('--ping')
  File "/usr/local/zenoss/Products/ZenUtils/ZenDaemon.py", line 87, in openPrivilegedPort
    os.execlp(*cmd)
  File "/usr/local/zenoss/lib/python2.6/os.py", line 327, in execlp
    execvp(file, args)
  File "/usr/local/zenoss/lib/python2.6/os.py", line 344, in execvp
    _execvpe(file, args)
  File "/usr/local/zenoss/lib/python2.6/os.py", line 368, in _execvpe
    func(file, *argrest)
OSError: [Errno 13] Permission denied

 Job completed at 2013-02-20 17:14:18. Result: failure.
Given that zabbix comes from packages, I'll give it a round of testing as well.
 
Old 02-21-2013, 03:59 PM   #6
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
Zabbix looks cool. I gave zenoss a look and though it looks kick-assy, having to do the compilation by hand (in ubuntu 32 bits) doesn't look like the way to go (in their wikis they say support for other distros is comming soon, debian and ubuntu in march... that would be a major thing to watch).... I have a couple of issues with zenoss yesterday and zabbix today. I think I'll stick with zabbix to see if it fits our needs.
 
  


Reply

Tags
levels, nagios, nrpe


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
Nagios NRPE DISK CRITICAL - is not accessible: No such file or directory deibertine Linux - General 1 01-13-2013 09:38 PM
[SOLVED] Nagios/NRPE jrb328 Linux - Software 3 05-30-2012 08:57 AM
Installing Nagios agent nrpe, problems following nrpe install steps rfreiberger Linux - Newbie 3 04-19-2010 08:43 AM
Nagios - warning and critical alerts to different email address sp149 Linux - Newbie 1 12-18-2009 12:52 PM
Nagios--- NRPE lazylark Linux - Software 1 04-11-2007 01:57 PM


All times are GMT -5. The time now is 10:08 AM.

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