Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
chef log
[Wed, 11 Jan 2012 17:02:10 +0000] INFO: Processing service[nagios-nrpe-server] action enable (nagios::client line 63)
[Wed, 11 Jan 2012 17:02:10 +0000] INFO: Processing nagios_nrpecheck[check_load] action add (nagios::client line 69)
[Wed, 11 Jan 2012 17:02:10 +0000] INFO: Adding check_load to /etc/nagios/nrpe.d/
[Wed, 11 Jan 2012 17:02:10 +0000] INFO: Processing template[/etc/nagios/nrpe.d/check_load.cfg] action create (/var/chef/cache/cookbooks/nagios/providers/nrpecheck.rb line 23)
...
[Wed, 11 Jan 2012 17:02:10 +0000] INFO: template[/etc/nagios/nrpe.d/check_load.cfg] sending restart action to service[nagios-nrpe-server] (delayed)
[Wed, 11 Jan 2012 17:02:10 +0000] ERROR: Running exception handlers
[Wed, 11 Jan 2012 17:02:12 +0000] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[Wed, 11 Jan 2012 17:02:12 +0000] ERROR: Exception handlers complete
[Wed, 11 Jan 2012 17:02:12 +0000] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[Wed, 11 Jan 2012 17:02:12 +0000] FATAL: NoMethodError: undefined method `run_action' for "service[nagios-nrpe-server]":String
@rogernolan

This comment has been minimized.

Show comment Hide comment
@rogernolan

rogernolan Jan 25, 2012

Hi, did you manage to solve this error, I'm seeing exactly the same.

Hi, did you manage to solve this error, I'm seeing exactly the same.

@ktheory

This comment has been minimized.

Show comment Hide comment
@ktheory

ktheory Jan 25, 2012

Not really. I tried changing the nagios_nrpecheck to use the "old style" notification syntax recommended here: http://www.sharp-tools.net/archives/002187.html
Then this error seemed to happen less, but still happened sometimes. (I don't recall the particular conditions.)

Eventually I just stopped using the nagios_nrpecheck provider altogether; and wrote my own templates that notify nagios-nrpe-server.

Owner

ktheory commented Jan 25, 2012

Not really. I tried changing the nagios_nrpecheck to use the "old style" notification syntax recommended here: http://www.sharp-tools.net/archives/002187.html
Then this error seemed to happen less, but still happened sometimes. (I don't recall the particular conditions.)

Eventually I just stopped using the nagios_nrpecheck provider altogether; and wrote my own templates that notify nagios-nrpe-server.

@rogernolan

This comment has been minimized.

Show comment Hide comment
@rogernolan

rogernolan Jan 25, 2012

yeah, I tried that fix too :-(

yeah, I tried that fix too :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment