Plugin executes on CLI not in XI
Posted: Fri Jun 28, 2013 9:00 am
I have seen this on a few other posts and tried what was listed there.
When I run the plugin on the cli everything comes back good.
when I run it as a scheduled check in XI I just get a Status (null)
[nagios@nagios1 libexec]$ ./SRS_check_rhev3 -H rhevm.cloud2 -f .authfile -R rhhva.cloud2 -l cpu
RHEV OK: cpu ok - 4% used (rhhva.cloud2.srs.local) |cpu=4%;60;80;0; cpu.current.user=1;;;0; cpu.current.system=2;;;0; cpu.current.idle=96;;;0;
This is the check_rhev3 plugin from the exchange, downloaded from git_hub. the SRS prefix is just a rename of the file for standardizing local usage. the command works the same with or without the rename.
there is already this at the top
#!/usr/bin/perl -w
# nagios: -epn
so it isn't trying to use the embedded perl.
Any thoughts?
Nagios XI 2012R1.3
When I run the plugin on the cli everything comes back good.
when I run it as a scheduled check in XI I just get a Status (null)
[nagios@nagios1 libexec]$ ./SRS_check_rhev3 -H rhevm.cloud2 -f .authfile -R rhhva.cloud2 -l cpu
RHEV OK: cpu ok - 4% used (rhhva.cloud2.srs.local) |cpu=4%;60;80;0; cpu.current.user=1;;;0; cpu.current.system=2;;;0; cpu.current.idle=96;;;0;
This is the check_rhev3 plugin from the exchange, downloaded from git_hub. the SRS prefix is just a rename of the file for standardizing local usage. the command works the same with or without the rename.
there is already this at the top
#!/usr/bin/perl -w
# nagios: -epn
so it isn't trying to use the embedded perl.
Any thoughts?
Nagios XI 2012R1.3