NetApp Tech Support is assisting me with an SDK issue between Nagios and a filer cluster. One question he asked me is, 'What API are you calling when you run /usr/local/nagios/libexec/check_netapp_ontap.pl?'. How would I determine which API is being used when I run this command in RHEL 6?

  • 4
    By reading /usr/local/nagios/libexec/check_netapp_ontap.pl – user4556274 Aug 11 '16 at 13:28
  • I'm hoping that was a genuine and sincere attempt to help a fellow admin, and not a lame attempt at sarcasm. Reading that script was the 1st thing I did. – R. Baker Aug 11 '16 at 14:06
  • 1
    The question really means 'exactly what is your script doing to collect data frmo the Netapp'? Just tell them what requests are being made to the filer by that script. – Flup Aug 11 '16 at 14:21
  • 1
    @Flup you should post that as an answer... – derobert Aug 11 '16 at 17:11

Although the code can run on Linux, it's not really a Linux question.

Assuming the code comes from this OutsideIT page, then just from the variable names it looks to me like the NaServer.pm portion is trying to use the ZAPI interface.

$::ZAPI_xmlns = "http://www.netapp.com/filer/admin";
$::ZAPI_dtd = "file:/etc/netapp_filer.dtd";
my $FILER_dtd = "file:/etc/netapp_filer.dtd";
my $DFM_ZAPI_dtd = "file:/etc/netapp_dfm.dtd";
my $AGENT_ZAPI_dtd = "file:/etc/netapp_agent.dtd";
$::ZAPI_snoop = 0;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.