Search found 12 matches

by peterg
Wed Jul 17, 2019 6:10 am
Forum: Open Source Nagios Projects
Topic: Variations in monitored services (inheritance question?)
Replies: 3
Views: 1072

Re: Variations in monitored services (inheritance question?)

@benjaminsmith I should have said, I'm still on Nagios 3, does that support multiple inheritance? If so that should work. If not, I can migrate to 4.

Peter
by peterg
Fri Jul 12, 2019 4:53 am
Forum: Open Source Nagios Projects
Topic: Variations in monitored services (inheritance question?)
Replies: 3
Views: 1072

Variations in monitored services (inheritance question?)

We have an estate of approximately 60 Nagios monitored servers which are not identical. By that I mean some have devices and services present that are missing on on others. The configuration file is structured such that there is a template service{} definition that all our other specific checks inhe...
by peterg
Fri Oct 16, 2015 3:18 am
Forum: Open Source Nagios Projects
Topic: NRPE plugins return null
Replies: 19
Views: 5417

Re: NRPE plugins return null

Yup, hopefully it'll help out someone else in the future.

Pete
by peterg
Thu Oct 15, 2015 11:54 am
Forum: Open Source Nagios Projects
Topic: NRPE plugins return null
Replies: 19
Views: 5417

Re: NRPE plugins return null

Typical, after converting it to ssh I spotted the error, it's right there in plain site above. $HOSTADDRESS should be $HOSTADDRESS$!!!!

The ssh implementation did have the type because I cut'n'pasted it from an example online.

Pete
by peterg
Thu Oct 15, 2015 10:16 am
Forum: Open Source Nagios Projects
Topic: NRPE plugins return null
Replies: 19
Views: 5417

Re: NRPE plugins return null

Think I'm going to give up on nrpe, just setup exactly the same checks with ssh, worked first time.

Pete
by peterg
Thu Oct 15, 2015 4:18 am
Forum: Open Source Nagios Projects
Topic: NRPE plugins return null
Replies: 19
Views: 5417

Re: NRPE plugins return null

I took the quotes off the check_load command - no difference. This is very weird.

Pete
by peterg
Wed Oct 14, 2015 7:17 am
Forum: Open Source Nagios Projects
Topic: NRPE plugins return null
Replies: 19
Views: 5417

Re: NRPE plugins return null

If I run the check on the server as my user id, nagios or root it works perfectly: ubuntu@nagios01:~$ /usr/lib/nagios/plugins/check_nrpe -H 10.99.1.6 -c check_users USERS OK - 1 users currently logged in |users=1;5;10;0 However, in Nagios the service status is 'WARNING' and the Status Information f...
by peterg
Wed Oct 14, 2015 7:00 am
Forum: Open Source Nagios Projects
Topic: NRPE plugins return null
Replies: 19
Views: 5417

Re: NRPE plugins return null

Can I see what is in gs-generic-service ? Sure: define service { name gs-generic-service check_interval 10 check_period 24x7 retry_interval 2 max_check_attempts 3 notification_interval 30 notification_period 24x7 notification_options w,c,r contact_groups admins }
by peterg
Tue Oct 13, 2015 9:01 am
Forum: Open Source Nagios Projects
Topic: NRPE plugins return null
Replies: 19
Views: 5417

Re: NRPE plugins return null

Ok, here's an example check on the nagios server (from /etc/nagios3/conf.d/clients.cfg ): define command { command_name check_load_nrpe command_line $USER1$/check_nrpe -H "$HOSTADDRESS" -c "check_load" } ... define service { use gs-generic-service host_name cogs.example.com servi...
by peterg
Mon Oct 12, 2015 6:36 am
Forum: Open Source Nagios Projects
Topic: NRPE plugins return null
Replies: 19
Views: 5417

Re: NRPE plugins return null

I checked all the nagios packages on the server, the only package that contains objects was nagios3-common: $ dpkg -L nagios3-common | grep object /usr/share/doc/nagios3-common/examples/template-object /usr/share/doc/nagios3-common/examples/template-object/README /usr/share/doc/nagios3-common/exampl...