Search found 40 matches

by Stuart Watts
Mon Jun 16, 2014 7:45 am
Forum: Open Source Nagios Projects
Topic: Nagios SubInstances
Replies: 9
Views: 2455

Re: Nagios SubInstances

Check for inheritance - do you have any "contactgroups" defined in either your base host or service templates? Is that test user a member of any contact groups?
by Stuart Watts
Mon Jun 16, 2014 6:25 am
Forum: Open Source Nagios Projects
Topic: Nagios SubInstances
Replies: 9
Views: 2455

Re: Nagios SubInstances

If you create a web user (set up a username/password in the htpasswd file), and you make that username match the contact name you use to send alerts, then that user will only be able to see the hosts and services they will receive alerts for. See this doc for more info.
by Stuart Watts
Fri Jun 13, 2014 4:38 am
Forum: Open Source Nagios Projects
Topic: gather short lists from servers via nagios
Replies: 4
Views: 2034

Re: gather short lists from servers via nagios

If you've already got a script or program that does this, then you won't be too far away from creating a Nagios plugin that you can run as a service at defined intervals, and alert people when the plugin detects something wrong. Read the Plugin Development Guidelines , which should give you the info...
by Stuart Watts
Fri Jun 13, 2014 4:11 am
Forum: Open Source Nagios Projects
Topic: Mass Host Editing
Replies: 4
Views: 1970

Re: Mass Host Editing

I'd recommend doing this "the Nagios way" - create a hostgroup and add all of the hosts you need to apply this check to. Then define the service and apply it against the hostgroup. This is particularly suitable for checks that aren't dependent on thresholds (like checking OS versions!). As...
by Stuart Watts
Thu Jun 12, 2014 8:45 am
Forum: Open Source Nagios Projects
Topic: Remote command execution failed: Permission denied,please...
Replies: 37
Views: 11339

Re: Remote command execution failed: Permission denied,pleas

I'd just like to mention the security issues here - you're giving the nagios user keyed SSH access to the root account on a remote server. If anyone compromises the "nagios" account on the Nagios server, they'll also have root access to the remote server. This is really bad. Check into som...
by Stuart Watts
Thu Jun 12, 2014 8:11 am
Forum: Open Source Nagios Projects
Topic: jboss2nagios plugin problems
Replies: 6
Views: 2783

Re: jboss2nagios plugin problems

Seconding what tmcdonald said, but also adding my $0.02! Make sure you become "nagios" before testing plugins on the commandline: [root@nagiosrl01 libexec]# su - nagios [nagios@nagiosrl01 libexec]# /usr/local/nagios/libexec/check_mbean_collector -H pomona01 -p 5566 -m java.lang:type=Memory...
by Stuart Watts
Thu Jun 12, 2014 7:53 am
Forum: Open Source Nagios Projects
Topic: error:modules\CheckSystem\CheckSystem.cpp:1115: ERROR: \MSEx
Replies: 4
Views: 2443

Re: error:modules\CheckSystem\CheckSystem.cpp:1115: ERROR: \

I'm not a Windows expert, so can only offer generic advice. First thing I'd ask is "what's changed?".

Have you upgraded or patched Windows or Exchange? Can you see that counter (MSExchangeTransport Queues(_total)\Messages Queued For Delivery) in Perfmon on the Windows machine?
by Stuart Watts
Thu Jun 12, 2014 7:49 am
Forum: Open Source Nagios Projects
Topic: Remote command execution failed: Permission denied,please...
Replies: 37
Views: 11339

Re: Remote command execution failed: Permission denied,pleas

Forums ate my first response - I had to re-type it (although it may have been a Layer 8 problem here ;) ). You're getting the same error from the plugin as your command and service definitions are synonymous - they're both exactly the same. Welcome Nagios! It's like Perl sometimes - many different w...
by Stuart Watts
Thu Jun 12, 2014 7:34 am
Forum: Open Source Nagios Projects
Topic: Could not stat() command file '/usr/local/nagios/var/
Replies: 13
Views: 38621

Re: Could not stat() command file '/usr/local/nagios/var/

What are the permissions on nagios.cmd, and the directories it sits in?

Code: Select all

ls -l /usr/local/nagios/var/rw/nagios.cmd
ls -ld /usr/local/nagios/var/rw
ls -ld /usr/local/nagios/var
ls -ld /usr/local/nagios
ls -ld /usr/local
by Stuart Watts
Thu Jun 12, 2014 6:12 am
Forum: Open Source Nagios Projects
Topic: Remote command execution failed: Permission denied,please...
Replies: 37
Views: 11339

Re: Remote command execution failed: Permission denied,pleas

Forums ate my response... :evil: The clue is in the error message "Port must be a positive integer" ;) The problem is the service definition - $ARG1$ is passing "2022" to the command, which is used as the value for the option -H, which should be the host address or name. You're p...